Updates for compiling with Gtk+ 3.0 (--with-x-toolkit=gtk3).
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0afb4571 3# Generated by GNU Autoconf 2.65 for emacs 24.0.50.
067d23c9
KY
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
0afb4571
J
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# 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.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
7834125e 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
067d23c9
KY
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
0afb4571 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
067d23c9
KY
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
0afb4571
J
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
067d23c9
KY
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
0afb4571 363# script with status $?, using 1 if that was 0.
067d23c9
KY
364as_fn_error ()
365{
0afb4571
J
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
067d23c9 370 fi
0afb4571 371 $as_echo "$as_me: error: $1" >&2
067d23c9
KY
372 as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486else
487 as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
0afb4571 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
067d23c9
KY
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='emacs'
551PACKAGE_TARNAME='emacs'
552PACKAGE_VERSION='24.0.50'
553PACKAGE_STRING='emacs 24.0.50'
554PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556
557ac_unique_file="src/lisp.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572# include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
067d23c9 594ac_header_list=
e275c824
PE
595gl_getopt_required=POSIX
596gl_getopt_required=POSIX
067d23c9 597ac_func_list=
743c80a7
PE
598ac_subst_vars='gltests_LTLIBOBJS
599gltests_LIBOBJS
600gl_LTLIBOBJS
601gl_LIBOBJS
602am__EXEEXT_FALSE
603am__EXEEXT_TRUE
604LTLIBOBJS
1f5d53eb 605LIBOBJS
067d23c9
KY
606WINDOW_SUPPORT
607TOOLTIP_SUPPORT
608MOUSE_SUPPORT
609LIB_GCC
610LD_FIRSTFLAG
611LD_SWITCH_SYSTEM_TEMACS
612POST_ALLOC_OBJ
613PRE_ALLOC_OBJ
614CYGWIN_OBJ
615RALLOC_OBJ
616OLDXMENU_DEPS
617LIBX_OTHER
618LIBXMENU
619OLDXMENU
620OLDXMENU_TARGET
621LIBXT_OTHER
622TOOLKIT_LIBW
623WIDGET_OBJ
624XOBJ
625XMENU_OBJ
626FONT_OBJ
627OTHER_FILES
628GNU_OBJC_CFLAGS
629ns_appsrc
630ns_appresdir
631ns_appbindir
632ns_appdir
d6a003a8
AS
633S_FILE
634M_FILE
067d23c9
KY
635X_TOOLKIT_TYPE
636C_SWITCH_X_SYSTEM
637C_SWITCH_X_SITE
638LD_SWITCH_X_SITE
639gameuser
640gamedir
641bitmapdir
642archlibdir
643etcdir
644x_default_search_path
645lisppath
646locallisppath
647lispdir
648srcdir
649canonical
650configuration
651version
652KRB4LIB
653DESLIB
654KRB5LIB
655CRYPTOLIB
656COM_ERRLIB
657LIBRESOLV
658LIBHESIOD
659TERMCAP_OBJ
660LIBS_TERMCAP
743c80a7
PE
661LIBGNU_LTLIBDEPS
662LIBGNU_LIBDEPS
663gltests_WITNESS
e275c824
PE
664HAVE_UNISTD_H
665NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666NEXT_UNISTD_H
1fd182f0
PE
667PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669TIME_H_DEFINES_STRUCT_TIMESPEC
670NEXT_AS_FIRST_DIRECTIVE_TIME_H
671NEXT_TIME_H
5fa4ac76
PE
672NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673NEXT_SYS_STAT_H
1f5d53eb
PE
674NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
675NEXT_STDLIB_H
5f90be1b
PE
676STDINT_H
677WINT_T_SUFFIX
678WCHAR_T_SUFFIX
679SIG_ATOMIC_T_SUFFIX
680SIZE_T_SUFFIX
681PTRDIFF_T_SUFFIX
682HAVE_SIGNED_WINT_T
683HAVE_SIGNED_WCHAR_T
684HAVE_SIGNED_SIG_ATOMIC_T
685BITSIZEOF_WINT_T
686BITSIZEOF_WCHAR_T
687BITSIZEOF_SIG_ATOMIC_T
688BITSIZEOF_SIZE_T
689BITSIZEOF_PTRDIFF_T
690HAVE_SYS_BITYPES_H
691HAVE_SYS_INTTYPES_H
692HAVE_STDINT_H
693NEXT_AS_FIRST_DIRECTIVE_STDINT_H
694NEXT_STDINT_H
695HAVE_SYS_TYPES_H
696HAVE_INTTYPES_H
697HAVE_WCHAR_H
698HAVE_UNSIGNED_LONG_LONG_INT
699HAVE_LONG_LONG_INT
1fd182f0
PE
700NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
701NEXT_STDDEF_H
1fd182f0
PE
702STDDEF_H
703HAVE_WCHAR_T
704REPLACE_NULL
16c3e636
PE
705HAVE__BOOL
706STDBOOL_H
1fd182f0
PE
707APPLE_UNIVERSAL_BUILD
708REPLACE_TIMEGM
709REPLACE_NANOSLEEP
710REPLACE_MKTIME
711REPLACE_LOCALTIME_R
712HAVE_TIMEGM
713HAVE_STRPTIME
714HAVE_NANOSLEEP
715HAVE_DECL_LOCALTIME_R
716GNULIB_TIME_R
717GNULIB_TIMEGM
718GNULIB_STRPTIME
719GNULIB_NANOSLEEP
720GNULIB_MKTIME
ae0d7250
PE
721REPLACE_UTIMENSAT
722REPLACE_STAT
723REPLACE_MKNOD
724REPLACE_MKFIFO
725REPLACE_MKDIR
726REPLACE_LSTAT
727REPLACE_FUTIMENS
728REPLACE_FSTATAT
729REPLACE_FSTAT
730HAVE_UTIMENSAT
731HAVE_MKNODAT
732HAVE_MKNOD
733HAVE_MKFIFOAT
734HAVE_MKFIFO
735HAVE_MKDIRAT
736HAVE_LSTAT
737HAVE_LCHMOD
738HAVE_FUTIMENS
739HAVE_FSTATAT
740HAVE_FCHMODAT
741GNULIB_UTIMENSAT
742GNULIB_STAT
743GNULIB_MKNODAT
744GNULIB_MKNOD
745GNULIB_MKFIFOAT
746GNULIB_MKFIFO
747GNULIB_MKDIRAT
748GNULIB_LSTAT
749GNULIB_LCHMOD
750GNULIB_FUTIMENS
751GNULIB_FSTATAT
752GNULIB_FCHMODAT
e275c824
PE
753LTLIBINTL
754LIBINTL
755GETOPT_H
756HAVE_GETOPT_H
757NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
758NEXT_GETOPT_H
759PRAGMA_COLUMNS
760PRAGMA_SYSTEM_HEADER
761INCLUDE_NEXT_AS_FIRST_DIRECTIVE
762INCLUDE_NEXT
763UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
764UNISTD_H_HAVE_WINSOCK2_H
765REPLACE_WRITE
766REPLACE_USLEEP
767REPLACE_UNLINKAT
768REPLACE_UNLINK
769REPLACE_TTYNAME_R
770REPLACE_SYMLINK
771REPLACE_SLEEP
772REPLACE_RMDIR
773REPLACE_READLINK
774REPLACE_PWRITE
775REPLACE_PREAD
776REPLACE_LSEEK
777REPLACE_LINKAT
778REPLACE_LINK
779REPLACE_LCHOWN
780REPLACE_GETPAGESIZE
781REPLACE_GETGROUPS
782REPLACE_GETLOGIN_R
783REPLACE_GETDOMAINNAME
784REPLACE_GETCWD
785REPLACE_FCHOWNAT
786REPLACE_DUP2
787REPLACE_DUP
788REPLACE_CLOSE
789REPLACE_CHOWN
790HAVE_SYS_PARAM_H
791HAVE_OS_H
792HAVE_DECL_TTYNAME_R
793HAVE_DECL_GETUSERSHELL
794HAVE_DECL_GETPAGESIZE
795HAVE_DECL_GETLOGIN_R
796HAVE_DECL_GETDOMAINNAME
797HAVE_DECL_FCHDIR
798HAVE_DECL_ENVIRON
799HAVE_USLEEP
800HAVE_UNLINKAT
801HAVE_SYMLINKAT
802HAVE_SYMLINK
803HAVE_SLEEP
804HAVE_READLINKAT
805HAVE_READLINK
806HAVE_PWRITE
807HAVE_PREAD
808HAVE_PIPE2
809HAVE_PIPE
810HAVE_LINKAT
811HAVE_LINK
812HAVE_LCHOWN
813HAVE_GETPAGESIZE
814HAVE_GETLOGIN
815HAVE_GETHOSTNAME
816HAVE_GETGROUPS
817HAVE_GETDTABLESIZE
818HAVE_FTRUNCATE
819HAVE_FSYNC
820HAVE_FCHOWNAT
821HAVE_FCHDIR
822HAVE_FACCESSAT
823HAVE_EUIDACCESS
824HAVE_DUP3
825HAVE_DUP2
826HAVE_CHOWN
827GNULIB_WRITE
828GNULIB_USLEEP
829GNULIB_UNLINKAT
830GNULIB_UNLINK
831GNULIB_UNISTD_H_SIGPIPE
832GNULIB_UNISTD_H_GETOPT
833GNULIB_TTYNAME_R
834GNULIB_SYMLINKAT
835GNULIB_SYMLINK
836GNULIB_SLEEP
837GNULIB_RMDIR
838GNULIB_READLINKAT
839GNULIB_READLINK
840GNULIB_PWRITE
841GNULIB_PREAD
842GNULIB_PIPE2
843GNULIB_PIPE
844GNULIB_LSEEK
845GNULIB_LINKAT
846GNULIB_LINK
847GNULIB_LCHOWN
848GNULIB_GETUSERSHELL
849GNULIB_GETPAGESIZE
850GNULIB_GETLOGIN_R
851GNULIB_GETLOGIN
852GNULIB_GETHOSTNAME
853GNULIB_GETGROUPS
854GNULIB_GETDTABLESIZE
855GNULIB_GETDOMAINNAME
856GNULIB_GETCWD
857GNULIB_FTRUNCATE
858GNULIB_FSYNC
859GNULIB_FCHOWNAT
860GNULIB_FCHDIR
861GNULIB_FACCESSAT
862GNULIB_EUIDACCESS
863GNULIB_ENVIRON
864GNULIB_DUP3
865GNULIB_DUP2
866GNULIB_CLOSE
867GNULIB_CHOWN
1f5d53eb 868GETLOADAVG_LIBS
9411886d 869REPLACE_WCTOMB
1f5d53eb
PE
870REPLACE_UNSETENV
871REPLACE_STRTOD
872REPLACE_SETENV
873REPLACE_REALPATH
874REPLACE_REALLOC
875REPLACE_PUTENV
876REPLACE_MKSTEMP
9411886d 877REPLACE_MBTOWC
1f5d53eb
PE
878REPLACE_MALLOC
879REPLACE_CANONICALIZE_FILE_NAME
880REPLACE_CALLOC
881HAVE_DECL_UNSETENV
882HAVE_UNLOCKPT
883HAVE_SYS_LOADAVG_H
884HAVE_STRUCT_RANDOM_DATA
885HAVE_STRTOULL
886HAVE_STRTOLL
887HAVE_STRTOD
888HAVE_DECL_SETENV
889HAVE_SETENV
890HAVE_RPMATCH
891HAVE_REALPATH
892HAVE_RANDOM_R
893HAVE_RANDOM_H
894HAVE_PTSNAME
895HAVE_MKSTEMPS
896HAVE_MKSTEMP
897HAVE_MKOSTEMPS
898HAVE_MKOSTEMP
899HAVE_MKDTEMP
900HAVE_GRANTPT
901HAVE_GETSUBOPT
902HAVE_DECL_GETLOADAVG
903HAVE_CANONICALIZE_FILE_NAME
904HAVE_ATOLL
905HAVE__EXIT
9411886d 906GNULIB_WCTOMB
1f5d53eb
PE
907GNULIB_UNSETENV
908GNULIB_UNLOCKPT
909GNULIB_SYSTEM_POSIX
910GNULIB_STRTOULL
911GNULIB_STRTOLL
912GNULIB_STRTOD
913GNULIB_SETENV
914GNULIB_RPMATCH
915GNULIB_REALPATH
916GNULIB_REALLOC_POSIX
917GNULIB_RANDOM_R
918GNULIB_PUTENV
919GNULIB_PTSNAME
920GNULIB_MKSTEMPS
921GNULIB_MKSTEMP
922GNULIB_MKOSTEMPS
923GNULIB_MKOSTEMP
924GNULIB_MKDTEMP
9411886d 925GNULIB_MBTOWC
1f5d53eb
PE
926GNULIB_MALLOC_POSIX
927GNULIB_GRANTPT
928GNULIB_GETSUBOPT
929GNULIB_GETLOADAVG
930GNULIB_CANONICALIZE_FILE_NAME
931GNULIB_CALLOC_POSIX
932GNULIB_ATOLL
933GNULIB__EXIT
743c80a7
PE
934GL_COND_LIBTOOL_FALSE
935GL_COND_LIBTOOL_TRUE
067d23c9
KY
936BLESSMAIL_TARGET
937LIBS_MAIL
938liblockfile
939ALLOCA
940LIBXML2_LIBS
941LIBXML2_CFLAGS
942LIBXSM
943LIBGPM
944LIBGIF
945LIBTIFF
946LIBPNG
947LIBJPEG
948LIBXPM
067d23c9
KY
949M17N_FLT_LIBS
950M17N_FLT_CFLAGS
951LIBOTF_LIBS
952LIBOTF_CFLAGS
7834125e
GM
953FREETYPE_LIBS
954FREETYPE_CFLAGS
067d23c9
KY
955XFT_LIBS
956XFT_CFLAGS
957FONTCONFIG_LIBS
958FONTCONFIG_CFLAGS
959LIBXMU
960LIBXTR6
961LIBGNUTLS_LIBS
962LIBGNUTLS_CFLAGS
963LIBSELINUX_LIBS
964GCONF_LIBS
965GCONF_CFLAGS
966DBUS_OBJ
967DBUS_LIBS
968DBUS_CFLAGS
969GTK_OBJ
970GTK_LIBS
971GTK_CFLAGS
972IMAGEMAGICK_LIBS
973IMAGEMAGICK_CFLAGS
974RSVG_LIBS
975RSVG_CFLAGS
976VMLIMIT_OBJ
977GMALLOC_OBJ
978HAVE_XSERVER
979LIB_STANDARD
980NS_SUPPORT
00b3c7ac 981NS_OBJC_OBJ
067d23c9
KY
982NS_OBJ
983TEMACS_LDFLAGS2
984LD_SWITCH_X_SITE_AUX_RPATH
985LD_SWITCH_X_SITE_AUX
986XMKMF
987DEPFLAGS
988MKDEPDIR
067d23c9
KY
989CFLAGS_SOUND
990ALSA_LIBS
991ALSA_CFLAGS
992PKG_CONFIG
993LIBSOUND
994START_FILES
995LIB_MATH
996CRT_DIR
997LIBS_SYSTEM
998C_SWITCH_SYSTEM
999UNEXEC_OBJ
1000C_SWITCH_MACHINE
1001LD_SWITCH_SYSTEM
1002CANNOT_DUMP
96f129d5 1003HAVE_MAKEINFO
067d23c9
KY
1004GZIP_PROG
1005INSTALL_INFO
067d23c9
KY
1006C_WARNINGS_SWITCH
1007EGREP
1008GREP
1009CPP
743c80a7
PE
1010RANLIB
1011am__fastdepCC_FALSE
1012am__fastdepCC_TRUE
1013CCDEPMODE
1014AMDEPBACKSLASH
1015AMDEP_FALSE
1016AMDEP_TRUE
1017am__quote
1018am__include
1019DEPDIR
067d23c9
KY
1020OBJEXT
1021EXEEXT
1022ac_ct_CC
1023CPPFLAGS
1024LDFLAGS
1025CFLAGS
1026CC
1027host_os
1028host_vendor
1029host_cpu
1030host
1031build_os
1032build_vendor
1033build_cpu
1034build
1035PROFILING_CFLAGS
1036MAINT
1037GZIP_INFO
743c80a7
PE
1038am__untar
1039am__tar
1040AMTAR
1041am__leading_dot
1042SET_MAKE
1043AWK
1044mkdir_p
1045MKDIR_P
1046INSTALL_STRIP_PROGRAM
1047STRIP
1048install_sh
1049MAKEINFO
1050AUTOHEADER
1051AUTOMAKE
1052AUTOCONF
1053ACLOCAL
1054VERSION
1055PACKAGE
1056CYGPATH_W
1057am__isrc
1058INSTALL_DATA
1059INSTALL_SCRIPT
1060INSTALL_PROGRAM
067d23c9
KY
1061target_alias
1062host_alias
1063build_alias
1064LIBS
1065ECHO_T
1066ECHO_N
1067ECHO_C
1068DEFS
1069mandir
1070localedir
1071libdir
1072psdir
1073pdfdir
1074dvidir
1075htmldir
1076infodir
1077docdir
1078oldincludedir
1079includedir
1080localstatedir
1081sharedstatedir
1082sysconfdir
1083datadir
1084datarootdir
1085libexecdir
1086sbindir
1087bindir
1088program_transform_name
1089prefix
1090exec_prefix
1091PACKAGE_URL
1092PACKAGE_BUGREPORT
1093PACKAGE_STRING
1094PACKAGE_VERSION
1095PACKAGE_TARNAME
1096PACKAGE_NAME
1097PATH_SEPARATOR
1098SHELL'
1099ac_subst_files='deps_frag
1100ns_frag'
1101ac_user_opts='
1102enable_option_checking
1103with_pop
1104with_kerberos
1105with_kerberos5
1106with_hesiod
1107with_mmdf
1108with_mail_unlink
1109with_mailhost
1110with_sound
1111with_sync_input
1112with_x_toolkit
1113with_xpm
1114with_jpeg
1115with_tiff
1116with_gif
1117with_png
1118with_rsvg
1119with_xml2
1120with_imagemagick
1121with_xft
1122with_libotf
1123with_m17n_flt
1124with_toolkit_scroll_bars
1125with_xaw3d
1126with_xim
1127with_ns
1128with_gpm
1129with_dbus
1130with_gconf
1131with_selinux
1132with_gnutls
1133with_makeinfo
1134with_compress_info
1135with_pkg_config_prog
1136with_crt_dir
4fc5868a 1137with_gameuser
067d23c9
KY
1138with_gnustep_conf
1139enable_ns_self_contained
1140enable_asserts
1141enable_maintainer_mode
1142enable_locallisppath
1143enable_checking
1144enable_use_lisp_union_type
1145enable_profiling
1146enable_autodepend
743c80a7 1147enable_dependency_tracking
067d23c9
KY
1148enable_largefile
1149with_x
1150'
1151 ac_precious_vars='build_alias
1152host_alias
1153target_alias
1154CC
1155CFLAGS
1156LDFLAGS
1157LIBS
1158CPPFLAGS
1159CPP
1160XMKMF'
1161
1162
1163# Initialize some variables set by options.
1164ac_init_help=
1165ac_init_version=false
1166ac_unrecognized_opts=
1167ac_unrecognized_sep=
1168# The variables have the same names as the options, with
1169# dashes changed to underlines.
1170cache_file=/dev/null
1171exec_prefix=NONE
1172no_create=
1173no_recursion=
1174prefix=NONE
1175program_prefix=NONE
1176program_suffix=NONE
1177program_transform_name=s,x,x,
1178silent=
1179site=
1180srcdir=
1181verbose=
1182x_includes=NONE
1183x_libraries=NONE
1184
1185# Installation directory options.
1186# These are left unexpanded so users can "make install exec_prefix=/foo"
1187# and all the variables that are supposed to be based on exec_prefix
1188# by default will actually change.
1189# Use braces instead of parens because sh, perl, etc. also accept them.
1190# (The list follows the same order as the GNU Coding Standards.)
1191bindir='${exec_prefix}/bin'
1192sbindir='${exec_prefix}/sbin'
1193libexecdir='${exec_prefix}/libexec'
1194datarootdir='${prefix}/share'
1195datadir='${datarootdir}'
1196sysconfdir='${prefix}/etc'
1197sharedstatedir='${prefix}/com'
1198localstatedir='${prefix}/var'
1199includedir='${prefix}/include'
1200oldincludedir='/usr/include'
1201docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1202infodir='${datarootdir}/info'
1203htmldir='${docdir}'
1204dvidir='${docdir}'
1205pdfdir='${docdir}'
1206psdir='${docdir}'
1207libdir='${exec_prefix}/lib'
1208localedir='${datarootdir}/locale'
1209mandir='${datarootdir}/man'
1210
1211ac_prev=
1212ac_dashdash=
1213for ac_option
1214do
1215 # If the previous option needs an argument, assign it.
1216 if test -n "$ac_prev"; then
1217 eval $ac_prev=\$ac_option
1218 ac_prev=
1219 continue
1220 fi
1221
1222 case $ac_option in
0afb4571
J
1223 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1224 *) ac_optarg=yes ;;
067d23c9
KY
1225 esac
1226
1227 # Accept the important Cygnus configure options, so we can diagnose typos.
1228
1229 case $ac_dashdash$ac_option in
1230 --)
1231 ac_dashdash=yes ;;
1232
1233 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1234 ac_prev=bindir ;;
1235 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1236 bindir=$ac_optarg ;;
1237
1238 -build | --build | --buil | --bui | --bu)
1239 ac_prev=build_alias ;;
1240 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1241 build_alias=$ac_optarg ;;
1242
1243 -cache-file | --cache-file | --cache-fil | --cache-fi \
1244 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1245 ac_prev=cache_file ;;
1246 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1247 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1248 cache_file=$ac_optarg ;;
1249
1250 --config-cache | -C)
1251 cache_file=config.cache ;;
1252
1253 -datadir | --datadir | --datadi | --datad)
1254 ac_prev=datadir ;;
1255 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1256 datadir=$ac_optarg ;;
1257
1258 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1259 | --dataroo | --dataro | --datar)
1260 ac_prev=datarootdir ;;
1261 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1262 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1263 datarootdir=$ac_optarg ;;
1264
1265 -disable-* | --disable-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0afb4571 1269 as_fn_error "invalid feature name: $ac_useropt"
067d23c9
KY
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"enable_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval enable_$ac_useropt=no ;;
1280
1281 -docdir | --docdir | --docdi | --doc | --do)
1282 ac_prev=docdir ;;
1283 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1284 docdir=$ac_optarg ;;
1285
1286 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1287 ac_prev=dvidir ;;
1288 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1289 dvidir=$ac_optarg ;;
1290
1291 -enable-* | --enable-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0afb4571 1295 as_fn_error "invalid feature name: $ac_useropt"
067d23c9
KY
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"enable_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval enable_$ac_useropt=\$ac_optarg ;;
1306
1307 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1308 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1309 | --exec | --exe | --ex)
1310 ac_prev=exec_prefix ;;
1311 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1312 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1313 | --exec=* | --exe=* | --ex=*)
1314 exec_prefix=$ac_optarg ;;
1315
1316 -gas | --gas | --ga | --g)
1317 # Obsolete; use --with-gas.
1318 with_gas=yes ;;
1319
1320 -help | --help | --hel | --he | -h)
1321 ac_init_help=long ;;
1322 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1323 ac_init_help=recursive ;;
1324 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1325 ac_init_help=short ;;
1326
1327 -host | --host | --hos | --ho)
1328 ac_prev=host_alias ;;
1329 -host=* | --host=* | --hos=* | --ho=*)
1330 host_alias=$ac_optarg ;;
1331
1332 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1333 ac_prev=htmldir ;;
1334 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1335 | --ht=*)
1336 htmldir=$ac_optarg ;;
1337
1338 -includedir | --includedir | --includedi | --included | --include \
1339 | --includ | --inclu | --incl | --inc)
1340 ac_prev=includedir ;;
1341 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1342 | --includ=* | --inclu=* | --incl=* | --inc=*)
1343 includedir=$ac_optarg ;;
1344
1345 -infodir | --infodir | --infodi | --infod | --info | --inf)
1346 ac_prev=infodir ;;
1347 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1348 infodir=$ac_optarg ;;
1349
1350 -libdir | --libdir | --libdi | --libd)
1351 ac_prev=libdir ;;
1352 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1353 libdir=$ac_optarg ;;
1354
1355 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1356 | --libexe | --libex | --libe)
1357 ac_prev=libexecdir ;;
1358 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1359 | --libexe=* | --libex=* | --libe=*)
1360 libexecdir=$ac_optarg ;;
1361
1362 -localedir | --localedir | --localedi | --localed | --locale)
1363 ac_prev=localedir ;;
1364 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1365 localedir=$ac_optarg ;;
1366
1367 -localstatedir | --localstatedir | --localstatedi | --localstated \
1368 | --localstate | --localstat | --localsta | --localst | --locals)
1369 ac_prev=localstatedir ;;
1370 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1371 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1372 localstatedir=$ac_optarg ;;
1373
1374 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1375 ac_prev=mandir ;;
1376 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1377 mandir=$ac_optarg ;;
1378
1379 -nfp | --nfp | --nf)
1380 # Obsolete; use --without-fp.
1381 with_fp=no ;;
1382
1383 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1384 | --no-cr | --no-c | -n)
1385 no_create=yes ;;
1386
1387 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1388 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1389 no_recursion=yes ;;
1390
1391 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1392 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1393 | --oldin | --oldi | --old | --ol | --o)
1394 ac_prev=oldincludedir ;;
1395 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1396 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1397 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1398 oldincludedir=$ac_optarg ;;
1399
1400 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1401 ac_prev=prefix ;;
1402 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1403 prefix=$ac_optarg ;;
1404
1405 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1406 | --program-pre | --program-pr | --program-p)
1407 ac_prev=program_prefix ;;
1408 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1409 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1410 program_prefix=$ac_optarg ;;
1411
1412 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1413 | --program-suf | --program-su | --program-s)
1414 ac_prev=program_suffix ;;
1415 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1416 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1417 program_suffix=$ac_optarg ;;
1418
1419 -program-transform-name | --program-transform-name \
1420 | --program-transform-nam | --program-transform-na \
1421 | --program-transform-n | --program-transform- \
1422 | --program-transform | --program-transfor \
1423 | --program-transfo | --program-transf \
1424 | --program-trans | --program-tran \
1425 | --progr-tra | --program-tr | --program-t)
1426 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1435
1436 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1437 ac_prev=pdfdir ;;
1438 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1439 pdfdir=$ac_optarg ;;
1440
1441 -psdir | --psdir | --psdi | --psd | --ps)
1442 ac_prev=psdir ;;
1443 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1444 psdir=$ac_optarg ;;
1445
1446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1447 | -silent | --silent | --silen | --sile | --sil)
1448 silent=yes ;;
1449
1450 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1451 ac_prev=sbindir ;;
1452 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1453 | --sbi=* | --sb=*)
1454 sbindir=$ac_optarg ;;
1455
1456 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1457 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1458 | --sharedst | --shareds | --shared | --share | --shar \
1459 | --sha | --sh)
1460 ac_prev=sharedstatedir ;;
1461 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1462 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1463 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1464 | --sha=* | --sh=*)
1465 sharedstatedir=$ac_optarg ;;
1466
1467 -site | --site | --sit)
1468 ac_prev=site ;;
1469 -site=* | --site=* | --sit=*)
1470 site=$ac_optarg ;;
1471
1472 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1473 ac_prev=srcdir ;;
1474 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1475 srcdir=$ac_optarg ;;
1476
1477 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1478 | --syscon | --sysco | --sysc | --sys | --sy)
1479 ac_prev=sysconfdir ;;
1480 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1481 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1482 sysconfdir=$ac_optarg ;;
1483
1484 -target | --target | --targe | --targ | --tar | --ta | --t)
1485 ac_prev=target_alias ;;
1486 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1487 target_alias=$ac_optarg ;;
1488
1489 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1490 verbose=yes ;;
1491
1492 -version | --version | --versio | --versi | --vers | -V)
1493 ac_init_version=: ;;
1494
1495 -with-* | --with-*)
1496 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1497 # Reject names that are not valid shell variable names.
1498 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0afb4571 1499 as_fn_error "invalid package name: $ac_useropt"
067d23c9
KY
1500 ac_useropt_orig=$ac_useropt
1501 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1502 case $ac_user_opts in
1503 *"
1504"with_$ac_useropt"
1505"*) ;;
1506 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1507 ac_unrecognized_sep=', ';;
1508 esac
1509 eval with_$ac_useropt=\$ac_optarg ;;
1510
1511 -without-* | --without-*)
1512 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
0afb4571 1515 as_fn_error "invalid package name: $ac_useropt"
067d23c9
KY
1516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1519 *"
1520"with_$ac_useropt"
1521"*) ;;
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1524 esac
1525 eval with_$ac_useropt=no ;;
1526
1527 --x)
1528 # Obsolete; use --with-x.
1529 with_x=yes ;;
1530
1531 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1532 | --x-incl | --x-inc | --x-in | --x-i)
1533 ac_prev=x_includes ;;
1534 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1535 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1536 x_includes=$ac_optarg ;;
1537
1538 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1539 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1540 ac_prev=x_libraries ;;
1541 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1542 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1543 x_libraries=$ac_optarg ;;
1544
0afb4571
J
1545 -*) as_fn_error "unrecognized option: \`$ac_option'
1546Try \`$0 --help' for more information."
067d23c9
KY
1547 ;;
1548
1549 *=*)
1550 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1551 # Reject names that are not valid shell variable names.
1552 case $ac_envvar in #(
1553 '' | [0-9]* | *[!_$as_cr_alnum]* )
0afb4571 1554 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1555 esac
1556 eval $ac_envvar=\$ac_optarg
1557 export $ac_envvar ;;
1558
1559 *)
1560 # FIXME: should be removed in autoconf 3.0.
1561 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1562 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1563 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
7834125e 1564 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
067d23c9
KY
1565 ;;
1566
1567 esac
1568done
1569
1570if test -n "$ac_prev"; then
1571 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
0afb4571 1572 as_fn_error "missing argument to $ac_option"
067d23c9
KY
1573fi
1574
1575if test -n "$ac_unrecognized_opts"; then
1576 case $enable_option_checking in
1577 no) ;;
0afb4571 1578 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1579 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1580 esac
1581fi
1582
1583# Check all directory arguments for consistency.
1584for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1585 datadir sysconfdir sharedstatedir localstatedir includedir \
1586 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1587 libdir localedir mandir
1588do
1589 eval ac_val=\$$ac_var
1590 # Remove trailing slashes.
1591 case $ac_val in
1592 */ )
1593 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1594 eval $ac_var=\$ac_val;;
1595 esac
1596 # Be sure to have absolute directory names.
1597 case $ac_val in
1598 [\\/$]* | ?:[\\/]* ) continue;;
1599 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1600 esac
0afb4571 1601 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1602done
1603
1604# There might be people who depend on the old broken behavior: `$host'
1605# used to hold the argument of --host etc.
1606# FIXME: To remove some day.
1607build=$build_alias
1608host=$host_alias
1609target=$target_alias
1610
1611# FIXME: To remove some day.
1612if test "x$host_alias" != x; then
1613 if test "x$build_alias" = x; then
1614 cross_compiling=maybe
0afb4571
J
1615 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1616 If a cross compiler is detected then cross compile mode will be used." >&2
067d23c9
KY
1617 elif test "x$build_alias" != "x$host_alias"; then
1618 cross_compiling=yes
1619 fi
1620fi
1621
1622ac_tool_prefix=
1623test -n "$host_alias" && ac_tool_prefix=$host_alias-
1624
1625test "$silent" = yes && exec 6>/dev/null
1626
1627
1628ac_pwd=`pwd` && test -n "$ac_pwd" &&
1629ac_ls_di=`ls -di .` &&
1630ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
0afb4571 1631 as_fn_error "working directory cannot be determined"
067d23c9 1632test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
0afb4571 1633 as_fn_error "pwd does not report name of working directory"
067d23c9
KY
1634
1635
1636# Find the source files, if location was not specified.
1637if test -z "$srcdir"; then
1638 ac_srcdir_defaulted=yes
1639 # Try the directory containing this script, then the parent directory.
1640 ac_confdir=`$as_dirname -- "$as_myself" ||
1641$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1642 X"$as_myself" : 'X\(//\)[^/]' \| \
1643 X"$as_myself" : 'X\(//\)$' \| \
1644 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1645$as_echo X"$as_myself" |
1646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1647 s//\1/
1648 q
1649 }
1650 /^X\(\/\/\)[^/].*/{
1651 s//\1/
1652 q
1653 }
1654 /^X\(\/\/\)$/{
1655 s//\1/
1656 q
1657 }
1658 /^X\(\/\).*/{
1659 s//\1/
1660 q
1661 }
1662 s/.*/./; q'`
1663 srcdir=$ac_confdir
1664 if test ! -r "$srcdir/$ac_unique_file"; then
1665 srcdir=..
1666 fi
1667else
1668 ac_srcdir_defaulted=no
1669fi
1670if test ! -r "$srcdir/$ac_unique_file"; then
1671 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
0afb4571 1672 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1673fi
1674ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1675ac_abs_confdir=`(
0afb4571 1676 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
067d23c9
KY
1677 pwd)`
1678# When building in place, set srcdir=.
1679if test "$ac_abs_confdir" = "$ac_pwd"; then
1680 srcdir=.
1681fi
1682# Remove unnecessary trailing slashes from srcdir.
1683# Double slashes in file names in object file debugging info
1684# mess up M-x gdb in Emacs.
1685case $srcdir in
1686*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1687esac
1688for ac_var in $ac_precious_vars; do
1689 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1690 eval ac_env_${ac_var}_value=\$${ac_var}
1691 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1692 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1693done
1694
1695#
1696# Report the --help message.
1697#
1698if test "$ac_init_help" = "long"; then
1699 # Omit some internal or obsolete options to make the list less imposing.
1700 # This message is too long to be a string in the A/UX 3.1 sh.
1701 cat <<_ACEOF
1702\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1703
1704Usage: $0 [OPTION]... [VAR=VALUE]...
1705
1706To assign environment variables (e.g., CC, CFLAGS...), specify them as
1707VAR=VALUE. See below for descriptions of some of the useful variables.
1708
1709Defaults for the options are specified in brackets.
1710
1711Configuration:
1712 -h, --help display this help and exit
1713 --help=short display options specific to this package
1714 --help=recursive display the short help of all the included packages
1715 -V, --version display version information and exit
0afb4571 1716 -q, --quiet, --silent do not print \`checking...' messages
067d23c9
KY
1717 --cache-file=FILE cache test results in FILE [disabled]
1718 -C, --config-cache alias for \`--cache-file=config.cache'
1719 -n, --no-create do not create output files
1720 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1721
1722Installation directories:
1723 --prefix=PREFIX install architecture-independent files in PREFIX
1724 [$ac_default_prefix]
1725 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1726 [PREFIX]
1727
1728By default, \`make install' will install all the files in
1729\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1730an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1731for instance \`--prefix=\$HOME'.
1732
1733For better control, use the options below.
1734
1735Fine tuning of the installation directories:
1736 --bindir=DIR user executables [EPREFIX/bin]
1737 --sbindir=DIR system admin executables [EPREFIX/sbin]
1738 --libexecdir=DIR program executables [EPREFIX/libexec]
1739 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1740 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1741 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1742 --libdir=DIR object code libraries [EPREFIX/lib]
1743 --includedir=DIR C header files [PREFIX/include]
1744 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1745 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1746 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1747 --infodir=DIR info documentation [DATAROOTDIR/info]
1748 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1749 --mandir=DIR man documentation [DATAROOTDIR/man]
1750 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1751 --htmldir=DIR html documentation [DOCDIR]
1752 --dvidir=DIR dvi documentation [DOCDIR]
1753 --pdfdir=DIR pdf documentation [DOCDIR]
1754 --psdir=DIR ps documentation [DOCDIR]
1755_ACEOF
1756
1757 cat <<\_ACEOF
1758
1759Program names:
1760 --program-prefix=PREFIX prepend PREFIX to installed program names
1761 --program-suffix=SUFFIX append SUFFIX to installed program names
1762 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1763
1764X features:
1765 --x-includes=DIR X include files are in DIR
1766 --x-libraries=DIR X library files are in DIR
1767
1768System types:
1769 --build=BUILD configure for building on BUILD [guessed]
1770 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1771_ACEOF
1772fi
1773
1774if test -n "$ac_init_help"; then
1775 case $ac_init_help in
1776 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1777 esac
1778 cat <<\_ACEOF
1779
1780Optional Features:
1781 --disable-option-checking ignore unrecognized --enable/--with options
1782 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1783 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1784 --disable-ns-self-contained
1785 disable self contained build under NeXTstep
1786 --enable-asserts compile code with asserts enabled
1787 --enable-maintainer-mode
1788 enable make rules and dependencies not useful (and
1789 sometimes confusing) to the casual installer
1790 --enable-locallisppath=PATH
1791 directories Emacs should search for lisp files
1792 specific to this site
1793 --enable-checking[=LIST]
1794 enable expensive run-time checks. With LIST, enable
1795 only specific categories of checks. Categories are:
1796 all,yes,no. Flags are: stringbytes, stringoverrun,
1797 stringfreelist, xmallocoverrun, conslist
1798 --enable-use-lisp-union-type
1799 use a union for the Lisp_Object data type. This is
1800 only useful for development for catching certain
1801 types of bugs.
1802 --enable-profiling build emacs with profiling support. This might not
1803 work on all platforms
1804 --enable-autodepend automatically generate dependencies to .h-files.
1805 Requires GNU Make and Gcc. Enabled if GNU Make and
1806 Gcc is found
743c80a7
PE
1807 --disable-dependency-tracking speeds up one-time build
1808 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1809 --disable-largefile omit support for large files
1810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --without-pop don't support POP mail retrieval with movemail
1815 --with-kerberos support Kerberos-authenticated POP
1816 --with-kerberos5 support Kerberos version 5 authenticated POP
1817 --with-hesiod support Hesiod to get the POP server host
1818 --with-mmdf support MMDF mailboxes
1819 --with-mail-unlink unlink, rather than empty, mail spool after reading
1820 --with-mailhost=HOSTNAME
1821 string giving default POP mail host
1822 --without-sound don't compile with sound support
1823 --without-sync-input process async input synchronously
1824 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1825 lucid or athena, motif, no)
1826 --without-xpm don't compile with XPM image support
1827 --without-jpeg don't compile with JPEG image support
1828 --without-tiff don't compile with TIFF image support
1829 --without-gif don't compile with GIF image support
1830 --without-png don't compile with PNG image support
1831 --without-rsvg don't compile with SVG image support
1832 --without-xml2 don't compile with XML parsing support
1833 --without-imagemagick don't compile with ImageMagick image support
1834 --without-xft don't use XFT for anti aliased fonts
1835 --without-libotf don't use libotf for OpenType font support
1836 --without-m17n-flt don't use m17n-flt for text shaping
1837 --without-toolkit-scroll-bars
1838 don't use Motif or Xaw3d scroll bars
1839 --without-xaw3d don't use Xaw3d
1840 --without-xim don't use X11 XIM
7834125e 1841 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
067d23c9
KY
1842 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1843 console
1844 --without-dbus don't compile with D-Bus support
1845 --without-gconf don't compile with GConf support
1846 --without-selinux don't compile with SELinux support
1847 --without-gnutls don't use -lgnutls for SSL/TLS support
1848 --without-makeinfo don't require makeinfo for building manuals
1849 --without-compress-info don't compress the installed Info pages
1850 --with-pkg-config-prog=PATH
1851 path to pkg-config for finding GTK and librsvg
1852 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1853 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1854 --with-gameuser=USER user for shared game score files
067d23c9
KY
1855 --with-gnustep-conf=PATH
1856 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1857 or /etc/GNUstep/GNUstep.conf
1858 --with-x use the X Window System
1859
1860Some influential environment variables:
1861 CC C compiler command
1862 CFLAGS C compiler flags
1863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1864 nonstandard directory <lib dir>
1865 LIBS libraries to pass to the linker, e.g. -l<library>
1866 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1867 you have headers in a nonstandard directory <include dir>
1868 CPP C preprocessor
1869 XMKMF Path to xmkmf, Makefile generator for X Window System
1870
1871Use these variables to override the choices made by `configure' or to help
1872it to find libraries and programs with nonstandard names/locations.
1873
1874Report bugs to the package provider.
1875_ACEOF
1876ac_status=$?
1877fi
1878
1879if test "$ac_init_help" = "recursive"; then
1880 # If there are subdirs, report their specific --help.
1881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1882 test -d "$ac_dir" ||
1883 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1884 continue
1885 ac_builddir=.
1886
1887case "$ac_dir" in
1888.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1889*)
1890 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1891 # A ".." for each directory in $ac_dir_suffix.
1892 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1893 case $ac_top_builddir_sub in
1894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1896 esac ;;
1897esac
1898ac_abs_top_builddir=$ac_pwd
1899ac_abs_builddir=$ac_pwd$ac_dir_suffix
1900# for backward compatibility:
1901ac_top_builddir=$ac_top_build_prefix
1902
1903case $srcdir in
1904 .) # We are building in place.
1905 ac_srcdir=.
1906 ac_top_srcdir=$ac_top_builddir_sub
1907 ac_abs_top_srcdir=$ac_pwd ;;
1908 [\\/]* | ?:[\\/]* ) # Absolute name.
1909 ac_srcdir=$srcdir$ac_dir_suffix;
1910 ac_top_srcdir=$srcdir
1911 ac_abs_top_srcdir=$srcdir ;;
1912 *) # Relative name.
1913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1914 ac_top_srcdir=$ac_top_build_prefix$srcdir
1915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1916esac
1917ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1918
1919 cd "$ac_dir" || { ac_status=$?; continue; }
1920 # Check for guested configure.
1921 if test -f "$ac_srcdir/configure.gnu"; then
1922 echo &&
1923 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1924 elif test -f "$ac_srcdir/configure"; then
1925 echo &&
1926 $SHELL "$ac_srcdir/configure" --help=recursive
1927 else
1928 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1929 fi || ac_status=$?
1930 cd "$ac_pwd" || { ac_status=$?; break; }
1931 done
1932fi
1933
1934test -n "$ac_init_help" && exit $ac_status
1935if $ac_init_version; then
1936 cat <<\_ACEOF
1937emacs configure 24.0.50
0afb4571 1938generated by GNU Autoconf 2.65
067d23c9 1939
0afb4571 1940Copyright (C) 2009 Free Software Foundation, Inc.
067d23c9
KY
1941This configure script is free software; the Free Software Foundation
1942gives unlimited permission to copy, distribute and modify it.
1943_ACEOF
1944 exit
1945fi
1946
1947## ------------------------ ##
1948## Autoconf initialization. ##
1949## ------------------------ ##
1950
1951# ac_fn_c_try_compile LINENO
1952# --------------------------
1953# Try to compile conftest.$ac_ext, and return whether this succeeded.
1954ac_fn_c_try_compile ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 rm -f conftest.$ac_objext
1958 if { { ac_try="$ac_compile"
1959case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_compile") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && {
1974 test -z "$ac_c_werror_flag" ||
1975 test ! -s conftest.err
1976 } && test -s conftest.$ac_objext; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
7834125e 1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
1985 as_fn_set_status $ac_retval
1986
1987} # ac_fn_c_try_compile
1988
067d23c9
KY
1989# ac_fn_c_try_cpp LINENO
1990# ----------------------
1991# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_c_try_cpp ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if { { ac_try="$ac_cpp conftest.$ac_ext"
1996case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999esac
2000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001$as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2003 ac_status=$?
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2008 fi
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0afb4571 2010 test $ac_status = 0; } >/dev/null && {
067d23c9
KY
2011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 }; then :
2014 ac_retval=0
2015else
2016 $as_echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_retval=1
2020fi
7834125e 2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2022 as_fn_set_status $ac_retval
2023
2024} # ac_fn_c_try_cpp
2025
2026# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2027# -------------------------------------------------------
2028# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2029# the include files in INCLUDES and setting the cache variable VAR
2030# accordingly.
2031ac_fn_c_check_header_mongrel ()
2032{
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0afb4571 2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
0afb4571 2037if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2038 $as_echo_n "(cached) " >&6
2039fi
2040eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043else
2044 # Is the header compilable?
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2046$as_echo_n "checking $2 usability... " >&6; }
2047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h. */
2049$4
2050#include <$2>
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_header_compiler=yes
2054else
2055 ac_header_compiler=no
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2059$as_echo "$ac_header_compiler" >&6; }
2060
2061# Is the header present?
2062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2063$as_echo_n "checking $2 presence... " >&6; }
2064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066#include <$2>
2067_ACEOF
2068if ac_fn_c_try_cpp "$LINENO"; then :
2069 ac_header_preproc=yes
2070else
2071 ac_header_preproc=no
2072fi
0afb4571 2073rm -f conftest.err conftest.$ac_ext
067d23c9
KY
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2075$as_echo "$ac_header_preproc" >&6; }
2076
2077# So? What about this header?
2078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2079 yes:no: )
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2081$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2084 ;;
2085 no:yes:* )
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2087$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2089$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2091$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2093$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ;;
2097esac
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099$as_echo_n "checking for $2... " >&6; }
0afb4571 2100if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2101 $as_echo_n "(cached) " >&6
2102else
2103 eval "$3=\$ac_header_compiler"
2104fi
2105eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108fi
7834125e 2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2110
2111} # ac_fn_c_check_header_mongrel
2112
2113# ac_fn_c_try_run LINENO
2114# ----------------------
2115# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2116# that executables *can* be run.
2117ac_fn_c_try_run ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if { { ac_try="$ac_link"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126$as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_link") 2>&5
2128 ac_status=$?
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2131 { { case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_try") 2>&5
2138 ac_status=$?
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; }; }; then :
2141 ac_retval=0
2142else
2143 $as_echo "$as_me: program exited with status $ac_status" >&5
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=$ac_status
2148fi
2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
7834125e 2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2151 as_fn_set_status $ac_retval
2152
2153} # ac_fn_c_try_run
2154
2155# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2156# -------------------------------------------------------
2157# Tests whether HEADER exists and can be compiled using the include files in
2158# INCLUDES, setting the cache variable VAR accordingly.
2159ac_fn_c_check_header_compile ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163$as_echo_n "checking for $2... " >&6; }
0afb4571 2164if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2165 $as_echo_n "(cached) " >&6
2166else
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h. */
2169$4
2170#include <$2>
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173 eval "$3=yes"
2174else
2175 eval "$3=no"
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178fi
2179eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
7834125e 2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2183
2184} # ac_fn_c_check_header_compile
2185
1fd182f0
PE
2186# ac_fn_c_try_link LINENO
2187# -----------------------
2188# Try to link conftest.$ac_ext, and return whether this succeeded.
2189ac_fn_c_try_link ()
2190{
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext conftest$ac_exeext
2193 if { { ac_try="$ac_link"
2194case "(($ac_try" in
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2197esac
2198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199$as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_link") 2>conftest.err
2201 ac_status=$?
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2206 fi
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest$ac_exeext && {
2212 test "$cross_compiling" = yes ||
2213 $as_test_x conftest$ac_exeext
2214 }; then :
2215 ac_retval=0
2216else
2217 $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_retval=1
2221fi
2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224 # interfere with the next link command; also delete a directory that is
2225 # left behind by Apple's compiler. We do this before executing the actions.
2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
7834125e 2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1fd182f0
PE
2228 as_fn_set_status $ac_retval
2229
2230} # ac_fn_c_try_link
2231
0afb4571
J
2232# ac_fn_c_check_decl LINENO SYMBOL VAR
2233# ------------------------------------
2234# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
067d23c9
KY
2235ac_fn_c_check_decl ()
2236{
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
0afb4571
J
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2239$as_echo_n "checking whether $2 is declared... " >&6; }
2240if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2241 $as_echo_n "(cached) " >&6
2242else
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h. */
2245$4
2246int
2247main ()
2248{
0afb4571
J
2249#ifndef $2
2250 (void) $2;
067d23c9
KY
2251#endif
2252
2253 ;
2254 return 0;
2255}
2256_ACEOF
2257if ac_fn_c_try_compile "$LINENO"; then :
2258 eval "$3=yes"
2259else
2260 eval "$3=no"
2261fi
2262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263fi
2264eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266$as_echo "$ac_res" >&6; }
7834125e 2267 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2268
2269} # ac_fn_c_check_decl
2270
2271# ac_fn_c_check_header_preproc LINENO HEADER VAR
2272# ----------------------------------------------
2273# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2274ac_fn_c_check_header_preproc ()
2275{
2276 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278$as_echo_n "checking for $2... " >&6; }
0afb4571 2279if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2280 $as_echo_n "(cached) " >&6
2281else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h. */
2284#include <$2>
2285_ACEOF
2286if ac_fn_c_try_cpp "$LINENO"; then :
2287 eval "$3=yes"
2288else
2289 eval "$3=no"
2290fi
0afb4571 2291rm -f conftest.err conftest.$ac_ext
067d23c9
KY
2292fi
2293eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295$as_echo "$ac_res" >&6; }
7834125e 2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2297
2298} # ac_fn_c_check_header_preproc
2299
2300# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2301# ----------------------------------------------------
2302# Tries to find if the field MEMBER exists in type AGGR, after including
2303# INCLUDES, setting cache variable VAR accordingly.
2304ac_fn_c_check_member ()
2305{
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2308$as_echo_n "checking for $2.$3... " >&6; }
0afb4571 2309if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2310 $as_echo_n "(cached) " >&6
2311else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313/* end confdefs.h. */
2314$5
2315int
2316main ()
2317{
2318static $2 ac_aggr;
2319if (ac_aggr.$3)
2320return 0;
2321 ;
2322 return 0;
2323}
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326 eval "$4=yes"
2327else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h. */
2330$5
2331int
2332main ()
2333{
2334static $2 ac_aggr;
2335if (sizeof ac_aggr.$3)
2336return 0;
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$4=yes"
2343else
2344 eval "$4=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349fi
2350eval ac_res=\$$4
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352$as_echo "$ac_res" >&6; }
7834125e 2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2354
2355} # ac_fn_c_check_member
2356
2357# ac_fn_c_check_func LINENO FUNC VAR
2358# ----------------------------------
2359# Tests whether FUNC exists, setting the cache variable VAR accordingly
2360ac_fn_c_check_func ()
2361{
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2364$as_echo_n "checking for $2... " >&6; }
0afb4571 2365if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2366 $as_echo_n "(cached) " >&6
2367else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369/* end confdefs.h. */
2370/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2372#define $2 innocuous_$2
2373
2374/* System header to define __stub macros and hopefully few prototypes,
2375 which can conflict with char $2 (); below.
2376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2377 <limits.h> exists even on freestanding compilers. */
2378
2379#ifdef __STDC__
2380# include <limits.h>
2381#else
2382# include <assert.h>
2383#endif
2384
2385#undef $2
2386
2387/* Override any GCC internal prototype to avoid an error.
2388 Use char because int might match the return type of a GCC
2389 builtin and then its argument prototype would still apply. */
2390#ifdef __cplusplus
2391extern "C"
2392#endif
2393char $2 ();
2394/* The GNU C library defines this for functions which it implements
2395 to always fail with ENOSYS. Some functions are actually named
2396 something starting with __ and the normal name is an alias. */
2397#if defined __stub_$2 || defined __stub___$2
2398choke me
2399#endif
2400
2401int
2402main ()
2403{
2404return $2 ();
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_link "$LINENO"; then :
2410 eval "$3=yes"
2411else
2412 eval "$3=no"
2413fi
2414rm -f core conftest.err conftest.$ac_objext \
2415 conftest$ac_exeext conftest.$ac_ext
2416fi
2417eval ac_res=\$$3
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419$as_echo "$ac_res" >&6; }
7834125e 2420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2421
2422} # ac_fn_c_check_func
2423
2424# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2425# -------------------------------------------
2426# Tests whether TYPE exists after having included INCLUDES, setting cache
2427# variable VAR accordingly.
2428ac_fn_c_check_type ()
2429{
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2432$as_echo_n "checking for $2... " >&6; }
0afb4571 2433if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
2434 $as_echo_n "(cached) " >&6
2435else
2436 eval "$3=no"
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438/* end confdefs.h. */
2439$4
2440int
2441main ()
2442{
2443if (sizeof ($2))
2444 return 0;
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449if ac_fn_c_try_compile "$LINENO"; then :
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h. */
2452$4
2453int
2454main ()
2455{
2456if (sizeof (($2)))
2457 return 0;
2458 ;
2459 return 0;
2460}
2461_ACEOF
2462if ac_fn_c_try_compile "$LINENO"; then :
2463
2464else
2465 eval "$3=yes"
2466fi
2467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468fi
2469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470fi
2471eval ac_res=\$$3
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473$as_echo "$ac_res" >&6; }
7834125e 2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
067d23c9
KY
2475
2476} # ac_fn_c_check_type
5f90be1b
PE
2477
2478# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2479# --------------------------------------------
2480# Tries to find the compile-time value of EXPR in a program that includes
2481# INCLUDES, setting VAR accordingly. Returns whether the value could be
2482# computed
2483ac_fn_c_compute_int ()
2484{
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if test "$cross_compiling" = yes; then
2487 # Depending upon the size, compute the lo and hi bounds.
2488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489/* end confdefs.h. */
2490$4
2491int
2492main ()
2493{
2494static int test_array [1 - 2 * !(($2) >= 0)];
2495test_array [0] = 0
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501if ac_fn_c_try_compile "$LINENO"; then :
2502 ac_lo=0 ac_mid=0
2503 while :; do
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h. */
2506$4
2507int
2508main ()
2509{
2510static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2511test_array [0] = 0
2512
2513 ;
2514 return 0;
2515}
2516_ACEOF
2517if ac_fn_c_try_compile "$LINENO"; then :
2518 ac_hi=$ac_mid; break
2519else
2520 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2521 if test $ac_lo -le $ac_mid; then
2522 ac_lo= ac_hi=
2523 break
2524 fi
2525 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2526fi
2527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 done
2529else
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531/* end confdefs.h. */
2532$4
2533int
2534main ()
2535{
2536static int test_array [1 - 2 * !(($2) < 0)];
2537test_array [0] = 0
2538
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543if ac_fn_c_try_compile "$LINENO"; then :
2544 ac_hi=-1 ac_mid=-1
2545 while :; do
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547/* end confdefs.h. */
2548$4
2549int
2550main ()
2551{
2552static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2553test_array [0] = 0
2554
2555 ;
2556 return 0;
2557}
2558_ACEOF
2559if ac_fn_c_try_compile "$LINENO"; then :
2560 ac_lo=$ac_mid; break
2561else
2562 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2563 if test $ac_mid -le $ac_hi; then
2564 ac_lo= ac_hi=
2565 break
2566 fi
2567 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2568fi
2569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 done
2571else
2572 ac_lo= ac_hi=
2573fi
2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575fi
2576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577# Binary search between lo and hi bounds.
2578while test "x$ac_lo" != "x$ac_hi"; do
2579 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581/* end confdefs.h. */
2582$4
2583int
2584main ()
2585{
2586static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2587test_array [0] = 0
2588
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593if ac_fn_c_try_compile "$LINENO"; then :
2594 ac_hi=$ac_mid
2595else
2596 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2597fi
2598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599done
2600case $ac_lo in #((
2601?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2602'') ac_retval=1 ;;
2603esac
2604 else
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606/* end confdefs.h. */
2607$4
2608static long int longval () { return $2; }
2609static unsigned long int ulongval () { return $2; }
2610#include <stdio.h>
2611#include <stdlib.h>
2612int
2613main ()
2614{
2615
2616 FILE *f = fopen ("conftest.val", "w");
2617 if (! f)
2618 return 1;
2619 if (($2) < 0)
2620 {
2621 long int i = longval ();
2622 if (i != ($2))
2623 return 1;
2624 fprintf (f, "%ld", i);
2625 }
2626 else
2627 {
2628 unsigned long int i = ulongval ();
2629 if (i != ($2))
2630 return 1;
2631 fprintf (f, "%lu", i);
2632 }
2633 /* Do not output a trailing newline, as this causes \r\n confusion
2634 on some platforms. */
2635 return ferror (f) || fclose (f) != 0;
2636
2637 ;
2638 return 0;
2639}
2640_ACEOF
2641if ac_fn_c_try_run "$LINENO"; then :
2642 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2643else
2644 ac_retval=1
2645fi
2646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2647 conftest.$ac_objext conftest.beam conftest.$ac_ext
2648rm -f conftest.val
2649
2650 fi
7834125e 2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5f90be1b
PE
2652 as_fn_set_status $ac_retval
2653
2654} # ac_fn_c_compute_int
067d23c9
KY
2655cat >config.log <<_ACEOF
2656This file contains any messages produced by compilers while
2657running configure, to aid debugging if configure makes a mistake.
2658
2659It was created by emacs $as_me 24.0.50, which was
0afb4571 2660generated by GNU Autoconf 2.65. Invocation command line was
067d23c9
KY
2661
2662 $ $0 $@
2663
2664_ACEOF
2665exec 5>>config.log
2666{
2667cat <<_ASUNAME
2668## --------- ##
2669## Platform. ##
2670## --------- ##
2671
2672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2680
2681/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2688
2689_ASUNAME
2690
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2697 done
2698IFS=$as_save_IFS
2699
2700} >&5
2701
2702cat >&5 <<_ACEOF
2703
2704
2705## ----------- ##
2706## Core tests. ##
2707## ----------- ##
2708
2709_ACEOF
2710
2711
2712# Keep a trace of the command line.
2713# Strip out --no-create and --no-recursion so they do not pile up.
2714# Strip out --silent because we don't want to record it for future runs.
2715# Also quote any args containing shell meta-characters.
2716# Make two passes to allow for proper duplicate-argument suppression.
2717ac_configure_args=
2718ac_configure_args0=
2719ac_configure_args1=
2720ac_must_keep_next=false
2721for ac_pass in 1 2
2722do
2723 for ac_arg
2724 do
2725 case $ac_arg in
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2729 continue ;;
2730 *\'*)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 esac
2733 case $ac_pass in
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 2)
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2739 else
2740 case $ac_arg in
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 esac
2748 ;;
2749 -* ) ac_must_keep_next=true ;;
2750 esac
2751 fi
2752 as_fn_append ac_configure_args " '$ac_arg'"
2753 ;;
2754 esac
2755 done
2756done
2757{ ac_configure_args0=; unset ac_configure_args0;}
2758{ ac_configure_args1=; unset ac_configure_args1;}
2759
2760# When interrupted or exit'd, cleanup temporary files, and complete
2761# config.log. We remove comments because anyway the quotes in there
2762# would cause problems or look ugly.
2763# WARNING: Use '\'' to represent an apostrophe within the trap.
2764# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2767 {
2768 echo
2769
0afb4571
J
2770 cat <<\_ASBOX
2771## ---------------- ##
067d23c9 2772## Cache variables. ##
0afb4571
J
2773## ---------------- ##
2774_ASBOX
067d23c9
KY
2775 echo
2776 # The following way of writing the cache mishandles newlines in values,
2777(
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2780 case $ac_val in #(
2781 *${as_nl}*)
2782 case $ac_var in #(
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 esac
2786 case $ac_var in #(
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2790 esac ;;
2791 esac
2792 done
2793 (set) 2>&1 |
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2796 sed -n \
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 ;; #(
2800 *)
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802 ;;
2803 esac |
2804 sort
2805)
2806 echo
2807
0afb4571
J
2808 cat <<\_ASBOX
2809## ----------------- ##
067d23c9 2810## Output variables. ##
0afb4571
J
2811## ----------------- ##
2812_ASBOX
067d23c9
KY
2813 echo
2814 for ac_var in $ac_subst_vars
2815 do
2816 eval ac_val=\$$ac_var
2817 case $ac_val in
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 esac
2820 $as_echo "$ac_var='\''$ac_val'\''"
2821 done | sort
2822 echo
2823
2824 if test -n "$ac_subst_files"; then
0afb4571
J
2825 cat <<\_ASBOX
2826## ------------------- ##
067d23c9 2827## File substitutions. ##
0afb4571
J
2828## ------------------- ##
2829_ASBOX
067d23c9
KY
2830 echo
2831 for ac_var in $ac_subst_files
2832 do
2833 eval ac_val=\$$ac_var
2834 case $ac_val in
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 esac
2837 $as_echo "$ac_var='\''$ac_val'\''"
2838 done | sort
2839 echo
2840 fi
2841
2842 if test -s confdefs.h; then
0afb4571
J
2843 cat <<\_ASBOX
2844## ----------- ##
067d23c9 2845## confdefs.h. ##
0afb4571
J
2846## ----------- ##
2847_ASBOX
067d23c9
KY
2848 echo
2849 cat confdefs.h
2850 echo
2851 fi
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2855 } >&5
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 exit $exit_status
2859' 0
2860for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862done
2863ac_signal=0
2864
2865# confdefs.h avoids OS command line length limits that DEFS can exceed.
2866rm -f -r conftest* confdefs.h
2867
2868$as_echo "/* confdefs.h */" > confdefs.h
2869
2870# Predefined preprocessor variables.
2871
2872cat >>confdefs.h <<_ACEOF
2873#define PACKAGE_NAME "$PACKAGE_NAME"
2874_ACEOF
2875
2876cat >>confdefs.h <<_ACEOF
2877#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878_ACEOF
2879
2880cat >>confdefs.h <<_ACEOF
2881#define PACKAGE_VERSION "$PACKAGE_VERSION"
2882_ACEOF
2883
2884cat >>confdefs.h <<_ACEOF
2885#define PACKAGE_STRING "$PACKAGE_STRING"
2886_ACEOF
2887
2888cat >>confdefs.h <<_ACEOF
2889#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890_ACEOF
2891
2892cat >>confdefs.h <<_ACEOF
2893#define PACKAGE_URL "$PACKAGE_URL"
2894_ACEOF
2895
2896
2897# Let the site file select an alternate cache file if it wants to.
2898# Prefer an explicitly selected file to automatically selected ones.
2899ac_site_file1=NONE
2900ac_site_file2=NONE
2901if test -n "$CONFIG_SITE"; then
0afb4571 2902 ac_site_file1=$CONFIG_SITE
067d23c9
KY
2903elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2906else
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2909fi
2910for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911do
2912 test "x$ac_site_file" = xNONE && continue
2913 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
0afb4571 2917 . "$ac_site_file"
067d23c9
KY
2918 fi
2919done
2920
2921if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special files
2923 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2924 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926$as_echo "$as_me: loading cache $cache_file" >&6;}
2927 case $cache_file in
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2930 esac
2931 fi
2932else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934$as_echo "$as_me: creating cache $cache_file" >&6;}
2935 >$cache_file
2936fi
2937
2938as_fn_append ac_header_list " stdlib.h"
2939as_fn_append ac_header_list " unistd.h"
2940as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2941gl_getopt_required=GNU
2942as_fn_append ac_header_list " getopt.h"
ae0d7250 2943as_fn_append ac_func_list " lstat"
067d23c9 2944as_fn_append ac_func_list " alarm"
ae0d7250 2945as_fn_append ac_func_list " readlink"
5f90be1b
PE
2946as_fn_append ac_header_list " wchar.h"
2947as_fn_append ac_header_list " stdint.h"
16c3e636 2948as_fn_append ac_func_list " tzset"
ae0d7250 2949as_fn_append ac_func_list " symlink"
5fa4ac76 2950as_fn_append ac_header_list " sys/stat.h"
1fd182f0
PE
2951as_fn_append ac_header_list " sys/time.h"
2952as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2953# Check that the precious variables saved in the cache have kept the same
2954# value.
2955ac_cache_corrupted=false
2956for ac_var in $ac_precious_vars; do
2957 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2958 eval ac_new_set=\$ac_env_${ac_var}_set
2959 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2960 eval ac_new_val=\$ac_env_${ac_var}_value
2961 case $ac_old_set,$ac_new_set in
2962 set,)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2964$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2965 ac_cache_corrupted=: ;;
2966 ,set)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2968$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2969 ac_cache_corrupted=: ;;
2970 ,);;
2971 *)
2972 if test "x$ac_old_val" != "x$ac_new_val"; then
2973 # differences in whitespace do not lead to failure.
2974 ac_old_val_w=`echo x $ac_old_val`
2975 ac_new_val_w=`echo x $ac_new_val`
2976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2978$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2979 ac_cache_corrupted=:
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2982$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2983 eval $ac_var=\$ac_old_val
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2986$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2988$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2989 fi;;
2990 esac
2991 # Pass precious variables to config.status.
2992 if test "$ac_new_set" = set; then
2993 case $ac_new_val in
2994 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2995 *) ac_arg=$ac_var=$ac_new_val ;;
2996 esac
2997 case " $ac_configure_args " in
2998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2999 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3000 esac
3001 fi
3002done
3003if $ac_cache_corrupted; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3007$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
0afb4571 3008 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
3009fi
3010## -------------------- ##
3011## Main body of script. ##
3012## -------------------- ##
3013
3014ac_ext=c
3015ac_cpp='$CPP $CPPFLAGS'
3016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019
3020
3021ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3022
3023
743c80a7 3024am__api_version='1.11'
067d23c9 3025
743c80a7
PE
3026ac_aux_dir=
3027for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
0afb4571
J
3028 for ac_t in install-sh install.sh shtool; do
3029 if test -f "$ac_dir/$ac_t"; then
3030 ac_aux_dir=$ac_dir
3031 ac_install_sh="$ac_aux_dir/$ac_t -c"
3032 break 2
3033 fi
3034 done
743c80a7
PE
3035done
3036if test -z "$ac_aux_dir"; then
0afb4571 3037 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
743c80a7 3038fi
067d23c9 3039
743c80a7
PE
3040# These three variables are undocumented and unsupported,
3041# and are intended to be withdrawn in a future Autoconf release.
3042# They can cause serious problems if a builder's source tree is in a directory
3043# whose full name contains unusual characters.
3044ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3045ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3046ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 3047
067d23c9 3048
743c80a7
PE
3049# Find a good install program. We prefer a C program (faster),
3050# so one script is as good as another. But avoid the broken or
3051# incompatible versions:
3052# SysV /etc/install, /usr/sbin/install
3053# SunOS /usr/etc/install
3054# IRIX /sbin/install
3055# AIX /bin/install
3056# AmigaOS /C/install, which installs bootblocks on floppy discs
3057# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3058# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3059# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3060# OS/2's system install, which has a completely different semantic
3061# ./install, which can be erroneously created by make from ./install.sh.
3062# Reject install programs that cannot install multiple files.
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3064$as_echo_n "checking for a BSD-compatible install... " >&6; }
3065if test -z "$INSTALL"; then
7834125e 3066if test "${ac_cv_path_install+set}" = set; then :
743c80a7
PE
3067 $as_echo_n "(cached) " >&6
3068else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 # Account for people who put trailing slashes in PATH elements.
3075case $as_dir/ in #((
3076 ./ | .// | /[cC]/* | \
3077 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3078 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3079 /usr/ucb/* ) ;;
3080 *)
3081 # OSF1 and SCO ODT 3.0 have their own names for install.
3082 # Don't use installbsd from OSF since it installs stuff as root
3083 # by default.
3084 for ac_prog in ginstall scoinst install; do
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3087 if test $ac_prog = install &&
3088 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089 # AIX install. It has an incompatible calling convention.
3090 :
3091 elif test $ac_prog = install &&
3092 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093 # program-specific install script used by HP pwplus--don't use.
3094 :
3095 else
3096 rm -rf conftest.one conftest.two conftest.dir
3097 echo one > conftest.one
3098 echo two > conftest.two
3099 mkdir conftest.dir
3100 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3101 test -s conftest.one && test -s conftest.two &&
3102 test -s conftest.dir/conftest.one &&
3103 test -s conftest.dir/conftest.two
3104 then
3105 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106 break 3
3107 fi
3108 fi
3109 fi
3110 done
3111 done
3112 ;;
3113esac
067d23c9 3114
743c80a7
PE
3115 done
3116IFS=$as_save_IFS
067d23c9 3117
743c80a7 3118rm -rf conftest.one conftest.two conftest.dir
067d23c9 3119
067d23c9 3120fi
743c80a7
PE
3121 if test "${ac_cv_path_install+set}" = set; then
3122 INSTALL=$ac_cv_path_install
3123 else
3124 # As a last resort, use the slow shell script. Don't cache a
3125 # value for INSTALL within a source directory, because that will
3126 # break other packages using the cache if that directory is
3127 # removed, or if the value is a relative name.
3128 INSTALL=$ac_install_sh
3129 fi
067d23c9 3130fi
743c80a7
PE
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3132$as_echo "$INSTALL" >&6; }
067d23c9 3133
743c80a7
PE
3134# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3135# It thinks the first close brace ends the variable substitution.
3136test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 3137
743c80a7 3138test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 3139
743c80a7 3140test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 3141
743c80a7
PE
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3143$as_echo_n "checking whether build environment is sane... " >&6; }
3144# Just in case
3145sleep 1
3146echo timestamp > conftest.file
3147# Reject unsafe characters in $srcdir or the absolute working directory
3148# name. Accept space and tab only in the latter.
3149am_lf='
3150'
3151case `pwd` in
3152 *[\\\"\#\$\&\'\`$am_lf]*)
0afb4571 3153 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
3154esac
3155case $srcdir in
3156 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
0afb4571 3157 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 3158esac
067d23c9 3159
743c80a7
PE
3160# Do `set' in a subshell so we don't clobber the current shell's
3161# arguments. Must try -L first in case configure is actually a
3162# symlink; some systems play weird games with the mod time of symlinks
3163# (eg FreeBSD returns the mod time of the symlink's containing
3164# directory).
3165if (
3166 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3167 if test "$*" = "X"; then
3168 # -L didn't work.
3169 set X `ls -t "$srcdir/configure" conftest.file`
3170 fi
3171 rm -f conftest.file
3172 if test "$*" != "X $srcdir/configure conftest.file" \
3173 && test "$*" != "X conftest.file $srcdir/configure"; then
3174
3175 # If neither matched, then we have a broken ls. This can happen
3176 # if, for instance, CONFIG_SHELL is bash and it inherits a
3177 # broken ls alias from the environment. This has actually
3178 # happened. Such a system could not be considered "sane".
0afb4571 3179 as_fn_error "ls -t appears to fail. Make sure there is not a broken
743c80a7
PE
3180alias in your environment" "$LINENO" 5
3181 fi
067d23c9 3182
743c80a7
PE
3183 test "$2" = conftest.file
3184 )
3185then
3186 # Ok.
3187 :
067d23c9 3188else
0afb4571 3189 as_fn_error "newly created file is older than distributed files!
743c80a7 3190Check your system clock" "$LINENO" 5
067d23c9 3191fi
743c80a7
PE
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3193$as_echo "yes" >&6; }
3194test "$program_prefix" != NONE &&
3195 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3196# Use a double $ so make ignores it.
3197test "$program_suffix" != NONE &&
3198 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3199# Double any \ or $.
3200# By default was `s,x,x', remove it if useless.
3201ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3202program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 3203
743c80a7
PE
3204# expand $ac_aux_dir to an absolute path
3205am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 3206
743c80a7
PE
3207if test x"${MISSING+set}" != xset; then
3208 case $am_aux_dir in
3209 *\ * | *\ *)
3210 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3211 *)
3212 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3213 esac
067d23c9 3214fi
743c80a7
PE
3215# Use eval to expand $SHELL
3216if eval "$MISSING --run true"; then
3217 am_missing_run="$MISSING --run "
067d23c9 3218else
743c80a7
PE
3219 am_missing_run=
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3221$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
3222fi
3223
743c80a7
PE
3224if test x"${install_sh}" != xset; then
3225 case $am_aux_dir in
3226 *\ * | *\ *)
3227 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3228 *)
3229 install_sh="\${SHELL} $am_aux_dir/install-sh"
3230 esac
067d23c9
KY
3231fi
3232
743c80a7
PE
3233# Installed binaries are usually stripped using `strip' when the user
3234# run `make install-strip'. However `strip' might not be the right
3235# tool to use in cross-compilation environments, therefore Automake
3236# will honor the `STRIP' environment variable to overrule this program.
3237if test "$cross_compiling" != no; then
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3240set dummy ${ac_tool_prefix}strip; ac_word=$2
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242$as_echo_n "checking for $ac_word... " >&6; }
7834125e 3243if test "${ac_cv_prog_STRIP+set}" = set; then :
743c80a7 3244 $as_echo_n "(cached) " >&6
067d23c9 3245else
743c80a7
PE
3246 if test -n "$STRIP"; then
3247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260done
3261 done
3262IFS=$as_save_IFS
067d23c9
KY
3263
3264fi
067d23c9 3265fi
743c80a7
PE
3266STRIP=$ac_cv_prog_STRIP
3267if test -n "$STRIP"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3269$as_echo "$STRIP" >&6; }
3270else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
067d23c9
KY
3273fi
3274
3275
067d23c9 3276fi
743c80a7
PE
3277if test -z "$ac_cv_prog_STRIP"; then
3278 ac_ct_STRIP=$STRIP
3279 # Extract the first word of "strip", so it can be a program name with args.
3280set dummy strip; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
7834125e 3283if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
743c80a7
PE
3284 $as_echo_n "(cached) " >&6
3285else
3286 if test -n "$ac_ct_STRIP"; then
3287 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_ac_ct_STRIP="strip"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300done
3301 done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3307if test -n "$ac_ct_STRIP"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3309$as_echo "$ac_ct_STRIP" >&6; }
3310else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315 if test "x$ac_ct_STRIP" = x; then
3316 STRIP=":"
3317 else
3318 case $cross_compiling:$ac_tool_warned in
3319yes:)
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3322ac_tool_warned=yes ;;
3323esac
3324 STRIP=$ac_ct_STRIP
3325 fi
3326else
3327 STRIP="$ac_cv_prog_STRIP"
3328fi
3329
3330fi
3331INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3332
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3334$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3335if test -z "$MKDIR_P"; then
7834125e 3336 if test "${ac_cv_path_mkdir+set}" = set; then :
743c80a7
PE
3337 $as_echo_n "(cached) " >&6
3338else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_prog in mkdir gmkdir; do
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3347 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3348 'mkdir (GNU coreutils) '* | \
3349 'mkdir (coreutils) '* | \
3350 'mkdir (fileutils) '4.1*)
3351 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3352 break 3;;
3353 esac
3354 done
3355 done
3356 done
3357IFS=$as_save_IFS
3358
3359fi
3360
3361 test -d ./--version && rmdir ./--version
3362 if test "${ac_cv_path_mkdir+set}" = set; then
3363 MKDIR_P="$ac_cv_path_mkdir -p"
3364 else
3365 # As a last resort, use the slow shell script. Don't cache a
3366 # value for MKDIR_P within a source directory, because that will
3367 # break other packages using the cache if that directory is
3368 # removed, or if the value is a relative name.
3369 MKDIR_P="$ac_install_sh -d"
3370 fi
3371fi
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3373$as_echo "$MKDIR_P" >&6; }
3374
a451f14b 3375
743c80a7
PE
3376mkdir_p="$MKDIR_P"
3377case $mkdir_p in
3378 [\\/$]* | ?:[\\/]*) ;;
3379 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3380esac
3381
3382for ac_prog in gawk mawk nawk awk
3383do
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385set dummy $ac_prog; ac_word=$2
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387$as_echo_n "checking for $ac_word... " >&6; }
7834125e 3388if test "${ac_cv_prog_AWK+set}" = set; then :
743c80a7
PE
3389 $as_echo_n "(cached) " >&6
3390else
3391 if test -n "$AWK"; then
3392 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3393else
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_AWK="$ac_prog"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405done
3406 done
3407IFS=$as_save_IFS
3408
3409fi
3410fi
3411AWK=$ac_cv_prog_AWK
3412if test -n "$AWK"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3414$as_echo "$AWK" >&6; }
3415else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418fi
3419
3420
3421 test -n "$AWK" && break
3422done
3423
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3425$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3426set x ${MAKE-make}
3427ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
0afb4571 3428if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
743c80a7
PE
3429 $as_echo_n "(cached) " >&6
3430else
3431 cat >conftest.make <<\_ACEOF
3432SHELL = /bin/sh
3433all:
3434 @echo '@@@%%%=$(MAKE)=@@@%%%'
3435_ACEOF
0afb4571 3436# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
743c80a7
PE
3437case `${MAKE-make} -f conftest.make 2>/dev/null` in
3438 *@@@%%%=?*=@@@%%%*)
3439 eval ac_cv_prog_make_${ac_make}_set=yes;;
3440 *)
3441 eval ac_cv_prog_make_${ac_make}_set=no;;
3442esac
3443rm -f conftest.make
3444fi
3445if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3447$as_echo "yes" >&6; }
3448 SET_MAKE=
3449else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451$as_echo "no" >&6; }
3452 SET_MAKE="MAKE=${MAKE-make}"
3453fi
3454
3455rm -rf .tst 2>/dev/null
3456mkdir .tst 2>/dev/null
3457if test -d .tst; then
3458 am__leading_dot=.
3459else
3460 am__leading_dot=_
3461fi
3462rmdir .tst 2>/dev/null
3463
3464if test "`cd $srcdir && pwd`" != "`pwd`"; then
3465 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3466 # is not polluted with repeated "-I."
3467 am__isrc=' -I$(srcdir)'
3468 # test to see if srcdir already configured
3469 if test -f $srcdir/config.status; then
0afb4571 3470 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
743c80a7
PE
3471 fi
3472fi
3473
3474# test whether we have cygpath
3475if test -z "$CYGPATH_W"; then
3476 if (cygpath --version) >/dev/null 2>/dev/null; then
3477 CYGPATH_W='cygpath -w'
3478 else
3479 CYGPATH_W=echo
3480 fi
3481fi
3482
3483
3484# Define the identity of the package.
3485 PACKAGE='emacs'
3486 VERSION='24.0.50'
3487
3488
3489cat >>confdefs.h <<_ACEOF
3490#define PACKAGE "$PACKAGE"
3491_ACEOF
3492
3493
3494cat >>confdefs.h <<_ACEOF
3495#define VERSION "$VERSION"
3496_ACEOF
3497
3498# Some tools Automake needs.
3499
3500ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3501
3502
3503AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3504
3505
3506AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3507
3508
3509AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3510
3511
3512MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3513
3514# We need awk for the "check" target. The system "awk" is bad on
3515# some platforms.
3516# Always define AMTAR for backward compatibility.
3517
3518AMTAR=${AMTAR-"${am_missing_run}tar"}
3519
3520am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3521
3522
3523
3524
3525
3526
3527
3528
3529lispdir='${datadir}/emacs/${version}/lisp'
3530locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3531'${datadir}/emacs/site-lisp'
3532lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3533etcdir='${datadir}/emacs/${version}/etc'
3534archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3535docdir='${datadir}/emacs/${version}/etc'
3536gamedir='${localstatedir}/games/emacs'
3537
3538
3539
3540
3541# Check whether --with-pop was given.
3542if test "${with_pop+set}" = set; then :
3543 withval=$with_pop;
3544else
3545 with_pop=yes
3546fi
3547
3548if test "$with_pop" = yes; then
3549 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3550
3551fi
3552
3553
3554# Check whether --with-kerberos was given.
3555if test "${with_kerberos+set}" = set; then :
3556 withval=$with_kerberos;
3557else
3558 with_kerberos=no
3559fi
3560
3561if test "$with_kerberos" != no; then
3562 $as_echo "#define KERBEROS 1" >>confdefs.h
3563
3564fi
3565
3566
3567# Check whether --with-kerberos5 was given.
3568if test "${with_kerberos5+set}" = set; then :
3569 withval=$with_kerberos5;
3570else
3571 with_kerberos5=no
3572fi
3573
3574if test "${with_kerberos5}" != no; then
3575 if test "${with_kerberos}" = no; then
3576 with_kerberos=yes
3577 $as_echo "#define KERBEROS 1" >>confdefs.h
3578
3579 fi
3580
3581$as_echo "#define KERBEROS5 1" >>confdefs.h
3582
3583fi
3584
3585
3586# Check whether --with-hesiod was given.
3587if test "${with_hesiod+set}" = set; then :
3588 withval=$with_hesiod;
3589else
3590 with_hesiod=no
3591fi
3592
3593if test "$with_hesiod" != no; then
3594
3595$as_echo "#define HESIOD 1" >>confdefs.h
3596
3597fi
3598
3599
3600# Check whether --with-mmdf was given.
3601if test "${with_mmdf+set}" = set; then :
3602 withval=$with_mmdf;
3603else
3604 with_mmdf=no
3605fi
3606
3607if test "$with_mmdf" != no; then
3608
3609$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3610
3611fi
3612
3613
3614# Check whether --with-mail-unlink was given.
3615if test "${with_mail_unlink+set}" = set; then :
3616 withval=$with_mail_unlink;
3617else
3618 with_mail_unlink=no
3619fi
3620
3621if test "$with_mail_unlink" != no; then
3622
3623$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3624
3625fi
3626
3627
3628# Check whether --with-mailhost was given.
3629if test "${with_mailhost+set}" = set; then :
3630 withval=$with_mailhost;
3631cat >>confdefs.h <<_ACEOF
3632#define MAILHOST "$withval"
3633_ACEOF
3634
3635fi
3636
3637
3638
067d23c9
KY
3639# Check whether --with-sound was given.
3640if test "${with_sound+set}" = set; then :
3641 withval=$with_sound;
3642else
3643 with_sound=yes
3644fi
3645
3646
3647
3648# Check whether --with-sync-input was given.
3649if test "${with_sync_input+set}" = set; then :
3650 withval=$with_sync_input;
3651else
3652 with_sync_input=yes
3653fi
3654
3655if test "$with_sync_input" = yes; then
3656
3657$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3658
3659fi
3660
3661
3662# Check whether --with-x-toolkit was given.
3663if test "${with_x_toolkit+set}" = set; then :
3664 withval=$with_x_toolkit; case "${withval}" in
3665 y | ye | yes ) val=gtk ;;
3666 n | no ) val=no ;;
3667 l | lu | luc | luci | lucid ) val=lucid ;;
3668 a | at | ath | athe | athen | athena ) val=athena ;;
3669 m | mo | mot | moti | motif ) val=motif ;;
3670 g | gt | gtk ) val=gtk ;;
3671 gtk3 ) val=gtk3 ;;
3672 * )
0afb4571 3673as_fn_error "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3674this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3675\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3676 ;;
3677 esac
3678 with_x_toolkit=$val
3679
3680fi
3681
3682
3683
3684# Check whether --with-xpm was given.
3685if test "${with_xpm+set}" = set; then :
3686 withval=$with_xpm;
3687else
3688 with_xpm=yes
3689fi
3690
3691
3692# Check whether --with-jpeg was given.
3693if test "${with_jpeg+set}" = set; then :
3694 withval=$with_jpeg;
3695else
3696 with_jpeg=yes
3697fi
3698
3699
3700# Check whether --with-tiff was given.
3701if test "${with_tiff+set}" = set; then :
3702 withval=$with_tiff;
3703else
3704 with_tiff=yes
3705fi
3706
3707
3708# Check whether --with-gif was given.
3709if test "${with_gif+set}" = set; then :
3710 withval=$with_gif;
3711else
3712 with_gif=yes
3713fi
3714
3715
3716# Check whether --with-png was given.
3717if test "${with_png+set}" = set; then :
3718 withval=$with_png;
3719else
3720 with_png=yes
3721fi
3722
3723
3724# Check whether --with-rsvg was given.
3725if test "${with_rsvg+set}" = set; then :
3726 withval=$with_rsvg;
3727else
3728 with_rsvg=yes
3729fi
3730
3731
3732# Check whether --with-xml2 was given.
3733if test "${with_xml2+set}" = set; then :
3734 withval=$with_xml2;
3735else
3736 with_xml2=yes
3737fi
3738
3739
3740# Check whether --with-imagemagick was given.
3741if test "${with_imagemagick+set}" = set; then :
3742 withval=$with_imagemagick;
3743else
3744 with_imagemagick=yes
3745fi
3746
3747
3748
3749# Check whether --with-xft was given.
3750if test "${with_xft+set}" = set; then :
3751 withval=$with_xft;
3752else
3753 with_xft=yes
3754fi
3755
3756
3757# Check whether --with-libotf was given.
3758if test "${with_libotf+set}" = set; then :
3759 withval=$with_libotf;
3760else
3761 with_libotf=yes
3762fi
3763
3764
3765# Check whether --with-m17n-flt was given.
3766if test "${with_m17n_flt+set}" = set; then :
3767 withval=$with_m17n_flt;
3768else
3769 with_m17n_flt=yes
3770fi
3771
3772
3773
3774# Check whether --with-toolkit-scroll-bars was given.
3775if test "${with_toolkit_scroll_bars+set}" = set; then :
3776 withval=$with_toolkit_scroll_bars;
3777else
3778 with_toolkit_scroll_bars=yes
3779fi
3780
3781
3782# Check whether --with-xaw3d was given.
3783if test "${with_xaw3d+set}" = set; then :
3784 withval=$with_xaw3d;
3785else
3786 with_xaw3d=yes
3787fi
3788
3789
3790# Check whether --with-xim was given.
3791if test "${with_xim+set}" = set; then :
3792 withval=$with_xim;
3793else
3794 with_xim=yes
3795fi
3796
3797
3798# Check whether --with-ns was given.
3799if test "${with_ns+set}" = set; then :
3800 withval=$with_ns;
3801else
3802 with_ns=no
3803fi
3804
3805
3806
3807# Check whether --with-gpm was given.
3808if test "${with_gpm+set}" = set; then :
3809 withval=$with_gpm;
3810else
3811 with_gpm=yes
3812fi
3813
3814
3815# Check whether --with-dbus was given.
3816if test "${with_dbus+set}" = set; then :
3817 withval=$with_dbus;
3818else
3819 with_dbus=yes
3820fi
3821
3822
3823# Check whether --with-gconf was given.
3824if test "${with_gconf+set}" = set; then :
3825 withval=$with_gconf;
3826else
3827 with_gconf=yes
3828fi
3829
3830
3831# Check whether --with-selinux was given.
3832if test "${with_selinux+set}" = set; then :
3833 withval=$with_selinux;
3834else
3835 with_selinux=yes
3836fi
3837
3838
3839# Check whether --with-gnutls was given.
3840if test "${with_gnutls+set}" = set; then :
3841 withval=$with_gnutls;
3842else
3843 with_gnutls=yes
3844fi
3845
3846
3847## For the times when you want to build Emacs but don't have
3848## a suitable makeinfo, and can live without the manuals.
3849
3850# Check whether --with-makeinfo was given.
3851if test "${with_makeinfo+set}" = set; then :
3852 withval=$with_makeinfo;
3853else
3854 with_makeinfo=yes
3855fi
3856
3857
3858## This is an option because I do not know if all info/man support
3859## compressed files, nor how to test if they do so.
3860
3861# Check whether --with-compress-info was given.
3862if test "${with_compress_info+set}" = set; then :
3863 withval=$with_compress_info;
3864else
3865 with_compress_info=yes
3866fi
3867
3868if test $with_compress_info = yes; then
3869 GZIP_INFO=yes
3870else
3871 GZIP_INFO=
3872fi
3873
3874
3875
3876# Check whether --with-pkg-config-prog was given.
3877if test "${with_pkg_config_prog+set}" = set; then :
3878 withval=$with_pkg_config_prog;
3879fi
3880
3881if test "X${with_pkg_config_prog}" != X; then
3882 if test "${with_pkg_config_prog}" != yes; then
3883 PKG_CONFIG="${with_pkg_config_prog}"
3884 fi
3885fi
3886
3887CRT_DIR=
3888
3889# Check whether --with-crt-dir was given.
3890if test "${with_crt_dir+set}" = set; then :
3891 withval=$with_crt_dir;
3892fi
3893
3894CRT_DIR="${with_crt_dir}"
3895
3896
4fc5868a
UM
3897# Check whether --with-gameuser was given.
3898if test "${with_gameuser+set}" = set; then :
3899 withval=$with_gameuser;
3900fi
3901
3902test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3903 && gameuser="${with_gameuser}"
3904test "X$gameuser" = X && gameuser=games
3905
3906
067d23c9
KY
3907# Check whether --with-gnustep-conf was given.
3908if test "${with_gnustep_conf+set}" = set; then :
3909 withval=$with_gnustep_conf;
3910fi
3911
3912test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3913 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3914test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3915 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3916
3917# Check whether --enable-ns-self-contained was given.
3918if test "${enable_ns_self_contained+set}" = set; then :
3919 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3920else
3921 EN_NS_SELF_CONTAINED=yes
3922fi
3923
3924
3925# Check whether --enable-asserts was given.
3926if test "${enable_asserts+set}" = set; then :
3927 enableval=$enable_asserts; USE_XASSERTS=$enableval
3928else
3929 USE_XASSERTS=no
3930fi
3931
3932
3933# Check whether --enable-maintainer-mode was given.
3934if test "${enable_maintainer_mode+set}" = set; then :
3935 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3936else
3937 USE_MAINTAINER_MODE=no
3938fi
3939
3940if test $USE_MAINTAINER_MODE = yes; then
3941 MAINT=
3942else
3943 MAINT=#
3944fi
3945
3946
3947# Check whether --enable-locallisppath was given.
3948if test "${enable_locallisppath+set}" = set; then :
3949 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3950 locallisppath=
3951elif test "${enableval}" != "yes"; then
3952 locallisppath=${enableval}
3953fi
3954fi
3955
3956
3957# Check whether --enable-checking was given.
3958if test "${enable_checking+set}" = set; then :
3959 enableval=$enable_checking; ac_checking_flags="${enableval}"
3960fi
3961
3962IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3963for check in $ac_checking_flags
3964do
3965 case $check in
3966 # these set all the flags to specific states
3967 yes) ac_enable_checking=1 ;;
3968 no) ac_enable_checking= ;
3969 ac_gc_check_stringbytes= ;
3970 ac_gc_check_string_overrun= ;
3971 ac_gc_check_string_free_list= ;
3972 ac_xmalloc_overrun= ;
3973 ac_gc_check_cons_list= ;;
3974 all) ac_enable_checking=1 ;
3975 ac_gc_check_stringbytes=1 ;
3976 ac_gc_check_string_overrun=1 ;
3977 ac_gc_check_string_free_list=1 ;
3978 ac_xmalloc_overrun=1 ;
3979 ac_gc_check_cons_list=1 ;;
3980 # these enable particular checks
3981 stringbytes) ac_gc_check_stringbytes=1 ;;
3982 stringoverrun) ac_gc_check_string_overrun=1 ;;
3983 stringfreelist) ac_gc_check_string_free_list=1 ;;
3984 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3985 conslist) ac_gc_check_cons_list=1 ;;
0afb4571 3986 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
3987 esac
3988done
3989IFS="$ac_save_IFS"
3990
3991if test x$ac_enable_checking != x ; then
3992
3993$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3994
3995fi
3996if test x$ac_gc_check_stringbytes != x ; then
3997
3998$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3999
4000fi
4001if test x$ac_gc_check_stringoverrun != x ; then
4002
4003$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4004
4005fi
4006if test x$ac_gc_check_string_free_list != x ; then
4007
4008$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4009
4010fi
4011if test x$ac_xmalloc_overrun != x ; then
4012
4013$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4014
4015fi
4016if test x$ac_gc_check_cons_list != x ; then
4017
4018$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4019
4020fi
4021
4022# Check whether --enable-use-lisp-union-type was given.
4023if test "${enable_use_lisp_union_type+set}" = set; then :
4024 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4025
4026$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4027
4028fi
4029fi
4030
4031
4032
4033# Check whether --enable-profiling was given.
4034if test "${enable_profiling+set}" = set; then :
4035 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4036fi
4037
4038if test x$ac_enable_profiling != x ; then
4039 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4040else
4041 PROFILING_CFLAGS=
4042fi
4043
4044
4045# Check whether --enable-autodepend was given.
4046if test "${enable_autodepend+set}" = set; then :
4047 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4048else
4049 ac_enable_autodepend=yes
4050fi
4051
4052
4053#### Make srcdir absolute, if it isn't already. It's important to
4054#### avoid running the path through pwd unnecessarily, since pwd can
4055#### give you automounter prefixes, which can go away. We do all this
4056#### so Emacs can find its files when run uninstalled.
4057## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4058unset CDPATH
4059case "${srcdir}" in
4060 /* ) ;;
4061 . )
4062 ## We may be able to use the $PWD environment variable to make this
4063 ## absolute. But sometimes PWD is inaccurate.
4064 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4065 ## but that tested only for a well-formed and valid PWD,
4066 ## it did not object when PWD was well-formed and valid but just wrong.
4067 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4068 then
4069 srcdir="$PWD"
4070 else
4071 srcdir="`(cd ${srcdir}; pwd)`"
4072 fi
4073 ;;
4074 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4075esac
4076
4077#### Check if the source directory already has a configured system in it.
4078if test `pwd` != `(cd ${srcdir} && pwd)` \
4079 && test -f "${srcdir}/src/config.h" ; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4081 as a build directory right now; it has been configured in its own
4082 right. To configure in another directory as well, you MUST
4083 use GNU make. If you do not have GNU make, then you must
4084 now do \`make distclean' in ${srcdir},
4085 and then run $0 again." >&5
4086$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4087 as a build directory right now; it has been configured in its own
4088 right. To configure in another directory as well, you MUST
4089 use GNU make. If you do not have GNU make, then you must
4090 now do \`make distclean' in ${srcdir},
4091 and then run $0 again." >&2;}
4092fi
4093
4094#### Given the configuration name, set machfile and opsysfile to the
4095#### names of the m/*.h and s/*.h files we should use.
4096
4097### Canonicalize the configuration name.
4098
067d23c9
KY
4099# Make sure we can run config.sub.
4100$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
0afb4571 4101 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4104$as_echo_n "checking build system type... " >&6; }
7834125e 4105if test "${ac_cv_build+set}" = set; then :
067d23c9
KY
4106 $as_echo_n "(cached) " >&6
4107else
4108 ac_build_alias=$build_alias
4109test "x$ac_build_alias" = x &&
4110 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4111test "x$ac_build_alias" = x &&
0afb4571 4112 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 4113ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
0afb4571 4114 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
4115
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4118$as_echo "$ac_cv_build" >&6; }
4119case $ac_cv_build in
4120*-*-*) ;;
0afb4571 4121*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
4122esac
4123build=$ac_cv_build
4124ac_save_IFS=$IFS; IFS='-'
4125set x $ac_cv_build
4126shift
4127build_cpu=$1
4128build_vendor=$2
4129shift; shift
4130# Remember, the first character of IFS is used to create $*,
4131# except with old shells:
4132build_os=$*
4133IFS=$ac_save_IFS
4134case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4135
4136
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4138$as_echo_n "checking host system type... " >&6; }
7834125e 4139if test "${ac_cv_host+set}" = set; then :
067d23c9
KY
4140 $as_echo_n "(cached) " >&6
4141else
4142 if test "x$host_alias" = x; then
4143 ac_cv_host=$ac_cv_build
4144else
4145 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
0afb4571 4146 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
4147fi
4148
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4151$as_echo "$ac_cv_host" >&6; }
4152case $ac_cv_host in
4153*-*-*) ;;
0afb4571 4154*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
4155esac
4156host=$ac_cv_host
4157ac_save_IFS=$IFS; IFS='-'
4158set x $ac_cv_host
4159shift
4160host_cpu=$1
4161host_vendor=$2
4162shift; shift
4163# Remember, the first character of IFS is used to create $*,
4164# except with old shells:
4165host_os=$*
4166IFS=$ac_save_IFS
4167case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4168
4169
4170canonical=$host
4171configuration=${host_alias-${build_alias-$host}}
4172
4173
4174
4175### If you add support for a new configuration, add code to this
4176### switch statement to recognize your configuration name and select
4177### the appropriate operating system and machine description files.
4178
4179### You would hope that you could choose an m/*.h file pretty much
4180### based on the machine portion of the configuration name, and an s/*.h
4181### file based on the operating system portion. However, it turns out
4182### that each m/*.h file is pretty manufacturer-specific - for
4183### example mips.h is MIPS
4184### So we basically have to have a special case for each
4185### configuration name.
4186###
4187### As far as handling version numbers on operating systems is
4188### concerned, make sure things will fail in a fixable way. If
4189### /etc/MACHINES doesn't say anything about version numbers, be
4190### prepared to handle anything reasonably. If version numbers
4191### matter, be sure /etc/MACHINES says something about it.
4192
4193machine='' opsys='' unported=no
4194case "${canonical}" in
4195
d6a003a8
AS
4196 ## GNU/Linux ports
4197 *-*-linux-gnu*)
4198 opsys=gnu-linux
4199 case ${canonical} in
4200 alpha*) machine=alpha ;;
4201 s390-*) machine=ibms390 ;;
4202 s390x-*) machine=ibms390x ;;
4203 powerpc*) machine=macppc ;;
4204 sparc*) machine=sparc ;;
4205 ia64*) machine=ia64 ;;
4206 m68k*) machine=m68k ;;
4207 x86_64*) machine=amdx86-64 ;;
4208 esac
4209 ;;
4210
067d23c9
KY
4211 ## FreeBSD ports
4212 *-*-freebsd* )
4213 opsys=freebsd
4214 case "${canonical}" in
4215 alpha*) machine=alpha ;;
4216 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4217 ia64-*) machine=ia64 ;;
4218 i[3456]86-*) machine=intel386 ;;
4219 powerpc-*) machine=macppc ;;
4220 sparc-*) machine=sparc ;;
4221 sparc64-*) machine=sparc ;;
4222 esac
4223 ;;
4224
4225 ## FreeBSD kernel + glibc based userland
4226 *-*-kfreebsd*gnu* )
4227 opsys=gnu-kfreebsd
4228 case "${canonical}" in
4229 alpha*) machine=alpha ;;
4230 amd64-*|x86_64-*) machine=amdx86-64 ;;
4231 ia64-*) machine=ia64 ;;
4232 i[3456]86-*) machine=intel386 ;;
4233 powerpc-*) machine=macppc ;;
4234 sparc-*) machine=sparc ;;
4235 sparc64-*) machine=sparc ;;
4236 esac
4237 ;;
4238
4239 ## NetBSD ports
4240 *-*-netbsd* )
4241 opsys=netbsd
4242 case "${canonical}" in
4243 alpha*) machine=alpha ;;
4244 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4245 i[3456]86-*) machine=intel386 ;;
4246 m68k-*) machine=m68k ;;
4247 powerpc-*) machine=macppc ;;
067d23c9
KY
4248 sparc*-) machine=sparc ;;
4249 vax-*) machine=vax ;;
4250 esac
4251 ;;
4252
4253 ## OpenBSD ports
4254 *-*-openbsd* )
4255 opsys=openbsd
4256 case "${canonical}" in
4257 alpha*) machine=alpha ;;
4258 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4259 i386-*) machine=intel386 ;;
4260 powerpc-*) machine=macppc ;;
4261 sparc*) machine=sparc ;;
4262 vax-*) machine=vax ;;
4263 esac
4264 ;;
4265
067d23c9
KY
4266 ## Apple Darwin / Mac OS X
4267 *-apple-darwin* )
4268 case "${canonical}" in
4269 i[3456]86-* ) machine=intel386 ;;
4270 powerpc-* ) machine=macppc ;;
4271 x86_64-* ) machine=amdx86-64 ;;
4272 * ) unported=yes ;;
4273 esac
4274 opsys=darwin
4275 # Define CPP as follows to make autoconf work correctly.
4276 CPP="${CC-cc} -E -no-cpp-precomp"
4277 # Use fink packages if available.
4278 if test -d /sw/include && test -d /sw/lib; then
4279 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4280 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4281 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4282 fi
4283 ;;
4284
4285 ## HP 9000 series 700 and 800, running HP/UX
4286 hppa*-hp-hpux10.2* )
d6a003a8 4287 opsys=hpux10-20
067d23c9
KY
4288 ;;
4289 hppa*-hp-hpux1[1-9]* )
d6a003a8 4290 opsys=hpux11
067d23c9
KY
4291 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4292 ;;
4293
125c3718
PE
4294 ia64*-hp-hpux1[1-9]* )
4295 machine=hp800 opsys=hpux11
4296 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4297 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4298 CANNOT_DUMP=yes
4299 ;;
4300
4301 hppa*-*-linux-gnu* )
4302 machine=hp800 opsys=gnu-linux
4303 ;;
4304
067d23c9 4305 ## IBM machines
067d23c9
KY
4306 rs6000-ibm-aix4.[23]* )
4307 machine=ibmrs6000 opsys=aix4-2
4308 ;;
4309 powerpc-ibm-aix4.[23]* )
4310 machine=ibmrs6000 opsys=aix4-2
4311 ;;
4312 rs6000-ibm-aix[56]* )
4313 machine=ibmrs6000 opsys=aix4-2
4314 ;;
4315 powerpc-ibm-aix[56]* )
4316 machine=ibmrs6000 opsys=aix4-2
4317 ;;
4318
067d23c9
KY
4319 ## Silicon Graphics machines
4320 ## Iris 4D
4321 mips-sgi-irix6.5 )
4322 machine=iris4d opsys=irix6-5
4323 # Without defining _LANGUAGE_C, things get masked out in the headers
4324 # so that, for instance, grepping for `free' in stdlib.h fails and
4325 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4326 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4327 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4328 ;;
4329
4330 ## Suns
067d23c9
KY
4331 *-sun-solaris* \
4332 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4333 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4334 case "${canonical}" in
4335 i[3456]86-*-* ) machine=intel386 ;;
4336 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4337 sparc* ) machine=sparc ;;
4338 * ) unported=yes ;;
4339 esac
4340 case "${canonical}" in
4341 *-sunos5.6* | *-solaris2.6* )
4342 opsys=sol2-6
4343 NON_GNU_CPP=/usr/ccs/lib/cpp
4344 RANLIB="ar -ts"
4345 ;;
4346 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4347 opsys=sol2-6
4348 emacs_check_sunpro_c=yes
4349 NON_GNU_CPP=/usr/ccs/lib/cpp
4350 ;;
4351 *-sunos5* | *-solaris* )
4352 opsys=sol2-10
4353 emacs_check_sunpro_c=yes
4354 NON_GNU_CPP=/usr/ccs/lib/cpp
4355 ;;
4356 esac
4357 ## Watch out for a compiler that we know will not work.
4358 case "${canonical}" in
4359 *-solaris* | *-sunos5* )
4360 if [ "x$CC" = x/usr/ucb/cc ]; then
4361 ## /usr/ucb/cc doesn't work;
4362 ## we should find some other compiler that does work.
4363 unset CC
4364 fi
4365 ;;
4366 *) ;;
4367 esac
4368 ;;
4369
067d23c9
KY
4370 ## Intel 386 machines where we don't care about the manufacturer.
4371 i[3456]86-*-* )
4372 machine=intel386
4373 case "${canonical}" in
4374 *-cygwin ) opsys=cygwin ;;
4375 *-darwin* ) opsys=darwin
4376 CPP="${CC-cc} -E -no-cpp-precomp"
4377 ;;
067d23c9
KY
4378 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4379 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4380 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4381 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4382 esac
4383 ;;
4384
067d23c9
KY
4385 * )
4386 unported=yes
4387 ;;
4388esac
4389
4390### If the code above didn't choose an operating system, just choose
4391### an operating system based on the configuration name. You really
4392### only want to use this when you have no idea what the right
4393### operating system is; if you know what operating systems a machine
4394### runs, it's cleaner to make it explicit in the case statement
4395### above.
4396if test x"${opsys}" = x; then
4397 case "${canonical}" in
4398 *-gnu* ) opsys=gnu ;;
4399 * )
4400 unported=yes
4401 ;;
4402 esac
4403fi
4404
4405
4406
4407if test $unported = yes; then
0afb4571 4408 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4409Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4410fi
4411
d6a003a8
AS
4412if test -n "$machine"; then
4413 machfile="m/${machine}.h"
4414else
4415 machfile=
4416fi
067d23c9
KY
4417opsysfile="s/${opsys}.h"
4418
4419
4420#### Choose a compiler.
4421test -n "$CC" && cc_specified=yes
4422
4423# Save the value of CFLAGS that the user specified.
4424SPECIFIED_CFLAGS="$CFLAGS"
4425
4426ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4433set dummy ${ac_tool_prefix}gcc; ac_word=$2
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435$as_echo_n "checking for $ac_word... " >&6; }
7834125e 4436if test "${ac_cv_prog_CC+set}" = set; then :
067d23c9
KY
4437 $as_echo_n "(cached) " >&6
4438else
4439 if test -n "$CC"; then
4440 ac_cv_prog_CC="$CC" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4452 fi
4453done
4454 done
4455IFS=$as_save_IFS
4456
4457fi
4458fi
4459CC=$ac_cv_prog_CC
4460if test -n "$CC"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4462$as_echo "$CC" >&6; }
4463else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466fi
4467
4468
4469fi
4470if test -z "$ac_cv_prog_CC"; then
4471 ac_ct_CC=$CC
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473set dummy gcc; ac_word=$2
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475$as_echo_n "checking for $ac_word... " >&6; }
7834125e 4476if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
067d23c9
KY
4477 $as_echo_n "(cached) " >&6
4478else
4479 if test -n "$ac_ct_CC"; then
4480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_ac_ct_CC="gcc"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494 done
4495IFS=$as_save_IFS
4496
4497fi
4498fi
4499ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500if test -n "$ac_ct_CC"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4502$as_echo "$ac_ct_CC" >&6; }
4503else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505$as_echo "no" >&6; }
4506fi
4507
4508 if test "x$ac_ct_CC" = x; then
4509 CC=""
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512yes:)
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515ac_tool_warned=yes ;;
4516esac
4517 CC=$ac_ct_CC
4518 fi
4519else
4520 CC="$ac_cv_prog_CC"
4521fi
4522
4523if test -z "$CC"; then
4524 if test -n "$ac_tool_prefix"; then
4525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4526set dummy ${ac_tool_prefix}cc; ac_word=$2
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528$as_echo_n "checking for $ac_word... " >&6; }
7834125e 4529if test "${ac_cv_prog_CC+set}" = set; then :
067d23c9
KY
4530 $as_echo_n "(cached) " >&6
4531else
4532 if test -n "$CC"; then
4533 ac_cv_prog_CC="$CC" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CC="${ac_tool_prefix}cc"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547 done
4548IFS=$as_save_IFS
4549
4550fi
4551fi
4552CC=$ac_cv_prog_CC
4553if test -n "$CC"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4555$as_echo "$CC" >&6; }
4556else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; }
4559fi
4560
4561
4562 fi
4563fi
4564if test -z "$CC"; then
4565 # Extract the first word of "cc", so it can be a program name with args.
4566set dummy cc; ac_word=$2
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568$as_echo_n "checking for $ac_word... " >&6; }
7834125e 4569if test "${ac_cv_prog_CC+set}" = set; then :
067d23c9
KY
4570 $as_echo_n "(cached) " >&6
4571else
4572 if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4574else
4575 ac_prog_rejected=no
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4584 ac_prog_rejected=yes
4585 continue
4586 fi
4587 ac_cv_prog_CC="cc"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592 done
4593IFS=$as_save_IFS
4594
4595if test $ac_prog_rejected = yes; then
4596 # We found a bogon in the path, so make sure we never use it.
4597 set dummy $ac_cv_prog_CC
4598 shift
4599 if test $# != 0; then
4600 # We chose a different compiler from the bogus one.
4601 # However, it has the same basename, so the bogon will be chosen
4602 # first if we set CC to just the basename; use the full file name.
4603 shift
4604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4605 fi
4606fi
4607fi
4608fi
4609CC=$ac_cv_prog_CC
4610if test -n "$CC"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4612$as_echo "$CC" >&6; }
4613else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615$as_echo "no" >&6; }
4616fi
4617
4618
4619fi
4620if test -z "$CC"; then
4621 if test -n "$ac_tool_prefix"; then
4622 for ac_prog in cl.exe
4623 do
4624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627$as_echo_n "checking for $ac_word... " >&6; }
7834125e 4628if test "${ac_cv_prog_CC+set}" = set; then :
067d23c9
KY
4629 $as_echo_n "(cached) " >&6
4630else
4631 if test -n "$CC"; then
4632 ac_cv_prog_CC="$CC" # Let the user override the test.
4633else
4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635for as_dir in $PATH
4636do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645done
4646 done
4647IFS=$as_save_IFS
4648
4649fi
4650fi
4651CC=$ac_cv_prog_CC
4652if test -n "$CC"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654$as_echo "$CC" >&6; }
4655else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657$as_echo "no" >&6; }
4658fi
4659
4660
4661 test -n "$CC" && break
4662 done
4663fi
4664if test -z "$CC"; then
4665 ac_ct_CC=$CC
4666 for ac_prog in cl.exe
4667do
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669set dummy $ac_prog; ac_word=$2
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671$as_echo_n "checking for $ac_word... " >&6; }
7834125e 4672if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
067d23c9
KY
4673 $as_echo_n "(cached) " >&6
4674else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="$ac_prog"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689done
4690 done
4691IFS=$as_save_IFS
4692
4693fi
4694fi
4695ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698$as_echo "$ac_ct_CC" >&6; }
4699else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702fi
4703
4704
4705 test -n "$ac_ct_CC" && break
4706done
4707
4708 if test "x$ac_ct_CC" = x; then
4709 CC=""
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712yes:)
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715ac_tool_warned=yes ;;
4716esac
4717 CC=$ac_ct_CC
4718 fi
4719fi
4720
4721fi
4722
4723
4724test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571
J
4726as_fn_error "no acceptable C compiler found in \$PATH
4727See \`config.log' for more details." "$LINENO" 5; }
067d23c9
KY
4728
4729# Provide some information about the compiler.
4730$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4731set X $ac_compile
4732ac_compiler=$2
4733for ac_option in --version -v -V -qversion; do
4734 { { ac_try="$ac_compiler $ac_option >&5"
4735case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738esac
4739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4740$as_echo "$ac_try_echo"; } >&5
4741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4742 ac_status=$?
4743 if test -s conftest.err; then
4744 sed '10a\
4745... rest of stderr output deleted ...
4746 10q' conftest.err >conftest.er1
4747 cat conftest.er1 >&5
4748 fi
4749 rm -f conftest.er1 conftest.err
4750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4751 test $ac_status = 0; }
4752done
4753
4754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h. */
4756
4757int
4758main ()
4759{
4760
4761 ;
4762 return 0;
4763}
4764_ACEOF
4765ac_clean_files_save=$ac_clean_files
4766ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4767# Try to create an executable without -o first, disregard a.out.
4768# It will help us diagnose broken compilers, and finding out an intuition
4769# of exeext.
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4771$as_echo_n "checking whether the C compiler works... " >&6; }
4772ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4773
4774# The possible output files:
4775ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4776
4777ac_rmfiles=
4778for ac_file in $ac_files
4779do
4780 case $ac_file in
4781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4782 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4783 esac
4784done
4785rm -f $ac_rmfiles
4786
4787if { { ac_try="$ac_link_default"
4788case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791esac
4792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4793$as_echo "$ac_try_echo"; } >&5
4794 (eval "$ac_link_default") 2>&5
4795 ac_status=$?
4796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4797 test $ac_status = 0; }; then :
4798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4799# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4800# in a Makefile. We should not override ac_cv_exeext if it was cached,
4801# so that the user can short-circuit this test for compilers unknown to
4802# Autoconf.
4803for ac_file in $ac_files ''
4804do
4805 test -f "$ac_file" || continue
4806 case $ac_file in
4807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4808 ;;
4809 [ab].out )
4810 # We found the default executable, but exeext='' is most
4811 # certainly right.
4812 break;;
4813 *.* )
4814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4815 then :; else
4816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4817 fi
4818 # We set ac_cv_exeext here because the later test for it is not
4819 # safe: cross compilers may not add the suffix if given an `-o'
4820 # argument, so we may need to know it at that point already.
4821 # Even if this section looks crufty: it has the advantage of
4822 # actually working.
4823 break;;
4824 * )
4825 break;;
4826 esac
4827done
4828test "$ac_cv_exeext" = no && ac_cv_exeext=
4829
4830else
4831 ac_file=''
4832fi
4833if test -z "$ac_file"; then :
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835$as_echo "no" >&6; }
4836$as_echo "$as_me: failed program was:" >&5
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571
J
4841{ as_fn_set_status 77
4842as_fn_error "C compiler cannot create executables
4843See \`config.log' for more details." "$LINENO" 5; }; }
067d23c9
KY
4844else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4846$as_echo "yes" >&6; }
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4849$as_echo_n "checking for C compiler default output file name... " >&6; }
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4851$as_echo "$ac_file" >&6; }
4852ac_exeext=$ac_cv_exeext
4853
4854rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4855ac_clean_files=$ac_clean_files_save
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4857$as_echo_n "checking for suffix of executables... " >&6; }
4858if { { ac_try="$ac_link"
4859case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862esac
4863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864$as_echo "$ac_try_echo"; } >&5
4865 (eval "$ac_link") 2>&5
4866 ac_status=$?
4867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868 test $ac_status = 0; }; then :
4869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4870# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4871# work properly (i.e., refer to `conftest.exe'), while it won't with
4872# `rm'.
4873for ac_file in conftest.exe conftest conftest.*; do
4874 test -f "$ac_file" || continue
4875 case $ac_file in
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4878 break;;
4879 * ) break;;
4880 esac
4881done
4882else
4883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571
J
4885as_fn_error "cannot compute suffix of executables: cannot compile and link
4886See \`config.log' for more details." "$LINENO" 5; }
067d23c9
KY
4887fi
4888rm -f conftest conftest$ac_cv_exeext
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4890$as_echo "$ac_cv_exeext" >&6; }
4891
4892rm -f conftest.$ac_ext
4893EXEEXT=$ac_cv_exeext
4894ac_exeext=$EXEEXT
4895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h. */
4897#include <stdio.h>
4898int
4899main ()
4900{
4901FILE *f = fopen ("conftest.out", "w");
4902 return ferror (f) || fclose (f) != 0;
4903
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908ac_clean_files="$ac_clean_files conftest.out"
4909# Check that the compiler produces executables we can run. If not, either
4910# the compiler is broken, or we cross compile.
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4912$as_echo_n "checking whether we are cross compiling... " >&6; }
4913if test "$cross_compiling" != yes; then
4914 { { ac_try="$ac_link"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_link") 2>&5
4922 ac_status=$?
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 if { ac_try='./conftest$ac_cv_exeext'
4926 { { case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931$as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_try") 2>&5
4933 ac_status=$?
4934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935 test $ac_status = 0; }; }; then
4936 cross_compiling=no
4937 else
4938 if test "$cross_compiling" = maybe; then
4939 cross_compiling=yes
4940 else
4941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571 4943as_fn_error "cannot run C compiled programs.
067d23c9 4944If you meant to cross compile, use \`--host'.
0afb4571 4945See \`config.log' for more details." "$LINENO" 5; }
067d23c9
KY
4946 fi
4947 fi
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4950$as_echo "$cross_compiling" >&6; }
4951
4952rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4953ac_clean_files=$ac_clean_files_save
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4955$as_echo_n "checking for suffix of object files... " >&6; }
7834125e 4956if test "${ac_cv_objext+set}" = set; then :
067d23c9
KY
4957 $as_echo_n "(cached) " >&6
4958else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h. */
4961
4962int
4963main ()
4964{
4965
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970rm -f conftest.o conftest.obj
4971if { { ac_try="$ac_compile"
4972case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975esac
4976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977$as_echo "$ac_try_echo"; } >&5
4978 (eval "$ac_compile") 2>&5
4979 ac_status=$?
4980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981 test $ac_status = 0; }; then :
4982 for ac_file in conftest.o conftest.obj conftest.*; do
4983 test -f "$ac_file" || continue;
4984 case $ac_file in
4985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4987 break;;
4988 esac
4989done
4990else
4991 $as_echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
4993
4994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571
J
4996as_fn_error "cannot compute suffix of object files: cannot compile
4997See \`config.log' for more details." "$LINENO" 5; }
067d23c9
KY
4998fi
4999rm -f conftest.$ac_cv_objext conftest.$ac_ext
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5002$as_echo "$ac_cv_objext" >&6; }
5003OBJEXT=$ac_cv_objext
5004ac_objext=$OBJEXT
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5006$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7834125e 5007if test "${ac_cv_c_compiler_gnu+set}" = set; then :
067d23c9
KY
5008 $as_echo_n "(cached) " >&6
5009else
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
5012
5013int
5014main ()
5015{
5016#ifndef __GNUC__
5017 choke me
5018#endif
5019
5020 ;
5021 return 0;
5022}
5023_ACEOF
5024if ac_fn_c_try_compile "$LINENO"; then :
5025 ac_compiler_gnu=yes
5026else
5027 ac_compiler_gnu=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030ac_cv_c_compiler_gnu=$ac_compiler_gnu
5031
5032fi
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5034$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5035if test $ac_compiler_gnu = yes; then
5036 GCC=yes
5037else
5038 GCC=
5039fi
5040ac_test_CFLAGS=${CFLAGS+set}
5041ac_save_CFLAGS=$CFLAGS
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5043$as_echo_n "checking whether $CC accepts -g... " >&6; }
7834125e 5044if test "${ac_cv_prog_cc_g+set}" = set; then :
067d23c9
KY
5045 $as_echo_n "(cached) " >&6
5046else
5047 ac_save_c_werror_flag=$ac_c_werror_flag
5048 ac_c_werror_flag=yes
5049 ac_cv_prog_cc_g=no
5050 CFLAGS="-g"
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h. */
5053
5054int
5055main ()
5056{
5057
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_compile "$LINENO"; then :
5063 ac_cv_prog_cc_g=yes
5064else
5065 CFLAGS=""
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067/* end confdefs.h. */
5068
5069int
5070main ()
5071{
5072
5073 ;
5074 return 0;
5075}
5076_ACEOF
5077if ac_fn_c_try_compile "$LINENO"; then :
5078
5079else
5080 ac_c_werror_flag=$ac_save_c_werror_flag
5081 CFLAGS="-g"
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h. */
5084
5085int
5086main ()
5087{
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_cv_prog_cc_g=yes
5095fi
5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097fi
5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099fi
5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 ac_c_werror_flag=$ac_save_c_werror_flag
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5104$as_echo "$ac_cv_prog_cc_g" >&6; }
5105if test "$ac_test_CFLAGS" = set; then
5106 CFLAGS=$ac_save_CFLAGS
5107elif test $ac_cv_prog_cc_g = yes; then
5108 if test "$GCC" = yes; then
5109 CFLAGS="-g -O2"
5110 else
5111 CFLAGS="-g"
5112 fi
5113else
5114 if test "$GCC" = yes; then
5115 CFLAGS="-O2"
5116 else
5117 CFLAGS=
5118 fi
5119fi
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5121$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7834125e 5122if test "${ac_cv_prog_cc_c89+set}" = set; then :
067d23c9
KY
5123 $as_echo_n "(cached) " >&6
5124else
5125 ac_cv_prog_cc_c89=no
5126ac_save_CC=$CC
5127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
5129#include <stdarg.h>
5130#include <stdio.h>
5131#include <sys/types.h>
5132#include <sys/stat.h>
5133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5134struct buf { int x; };
5135FILE * (*rcsopen) (struct buf *, struct stat *, int);
5136static char *e (p, i)
5137 char **p;
5138 int i;
5139{
5140 return p[i];
5141}
5142static char *f (char * (*g) (char **, int), char **p, ...)
5143{
5144 char *s;
5145 va_list v;
5146 va_start (v,p);
5147 s = g (p, va_arg (v,int));
5148 va_end (v);
5149 return s;
5150}
5151
5152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5153 function prototypes and stuff, but not '\xHH' hex character constants.
5154 These don't provoke an error unfortunately, instead are silently treated
5155 as 'x'. The following induces an error, until -std is added to get
5156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5157 array size at least. It's necessary to write '\x00'==0 to get something
5158 that's true only with -std. */
5159int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5160
5161/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5162 inside strings and character constants. */
5163#define FOO(x) 'x'
5164int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5165
5166int test (int i, double x);
5167struct s1 {int (*f) (int a);};
5168struct s2 {int (*f) (double a);};
5169int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5170int argc;
5171char **argv;
5172int
5173main ()
5174{
5175return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5182do
5183 CC="$ac_save_CC $ac_arg"
5184 if ac_fn_c_try_compile "$LINENO"; then :
5185 ac_cv_prog_cc_c89=$ac_arg
5186fi
5187rm -f core conftest.err conftest.$ac_objext
5188 test "x$ac_cv_prog_cc_c89" != "xno" && break
5189done
743c80a7
PE
5190rm -f conftest.$ac_ext
5191CC=$ac_save_CC
5192
5193fi
5194# AC_CACHE_VAL
5195case "x$ac_cv_prog_cc_c89" in
5196 x)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5198$as_echo "none needed" >&6; } ;;
5199 xno)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5201$as_echo "unsupported" >&6; } ;;
5202 *)
5203 CC="$CC $ac_cv_prog_cc_c89"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5205$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5206esac
5207if test "x$ac_cv_prog_cc_c89" != xno; then :
5208
5209fi
5210
5211ac_ext=c
5212ac_cpp='$CPP $CPPFLAGS'
5213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216DEPDIR="${am__leading_dot}deps"
5217
5218ac_config_commands="$ac_config_commands depfiles"
5219
5220
5221am_make=${MAKE-make}
5222cat > confinc << 'END'
5223am__doit:
5224 @echo this is the am__doit target
5225.PHONY: am__doit
5226END
5227# If we don't find an include directive, just comment out the code.
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5229$as_echo_n "checking for style of include used by $am_make... " >&6; }
5230am__include="#"
5231am__quote=
5232_am_result=none
5233# First try GNU make style include.
5234echo "include confinc" > confmf
5235# Ignore all kinds of additional output from `make'.
5236case `$am_make -s -f confmf 2> /dev/null` in #(
5237*the\ am__doit\ target*)
5238 am__include=include
5239 am__quote=
5240 _am_result=GNU
5241 ;;
5242esac
5243# Now try BSD make style include.
5244if test "$am__include" = "#"; then
5245 echo '.include "confinc"' > confmf
5246 case `$am_make -s -f confmf 2> /dev/null` in #(
5247 *the\ am__doit\ target*)
5248 am__include=.include
5249 am__quote="\""
5250 _am_result=BSD
5251 ;;
5252 esac
5253fi
5254
5255
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5257$as_echo "$_am_result" >&6; }
5258rm -f confinc confmf
5259
5260# Check whether --enable-dependency-tracking was given.
5261if test "${enable_dependency_tracking+set}" = set; then :
5262 enableval=$enable_dependency_tracking;
5263fi
5264
5265if test "x$enable_dependency_tracking" != xno; then
5266 am_depcomp="$ac_aux_dir/depcomp"
5267 AMDEPBACKSLASH='\'
5268fi
5269 if test "x$enable_dependency_tracking" != xno; then
5270 AMDEP_TRUE=
5271 AMDEP_FALSE='#'
5272else
5273 AMDEP_TRUE='#'
5274 AMDEP_FALSE=
5275fi
5276
5277
5278
5279depcc="$CC" am_compiler_list=
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5282$as_echo_n "checking dependency style of $depcc... " >&6; }
7834125e 5283if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
743c80a7
PE
5284 $as_echo_n "(cached) " >&6
5285else
5286 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5287 # We make a subdir and do the tests there. Otherwise we can end up
5288 # making bogus files that we don't know about and never remove. For
5289 # instance it was reported that on HP-UX the gcc test will end up
5290 # making a dummy file named `D' -- because `-MD' means `put the output
5291 # in D'.
5292 mkdir conftest.dir
5293 # Copy depcomp to subdir because otherwise we won't find it if we're
5294 # using a relative directory.
5295 cp "$am_depcomp" conftest.dir
5296 cd conftest.dir
5297 # We will build objects and dependencies in a subdirectory because
5298 # it helps to detect inapplicable dependency modes. For instance
5299 # both Tru64's cc and ICC support -MD to output dependencies as a
5300 # side effect of compilation, but ICC will put the dependencies in
5301 # the current directory while Tru64 will put them in the object
5302 # directory.
5303 mkdir sub
5304
5305 am_cv_CC_dependencies_compiler_type=none
5306 if test "$am_compiler_list" = ""; then
5307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5308 fi
5309 am__universal=false
5310 case " $depcc " in #(
5311 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5312 esac
5313
5314 for depmode in $am_compiler_list; do
5315 # Setup a source with many dependencies, because some compilers
5316 # like to wrap large dependency lists on column 80 (with \), and
5317 # we should not choose a depcomp mode which is confused by this.
5318 #
5319 # We need to recreate these files for each test, as the compiler may
5320 # overwrite some of them when testing with obscure command lines.
5321 # This happens at least with the AIX C compiler.
5322 : > sub/conftest.c
5323 for i in 1 2 3 4 5 6; do
5324 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5325 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5326 # Solaris 8's {/usr,}/bin/sh.
5327 touch sub/conftst$i.h
5328 done
5329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5330
5331 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5332 # mode. It turns out that the SunPro C++ compiler does not properly
5333 # handle `-M -o', and we need to detect this. Also, some Intel
5334 # versions had trouble with output in subdirs
5335 am__obj=sub/conftest.${OBJEXT-o}
5336 am__minus_obj="-o $am__obj"
5337 case $depmode in
5338 gcc)
5339 # This depmode causes a compiler race in universal mode.
5340 test "$am__universal" = false || continue
5341 ;;
5342 nosideeffect)
5343 # after this tag, mechanisms are not by side-effect, so they'll
5344 # only be used when explicitly requested
5345 if test "x$enable_dependency_tracking" = xyes; then
5346 continue
5347 else
5348 break
5349 fi
5350 ;;
5351 msvisualcpp | msvcmsys)
5352 # This compiler won't grok `-c -o', but also, the minuso test has
5353 # not run yet. These depmodes are late enough in the game, and
5354 # so weak that their functioning should not be impacted.
5355 am__obj=conftest.${OBJEXT-o}
5356 am__minus_obj=
5357 ;;
5358 none) break ;;
5359 esac
5360 if depmode=$depmode \
5361 source=sub/conftest.c object=$am__obj \
5362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5363 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5364 >/dev/null 2>conftest.err &&
5365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5367 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5369 # icc doesn't choke on unknown options, it will just issue warnings
5370 # or remarks (even with -Werror). So we grep stderr for any message
5371 # that says an option was ignored or not supported.
5372 # When given -MP, icc 7.0 and 7.1 complain thusly:
5373 # icc: Command line warning: ignoring option '-M'; no argument required
5374 # The diagnosis changed in icc 8.0:
5375 # icc: Command line remark: option '-MP' not supported
5376 if (grep 'ignoring option' conftest.err ||
5377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5378 am_cv_CC_dependencies_compiler_type=$depmode
5379 break
5380 fi
5381 fi
5382 done
5383
5384 cd ..
5385 rm -rf conftest.dir
5386else
5387 am_cv_CC_dependencies_compiler_type=none
5388fi
5389
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5392$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5394
5395 if
5396 test "x$enable_dependency_tracking" != xno \
5397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5398 am__fastdepCC_TRUE=
5399 am__fastdepCC_FALSE='#'
5400else
5401 am__fastdepCC_TRUE='#'
5402 am__fastdepCC_FALSE=
5403fi
5404
5405
5406if test "x$CC" != xcc; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5408$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5409else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5411$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5412fi
5413set dummy $CC; ac_cc=`$as_echo "$2" |
5414 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
0afb4571 5415if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
743c80a7
PE
5416 $as_echo_n "(cached) " >&6
5417else
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h. */
5420
5421int
5422main ()
5423{
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429# Make sure it works both with $CC and with simple cc.
5430# We do the test twice because some compilers refuse to overwrite an
5431# existing .o file with -o, though they will create one.
5432ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5433rm -f conftest2.*
5434if { { case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437esac
5438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5439$as_echo "$ac_try_echo"; } >&5
5440 (eval "$ac_try") 2>&5
5441 ac_status=$?
5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5443 test $ac_status = 0; } &&
5444 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5449$as_echo "$ac_try_echo"; } >&5
5450 (eval "$ac_try") 2>&5
5451 ac_status=$?
5452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5453 test $ac_status = 0; };
5454then
5455 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5456 if test "x$CC" != xcc; then
5457 # Test first that cc exists at all.
5458 if { ac_try='cc -c conftest.$ac_ext >&5'
5459 { { case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464$as_echo "$ac_try_echo"; } >&5
5465 (eval "$ac_try") 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }; }; then
5469 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5470 rm -f conftest2.*
5471 if { { case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5476$as_echo "$ac_try_echo"; } >&5
5477 (eval "$ac_try") 2>&5
5478 ac_status=$?
5479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5480 test $ac_status = 0; } &&
5481 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5486$as_echo "$ac_try_echo"; } >&5
5487 (eval "$ac_try") 2>&5
5488 ac_status=$?
5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5490 test $ac_status = 0; };
5491 then
5492 # cc works too.
5493 :
5494 else
5495 # cc exists but doesn't like -o.
5496 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5497 fi
5498 fi
5499 fi
5500else
5501 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5502fi
5503rm -f core conftest*
5504
5505fi
5506if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508$as_echo "yes" >&6; }
5509else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511$as_echo "no" >&6; }
5512
5513$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5514
5515fi
5516
5517# FIXME: we rely on the cache variable name because
5518# there is no other way.
5519set dummy $CC
5520am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5521eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5522if test "$am_t" != yes; then
5523 # Losing compiler, so override with the script.
5524 # FIXME: It is wrong to rewrite CC.
5525 # But if we don't then we get into trouble of one sort or another.
5526 # A longer-term fix would be to have automake use am__CC in this case,
5527 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5528 CC="$am_aux_dir/compile $CC"
5529fi
5530
5531
5532
5533# Initialize gnulib right after verifying that the C compiler works.
5534if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5536set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
7834125e 5539if test "${ac_cv_prog_RANLIB+set}" = set; then :
743c80a7
PE
5540 $as_echo_n "(cached) " >&6
5541else
5542 if test -n "$RANLIB"; then
5543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557 done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562RANLIB=$ac_cv_prog_RANLIB
5563if test -n "$RANLIB"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5565$as_echo "$RANLIB" >&6; }
5566else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571
5572fi
5573if test -z "$ac_cv_prog_RANLIB"; then
5574 ac_ct_RANLIB=$RANLIB
5575 # Extract the first word of "ranlib", so it can be a program name with args.
5576set dummy ranlib; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
7834125e 5579if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
743c80a7
PE
5580 $as_echo_n "(cached) " >&6
5581else
5582 if test -n "$ac_ct_RANLIB"; then
5583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_RANLIB="ranlib"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596done
5597 done
5598IFS=$as_save_IFS
067d23c9
KY
5599
5600fi
743c80a7
PE
5601fi
5602ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5603if test -n "$ac_ct_RANLIB"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5605$as_echo "$ac_ct_RANLIB" >&6; }
5606else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
067d23c9 5610
743c80a7
PE
5611 if test "x$ac_ct_RANLIB" = x; then
5612 RANLIB=":"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615yes:)
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618ac_tool_warned=yes ;;
5619esac
5620 RANLIB=$ac_ct_RANLIB
5621 fi
5622else
5623 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5624fi
5625
743c80a7 5626
067d23c9
KY
5627ac_ext=c
5628ac_cpp='$CPP $CPPFLAGS'
5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5633$as_echo_n "checking how to run the C preprocessor... " >&6; }
5634# On Suns, sometimes $CPP names a directory.
5635if test -n "$CPP" && test -d "$CPP"; then
5636 CPP=
5637fi
5638if test -z "$CPP"; then
7834125e 5639 if test "${ac_cv_prog_CPP+set}" = set; then :
067d23c9
KY
5640 $as_echo_n "(cached) " >&6
5641else
5642 # Double quotes because CPP needs to be expanded
5643 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5644 do
5645 ac_preproc_ok=false
5646for ac_c_preproc_warn_flag in '' yes
5647do
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h. */
5656#ifdef __STDC__
5657# include <limits.h>
5658#else
5659# include <assert.h>
5660#endif
5661 Syntax error
5662_ACEOF
5663if ac_fn_c_try_cpp "$LINENO"; then :
5664
5665else
5666 # Broken: fails on valid input.
5667continue
5668fi
0afb4571 5669rm -f conftest.err conftest.$ac_ext
067d23c9
KY
5670
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h. */
5675#include <ac_nonexistent.h>
5676_ACEOF
5677if ac_fn_c_try_cpp "$LINENO"; then :
5678 # Broken: success on invalid input.
5679continue
5680else
5681 # Passes both tests.
5682ac_preproc_ok=:
5683break
5684fi
0afb4571 5685rm -f conftest.err conftest.$ac_ext
067d23c9
KY
5686
5687done
5688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0afb4571 5689rm -f conftest.err conftest.$ac_ext
067d23c9
KY
5690if $ac_preproc_ok; then :
5691 break
5692fi
5693
5694 done
5695 ac_cv_prog_CPP=$CPP
5696
5697fi
5698 CPP=$ac_cv_prog_CPP
5699else
5700 ac_cv_prog_CPP=$CPP
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5703$as_echo "$CPP" >&6; }
5704ac_preproc_ok=false
5705for ac_c_preproc_warn_flag in '' yes
5706do
5707 # Use a header file that comes with gcc, so configuring glibc
5708 # with a fresh cross-compiler works.
5709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5710 # <limits.h> exists even on freestanding compilers.
5711 # On the NeXT, cc -E runs the code through the compiler's parser,
5712 # not just through cpp. "Syntax error" is here to catch this case.
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h. */
5715#ifdef __STDC__
5716# include <limits.h>
5717#else
5718# include <assert.h>
5719#endif
5720 Syntax error
5721_ACEOF
5722if ac_fn_c_try_cpp "$LINENO"; then :
5723
5724else
5725 # Broken: fails on valid input.
5726continue
5727fi
0afb4571 5728rm -f conftest.err conftest.$ac_ext
067d23c9
KY
5729
5730 # OK, works on sane cases. Now check whether nonexistent headers
5731 # can be detected and how.
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733/* end confdefs.h. */
5734#include <ac_nonexistent.h>
5735_ACEOF
5736if ac_fn_c_try_cpp "$LINENO"; then :
5737 # Broken: success on invalid input.
5738continue
5739else
5740 # Passes both tests.
5741ac_preproc_ok=:
5742break
5743fi
0afb4571 5744rm -f conftest.err conftest.$ac_ext
067d23c9
KY
5745
5746done
5747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0afb4571 5748rm -f conftest.err conftest.$ac_ext
067d23c9
KY
5749if $ac_preproc_ok; then :
5750
5751else
5752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571
J
5754as_fn_error "C preprocessor \"$CPP\" fails sanity check
5755See \`config.log' for more details." "$LINENO" 5; }
067d23c9
KY
5756fi
5757
5758ac_ext=c
5759ac_cpp='$CPP $CPPFLAGS'
5760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5766$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7834125e 5767if test "${ac_cv_path_GREP+set}" = set; then :
067d23c9
KY
5768 $as_echo_n "(cached) " >&6
5769else
5770 if test -z "$GREP"; then
5771 ac_path_GREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in grep ggrep; do
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5781 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5782# Check for GNU ac_path_GREP and select it if it is found.
5783 # Check for GNU $ac_path_GREP
5784case `"$ac_path_GREP" --version 2>&1` in
5785*GNU*)
5786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5787*)
5788 ac_count=0
5789 $as_echo_n 0123456789 >"conftest.in"
5790 while :
5791 do
5792 cat "conftest.in" "conftest.in" >"conftest.tmp"
5793 mv "conftest.tmp" "conftest.in"
5794 cp "conftest.in" "conftest.nl"
5795 $as_echo 'GREP' >> "conftest.nl"
5796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798 as_fn_arith $ac_count + 1 && ac_count=$as_val
5799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5800 # Best one so far, save it but keep looking for a better one
5801 ac_cv_path_GREP="$ac_path_GREP"
5802 ac_path_GREP_max=$ac_count
5803 fi
5804 # 10*(2^10) chars as input seems more than enough
5805 test $ac_count -gt 10 && break
5806 done
5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5808esac
5809
5810 $ac_path_GREP_found && break 3
5811 done
5812 done
5813 done
5814IFS=$as_save_IFS
5815 if test -z "$ac_cv_path_GREP"; then
0afb4571 5816 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5817 fi
5818else
5819 ac_cv_path_GREP=$GREP
5820fi
5821
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5824$as_echo "$ac_cv_path_GREP" >&6; }
5825 GREP="$ac_cv_path_GREP"
5826
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5829$as_echo_n "checking for egrep... " >&6; }
7834125e 5830if test "${ac_cv_path_EGREP+set}" = set; then :
067d23c9
KY
5831 $as_echo_n "(cached) " >&6
5832else
5833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5834 then ac_cv_path_EGREP="$GREP -E"
5835 else
5836 if test -z "$EGREP"; then
5837 ac_path_EGREP_found=false
5838 # Loop through the user's path and test for each of PROGNAME-LIST
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_prog in egrep; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5847 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5848# Check for GNU ac_path_EGREP and select it if it is found.
5849 # Check for GNU $ac_path_EGREP
5850case `"$ac_path_EGREP" --version 2>&1` in
5851*GNU*)
5852 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5853*)
5854 ac_count=0
5855 $as_echo_n 0123456789 >"conftest.in"
5856 while :
5857 do
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 $as_echo 'EGREP' >> "conftest.nl"
5862 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864 as_fn_arith $ac_count + 1 && ac_count=$as_val
5865 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_EGREP="$ac_path_EGREP"
5868 ac_path_EGREP_max=$ac_count
5869 fi
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5872 done
5873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5874esac
5875
5876 $ac_path_EGREP_found && break 3
5877 done
5878 done
5879 done
5880IFS=$as_save_IFS
5881 if test -z "$ac_cv_path_EGREP"; then
0afb4571 5882 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5883 fi
5884else
5885 ac_cv_path_EGREP=$EGREP
5886fi
5887
5888 fi
5889fi
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5891$as_echo "$ac_cv_path_EGREP" >&6; }
5892 EGREP="$ac_cv_path_EGREP"
5893
5894
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5896$as_echo_n "checking for ANSI C header files... " >&6; }
7834125e 5897if test "${ac_cv_header_stdc+set}" = set; then :
067d23c9
KY
5898 $as_echo_n "(cached) " >&6
5899else
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h. */
5902#include <stdlib.h>
5903#include <stdarg.h>
5904#include <string.h>
5905#include <float.h>
5906
5907int
5908main ()
5909{
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
5915if ac_fn_c_try_compile "$LINENO"; then :
5916 ac_cv_header_stdc=yes
5917else
5918 ac_cv_header_stdc=no
5919fi
5920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921
5922if test $ac_cv_header_stdc = yes; then
5923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h. */
5926#include <string.h>
5927
5928_ACEOF
5929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "memchr" >/dev/null 2>&1; then :
5931
5932else
5933 ac_cv_header_stdc=no
5934fi
5935rm -f conftest*
5936
5937fi
5938
5939if test $ac_cv_header_stdc = yes; then
5940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h. */
5943#include <stdlib.h>
5944
5945_ACEOF
5946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5947 $EGREP "free" >/dev/null 2>&1; then :
5948
5949else
5950 ac_cv_header_stdc=no
5951fi
5952rm -f conftest*
5953
5954fi
5955
5956if test $ac_cv_header_stdc = yes; then
5957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5958 if test "$cross_compiling" = yes; then :
5959 :
5960else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h. */
5963#include <ctype.h>
5964#include <stdlib.h>
5965#if ((' ' & 0x0FF) == 0x020)
5966# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5967# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5968#else
5969# define ISLOWER(c) \
5970 (('a' <= (c) && (c) <= 'i') \
5971 || ('j' <= (c) && (c) <= 'r') \
5972 || ('s' <= (c) && (c) <= 'z'))
5973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5974#endif
5975
5976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5977int
5978main ()
5979{
5980 int i;
5981 for (i = 0; i < 256; i++)
5982 if (XOR (islower (i), ISLOWER (i))
5983 || toupper (i) != TOUPPER (i))
5984 return 2;
5985 return 0;
5986}
5987_ACEOF
5988if ac_fn_c_try_run "$LINENO"; then :
5989
5990else
5991 ac_cv_header_stdc=no
5992fi
5993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5994 conftest.$ac_objext conftest.beam conftest.$ac_ext
5995fi
5996
5997fi
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6000$as_echo "$ac_cv_header_stdc" >&6; }
6001if test $ac_cv_header_stdc = yes; then
6002
6003$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6004
6005fi
6006
6007# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6009 inttypes.h stdint.h unistd.h
6010do :
6011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6013"
0afb4571
J
6014eval as_val=\$$as_ac_Header
6015 if test "x$as_val" = x""yes; then :
067d23c9
KY
6016 cat >>confdefs.h <<_ACEOF
6017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018_ACEOF
6019
6020fi
6021
6022done
6023
6024
6025
1fd182f0
PE
6026
6027
067d23c9 6028 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7834125e 6029if test "x$ac_cv_header_minix_config_h" = x""yes; then :
067d23c9
KY
6030 MINIX=yes
6031else
6032 MINIX=
6033fi
6034
6035
6036 if test "$MINIX" = yes; then
6037
6038$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6039
6040
6041$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6042
6043
6044$as_echo "#define _MINIX 1" >>confdefs.h
6045
6046 fi
6047
1fd182f0
PE
6048 case "$host_os" in
6049 hpux*)
6050
6051$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6052
6053 ;;
6054 esac
6055
067d23c9
KY
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6058$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7834125e 6059if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
067d23c9
KY
6060 $as_echo_n "(cached) " >&6
6061else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h. */
6064
1fd182f0
PE
6065# define __EXTENSIONS__ 1
6066 $ac_includes_default
067d23c9
KY
6067int
6068main ()
6069{
6070
6071 ;
6072 return 0;
6073}
6074_ACEOF
6075if ac_fn_c_try_compile "$LINENO"; then :
6076 ac_cv_safe_to_define___extensions__=yes
6077else
6078 ac_cv_safe_to_define___extensions__=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6083$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6084 test $ac_cv_safe_to_define___extensions__ = yes &&
6085 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6086
6087 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6088
6089 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6090
6091 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6092
6093 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6094
6095
6096
1fd182f0
PE
6097
6098
6099
6100
6101
6102
6103
6104 # Code from module arg-nonnull:
6105 # Code from module c++defs:
942f733f 6106 # Code from module crypto/md5:
36f13e16 6107 # Code from module dosname:
f737437b 6108 # Code from module dtoastr:
1fd182f0
PE
6109 # Code from module extensions:
6110
5fa4ac76 6111 # Code from module filemode:
1f5d53eb 6112 # Code from module getloadavg:
e275c824
PE
6113 # Code from module getopt-gnu:
6114 # Code from module getopt-posix:
6115 # Code from module gettext-h:
67342916 6116 # Code from module ignore-value:
1fd182f0
PE
6117 # Code from module include_next:
6118 # Code from module intprops:
ae0d7250 6119 # Code from module lstat:
1fd182f0
PE
6120 # Code from module mktime:
6121 # Code from module multiarch:
ae0d7250
PE
6122 # Code from module readlink:
6123 # Code from module stat:
16c3e636 6124 # Code from module stdbool:
1fd182f0 6125 # Code from module stddef:
5f90be1b 6126 # Code from module stdint:
1f5d53eb 6127 # Code from module stdlib:
16c3e636 6128 # Code from module strftime:
ae0d7250 6129 # Code from module symlink:
5fa4ac76 6130 # Code from module sys_stat:
1fd182f0
PE
6131 # Code from module time:
6132 # Code from module time_r:
e275c824 6133 # Code from module unistd:
1fd182f0
PE
6134 # Code from module warn-on-use:
6135
6136
6137# On Suns, sometimes $CPP names a directory.
6138if test -n "$CPP" && test -d "$CPP"; then
6139 CPP=
6140fi
6141
6142## If not using gcc, and on Solaris, and no CPP specified, see if
6143## using a Sun compiler, which needs -Xs to prevent whitespace.
6144if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6145 test x"$CPP" = x; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6147$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7834125e 6148 if test "${emacs_cv_sunpro_c+set}" = set; then :
1fd182f0
PE
6149 $as_echo_n "(cached) " >&6
6150else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h. */
6153
6154int
6155main ()
6156{
6157#ifndef __SUNPRO_C
6158fail;
6159#endif
6160
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_link "$LINENO"; then :
6166 emacs_cv_sunpro_c=yes
6167else
6168 emacs_cv_sunpro_c=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172fi
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6175$as_echo "$emacs_cv_sunpro_c" >&6; }
6176
6177 if test x"$emacs_cv_sunpro_c" = xyes; then
6178 NON_GNU_CPP="$CC -E -Xs"
6179 fi
6180fi
6181
6182#### Some systems specify a CPP to use unless we are using GCC.
6183#### Now that we know whether we are using GCC, we can decide whether
6184#### to use that one.
6185if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6186then
6187 CPP="$NON_GNU_CPP"
6188fi
6189
6190#### Some systems specify a CC to use unless we are using GCC.
6191#### Now that we know whether we are using GCC, we can decide whether
6192#### to use that one.
6193if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6194 test x$cc_specified != xyes
6195then
6196 CC="$NON_GNU_CC"
6197fi
6198
6199if test x$GCC = xyes; then
6200 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6201else
6202 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6203fi
6204
067d23c9
KY
6205### Use -Wdeclaration-after-statement if the compiler supports it
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6207$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6208SAVE_CFLAGS="$CFLAGS"
6209CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h. */
6212
6213int
6214main ()
6215{
6216
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221if ac_fn_c_try_compile "$LINENO"; then :
6222 has_option=yes
6223else
6224 has_option=no
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227if test $has_option = yes; then
6228 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6231$as_echo "$has_option" >&6; }
6232CFLAGS="$SAVE_CFLAGS"
6233unset has_option
6234unset SAVE_CFLAGS
6235
6236### Use -Wold-style-definition if the compiler supports it
6237# This can be removed when conversion to standard C is finished.
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6239$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6240SAVE_CFLAGS="$CFLAGS"
6241CFLAGS="$CFLAGS -Wold-style-definition"
6242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h. */
6244
6245int
6246main ()
6247{
6248
6249 ;
6250 return 0;
6251}
6252_ACEOF
6253if ac_fn_c_try_compile "$LINENO"; then :
6254 has_option=yes
6255else
6256 has_option=no
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259if test $has_option = yes; then
6260 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6263$as_echo "$has_option" >&6; }
6264CFLAGS="$SAVE_CFLAGS"
6265unset has_option
6266unset SAVE_CFLAGS
6267
6268### Use -Wimplicit-function-declaration if the compiler supports it
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6270$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6271SAVE_CFLAGS="$CFLAGS"
6272CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h. */
6275
6276int
6277main ()
6278{
6279
6280 ;
6281 return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_compile "$LINENO"; then :
6285 has_option=yes
6286else
6287 has_option=no
6288fi
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290if test $has_option = yes; then
6291 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6292fi
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6294$as_echo "$has_option" >&6; }
6295CFLAGS="$SAVE_CFLAGS"
6296unset has_option
6297unset SAVE_CFLAGS
6298
6299
6300
6301
6302#### Some other nice autoconf tests.
6303
6304ac_ext=c
6305ac_cpp='$CPP $CPPFLAGS'
6306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308ac_compiler_gnu=$ac_cv_c_compiler_gnu
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6310$as_echo_n "checking how to run the C preprocessor... " >&6; }
6311# On Suns, sometimes $CPP names a directory.
6312if test -n "$CPP" && test -d "$CPP"; then
6313 CPP=
6314fi
6315if test -z "$CPP"; then
7834125e 6316 if test "${ac_cv_prog_CPP+set}" = set; then :
067d23c9
KY
6317 $as_echo_n "(cached) " >&6
6318else
6319 # Double quotes because CPP needs to be expanded
6320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6321 do
6322 ac_preproc_ok=false
6323for ac_c_preproc_warn_flag in '' yes
6324do
6325 # Use a header file that comes with gcc, so configuring glibc
6326 # with a fresh cross-compiler works.
6327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6328 # <limits.h> exists even on freestanding compilers.
6329 # On the NeXT, cc -E runs the code through the compiler's parser,
6330 # not just through cpp. "Syntax error" is here to catch this case.
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h. */
6333#ifdef __STDC__
6334# include <limits.h>
6335#else
6336# include <assert.h>
6337#endif
6338 Syntax error
6339_ACEOF
6340if ac_fn_c_try_cpp "$LINENO"; then :
6341
6342else
6343 # Broken: fails on valid input.
6344continue
6345fi
0afb4571 6346rm -f conftest.err conftest.$ac_ext
067d23c9
KY
6347
6348 # OK, works on sane cases. Now check whether nonexistent headers
6349 # can be detected and how.
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h. */
6352#include <ac_nonexistent.h>
6353_ACEOF
6354if ac_fn_c_try_cpp "$LINENO"; then :
6355 # Broken: success on invalid input.
6356continue
6357else
6358 # Passes both tests.
6359ac_preproc_ok=:
6360break
6361fi
0afb4571 6362rm -f conftest.err conftest.$ac_ext
067d23c9
KY
6363
6364done
6365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0afb4571 6366rm -f conftest.err conftest.$ac_ext
067d23c9
KY
6367if $ac_preproc_ok; then :
6368 break
6369fi
6370
6371 done
6372 ac_cv_prog_CPP=$CPP
6373
6374fi
6375 CPP=$ac_cv_prog_CPP
6376else
6377 ac_cv_prog_CPP=$CPP
6378fi
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6380$as_echo "$CPP" >&6; }
6381ac_preproc_ok=false
6382for ac_c_preproc_warn_flag in '' yes
6383do
6384 # Use a header file that comes with gcc, so configuring glibc
6385 # with a fresh cross-compiler works.
6386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 # <limits.h> exists even on freestanding compilers.
6388 # On the NeXT, cc -E runs the code through the compiler's parser,
6389 # not just through cpp. "Syntax error" is here to catch this case.
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h. */
6392#ifdef __STDC__
6393# include <limits.h>
6394#else
6395# include <assert.h>
6396#endif
6397 Syntax error
6398_ACEOF
6399if ac_fn_c_try_cpp "$LINENO"; then :
6400
6401else
6402 # Broken: fails on valid input.
6403continue
6404fi
0afb4571 6405rm -f conftest.err conftest.$ac_ext
067d23c9
KY
6406
6407 # OK, works on sane cases. Now check whether nonexistent headers
6408 # can be detected and how.
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h. */
6411#include <ac_nonexistent.h>
6412_ACEOF
6413if ac_fn_c_try_cpp "$LINENO"; then :
6414 # Broken: success on invalid input.
6415continue
6416else
6417 # Passes both tests.
6418ac_preproc_ok=:
6419break
6420fi
0afb4571 6421rm -f conftest.err conftest.$ac_ext
067d23c9
KY
6422
6423done
6424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
0afb4571 6425rm -f conftest.err conftest.$ac_ext
067d23c9
KY
6426if $ac_preproc_ok; then :
6427
6428else
6429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
0afb4571
J
6431as_fn_error "C preprocessor \"$CPP\" fails sanity check
6432See \`config.log' for more details." "$LINENO" 5; }
067d23c9
KY
6433fi
6434
6435ac_ext=c
6436ac_cpp='$CPP $CPPFLAGS'
6437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440
067d23c9
KY
6441
6442if test "x$RANLIB" = x; then
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6448if test "${ac_cv_prog_RANLIB+set}" = set; then :
067d23c9
KY
6449 $as_echo_n "(cached) " >&6
6450else
6451 if test -n "$RANLIB"; then
6452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466 done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471RANLIB=$ac_cv_prog_RANLIB
6472if test -n "$RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6474$as_echo "$RANLIB" >&6; }
6475else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
6482if test -z "$ac_cv_prog_RANLIB"; then
6483 ac_ct_RANLIB=$RANLIB
6484 # Extract the first word of "ranlib", so it can be a program name with args.
6485set dummy ranlib; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6488if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
067d23c9
KY
6489 $as_echo_n "(cached) " >&6
6490else
6491 if test -n "$ac_ct_RANLIB"; then
6492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_ac_ct_RANLIB="ranlib"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506 done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6512if test -n "$ac_ct_RANLIB"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6514$as_echo "$ac_ct_RANLIB" >&6; }
6515else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520 if test "x$ac_ct_RANLIB" = x; then
6521 RANLIB=":"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529 RANLIB=$ac_ct_RANLIB
6530 fi
6531else
6532 RANLIB="$ac_cv_prog_RANLIB"
6533fi
6534
6535fi
6536
6537## Although we're running on an amd64 kernel, we're actually compiling for
6538## the x86 architecture. The user should probably have provided an
6539## explicit --build to `configure', but if everything else than the kernel
6540## is running in i386 mode, we can help them out.
6541if test "$machine" = "amdx86-64"; then
6542 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7834125e 6543if test "x$ac_cv_have_decl_i386" = x""yes; then :
067d23c9
KY
6544
6545fi
6546
6547 if test "$ac_cv_have_decl_i386" = "yes"; then
6548 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6549 machine=intel386
6550 machfile="m/${machine}.h"
6551 fi
6552fi
6553
6554# Extract the first word of "install-info", so it can be a program name with args.
6555set dummy install-info; ac_word=$2
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6558if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
067d23c9
KY
6559 $as_echo_n "(cached) " >&6
6560else
6561 case $INSTALL_INFO in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578 done
6579IFS=$as_save_IFS
6580
6581 ;;
6582esac
6583fi
6584INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6585if test -n "$INSTALL_INFO"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6587$as_echo "$INSTALL_INFO" >&6; }
6588else
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594# Extract the first word of "install-info", so it can be a program name with args.
6595set dummy install-info; ac_word=$2
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6598if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
067d23c9
KY
6599 $as_echo_n "(cached) " >&6
6600else
6601 case $INSTALL_INFO in
6602 [\\/]* | ?:[\\/]*)
6603 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6604 ;;
6605 *)
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in /usr/sbin
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618 done
6619IFS=$as_save_IFS
6620
6621 ;;
6622esac
6623fi
6624INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6625if test -n "$INSTALL_INFO"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6627$as_echo "$INSTALL_INFO" >&6; }
6628else
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633
6634# Extract the first word of "install-info", so it can be a program name with args.
6635set dummy install-info; ac_word=$2
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6638if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
067d23c9
KY
6639 $as_echo_n "(cached) " >&6
6640else
6641 case $INSTALL_INFO in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6644 ;;
6645 *)
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in /sbin
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658 done
6659IFS=$as_save_IFS
6660
6661 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6662 ;;
6663esac
6664fi
6665INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6666if test -n "$INSTALL_INFO"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6668$as_echo "$INSTALL_INFO" >&6; }
6669else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674
6675# Extract the first word of "gzip", so it can be a program name with args.
6676set dummy gzip; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6679if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
067d23c9
KY
6680 $as_echo_n "(cached) " >&6
6681else
6682 case $GZIP_PROG in
6683 [\\/]* | ?:[\\/]*)
6684 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6685 ;;
6686 *)
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698done
6699 done
6700IFS=$as_save_IFS
6701
6702 ;;
6703esac
6704fi
6705GZIP_PROG=$ac_cv_path_GZIP_PROG
6706if test -n "$GZIP_PROG"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6708$as_echo "$GZIP_PROG" >&6; }
6709else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711$as_echo "no" >&6; }
6712fi
6713
6714
6715
6716
6717## Need makeinfo >= 4.6 (?) to build the manuals.
6718# Extract the first word of "makeinfo", so it can be a program name with args.
6719set dummy makeinfo; ac_word=$2
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721$as_echo_n "checking for $ac_word... " >&6; }
7834125e 6722if test "${ac_cv_path_MAKEINFO+set}" = set; then :
067d23c9
KY
6723 $as_echo_n "(cached) " >&6
6724else
6725 case $MAKEINFO in
6726 [\\/]* | ?:[\\/]*)
6727 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6728 ;;
6729 *)
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742 done
6743IFS=$as_save_IFS
6744
6745 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6746 ;;
6747esac
6748fi
6749MAKEINFO=$ac_cv_path_MAKEINFO
6750if test -n "$MAKEINFO"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6752$as_echo "$MAKEINFO" >&6; }
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758
6759if test "$MAKEINFO" != "no" && \
6760 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
6761 MAKEINFO=no
6762fi
6763
6764## Makeinfo is unusual. For a released Emacs, the manuals are
6765## pre-built, and not deleted by the normal clean rules. makeinfo is
6766## therefore in the category of "special tools" not normally required, which
6767## configure does not have to check for (eg autoconf itself).
6768## In a Bazaar checkout on the other hand, the manuals are not included.
6769## So makeinfo is a requirement to build from Bazaar, and configure
6770## should test for it as it does for any other build requirement.
6771## We use the presence of $srcdir/info/emacs to distinguish a release,
6772## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6773HAVE_MAKEINFO=yes
6774
067d23c9 6775if test "$MAKEINFO" = "no"; then
96f129d5 6776 MAKEINFO=makeinfo
067d23c9 6777 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6778 HAVE_MAKEINFO=no
067d23c9 6779 elif test ! -e $srcdir/info/emacs; then
0afb4571 6780 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6781source tree does not seem to have pre-built manuals in the \`info' directory.
6782Either install a suitable version of makeinfo, or re-run configure
6783with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6784 fi
6785fi
6786
6787
96f129d5 6788
067d23c9
KY
6789if test x$GCC = xyes; then
6790 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6791 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6792else
6793 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6794 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6795fi
6796
6797
6798late_LDFLAGS=$LDFLAGS
6799if test x$GCC = xyes; then
6800 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6801else
6802 LDFLAGS="$LDFLAGS -znocombreloc"
6803fi
6804
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6806$as_echo_n "checking for -znocombreloc... " >&6; }
6807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809
6810int
6811main ()
6812{
6813
6814 ;
6815 return 0;
6816}
6817_ACEOF
6818if ac_fn_c_try_link "$LINENO"; then :
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6820$as_echo "yes" >&6; }
6821else
6822 LDFLAGS=$late_LDFLAGS
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6828
6829
6830# The value of CPP is a quoted variable reference, so we need to do this
6831# to get its actual value...
6832CPP=`eval "echo $CPP"`
6833
6834
125c3718 6835test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6836case "$opsys" in
125c3718
PE
6837 your-opsys-here) CANNOT_DUMP=yes ;;
6838esac
6839
6840test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6841
6842$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6843
125c3718 6844
067d23c9
KY
6845
6846
6847
6848UNEXEC_OBJ=unexelf.o
6849case "$opsys" in
6850 # MSDOS uses unexcoff.o
6851 # MSWindows uses unexw32.o
6852 aix4-2)
6853 UNEXEC_OBJ=unexaix.o
6854 ;;
6855 cygwin)
6856 UNEXEC_OBJ=unexcw.o
6857 ;;
6858 darwin)
6859 UNEXEC_OBJ=unexmacosx.o
6860 ;;
6861 hpux10-20 | hpux11)
6862 UNEXEC_OBJ=unexhp9k800.o
6863 ;;
6864 sol2-10)
6865 # Use the Solaris dldump() function, called from unexsol.c, to dump
6866 # emacs, instead of the generic ELF dump code found in unexelf.c.
6867 # The resulting binary has a complete symbol table, and is better
6868 # for debugging and other observability tools (debuggers, pstack, etc).
6869 #
6870 # If you encounter a problem using dldump(), please consider sending
6871 # a message to the OpenSolaris tools-linking mailing list:
6872 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6873 #
6874 # It is likely that dldump() works with older Solaris too, but this has
6875 # not been tested, so for now this change is for Solaris 10 or newer.
6876 UNEXEC_OBJ=unexsol.o
6877 ;;
6878esac
6879
6880LD_SWITCH_SYSTEM=
6881case "$opsys" in
6882 freebsd)
6883 ## Let `ld' find image libs and similar things in /usr/local/lib.
6884 ## The system compiler, GCC, has apparently been modified to not
6885 ## look there, contrary to what a stock GCC would do.
6886 LD_SWITCH_SYSTEM=-L/usr/local/lib
6887 ;;
6888
6889 gnu-linux)
6890 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6891 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6892 ;;
6893
6894 netbsd)
6895 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6896 ;;
6897
6898 openbsd)
6899 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6900 ## otherwise Emacs dumps core on elf systems.
6901 LD_SWITCH_SYSTEM="-Z"
6902 ;;
6903esac
6904
6905
6906ac_link="$ac_link $LD_SWITCH_SYSTEM"
6907
6908## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6909## which has not been defined yet. When this was handled with cpp,
6910## it was expanded to null when configure sourced the s/*.h file.
6911## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6912## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6913## (or somesuch), but because it is supposed to go at the _front_
6914## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6915## Compare with the gnu-linux case below, which added to the end
6916## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6917## LD_SWITCH_SYSTEM_TEMACS.
6918case "$opsys" in
6919 netbsd|openbsd)
6920 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6921 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6922esac
6923
6924
6925C_SWITCH_MACHINE=
6926if test "$machine" = "alpha"; then
6927 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7834125e 6928if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
067d23c9
KY
6929
6930fi
6931
6932 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6933 ## With ELF, make sure that all common symbols get allocated to in the
6934 ## data section. Otherwise, the dump of temacs may miss variables in
6935 ## the shared library that have been initialized. For example, with
6936 ## GNU libc, __malloc_initialized would normally be resolved to the
6937 ## shared library's .bss section, which is fatal.
6938 if test "x$GCC" = "xyes"; then
6939 C_SWITCH_MACHINE="-fno-common"
6940 else
0afb4571 6941 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6942 fi
6943 else
6944 UNEXEC_OBJ=unexalpha.o
6945 fi
6946fi
6947
6948
6949
6950
6951C_SWITCH_SYSTEM=
6952## Some programs in src produce warnings saying certain subprograms
6953## are too complex and need a MAXMEM value greater than 2000 for
6954## additional optimization. --nils@exp-math.uni-essen.de
6955test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6956 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6957## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6958## It is redundant in glibc2, since we define _GNU_SOURCE.
6959
6960
6961
6962LIBS_SYSTEM=
6963case "$opsys" in
6964 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6965 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6966
6967 freebsd) LIBS_SYSTEM="-lutil" ;;
6968
6969 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6970
1f5d53eb 6971 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
067d23c9
KY
6972
6973 ## Motif needs -lgen.
6974 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6975esac
6976
6977
6978
6979### Make sure subsequent tests use flags consistent with the build flags.
6980
6981if test x"${OVERRIDE_CPPFLAGS}" != x; then
6982 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6983else
6984 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6985fi
6986
067d23c9
KY
6987# Check whether --enable-largefile was given.
6988if test "${enable_largefile+set}" = set; then :
6989 enableval=$enable_largefile;
6990fi
6991
6992if test "$enable_largefile" != no; then
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6995$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7834125e 6996if test "${ac_cv_sys_largefile_CC+set}" = set; then :
067d23c9
KY
6997 $as_echo_n "(cached) " >&6
6998else
6999 ac_cv_sys_largefile_CC=no
7000 if test "$GCC" != yes; then
7001 ac_save_CC=$CC
7002 while :; do
7003 # IRIX 6.2 and later do not support large files by default,
7004 # so use the C compiler's -n32 option if that helps.
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h. */
7007#include <sys/types.h>
7008 /* Check that off_t can represent 2**63 - 1 correctly.
7009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7010 since some C++ compilers masquerading as C compilers
7011 incorrectly reject 9223372036854775807. */
7012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7014 && LARGE_OFF_T % 2147483647 == 1)
7015 ? 1 : -1];
7016int
7017main ()
7018{
7019
7020 ;
7021 return 0;
7022}
7023_ACEOF
7024 if ac_fn_c_try_compile "$LINENO"; then :
7025 break
7026fi
7027rm -f core conftest.err conftest.$ac_objext
7028 CC="$CC -n32"
7029 if ac_fn_c_try_compile "$LINENO"; then :
7030 ac_cv_sys_largefile_CC=' -n32'; break
7031fi
7032rm -f core conftest.err conftest.$ac_objext
7033 break
7034 done
7035 CC=$ac_save_CC
7036 rm -f conftest.$ac_ext
7037 fi
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7040$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7041 if test "$ac_cv_sys_largefile_CC" != no; then
7042 CC=$CC$ac_cv_sys_largefile_CC
7043 fi
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7046$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7834125e 7047if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
067d23c9
KY
7048 $as_echo_n "(cached) " >&6
7049else
7050 while :; do
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052/* end confdefs.h. */
7053#include <sys/types.h>
7054 /* Check that off_t can represent 2**63 - 1 correctly.
7055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7056 since some C++ compilers masquerading as C compilers
7057 incorrectly reject 9223372036854775807. */
7058#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7060 && LARGE_OFF_T % 2147483647 == 1)
7061 ? 1 : -1];
7062int
7063main ()
7064{
7065
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070if ac_fn_c_try_compile "$LINENO"; then :
7071 ac_cv_sys_file_offset_bits=no; break
7072fi
7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h. */
7076#define _FILE_OFFSET_BITS 64
7077#include <sys/types.h>
7078 /* Check that off_t can represent 2**63 - 1 correctly.
7079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7080 since some C++ compilers masquerading as C compilers
7081 incorrectly reject 9223372036854775807. */
7082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7084 && LARGE_OFF_T % 2147483647 == 1)
7085 ? 1 : -1];
7086int
7087main ()
7088{
7089
7090 ;
7091 return 0;
7092}
7093_ACEOF
7094if ac_fn_c_try_compile "$LINENO"; then :
7095 ac_cv_sys_file_offset_bits=64; break
7096fi
7097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098 ac_cv_sys_file_offset_bits=unknown
7099 break
7100done
7101fi
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7103$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7104case $ac_cv_sys_file_offset_bits in #(
7105 no | unknown) ;;
7106 *)
7107cat >>confdefs.h <<_ACEOF
7108#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7109_ACEOF
7110;;
7111esac
7112rm -rf conftest*
7113 if test $ac_cv_sys_file_offset_bits = unknown; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7115$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7834125e 7116if test "${ac_cv_sys_large_files+set}" = set; then :
067d23c9
KY
7117 $as_echo_n "(cached) " >&6
7118else
7119 while :; do
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121/* end confdefs.h. */
7122#include <sys/types.h>
7123 /* Check that off_t can represent 2**63 - 1 correctly.
7124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7125 since some C++ compilers masquerading as C compilers
7126 incorrectly reject 9223372036854775807. */
7127#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7129 && LARGE_OFF_T % 2147483647 == 1)
7130 ? 1 : -1];
7131int
7132main ()
7133{
7134
7135 ;
7136 return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140 ac_cv_sys_large_files=no; break
7141fi
7142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h. */
7145#define _LARGE_FILES 1
7146#include <sys/types.h>
7147 /* Check that off_t can represent 2**63 - 1 correctly.
7148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7149 since some C++ compilers masquerading as C compilers
7150 incorrectly reject 9223372036854775807. */
7151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7153 && LARGE_OFF_T % 2147483647 == 1)
7154 ? 1 : -1];
7155int
7156main ()
7157{
7158
7159 ;
7160 return 0;
7161}
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"; then :
7164 ac_cv_sys_large_files=1; break
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 ac_cv_sys_large_files=unknown
7168 break
7169done
7170fi
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7172$as_echo "$ac_cv_sys_large_files" >&6; }
7173case $ac_cv_sys_large_files in #(
7174 no | unknown) ;;
7175 *)
7176cat >>confdefs.h <<_ACEOF
7177#define _LARGE_FILES $ac_cv_sys_large_files
7178_ACEOF
7179;;
7180esac
7181rm -rf conftest*
7182 fi
7183fi
7184
7185
7186
7187## If user specified a crt-dir, use that unconditionally.
7188if test "X$CRT_DIR" = "X"; then
7189
7190 case "$canonical" in
7191 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7192 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7193 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7194 ## For anything else (eg /usr/lib32), it is up the user to specify
7195 ## the location (bug#5655).
7196 ## Test for crtn.o, not just the directory, because sometimes the
7197 ## directory exists but does not have the relevant files (bug#1287).
7198 ## FIXME better to test for binary compatibility somehow.
7199 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7200 ;;
7201
7202 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7203 esac
7204
7205 case "$opsys" in
7206 hpux10-20) CRT_DIR=/lib ;;
7207 esac
7208
7209 ## Default is /usr/lib.
7210 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7211
7212else
7213
7214 ## Some platforms don't use any of these files, so it is not
7215 ## appropriate to put this test outside the if block.
7216 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
0afb4571 7217 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
7218
7219fi
7220
7221
7222
7223LIB_MATH=-lm
7224LIB_STANDARD=
7225START_FILES=
7226
7227case $opsys in
7228 cygwin )
7229 LIB_MATH=
7230 START_FILES='pre-crt0.o'
7231 ;;
7232 darwin )
7233 ## Adding -lm confuses the dynamic linker, so omit it.
7234 LIB_MATH=
7235 START_FILES='pre-crt0.o'
7236 ;;
7237 freebsd )
7238 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7239 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7240 ;;
7241 gnu-linux | gnu-kfreebsd )
7242 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7243 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7244 ;;
7245 hpux10-20 | hpux11 )
7246 LIB_STANDARD=-lc
7247 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7248 ;;
7249 netbsd | openbsd )
7250 if test -f $CRT_DIR/crti.o; then
7251 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7252 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7253 else
7254 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7255 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7256 fi
7257 ;;
7258esac
7259
7260
7261
7262
7263
7264
7265
7266if test "${with_sound}" != "no"; then
7267 # Sound support for GNU/Linux and the free BSDs.
7268 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7269do :
7270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7271ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
0afb4571
J
7272eval as_val=\$$as_ac_Header
7273 if test "x$as_val" = x""yes; then :
067d23c9
KY
7274 cat >>confdefs.h <<_ACEOF
7275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7276_ACEOF
7277 have_sound_header=yes
7278fi
7279
7280done
7281
7282 # Emulation library used on NetBSD.
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7284$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7834125e 7285if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
067d23c9
KY
7286 $as_echo_n "(cached) " >&6
7287else
7288 ac_check_lib_save_LIBS=$LIBS
7289LIBS="-lossaudio $LIBS"
7290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h. */
7292
7293/* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7296#ifdef __cplusplus
7297extern "C"
7298#endif
7299char _oss_ioctl ();
7300int
7301main ()
7302{
7303return _oss_ioctl ();
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308if ac_fn_c_try_link "$LINENO"; then :
7309 ac_cv_lib_ossaudio__oss_ioctl=yes
7310else
7311 ac_cv_lib_ossaudio__oss_ioctl=no
7312fi
7313rm -f core conftest.err conftest.$ac_objext \
7314 conftest$ac_exeext conftest.$ac_ext
7315LIBS=$ac_check_lib_save_LIBS
7316fi
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7318$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7834125e 7319if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
067d23c9
KY
7320 LIBSOUND=-lossaudio
7321else
7322 LIBSOUND=
7323fi
7324
7325
7326
7327 ALSA_REQUIRED=1.0.0
7328 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7329
7330 succeeded=no
7331
7332 # Extract the first word of "pkg-config", so it can be a program name with args.
7333set dummy pkg-config; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7834125e 7336if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
7337 $as_echo_n "(cached) " >&6
7338else
7339 case $PKG_CONFIG in
7340 [\\/]* | ?:[\\/]*)
7341 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7342 ;;
7343 *)
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356 done
7357IFS=$as_save_IFS
7358
7359 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7360 ;;
7361esac
7362fi
7363PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7364if test -n "$PKG_CONFIG"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7366$as_echo "$PKG_CONFIG" >&6; }
7367else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370fi
7371
7372
7373
7374 if test "$PKG_CONFIG" = "no" ; then
7375 HAVE_ALSA=no
7376 else
7377 PKG_CONFIG_MIN_VERSION=0.9.0
7378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7380$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7381
7382 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384$as_echo "yes" >&6; }
7385 succeeded=yes
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7388$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7389 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7391$as_echo "$ALSA_CFLAGS" >&6; }
7392
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7394$as_echo_n "checking ALSA_LIBS... " >&6; }
7395 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7397$as_echo "$ALSA_LIBS" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400$as_echo "no" >&6; }
7401 ALSA_CFLAGS=""
7402 ALSA_LIBS=""
7403 ## If we have a custom action on failure, don't print errors, but
7404 ## do set a variable so people can do so.
7405 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7406
7407 fi
7408
7409
7410
7411 else
7412 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7413 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7414 fi
7415 fi
7416
7417 if test $succeeded = yes; then
7418 HAVE_ALSA=yes
7419 else
7420 HAVE_ALSA=no
7421 fi
7422
7423 if test $HAVE_ALSA = yes; then
7424 SAVE_CFLAGS="$CFLAGS"
7425 SAVE_LDFLAGS="$LDFLAGS"
7426 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7427 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h. */
7430#include <asoundlib.h>
7431int
7432main ()
7433{
7434snd_lib_error_set_handler (0);
7435 ;
7436 return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_compile "$LINENO"; then :
7440 emacs_alsa_normal=yes
7441else
7442 emacs_alsa_normal=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 if test "$emacs_alsa_normal" != yes; then
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h. */
7448#include <alsa/asoundlib.h>
7449int
7450main ()
7451{
7452snd_lib_error_set_handler (0);
7453 ;
7454 return 0;
7455}
7456_ACEOF
7457if ac_fn_c_try_compile "$LINENO"; then :
7458 emacs_alsa_subdir=yes
7459else
7460 emacs_alsa_subdir=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 if test "$emacs_alsa_subdir" != yes; then
0afb4571 7464 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7465 fi
7466 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7467 fi
7468
7469 CFLAGS="$SAVE_CFLAGS"
7470 LDFLAGS="$SAVE_LDFLAGS"
7471 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7472 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7473
7474$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7475
7476 fi
7477
7478 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7479 case "$opsys" in
7480 gnu-linux|freebsd|netbsd)
7481
7482$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7483
7484 ;;
7485 esac
7486 fi
7487
7488
7489fi
7490
7491for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7492 linux/version.h sys/systeminfo.h limits.h \
7493 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7494 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7495 sys/utsname.h pwd.h utmp.h dirent.h util.h
7496do :
7497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
0afb4571
J
7499eval as_val=\$$as_ac_Header
7500 if test "x$as_val" = x""yes; then :
067d23c9
KY
7501 cat >>confdefs.h <<_ACEOF
7502#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503_ACEOF
7504
7505fi
7506
7507done
7508
7509
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7511$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513/* end confdefs.h. */
7514#include <sys/personality.h>
7515int
7516main ()
7517{
7518personality (PER_LINUX32)
7519 ;
7520 return 0;
7521}
7522_ACEOF
7523if ac_fn_c_try_compile "$LINENO"; then :
7524 emacs_cv_personality_linux32=yes
7525else
7526 emacs_cv_personality_linux32=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7530$as_echo "$emacs_cv_personality_linux32" >&6; }
7531
7532if test $emacs_cv_personality_linux32 = yes; then
7533
7534$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7535
7536fi
7537
7538for ac_header in term.h
7539do :
7540 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7834125e 7541if test "x$ac_cv_header_term_h" = x""yes; then :
067d23c9
KY
7542 cat >>confdefs.h <<_ACEOF
7543#define HAVE_TERM_H 1
7544_ACEOF
7545
7546fi
7547
7548done
7549
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7551$as_echo_n "checking for ANSI C header files... " >&6; }
7834125e 7552if test "${ac_cv_header_stdc+set}" = set; then :
067d23c9
KY
7553 $as_echo_n "(cached) " >&6
7554else
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h. */
7557#include <stdlib.h>
7558#include <stdarg.h>
7559#include <string.h>
7560#include <float.h>
7561
7562int
7563main ()
7564{
7565
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570if ac_fn_c_try_compile "$LINENO"; then :
7571 ac_cv_header_stdc=yes
7572else
7573 ac_cv_header_stdc=no
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576
7577if test $ac_cv_header_stdc = yes; then
7578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h. */
7581#include <string.h>
7582
7583_ACEOF
7584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7585 $EGREP "memchr" >/dev/null 2>&1; then :
7586
7587else
7588 ac_cv_header_stdc=no
7589fi
7590rm -f conftest*
7591
7592fi
7593
7594if test $ac_cv_header_stdc = yes; then
7595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h. */
7598#include <stdlib.h>
7599
7600_ACEOF
7601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7602 $EGREP "free" >/dev/null 2>&1; then :
7603
7604else
7605 ac_cv_header_stdc=no
7606fi
7607rm -f conftest*
7608
7609fi
7610
7611if test $ac_cv_header_stdc = yes; then
7612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7613 if test "$cross_compiling" = yes; then :
7614 :
7615else
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617/* end confdefs.h. */
7618#include <ctype.h>
7619#include <stdlib.h>
7620#if ((' ' & 0x0FF) == 0x020)
7621# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7622# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7623#else
7624# define ISLOWER(c) \
7625 (('a' <= (c) && (c) <= 'i') \
7626 || ('j' <= (c) && (c) <= 'r') \
7627 || ('s' <= (c) && (c) <= 'z'))
7628# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7629#endif
7630
7631#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7632int
7633main ()
7634{
7635 int i;
7636 for (i = 0; i < 256; i++)
7637 if (XOR (islower (i), ISLOWER (i))
7638 || toupper (i) != TOUPPER (i))
7639 return 2;
7640 return 0;
7641}
7642_ACEOF
7643if ac_fn_c_try_run "$LINENO"; then :
7644
7645else
7646 ac_cv_header_stdc=no
7647fi
7648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7649 conftest.$ac_objext conftest.beam conftest.$ac_ext
7650fi
7651
7652fi
7653fi
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7655$as_echo "$ac_cv_header_stdc" >&6; }
7656if test $ac_cv_header_stdc = yes; then
7657
7658$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7659
7660fi
7661
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7663$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7834125e 7664if test "${ac_cv_header_time+set}" = set; then :
067d23c9
KY
7665 $as_echo_n "(cached) " >&6
7666else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h. */
7669#include <sys/types.h>
7670#include <sys/time.h>
7671#include <time.h>
7672
7673int
7674main ()
7675{
7676if ((struct tm *) 0)
7677return 0;
7678 ;
7679 return 0;
7680}
7681_ACEOF
7682if ac_fn_c_try_compile "$LINENO"; then :
7683 ac_cv_header_time=yes
7684else
7685 ac_cv_header_time=no
7686fi
7687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688fi
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7690$as_echo "$ac_cv_header_time" >&6; }
7691if test $ac_cv_header_time = yes; then
7692
7693$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7694
7695fi
7696
7697ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7834125e 7698if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
067d23c9
KY
7699 ac_have_decl=1
7700else
7701 ac_have_decl=0
7702fi
7703
7704cat >>confdefs.h <<_ACEOF
7705#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7706_ACEOF
7707
7708if test $ac_cv_have_decl_sys_siglist != yes; then
7709 # For Tru64, at least:
7710 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7834125e 7711if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
067d23c9
KY
7712 ac_have_decl=1
7713else
7714 ac_have_decl=0
7715fi
7716
7717cat >>confdefs.h <<_ACEOF
7718#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7719_ACEOF
7720
7721 if test $ac_cv_have_decl___sys_siglist = yes; then
7722
7723$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7724
7725 fi
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7728$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7834125e 7729if test "${ac_cv_header_sys_wait_h+set}" = set; then :
067d23c9
KY
7730 $as_echo_n "(cached) " >&6
7731else
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733/* end confdefs.h. */
7734#include <sys/types.h>
7735#include <sys/wait.h>
7736#ifndef WEXITSTATUS
7737# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7738#endif
7739#ifndef WIFEXITED
7740# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7741#endif
7742
7743int
7744main ()
7745{
7746 int s;
7747 wait (&s);
7748 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753if ac_fn_c_try_compile "$LINENO"; then :
7754 ac_cv_header_sys_wait_h=yes
7755else
7756 ac_cv_header_sys_wait_h=no
7757fi
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7761$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7762if test $ac_cv_header_sys_wait_h = yes; then
7763
7764$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7765
7766fi
7767
7768
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7770$as_echo_n "checking for struct utimbuf... " >&6; }
7834125e 7771if test "${emacs_cv_struct_utimbuf+set}" = set; then :
067d23c9
KY
7772 $as_echo_n "(cached) " >&6
7773else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h. */
7776#ifdef TIME_WITH_SYS_TIME
7777#include <sys/time.h>
7778#include <time.h>
7779#else
7780#ifdef HAVE_SYS_TIME_H
7781#include <sys/time.h>
7782#else
7783#include <time.h>
7784#endif
7785#endif
7786#ifdef HAVE_UTIME_H
7787#include <utime.h>
7788#endif
7789int
7790main ()
7791{
7792static struct utimbuf x; x.actime = x.modtime;
7793 ;
7794 return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_compile "$LINENO"; then :
7798 emacs_cv_struct_utimbuf=yes
7799else
7800 emacs_cv_struct_utimbuf=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7805$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7806if test $emacs_cv_struct_utimbuf = yes; then
7807
7808$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7809
7810fi
7811
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7813$as_echo_n "checking return type of signal handlers... " >&6; }
7834125e 7814if test "${ac_cv_type_signal+set}" = set; then :
067d23c9
KY
7815 $as_echo_n "(cached) " >&6
7816else
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h. */
7819#include <sys/types.h>
7820#include <signal.h>
7821
7822int
7823main ()
7824{
7825return *(signal (0, 0)) (0) == 1;
7826 ;
7827 return 0;
7828}
7829_ACEOF
7830if ac_fn_c_try_compile "$LINENO"; then :
7831 ac_cv_type_signal=int
7832else
7833 ac_cv_type_signal=void
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836fi
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7838$as_echo "$ac_cv_type_signal" >&6; }
7839
7840cat >>confdefs.h <<_ACEOF
7841#define RETSIGTYPE $ac_cv_type_signal
7842_ACEOF
7843
7844
7845
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7847$as_echo_n "checking for speed_t... " >&6; }
7834125e 7848if test "${emacs_cv_speed_t+set}" = set; then :
067d23c9
KY
7849 $as_echo_n "(cached) " >&6
7850else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h. */
7853#include <termios.h>
7854int
7855main ()
7856{
7857speed_t x = 1;
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862if ac_fn_c_try_compile "$LINENO"; then :
7863 emacs_cv_speed_t=yes
7864else
7865 emacs_cv_speed_t=no
7866fi
7867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868fi
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7870$as_echo "$emacs_cv_speed_t" >&6; }
7871if test $emacs_cv_speed_t = yes; then
7872
7873$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7874
7875fi
7876
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7878$as_echo_n "checking for struct timeval... " >&6; }
7834125e 7879if test "${emacs_cv_struct_timeval+set}" = set; then :
067d23c9
KY
7880 $as_echo_n "(cached) " >&6
7881else
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883/* end confdefs.h. */
7884#ifdef TIME_WITH_SYS_TIME
7885#include <sys/time.h>
7886#include <time.h>
7887#else
7888#ifdef HAVE_SYS_TIME_H
7889#include <sys/time.h>
7890#else
7891#include <time.h>
7892#endif
7893#endif
7894int
7895main ()
7896{
7897static struct timeval x; x.tv_sec = x.tv_usec;
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903 emacs_cv_struct_timeval=yes
7904else
7905 emacs_cv_struct_timeval=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7910$as_echo "$emacs_cv_struct_timeval" >&6; }
7911HAVE_TIMEVAL=$emacs_cv_struct_timeval
7912if test $emacs_cv_struct_timeval = yes; then
7913
7914$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7915
7916fi
7917
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7919$as_echo_n "checking for struct exception... " >&6; }
7834125e 7920if test "${emacs_cv_struct_exception+set}" = set; then :
067d23c9
KY
7921 $as_echo_n "(cached) " >&6
7922else
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h. */
7925#include <math.h>
7926int
7927main ()
7928{
7929static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7930 ;
7931 return 0;
7932}
7933_ACEOF
7934if ac_fn_c_try_compile "$LINENO"; then :
7935 emacs_cv_struct_exception=yes
7936else
7937 emacs_cv_struct_exception=no
7938fi
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7942$as_echo "$emacs_cv_struct_exception" >&6; }
7943HAVE_EXCEPTION=$emacs_cv_struct_exception
7944if test $emacs_cv_struct_exception != yes; then
7945
7946$as_echo "#define NO_MATHERR 1" >>confdefs.h
7947
7948fi
7949
7950for ac_header in sys/socket.h
7951do :
7952 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7834125e 7953if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
067d23c9
KY
7954 cat >>confdefs.h <<_ACEOF
7955#define HAVE_SYS_SOCKET_H 1
7956_ACEOF
7957
7958fi
7959
7960done
7961
7962for ac_header in net/if.h
7963do :
7964 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7965#if HAVE_SYS_SOCKET_H
7966#include <sys/socket.h>
7967#endif
7968"
7834125e 7969if test "x$ac_cv_header_net_if_h" = x""yes; then :
067d23c9
KY
7970 cat >>confdefs.h <<_ACEOF
7971#define HAVE_NET_IF_H 1
7972_ACEOF
7973
7974fi
7975
7976done
7977
7978
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7980$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7834125e 7981if test "${ac_cv_struct_tm+set}" = set; then :
067d23c9
KY
7982 $as_echo_n "(cached) " >&6
7983else
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h. */
7986#include <sys/types.h>
7987#include <time.h>
7988
7989int
7990main ()
7991{
7992struct tm tm;
7993 int *p = &tm.tm_sec;
7994 return !p;
7995 ;
7996 return 0;
7997}
7998_ACEOF
7999if ac_fn_c_try_compile "$LINENO"; then :
8000 ac_cv_struct_tm=time.h
8001else
8002 ac_cv_struct_tm=sys/time.h
8003fi
8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8007$as_echo "$ac_cv_struct_tm" >&6; }
8008if test $ac_cv_struct_tm = sys/time.h; then
8009
8010$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8011
8012fi
8013
8014ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8015#include <$ac_cv_struct_tm>
8016
8017"
7834125e 8018if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
067d23c9
KY
8019
8020cat >>confdefs.h <<_ACEOF
8021#define HAVE_STRUCT_TM_TM_ZONE 1
8022_ACEOF
8023
8024
8025fi
8026
8027if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8028
8029$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8030
8031else
8032 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8033"
7834125e 8034if test "x$ac_cv_have_decl_tzname" = x""yes; then :
067d23c9
KY
8035 ac_have_decl=1
8036else
8037 ac_have_decl=0
8038fi
8039
8040cat >>confdefs.h <<_ACEOF
8041#define HAVE_DECL_TZNAME $ac_have_decl
8042_ACEOF
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8045$as_echo_n "checking for tzname... " >&6; }
7834125e 8046if test "${ac_cv_var_tzname+set}" = set; then :
067d23c9
KY
8047 $as_echo_n "(cached) " >&6
8048else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050/* end confdefs.h. */
8051#include <time.h>
8052#if !HAVE_DECL_TZNAME
8053extern char *tzname[];
8054#endif
8055
8056int
8057main ()
8058{
8059return tzname[0][0];
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064if ac_fn_c_try_link "$LINENO"; then :
8065 ac_cv_var_tzname=yes
8066else
8067 ac_cv_var_tzname=no
8068fi
8069rm -f core conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071fi
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8073$as_echo "$ac_cv_var_tzname" >&6; }
8074 if test $ac_cv_var_tzname = yes; then
8075
8076$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8077
8078 fi
8079fi
8080
8081ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8082"
7834125e 8083if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
067d23c9
KY
8084
8085$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8086
8087fi
8088
8089ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8090#if HAVE_SYS_SOCKET_H
8091#include <sys/socket.h>
8092#endif
8093#if HAVE_NET_IF_H
8094#include <net/if.h>
8095#endif
8096"
7834125e 8097if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
067d23c9
KY
8098
8099cat >>confdefs.h <<_ACEOF
8100#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8101_ACEOF
8102
8103
8104fi
8105ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8106#if HAVE_SYS_SOCKET_H
8107#include <sys/socket.h>
8108#endif
8109#if HAVE_NET_IF_H
8110#include <net/if.h>
8111#endif
8112"
7834125e 8113if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
067d23c9
KY
8114
8115cat >>confdefs.h <<_ACEOF
8116#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8117_ACEOF
8118
8119
8120fi
8121ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8122#if HAVE_SYS_SOCKET_H
8123#include <sys/socket.h>
8124#endif
8125#if HAVE_NET_IF_H
8126#include <net/if.h>
8127#endif
8128"
7834125e 8129if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
067d23c9
KY
8130
8131cat >>confdefs.h <<_ACEOF
8132#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8133_ACEOF
8134
8135
8136fi
8137ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8138#if HAVE_SYS_SOCKET_H
8139#include <sys/socket.h>
8140#endif
8141#if HAVE_NET_IF_H
8142#include <net/if.h>
8143#endif
8144"
7834125e 8145if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
067d23c9
KY
8146
8147cat >>confdefs.h <<_ACEOF
8148#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8149_ACEOF
8150
8151
8152fi
8153ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8154#if HAVE_SYS_SOCKET_H
8155#include <sys/socket.h>
8156#endif
8157#if HAVE_NET_IF_H
8158#include <net/if.h>
8159#endif
8160"
7834125e 8161if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
067d23c9
KY
8162
8163cat >>confdefs.h <<_ACEOF
8164#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8165_ACEOF
8166
8167
8168fi
8169
8170
8171
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8173$as_echo_n "checking for function prototypes... " >&6; }
8174if test "$ac_cv_prog_cc_c89" != no; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8176$as_echo "yes" >&6; }
8177
8178$as_echo "#define PROTOTYPES 1" >>confdefs.h
8179
8180
8181$as_echo "#define __PROTOTYPES 1" >>confdefs.h
8182
8183else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185$as_echo "no" >&6; }
8186fi
8187
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8189$as_echo_n "checking for working volatile... " >&6; }
7834125e 8190if test "${ac_cv_c_volatile+set}" = set; then :
067d23c9
KY
8191 $as_echo_n "(cached) " >&6
8192else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194/* end confdefs.h. */
8195
8196int
8197main ()
8198{
8199
8200volatile int x;
8201int * volatile y = (int *) 0;
8202return !x && !y;
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207if ac_fn_c_try_compile "$LINENO"; then :
8208 ac_cv_c_volatile=yes
8209else
8210 ac_cv_c_volatile=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213fi
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8215$as_echo "$ac_cv_c_volatile" >&6; }
8216if test $ac_cv_c_volatile = no; then
8217
8218$as_echo "#define volatile /**/" >>confdefs.h
8219
8220fi
8221
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8223$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7834125e 8224if test "${ac_cv_c_const+set}" = set; then :
067d23c9
KY
8225 $as_echo_n "(cached) " >&6
8226else
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h. */
8229
8230int
8231main ()
8232{
8233/* FIXME: Include the comments suggested by Paul. */
8234#ifndef __cplusplus
8235 /* Ultrix mips cc rejects this. */
8236 typedef int charset[2];
8237 const charset cs;
8238 /* SunOS 4.1.1 cc rejects this. */
8239 char const *const *pcpcc;
8240 char **ppc;
8241 /* NEC SVR4.0.2 mips cc rejects this. */
8242 struct point {int x, y;};
8243 static struct point const zero = {0,0};
8244 /* AIX XL C 1.02.0.0 rejects this.
8245 It does not let you subtract one const X* pointer from another in
8246 an arm of an if-expression whose if-part is not a constant
8247 expression */
8248 const char *g = "string";
8249 pcpcc = &g + (g ? g-g : 0);
8250 /* HPUX 7.0 cc rejects these. */
8251 ++pcpcc;
8252 ppc = (char**) pcpcc;
8253 pcpcc = (char const *const *) ppc;
8254 { /* SCO 3.2v4 cc rejects this. */
8255 char *t;
8256 char const *s = 0 ? (char *) 0 : (char const *) 0;
8257
8258 *t++ = 0;
8259 if (s) return 0;
8260 }
8261 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8262 int x[] = {25, 17};
8263 const int *foo = &x[0];
8264 ++foo;
8265 }
8266 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8267 typedef const int *iptr;
8268 iptr p = 0;
8269 ++p;
8270 }
8271 { /* AIX XL C 1.02.0.0 rejects this saying
8272 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8273 struct s { int j; const int *ap[3]; };
8274 struct s *b; b->j = 5;
8275 }
8276 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8277 const int foo = 10;
8278 if (!foo) return 0;
8279 }
8280 return !cs[0] && !zero.x;
8281#endif
8282
8283 ;
8284 return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_compile "$LINENO"; then :
8288 ac_cv_c_const=yes
8289else
8290 ac_cv_c_const=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8295$as_echo "$ac_cv_c_const" >&6; }
8296if test $ac_cv_c_const = no; then
8297
8298$as_echo "#define const /**/" >>confdefs.h
8299
8300fi
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8303$as_echo_n "checking for void * support... " >&6; }
7834125e 8304if test "${emacs_cv_void_star+set}" = set; then :
067d23c9
KY
8305 $as_echo_n "(cached) " >&6
8306else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h. */
8309
8310int
8311main ()
8312{
8313void * foo;
8314 ;
8315 return 0;
8316}
8317_ACEOF
8318if ac_fn_c_try_compile "$LINENO"; then :
8319 emacs_cv_void_star=yes
8320else
8321 emacs_cv_void_star=no
8322fi
8323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324fi
8325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8326$as_echo "$emacs_cv_void_star" >&6; }
8327if test $emacs_cv_void_star = yes; then
8328 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8329
8330else
8331 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8332
8333fi
8334
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8336$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7834125e 8337if test "${ac_cv_c_bigendian+set}" = set; then :
067d23c9
KY
8338 $as_echo_n "(cached) " >&6
8339else
8340 ac_cv_c_bigendian=unknown
8341 # See if we're dealing with a universal compiler.
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h. */
8344#ifndef __APPLE_CC__
8345 not a universal capable compiler
8346 #endif
8347 typedef int dummy;
8348
8349_ACEOF
8350if ac_fn_c_try_compile "$LINENO"; then :
8351
8352 # Check for potential -arch flags. It is not universal unless
8353 # there are at least two -arch flags with different values.
8354 ac_arch=
8355 ac_prev=
8356 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8357 if test -n "$ac_prev"; then
8358 case $ac_word in
8359 i?86 | x86_64 | ppc | ppc64)
8360 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8361 ac_arch=$ac_word
8362 else
8363 ac_cv_c_bigendian=universal
8364 break
8365 fi
8366 ;;
8367 esac
8368 ac_prev=
8369 elif test "x$ac_word" = "x-arch"; then
8370 ac_prev=arch
8371 fi
8372 done
8373fi
8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 if test $ac_cv_c_bigendian = unknown; then
8376 # See if sys/param.h defines the BYTE_ORDER macro.
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h. */
8379#include <sys/types.h>
8380 #include <sys/param.h>
8381
8382int
8383main ()
8384{
8385#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8386 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8387 && LITTLE_ENDIAN)
8388 bogus endian macros
8389 #endif
8390
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395if ac_fn_c_try_compile "$LINENO"; then :
8396 # It does; now see whether it defined to BIG_ENDIAN or not.
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h. */
8399#include <sys/types.h>
8400 #include <sys/param.h>
8401
8402int
8403main ()
8404{
8405#if BYTE_ORDER != BIG_ENDIAN
8406 not big endian
8407 #endif
8408
8409 ;
8410 return 0;
8411}
8412_ACEOF
8413if ac_fn_c_try_compile "$LINENO"; then :
8414 ac_cv_c_bigendian=yes
8415else
8416 ac_cv_c_bigendian=no
8417fi
8418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419fi
8420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 if test $ac_cv_c_bigendian = unknown; then
8423 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h. */
8426#include <limits.h>
8427
8428int
8429main ()
8430{
8431#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8432 bogus endian macros
8433 #endif
8434
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439if ac_fn_c_try_compile "$LINENO"; then :
8440 # It does; now see whether it defined to _BIG_ENDIAN or not.
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442/* end confdefs.h. */
8443#include <limits.h>
8444
8445int
8446main ()
8447{
8448#ifndef _BIG_ENDIAN
8449 not big endian
8450 #endif
8451
8452 ;
8453 return 0;
8454}
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"; then :
8457 ac_cv_c_bigendian=yes
8458else
8459 ac_cv_c_bigendian=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi
8463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 fi
8465 if test $ac_cv_c_bigendian = unknown; then
8466 # Compile a test program.
8467 if test "$cross_compiling" = yes; then :
8468 # Try to guess by grepping values from an object file.
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h. */
8471short int ascii_mm[] =
8472 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8473 short int ascii_ii[] =
8474 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8475 int use_ascii (int i) {
8476 return ascii_mm[i] + ascii_ii[i];
8477 }
8478 short int ebcdic_ii[] =
8479 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8480 short int ebcdic_mm[] =
8481 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8482 int use_ebcdic (int i) {
8483 return ebcdic_mm[i] + ebcdic_ii[i];
8484 }
8485 extern int foo;
8486
8487int
8488main ()
8489{
8490return use_ascii (foo) == use_ebcdic (foo);
8491 ;
8492 return 0;
8493}
8494_ACEOF
8495if ac_fn_c_try_compile "$LINENO"; then :
8496 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8497 ac_cv_c_bigendian=yes
8498 fi
8499 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8500 if test "$ac_cv_c_bigendian" = unknown; then
8501 ac_cv_c_bigendian=no
8502 else
8503 # finding both strings is unlikely to happen, but who knows?
8504 ac_cv_c_bigendian=unknown
8505 fi
8506 fi
8507fi
8508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509else
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h. */
8512$ac_includes_default
8513int
8514main ()
8515{
8516
8517 /* Are we little or big endian? From Harbison&Steele. */
8518 union
8519 {
8520 long int l;
8521 char c[sizeof (long int)];
8522 } u;
8523 u.l = 1;
8524 return u.c[sizeof (long int) - 1] == 1;
8525
8526 ;
8527 return 0;
8528}
8529_ACEOF
8530if ac_fn_c_try_run "$LINENO"; then :
8531 ac_cv_c_bigendian=no
8532else
8533 ac_cv_c_bigendian=yes
8534fi
8535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8536 conftest.$ac_objext conftest.beam conftest.$ac_ext
8537fi
8538
8539 fi
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8542$as_echo "$ac_cv_c_bigendian" >&6; }
8543 case $ac_cv_c_bigendian in #(
8544 yes)
8545 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8546;; #(
8547 no)
8548 ;; #(
8549 universal)
8550
8551$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8552
8553 ;; #(
8554 *)
0afb4571
J
8555 as_fn_error "unknown endianness
8556 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8557 esac
8558
8559
7cae64b4
PE
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8561$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
7834125e 8562if test "${emacs_cv_attribute_aligned+set}" = set; then :
7cae64b4
PE
8563 $as_echo_n "(cached) " >&6
8564else
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h. */
8567char __attribute__ ((__aligned__ (1 << 3))) c;
8568int
8569main ()
8570{
8571
8572 ;
8573 return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_compile "$LINENO"; then :
8577 emacs_cv_attribute_aligned=yes
8578else
8579 emacs_cv_attribute_aligned=no
8580fi
8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582fi
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8584$as_echo "$emacs_cv_attribute_aligned" >&6; }
8585if test $emacs_cv_attribute_aligned = yes; then
8586
8587$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8588
8589fi
8590
067d23c9
KY
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8592$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8593set x ${MAKE-make}
8594ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
0afb4571 8595if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
067d23c9
KY
8596 $as_echo_n "(cached) " >&6
8597else
8598 cat >conftest.make <<\_ACEOF
8599SHELL = /bin/sh
8600all:
8601 @echo '@@@%%%=$(MAKE)=@@@%%%'
8602_ACEOF
0afb4571 8603# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
067d23c9
KY
8604case `${MAKE-make} -f conftest.make 2>/dev/null` in
8605 *@@@%%%=?*=@@@%%%*)
8606 eval ac_cv_prog_make_${ac_make}_set=yes;;
8607 *)
8608 eval ac_cv_prog_make_${ac_make}_set=no;;
8609esac
8610rm -f conftest.make
8611fi
8612if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8614$as_echo "yes" >&6; }
8615 SET_MAKE=
8616else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618$as_echo "no" >&6; }
8619 SET_MAKE="MAKE=${MAKE-make}"
8620fi
8621
8622
8623DEPFLAGS=
8624MKDEPDIR=":"
8625deps_frag=deps.mk
8626if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8628$as_echo_n "checking whether we are using GNU Make... " >&6; }
8629 HAVE_GNU_MAKE=no
8630 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8631 if test "x$testval" != x; then
8632 HAVE_GNU_MAKE=yes
8633 else
8634 ac_enable_autodepend=no
8635 fi
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8637$as_echo "$HAVE_GNU_MAKE" >&6; }
8638 if test $HAVE_GNU_MAKE = yes; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8640$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8641 SAVE_CFLAGS="$CFLAGS"
8642 CFLAGS="$CFLAGS -MMD -MF deps.d"
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h. */
8645
8646int
8647main ()
8648{
8649
8650 ;
8651 return 0;
8652}
8653_ACEOF
8654if ac_fn_c_try_compile "$LINENO"; then :
8655
8656else
8657 ac_enable_autodepend=no
8658fi
8659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 CFLAGS="$SAVE_CFLAGS"
8661 test -f deps.d || ac_enable_autodepend=no
8662 rm -rf deps.d
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8664$as_echo "$ac_enable_autodepend" >&6; }
8665 fi
8666 if test $ac_enable_autodepend = yes; then
8667 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8668 ## In parallel builds, another make might create depdir between
8669 ## the first test and mkdir, so stick another test on the end.
8670 ## Or use mkinstalldirs? mkdir -p is not portable.
8671 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8672 deps_frag=autodeps.mk
8673 fi
8674fi
8675deps_frag=$srcdir/src/$deps_frag
8676
8677
8678
8679
8680
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8682$as_echo_n "checking for long file names... " >&6; }
7834125e 8683if test "${ac_cv_sys_long_file_names+set}" = set; then :
067d23c9
KY
8684 $as_echo_n "(cached) " >&6
8685else
8686 ac_cv_sys_long_file_names=yes
8687# Test for long file names in all the places we know might matter:
8688# . the current directory, where building will happen
8689# $prefix/lib where we will be installing things
8690# $exec_prefix/lib likewise
8691# $TMPDIR if set, where it might want to write temporary files
8692# /tmp where it might want to write temporary files
8693# /var/tmp likewise
8694# /usr/tmp likewise
8695for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8696 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8697 # in the usual case where exec_prefix is '${prefix}'.
8698 case $ac_dir in #(
8699 . | /* | ?:[\\/]*) ;; #(
8700 *) continue;;
8701 esac
8702 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8703 ac_xdir=$ac_dir/cf$$
8704 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8705 ac_tf1=$ac_xdir/conftest9012345
8706 ac_tf2=$ac_xdir/conftest9012346
8707 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8708 ac_cv_sys_long_file_names=no
8709 rm -f -r "$ac_xdir" 2>/dev/null
8710 test $ac_cv_sys_long_file_names = no && break
8711done
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8714$as_echo "$ac_cv_sys_long_file_names" >&6; }
8715if test $ac_cv_sys_long_file_names = yes; then
8716
8717$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8718
8719fi
8720
8721
8722#### Choose a window system.
8723
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8725$as_echo_n "checking for X... " >&6; }
8726
8727
8728# Check whether --with-x was given.
8729if test "${with_x+set}" = set; then :
8730 withval=$with_x;
8731fi
8732
8733# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8734if test "x$with_x" = xno; then
8735 # The user explicitly disabled X.
8736 have_x=disabled
8737else
8738 case $x_includes,$x_libraries in #(
0afb4571 8739 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7834125e 8740 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
067d23c9
KY
8741 $as_echo_n "(cached) " >&6
8742else
8743 # One or both of the vars are not set, and there is no cached value.
8744ac_x_includes=no ac_x_libraries=no
8745rm -f -r conftest.dir
8746if mkdir conftest.dir; then
8747 cd conftest.dir
8748 cat >Imakefile <<'_ACEOF'
8749incroot:
8750 @echo incroot='${INCROOT}'
8751usrlibdir:
8752 @echo usrlibdir='${USRLIBDIR}'
8753libdir:
8754 @echo libdir='${LIBDIR}'
8755_ACEOF
8756 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
0afb4571 8757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
067d23c9
KY
8758 for ac_var in incroot usrlibdir libdir; do
8759 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8760 done
8761 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8762 for ac_extension in a so sl dylib la dll; do
8763 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8764 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8765 ac_im_usrlibdir=$ac_im_libdir; break
8766 fi
8767 done
8768 # Screen out bogus values from the imake configuration. They are
8769 # bogus both because they are the default anyway, and because
8770 # using them would break gcc on systems where it needs fixed includes.
8771 case $ac_im_incroot in
8772 /usr/include) ac_x_includes= ;;
8773 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8774 esac
8775 case $ac_im_usrlibdir in
8776 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8777 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8778 esac
8779 fi
8780 cd ..
8781 rm -f -r conftest.dir
8782fi
8783
8784# Standard set of common directories for X headers.
8785# Check X11 before X11Rn because it is often a symlink to the current release.
8786ac_x_header_dirs='
8787/usr/X11/include
8788/usr/X11R7/include
8789/usr/X11R6/include
8790/usr/X11R5/include
8791/usr/X11R4/include
8792
8793/usr/include/X11
8794/usr/include/X11R7
8795/usr/include/X11R6
8796/usr/include/X11R5
8797/usr/include/X11R4
8798
8799/usr/local/X11/include
8800/usr/local/X11R7/include
8801/usr/local/X11R6/include
8802/usr/local/X11R5/include
8803/usr/local/X11R4/include
8804
8805/usr/local/include/X11
8806/usr/local/include/X11R7
8807/usr/local/include/X11R6
8808/usr/local/include/X11R5
8809/usr/local/include/X11R4
8810
8811/usr/X386/include
8812/usr/x386/include
8813/usr/XFree86/include/X11
8814
8815/usr/include
8816/usr/local/include
8817/usr/unsupported/include
8818/usr/athena/include
8819/usr/local/x11r5/include
8820/usr/lpp/Xamples/include
8821
8822/usr/openwin/include
8823/usr/openwin/share/include'
8824
8825if test "$ac_x_includes" = no; then
8826 # Guess where to find include files, by looking for Xlib.h.
8827 # First, try using that file with no special directory specified.
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h. */
8830#include <X11/Xlib.h>
8831_ACEOF
8832if ac_fn_c_try_cpp "$LINENO"; then :
8833 # We can compile using X headers with no special include directory.
8834ac_x_includes=
8835else
8836 for ac_dir in $ac_x_header_dirs; do
8837 if test -r "$ac_dir/X11/Xlib.h"; then
8838 ac_x_includes=$ac_dir
8839 break
8840 fi
8841done
8842fi
0afb4571 8843rm -f conftest.err conftest.$ac_ext
067d23c9
KY
8844fi # $ac_x_includes = no
8845
8846if test "$ac_x_libraries" = no; then
8847 # Check for the libraries.
8848 # See if we find them without any special options.
8849 # Don't add to $LIBS permanently.
8850 ac_save_LIBS=$LIBS
8851 LIBS="-lX11 $LIBS"
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h. */
8854#include <X11/Xlib.h>
8855int
8856main ()
8857{
8858XrmInitialize ()
8859 ;
8860 return 0;
8861}
8862_ACEOF
8863if ac_fn_c_try_link "$LINENO"; then :
8864 LIBS=$ac_save_LIBS
8865# We can link X programs with no special library path.
8866ac_x_libraries=
8867else
8868 LIBS=$ac_save_LIBS
8869for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8870do
8871 # Don't even attempt the hair of trying to link an X program!
8872 for ac_extension in a so sl dylib la dll; do
8873 if test -r "$ac_dir/libX11.$ac_extension"; then
8874 ac_x_libraries=$ac_dir
8875 break 2
8876 fi
8877 done
8878done
8879fi
8880rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882fi # $ac_x_libraries = no
8883
8884case $ac_x_includes,$ac_x_libraries in #(
8885 no,* | *,no | *\'*)
8886 # Didn't find X, or a directory has "'" in its name.
8887 ac_cv_have_x="have_x=no";; #(
8888 *)
8889 # Record where we found X for the cache.
8890 ac_cv_have_x="have_x=yes\
8891 ac_x_includes='$ac_x_includes'\
8892 ac_x_libraries='$ac_x_libraries'"
8893esac
8894fi
8895;; #(
8896 *) have_x=yes;;
8897 esac
8898 eval "$ac_cv_have_x"
8899fi # $with_x != no
8900
8901if test "$have_x" != yes; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8903$as_echo "$have_x" >&6; }
8904 no_x=yes
8905else
8906 # If each of the values was on the command line, it overrides each guess.
8907 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8908 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8909 # Update the cache value to reflect the command line values.
8910 ac_cv_have_x="have_x=yes\
8911 ac_x_includes='$x_includes'\
8912 ac_x_libraries='$x_libraries'"
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8914$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8915fi
8916
8917if test "$no_x" = yes; then
8918 window_system=none
8919else
8920 window_system=x11
8921fi
8922
8923## Workaround for bug in autoconf <= 2.62.
8924## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8925## No need to do anything special for these standard directories.
8926if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8927
8928 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8929
8930fi
8931
8932LD_SWITCH_X_SITE_AUX=
8933LD_SWITCH_X_SITE_AUX_RPATH=
8934if test "${x_libraries}" != NONE; then
8935 if test -n "${x_libraries}"; then
8936 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8937 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8938 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8939 fi
8940 x_default_search_path=""
8941 x_search_path=${x_libraries}
8942 if test -z "${x_search_path}"; then
8943 x_search_path=/usr/lib
8944 fi
8945 for x_library in `echo ${x_search_path}: | \
8946 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8947 x_search_path="\
8948${x_library}/X11/%L/%T/%N%C%S:\
8949${x_library}/X11/%l/%T/%N%C%S:\
8950${x_library}/X11/%T/%N%C%S:\
8951${x_library}/X11/%L/%T/%N%S:\
8952${x_library}/X11/%l/%T/%N%S:\
8953${x_library}/X11/%T/%N%S"
8954 if test x"${x_default_search_path}" = x; then
8955 x_default_search_path=${x_search_path}
8956 else
8957 x_default_search_path="${x_search_path}:${x_default_search_path}"
8958 fi
8959 done
8960fi
8961
8962
8963
8964if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8965 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8966fi
8967
8968if test x"${x_includes}" = x; then
8969 bitmapdir=/usr/include/X11/bitmaps
8970else
8971 # accumulate include directories that have X11 bitmap subdirectories
8972 bmd_acc="dummyval"
8973 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8974 if test -d "${bmd}/X11/bitmaps"; then
8975 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8976 fi
8977 if test -d "${bmd}/bitmaps"; then
8978 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8979 fi
8980 done
8981 if test ${bmd_acc} != "dummyval"; then
8982 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8983 fi
8984fi
8985
8986HAVE_NS=no
8987NS_IMPL_COCOA=no
8988NS_IMPL_GNUSTEP=no
8989tmp_CPPFLAGS="$CPPFLAGS"
8990tmp_CFLAGS="$CFLAGS"
8991CPPFLAGS="$CPPFLAGS -x objective-c"
8992CFLAGS="$CFLAGS -x objective-c"
8993TEMACS_LDFLAGS2="\${LDFLAGS}"
8994if test "${with_ns}" != no; then
8995 if test "${opsys}" = darwin; then
8996 NS_IMPL_COCOA=yes
8997 ns_appdir=`pwd`/nextstep/Emacs.app
8998 ns_appbindir=${ns_appdir}/Contents/MacOS/
8999 ns_appresdir=${ns_appdir}/Contents/Resources
9000 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9001 elif test -f $GNUSTEP_CONFIG_FILE; then
9002 NS_IMPL_GNUSTEP=yes
9003 ns_appdir=`pwd`/nextstep/Emacs.app
9004 ns_appbindir=${ns_appdir}/
9005 ns_appresdir=${ns_appdir}/Resources
9006 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9007 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9008 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9009 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9010 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9011 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9012 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9013 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9014 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9015 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9016 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9017 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9018 LIB_STANDARD=
9019 START_FILES=
9020 TEMACS_LDFLAGS2=
9021 fi
9022 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7834125e 9023if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
067d23c9
KY
9024 HAVE_NS=yes
9025else
0afb4571 9026 as_fn_error "\`--with-ns' was specified, but the include
067d23c9
KY
9027 files are missing or cannot be compiled." "$LINENO" 5
9028fi
9029
9030
9031 NS_HAVE_NSINTEGER=yes
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h. */
9034#include <Foundation/NSObjCRuntime.h>
9035int
9036main ()
9037{
9038NSInteger i;
9039 ;
9040 return 0;
9041}
9042_ACEOF
9043if ac_fn_c_try_compile "$LINENO"; then :
9044 ns_have_nsinteger=yes
9045else
9046 ns_have_nsinteger=no
9047fi
9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 if test $ns_have_nsinteger = no; then
9050 NS_HAVE_NSINTEGER=no
9051 fi
9052fi
9053
9054
9055ns_frag=/dev/null
9056NS_OBJ=
00b3c7ac 9057NS_OBJC_OBJ=
067d23c9
KY
9058NS_SUPPORT=
9059if test "${HAVE_NS}" = yes; then
9060 window_system=nextstep
9061 with_xft=no
9062 # set up packaging dirs
9063 exec_prefix=${ns_appbindir}
9064 libexecdir=${ns_appbindir}/libexec
9065 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9066 prefix=${ns_appresdir}
9067 fi
9068 ns_frag=$srcdir/src/ns.mk
00b3c7ac
TT
9069 NS_OBJ="fontset.o fringe.o image.o"
9070 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
067d23c9
KY
9071 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9072fi
9073CFLAGS="$tmp_CFLAGS"
9074CPPFLAGS="$tmp_CPPFLAGS"
9075
9076
9077
9078
9079
00b3c7ac 9080
067d23c9
KY
9081case "${window_system}" in
9082 x11 )
9083 HAVE_X_WINDOWS=yes
9084 HAVE_X11=yes
9085 case "${with_x_toolkit}" in
9086 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9087 motif ) USE_X_TOOLKIT=MOTIF ;;
9088 gtk ) with_gtk=yes
9089 USE_X_TOOLKIT=none ;;
9090 gtk3 ) with_gtk3=yes
9091 USE_X_TOOLKIT=none ;;
9092 no ) USE_X_TOOLKIT=none ;;
9093 * ) USE_X_TOOLKIT=maybe ;;
9094 esac
9095 ;;
9096 nextstep | none )
9097 HAVE_X_WINDOWS=no
9098 HAVE_X11=no
9099 USE_X_TOOLKIT=none
9100 ;;
9101esac
9102
9103if test "$window_system" = none && test "X$with_x" != "Xno"; then
9104 # Extract the first word of "X", so it can be a program name with args.
9105set dummy X; ac_word=$2
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107$as_echo_n "checking for $ac_word... " >&6; }
7834125e 9108if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
067d23c9
KY
9109 $as_echo_n "(cached) " >&6
9110else
9111 if test -n "$HAVE_XSERVER"; then
9112 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9113else
9114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115for as_dir in $PATH
9116do
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9121 ac_cv_prog_HAVE_XSERVER="true"
9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 break 2
9124 fi
9125done
9126 done
9127IFS=$as_save_IFS
9128
9129 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9130fi
9131fi
9132HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9133if test -n "$HAVE_XSERVER"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9135$as_echo "$HAVE_XSERVER" >&6; }
9136else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
9139fi
9140
9141
9142 if test "$HAVE_XSERVER" = true ||
9143 test -n "$DISPLAY" ||
9144 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
0afb4571 9145 as_fn_error "You seem to be running X, but no X development libraries
067d23c9
KY
9146were found. You should install the relevant development files for X
9147and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9148sure you have development files for image handling, i.e.
9149tiff, gif, jpeg, png and xpm.
9150If you are sure you want Emacs compiled without X window support, pass
9151 --without-x
9152to configure." "$LINENO" 5
9153 fi
9154fi
9155
9156### If we're using X11, we should use the X menu package.
9157HAVE_MENUS=no
9158case ${HAVE_X11} in
9159 yes ) HAVE_MENUS=yes ;;
9160esac
9161
9162# Do the opsystem or machine files prohibit the use of the GNU malloc?
9163# Assume not, until told otherwise.
9164GNU_MALLOC=yes
9165doug_lea_malloc=yes
9166ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7834125e 9167if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
067d23c9
KY
9168
9169else
9170 doug_lea_malloc=no
9171fi
9172
9173ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7834125e 9174if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
067d23c9
KY
9175
9176else
9177 doug_lea_malloc=no
9178fi
9179
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9181$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7834125e 9182if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
067d23c9
KY
9183 $as_echo_n "(cached) " >&6
9184else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h. */
9187extern void (* __after_morecore_hook)();
9188int
9189main ()
9190{
9191__after_morecore_hook = 0
9192 ;
9193 return 0;
9194}
9195_ACEOF
9196if ac_fn_c_try_link "$LINENO"; then :
9197 emacs_cv_var___after_morecore_hook=yes
9198else
9199 emacs_cv_var___after_morecore_hook=no
9200fi
9201rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9205$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9206if test $emacs_cv_var___after_morecore_hook = no; then
9207 doug_lea_malloc=no
9208fi
9209
9210
9211system_malloc=no
9212case "$opsys" in
9213 ## darwin ld insists on the use of malloc routines in the System framework.
9214 darwin|sol2-10) system_malloc=yes ;;
9215esac
9216
9217if test "${system_malloc}" = "yes"; then
9218
9219$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9220
9221 GNU_MALLOC=no
9222 GNU_MALLOC_reason="
9223 (The GNU allocators don't work with this system configuration.)"
9224 GMALLOC_OBJ=
9225 VMLIMIT_OBJ=
9226else
9227 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9228 VMLIMIT_OBJ=vm-limit.o
9229fi
9230
9231
9232
9233if test "$doug_lea_malloc" = "yes" ; then
9234 if test "$GNU_MALLOC" = yes ; then
9235 GNU_MALLOC_reason="
9236 (Using Doug Lea's new malloc from the GNU C Library.)"
9237 fi
9238
9239$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9240
9241
9242 ## Use mmap directly for allocating larger buffers.
9243 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9244 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9245 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9246 case "$opsys" in
9247 gnu*) REL_ALLOC=no ;;
9248 esac
9249fi
9250
9251if test x"${REL_ALLOC}" = x; then
9252 REL_ALLOC=${GNU_MALLOC}
9253fi
9254
9255use_mmap_for_buffers=no
9256case "$opsys" in
9257 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9258esac
9259
9260
9261
9262
9263 for ac_header in $ac_header_list
9264do :
9265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9266ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9267"
0afb4571
J
9268eval as_val=\$$as_ac_Header
9269 if test "x$as_val" = x""yes; then :
067d23c9
KY
9270 cat >>confdefs.h <<_ACEOF
9271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9272_ACEOF
9273
9274fi
9275
9276done
9277
9278
9279
9280
9281
9282
9283
9284
9285for ac_func in getpagesize
9286do :
9287 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7834125e 9288if test "x$ac_cv_func_getpagesize" = x""yes; then :
067d23c9
KY
9289 cat >>confdefs.h <<_ACEOF
9290#define HAVE_GETPAGESIZE 1
9291_ACEOF
9292
9293fi
9294done
9295
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9297$as_echo_n "checking for working mmap... " >&6; }
7834125e 9298if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
067d23c9
KY
9299 $as_echo_n "(cached) " >&6
9300else
9301 if test "$cross_compiling" = yes; then :
9302 ac_cv_func_mmap_fixed_mapped=no
9303else
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h. */
9306$ac_includes_default
9307/* malloc might have been renamed as rpl_malloc. */
9308#undef malloc
9309
9310/* Thanks to Mike Haertel and Jim Avera for this test.
9311 Here is a matrix of mmap possibilities:
9312 mmap private not fixed
9313 mmap private fixed at somewhere currently unmapped
9314 mmap private fixed at somewhere already mapped
9315 mmap shared not fixed
9316 mmap shared fixed at somewhere currently unmapped
9317 mmap shared fixed at somewhere already mapped
9318 For private mappings, we should verify that changes cannot be read()
9319 back from the file, nor mmap's back from the file at a different
9320 address. (There have been systems where private was not correctly
9321 implemented like the infamous i386 svr4.0, and systems where the
9322 VM page cache was not coherent with the file system buffer cache
9323 like early versions of FreeBSD and possibly contemporary NetBSD.)
9324 For shared mappings, we should conversely verify that changes get
9325 propagated back to all the places they're supposed to be.
9326
9327 Grep wants private fixed already mapped.
9328 The main things grep needs to know about mmap are:
9329 * does it exist and is it safe to write into the mmap'd area
9330 * how to use it (BSD variants) */
9331
9332#include <fcntl.h>
9333#include <sys/mman.h>
9334
9335#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9336char *malloc ();
9337#endif
9338
9339/* This mess was copied from the GNU getpagesize.h. */
9340#ifndef HAVE_GETPAGESIZE
9341# ifdef _SC_PAGESIZE
9342# define getpagesize() sysconf(_SC_PAGESIZE)
9343# else /* no _SC_PAGESIZE */
9344# ifdef HAVE_SYS_PARAM_H
9345# include <sys/param.h>
9346# ifdef EXEC_PAGESIZE
9347# define getpagesize() EXEC_PAGESIZE
9348# else /* no EXEC_PAGESIZE */
9349# ifdef NBPG
9350# define getpagesize() NBPG * CLSIZE
9351# ifndef CLSIZE
9352# define CLSIZE 1
9353# endif /* no CLSIZE */
9354# else /* no NBPG */
9355# ifdef NBPC
9356# define getpagesize() NBPC
9357# else /* no NBPC */
9358# ifdef PAGESIZE
9359# define getpagesize() PAGESIZE
9360# endif /* PAGESIZE */
9361# endif /* no NBPC */
9362# endif /* no NBPG */
9363# endif /* no EXEC_PAGESIZE */
9364# else /* no HAVE_SYS_PARAM_H */
9365# define getpagesize() 8192 /* punt totally */
9366# endif /* no HAVE_SYS_PARAM_H */
9367# endif /* no _SC_PAGESIZE */
9368
9369#endif /* no HAVE_GETPAGESIZE */
9370
9371int
9372main ()
9373{
9374 char *data, *data2, *data3;
9375 int i, pagesize;
9376 int fd, fd2;
9377
9378 pagesize = getpagesize ();
9379
9380 /* First, make a file with some known garbage in it. */
9381 data = (char *) malloc (pagesize);
9382 if (!data)
9383 return 1;
9384 for (i = 0; i < pagesize; ++i)
9385 *(data + i) = rand ();
9386 umask (0);
9387 fd = creat ("conftest.mmap", 0600);
9388 if (fd < 0)
9389 return 2;
9390 if (write (fd, data, pagesize) != pagesize)
9391 return 3;
9392 close (fd);
9393
9394 /* Next, check that the tail of a page is zero-filled. File must have
9395 non-zero length, otherwise we risk SIGBUS for entire page. */
9396 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9397 if (fd2 < 0)
9398 return 4;
0afb4571
J
9399 data2 = "";
9400 if (write (fd2, data2, 1) != 1)
067d23c9 9401 return 5;
0afb4571 9402 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9403 if (data2 == MAP_FAILED)
9404 return 6;
9405 for (i = 0; i < pagesize; ++i)
9406 if (*(data2 + i))
9407 return 7;
9408 close (fd2);
9409 if (munmap (data2, pagesize))
9410 return 8;
9411
9412 /* Next, try to mmap the file at a fixed address which already has
9413 something else allocated at it. If we can, also make sure that
9414 we see the same garbage. */
9415 fd = open ("conftest.mmap", O_RDWR);
9416 if (fd < 0)
9417 return 9;
9418 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9419 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9420 return 10;
9421 for (i = 0; i < pagesize; ++i)
9422 if (*(data + i) != *(data2 + i))
9423 return 11;
9424
9425 /* Finally, make sure that changes to the mapped area do not
9426 percolate back to the file as seen by read(). (This is a bug on
9427 some variants of i386 svr4.0.) */
9428 for (i = 0; i < pagesize; ++i)
9429 *(data2 + i) = *(data2 + i) + 1;
9430 data3 = (char *) malloc (pagesize);
9431 if (!data3)
9432 return 12;
9433 if (read (fd, data3, pagesize) != pagesize)
9434 return 13;
9435 for (i = 0; i < pagesize; ++i)
9436 if (*(data + i) != *(data3 + i))
9437 return 14;
9438 close (fd);
9439 return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_run "$LINENO"; then :
9443 ac_cv_func_mmap_fixed_mapped=yes
9444else
9445 ac_cv_func_mmap_fixed_mapped=no
9446fi
9447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9448 conftest.$ac_objext conftest.beam conftest.$ac_ext
9449fi
9450
9451fi
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9453$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9454if test $ac_cv_func_mmap_fixed_mapped = yes; then
9455
9456$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9457
9458fi
9459rm -f conftest.mmap conftest.txt
9460
9461if test $use_mmap_for_buffers = yes; then
9462
9463$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9464
9465 REL_ALLOC=no
9466fi
9467
9468LIBS="$LIBS_SYSTEM $LIBS"
9469
9470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9471$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7834125e 9472if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
067d23c9
KY
9473 $as_echo_n "(cached) " >&6
9474else
9475 ac_check_lib_save_LIBS=$LIBS
9476LIBS="-ldnet $LIBS"
9477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h. */
9479
9480/* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483#ifdef __cplusplus
9484extern "C"
9485#endif
9486char dnet_ntoa ();
9487int
9488main ()
9489{
9490return dnet_ntoa ();
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495if ac_fn_c_try_link "$LINENO"; then :
9496 ac_cv_lib_dnet_dnet_ntoa=yes
9497else
9498 ac_cv_lib_dnet_dnet_ntoa=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
9502LIBS=$ac_check_lib_save_LIBS
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9505$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7834125e 9506if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
067d23c9
KY
9507 cat >>confdefs.h <<_ACEOF
9508#define HAVE_LIBDNET 1
9509_ACEOF
9510
9511 LIBS="-ldnet $LIBS"
9512
9513fi
9514
9515
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9517$as_echo_n "checking for main in -lXbsd... " >&6; }
7834125e 9518if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
067d23c9
KY
9519 $as_echo_n "(cached) " >&6
9520else
9521 ac_check_lib_save_LIBS=$LIBS
9522LIBS="-lXbsd $LIBS"
9523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h. */
9525
9526
9527int
9528main ()
9529{
9530return main ();
9531 ;
9532 return 0;
9533}
9534_ACEOF
9535if ac_fn_c_try_link "$LINENO"; then :
9536 ac_cv_lib_Xbsd_main=yes
9537else
9538 ac_cv_lib_Xbsd_main=no
9539fi
9540rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542LIBS=$ac_check_lib_save_LIBS
9543fi
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9545$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7834125e 9546if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
067d23c9
KY
9547 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9548fi
9549
9550
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9552$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7834125e 9553if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
067d23c9
KY
9554 $as_echo_n "(cached) " >&6
9555else
9556 ac_check_lib_save_LIBS=$LIBS
9557LIBS="-lpthreads $LIBS"
9558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h. */
9560
9561/* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564#ifdef __cplusplus
9565extern "C"
9566#endif
9567char cma_open ();
9568int
9569main ()
9570{
9571return cma_open ();
9572 ;
9573 return 0;
9574}
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577 ac_cv_lib_pthreads_cma_open=yes
9578else
9579 ac_cv_lib_pthreads_cma_open=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583LIBS=$ac_check_lib_save_LIBS
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9586$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7834125e 9587if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
067d23c9
KY
9588 cat >>confdefs.h <<_ACEOF
9589#define HAVE_LIBPTHREADS 1
9590_ACEOF
9591
9592 LIBS="-lpthreads $LIBS"
9593
9594fi
9595
9596
9597## Note: when using cpp in s/aix4.2.h, this definition depended on
9598## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9599## the system file was sourced. Hence the value of LIBS_SYSTEM
9600## added to LIBS in configure would never contain the pthreads part,
9601## but the value used in Makefiles might. FIXME?
9602##
9603## -lpthreads seems to be necessary for Xlib in X11R6, and should
9604## be harmless on older versions of X where it happens to exist.
9605test "$opsys" = "aix4-2" && \
9606 test $ac_cv_lib_pthreads_cma_open = yes && \
9607 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9608
9609
9610case ${host_os} in
9611aix*)
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9613$as_echo_n "checking for -bbigtoc option... " >&6; }
7834125e 9614if test "${gdb_cv_bigtoc+set}" = set; then :
067d23c9
KY
9615 $as_echo_n "(cached) " >&6
9616else
9617
9618 case $GCC in
9619 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9620 *) gdb_cv_bigtoc=-bbigtoc ;;
9621 esac
9622
9623 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625/* end confdefs.h. */
9626
9627int
9628main ()
9629{
9630int i;
9631 ;
9632 return 0;
9633}
9634_ACEOF
9635if ac_fn_c_try_link "$LINENO"; then :
9636
9637else
9638 gdb_cv_bigtoc=
9639fi
9640rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642
9643fi
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9645$as_echo "$gdb_cv_bigtoc" >&6; }
9646 ;;
9647esac
9648
9649# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9650# used for the tests that follow. We set them back to REAL_CFLAGS and
9651# REAL_CPPFLAGS later on.
9652
9653REAL_CFLAGS="$CFLAGS"
9654REAL_CPPFLAGS="$CPPFLAGS"
9655
9656if test "${HAVE_X11}" = "yes"; then
9657 DEFS="$C_SWITCH_X_SITE $DEFS"
9658 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9659 LIBS="-lX11 $LIBS"
9660 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9661 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9662
9663 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9664 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9665 # but it's more convenient here to set LD_RUN_PATH
9666 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9667 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9668 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9669 export LD_RUN_PATH
9670 fi
9671
9672 if test "${opsys}" = "gnu-linux"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9674$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h. */
9677
9678int
9679main ()
9680{
9681XOpenDisplay ("foo");
9682 ;
9683 return 0;
9684}
9685_ACEOF
9686if ac_fn_c_try_link "$LINENO"; then :
9687 xlinux_first_failure=no
9688else
9689 xlinux_first_failure=yes
9690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693 if test "${xlinux_first_failure}" = "yes"; then
9694 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9695 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9696 OLD_CPPFLAGS="$CPPFLAGS"
9697 OLD_LIBS="$LIBS"
9698 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9699 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9700 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9701 LIBS="$LIBS -b i486-linuxaout"
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h. */
9704
9705int
9706main ()
9707{
9708XOpenDisplay ("foo");
9709 ;
9710 return 0;
9711}
9712_ACEOF
9713if ac_fn_c_try_link "$LINENO"; then :
9714 xlinux_second_failure=no
9715else
9716 xlinux_second_failure=yes
9717fi
9718rm -f core conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 if test "${xlinux_second_failure}" = "yes"; then
9721 # If we get the same failure with -b, there is no use adding -b.
9722 # So take it out. This plays safe.
9723 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9724 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9725 CPPFLAGS="$OLD_CPPFLAGS"
9726 LIBS="$OLD_LIBS"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728$as_echo "no" >&6; }
9729 else
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731$as_echo "yes" >&6; }
9732 fi
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735$as_echo "no" >&6; }
9736 fi
9737 fi
9738
9739 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9740 # header files included from there.
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9742$as_echo_n "checking for Xkb... " >&6; }
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h. */
9745#include <X11/Xlib.h>
9746#include <X11/XKBlib.h>
9747int
9748main ()
9749{
9750XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756 emacs_xkb=yes
9757else
9758 emacs_xkb=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9763$as_echo "$emacs_xkb" >&6; }
9764 if test $emacs_xkb = yes; then
9765
9766$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9767
9768 fi
9769
9770 for ac_func in XrmSetDatabase XScreenResourceString \
9771XScreenNumberOfScreen XSetWMProtocols
9772do :
9773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9774ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
0afb4571
J
9775eval as_val=\$$as_ac_var
9776 if test "x$as_val" = x""yes; then :
067d23c9
KY
9777 cat >>confdefs.h <<_ACEOF
9778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9779_ACEOF
9780
9781fi
9782done
9783
9784fi
9785
9786if test "${window_system}" = "x11"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9788$as_echo_n "checking X11 version 6... " >&6; }
7834125e 9789 if test "${emacs_cv_x11_version_6+set}" = set; then :
067d23c9
KY
9790 $as_echo_n "(cached) " >&6
9791else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h. */
9794#include <X11/Xlib.h>
9795int
9796main ()
9797{
9798#if XlibSpecificationRelease < 6
9799fail;
9800#endif
9801
9802 ;
9803 return 0;
9804}
9805_ACEOF
9806if ac_fn_c_try_link "$LINENO"; then :
9807 emacs_cv_x11_version_6=yes
9808else
9809 emacs_cv_x11_version_6=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813fi
9814
9815 if test $emacs_cv_x11_version_6 = yes; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9817$as_echo "6 or newer" >&6; }
9818
9819$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9820
9821
9822$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9823
9824 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9825 ## XIM support.
9826 case "$opsys" in
9827 sol2-*) : ;;
9828 *)
9829$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9830
9831 ;;
9832 esac
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9835$as_echo "before 6" >&6; }
9836 fi
9837fi
9838
9839
9840### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9841HAVE_RSVG=no
9842if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9843 if test "${with_rsvg}" != "no"; then
9844 RSVG_REQUIRED=2.11.0
9845 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9846
9847
9848 succeeded=no
9849
9850 # Extract the first word of "pkg-config", so it can be a program name with args.
9851set dummy pkg-config; ac_word=$2
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853$as_echo_n "checking for $ac_word... " >&6; }
7834125e 9854if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
9855 $as_echo_n "(cached) " >&6
9856else
9857 case $PKG_CONFIG in
9858 [\\/]* | ?:[\\/]*)
9859 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9860 ;;
9861 *)
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863for as_dir in $PATH
9864do
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9869 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9872 fi
9873done
9874 done
9875IFS=$as_save_IFS
9876
9877 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9878 ;;
9879esac
9880fi
9881PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9882if test -n "$PKG_CONFIG"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9884$as_echo "$PKG_CONFIG" >&6; }
9885else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891
9892 if test "$PKG_CONFIG" = "no" ; then
9893 :
9894 else
9895 PKG_CONFIG_MIN_VERSION=0.9.0
9896 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9898$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9899
9900 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9902$as_echo "yes" >&6; }
9903 succeeded=yes
9904
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9906$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9907 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9909$as_echo "$RSVG_CFLAGS" >&6; }
9910
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9912$as_echo_n "checking RSVG_LIBS... " >&6; }
9913 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9915$as_echo "$RSVG_LIBS" >&6; }
9916 else
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918$as_echo "no" >&6; }
9919 RSVG_CFLAGS=""
9920 RSVG_LIBS=""
9921 ## If we have a custom action on failure, don't print errors, but
9922 ## do set a variable so people can do so.
9923 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9924
9925 fi
9926
9927
9928
9929 else
9930 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9931 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9932 fi
9933 fi
9934
9935 if test $succeeded = yes; then
9936 HAVE_RSVG=yes
9937 else
9938 :
9939 fi
9940
9941
9942
9943
9944 if test $HAVE_RSVG = yes; then
9945
9946$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9947
9948 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9949 LIBS="$RSVG_LIBS $LIBS"
9950 fi
9951 fi
9952fi
9953
9954HAVE_IMAGEMAGICK=no
9955if test "${HAVE_X11}" = "yes"; then
9956 if test "${with_imagemagick}" != "no"; then
9957 IMAGEMAGICK_MODULE="Wand"
9958
9959 succeeded=no
9960
9961 # Extract the first word of "pkg-config", so it can be a program name with args.
9962set dummy pkg-config; ac_word=$2
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964$as_echo_n "checking for $ac_word... " >&6; }
7834125e 9965if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
9966 $as_echo_n "(cached) " >&6
9967else
9968 case $PKG_CONFIG in
9969 [\\/]* | ?:[\\/]*)
9970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9971 ;;
9972 *)
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985 done
9986IFS=$as_save_IFS
9987
9988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9989 ;;
9990esac
9991fi
9992PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9993if test -n "$PKG_CONFIG"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9995$as_echo "$PKG_CONFIG" >&6; }
9996else
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998$as_echo "no" >&6; }
9999fi
10000
10001
10002
10003 if test "$PKG_CONFIG" = "no" ; then
10004 :
10005 else
10006 PKG_CONFIG_MIN_VERSION=0.9.0
10007 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10009$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10010
10011 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10013$as_echo "yes" >&6; }
10014 succeeded=yes
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10017$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10018 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10020$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10021
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10023$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10024 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10026$as_echo "$IMAGEMAGICK_LIBS" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
10030 IMAGEMAGICK_CFLAGS=""
10031 IMAGEMAGICK_LIBS=""
10032 ## If we have a custom action on failure, don't print errors, but
10033 ## do set a variable so people can do so.
10034 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10035
10036 fi
10037
10038
10039
10040 else
10041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10043 fi
10044 fi
10045
10046 if test $succeeded = yes; then
10047 HAVE_IMAGEMAGICK=yes
10048 else
10049 :
10050 fi
10051
10052
10053
10054
10055 if test $HAVE_IMAGEMAGICK = yes; then
10056
10057$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10058
10059 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10060 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10061 for ac_func in MagickExportImagePixels
10062do :
10063 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
7834125e 10064if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
067d23c9
KY
10065 cat >>confdefs.h <<_ACEOF
10066#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10067_ACEOF
10068
10069fi
10070done
10071
10072 fi
10073 fi
10074fi
10075
10076
10077HAVE_GTK=no
10078if test "${with_gtk3}" = "yes"; then
0afb4571
J
10079 GLIB_REQUIRED=2.28
10080 GTK_REQUIRED=3.0
067d23c9
KY
10081 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10082
10083
10084 succeeded=no
10085
10086 # Extract the first word of "pkg-config", so it can be a program name with args.
10087set dummy pkg-config; ac_word=$2
10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089$as_echo_n "checking for $ac_word... " >&6; }
7834125e 10090if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
10091 $as_echo_n "(cached) " >&6
10092else
10093 case $PKG_CONFIG in
10094 [\\/]* | ?:[\\/]*)
10095 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10096 ;;
10097 *)
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $PATH
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
10104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109done
10110 done
10111IFS=$as_save_IFS
10112
10113 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10114 ;;
10115esac
10116fi
10117PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10118if test -n "$PKG_CONFIG"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10120$as_echo "$PKG_CONFIG" >&6; }
10121else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
10124fi
10125
10126
10127
10128 if test "$PKG_CONFIG" = "no" ; then
10129 pkg_check_gtk=no
10130 else
10131 PKG_CONFIG_MIN_VERSION=0.9.0
10132 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10134$as_echo_n "checking for $GTK_MODULES... " >&6; }
10135
10136 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138$as_echo "yes" >&6; }
10139 succeeded=yes
10140
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10142$as_echo_n "checking GTK_CFLAGS... " >&6; }
10143 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10145$as_echo "$GTK_CFLAGS" >&6; }
10146
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10148$as_echo_n "checking GTK_LIBS... " >&6; }
10149 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10151$as_echo "$GTK_LIBS" >&6; }
10152 else
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154$as_echo "no" >&6; }
10155 GTK_CFLAGS=""
10156 GTK_LIBS=""
10157 ## If we have a custom action on failure, don't print errors, but
10158 ## do set a variable so people can do so.
10159 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10160
10161 fi
10162
10163
10164
10165 else
10166 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10167 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10168 fi
10169 fi
10170
10171 if test $succeeded = yes; then
10172 pkg_check_gtk=yes
10173 else
10174 pkg_check_gtk=no
10175 fi
10176
10177 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
0afb4571 10178 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9 10179 fi
0afb4571
J
10180
10181$as_echo "#define HAVE_GTK3 1" >>confdefs.h
10182
067d23c9
KY
10183fi
10184
10185if test "$pkg_check_gtk" != "yes"; then
10186 HAVE_GTK=no
10187if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10188 GLIB_REQUIRED=2.6
10189 GTK_REQUIRED=2.6
10190 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10191
10192
10193 succeeded=no
10194
10195 # Extract the first word of "pkg-config", so it can be a program name with args.
10196set dummy pkg-config; ac_word=$2
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
7834125e 10199if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
10200 $as_echo_n "(cached) " >&6
10201else
10202 case $PKG_CONFIG in
10203 [\\/]* | ?:[\\/]*)
10204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10205 ;;
10206 *)
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218done
10219 done
10220IFS=$as_save_IFS
10221
10222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10223 ;;
10224esac
10225fi
10226PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10227if test -n "$PKG_CONFIG"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10229$as_echo "$PKG_CONFIG" >&6; }
10230else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235
10236
10237 if test "$PKG_CONFIG" = "no" ; then
10238 pkg_check_gtk=no
10239 else
10240 PKG_CONFIG_MIN_VERSION=0.9.0
10241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10243$as_echo_n "checking for $GTK_MODULES... " >&6; }
10244
10245 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10247$as_echo "yes" >&6; }
10248 succeeded=yes
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10251$as_echo_n "checking GTK_CFLAGS... " >&6; }
10252 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10254$as_echo "$GTK_CFLAGS" >&6; }
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10257$as_echo_n "checking GTK_LIBS... " >&6; }
10258 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10260$as_echo "$GTK_LIBS" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
10264 GTK_CFLAGS=""
10265 GTK_LIBS=""
10266 ## If we have a custom action on failure, don't print errors, but
10267 ## do set a variable so people can do so.
10268 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10269
10270 fi
10271
10272
10273
10274 else
10275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10277 fi
10278 fi
10279
10280 if test $succeeded = yes; then
10281 pkg_check_gtk=yes
10282 else
10283 pkg_check_gtk=no
10284 fi
10285
10286 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
0afb4571 10287 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10288 fi
10289fi
10290fi
10291
10292GTK_OBJ=
10293if test x"$pkg_check_gtk" = xyes; then
10294
10295
10296
10297 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10298 CFLAGS="$CFLAGS $GTK_CFLAGS"
10299 LIBS="$GTK_LIBS $LIBS"
10300 GTK_COMPILES=no
10301 for ac_func in gtk_main
10302do :
10303 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
7834125e 10304if test "x$ac_cv_func_gtk_main" = x""yes; then :
067d23c9
KY
10305 cat >>confdefs.h <<_ACEOF
10306#define HAVE_GTK_MAIN 1
10307_ACEOF
10308 GTK_COMPILES=yes
10309fi
10310done
10311
10312 if test "${GTK_COMPILES}" != "yes"; then
10313 if test "$USE_X_TOOLKIT" != "maybe"; then
0afb4571 10314 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10315 fi
10316 else
10317 HAVE_GTK=yes
10318
10319$as_echo "#define USE_GTK 1" >>confdefs.h
10320
10321 GTK_OBJ=gtkutil.o
10322 USE_X_TOOLKIT=none
10323 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10324 :
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10327 closing open displays. This is no problem if you just use
10328 one display, but if you use more than one and close one of them
10329 Emacs may crash." >&5
10330$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10331 closing open displays. This is no problem if you just use
10332 one display, but if you use more than one and close one of them
10333 Emacs may crash." >&2;}
10334 sleep 3
10335 fi
10336 fi
10337
10338fi
10339
10340
10341
10342if test "${HAVE_GTK}" = "yes"; then
10343
10344 if test "$with_toolkit_scroll_bars" != no; then
10345 with_toolkit_scroll_bars=yes
10346 fi
10347
10348 HAVE_GTK_FILE_SELECTION=no
10349 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10350#include <gtk/gtk.h>
10351"
7834125e 10352if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
067d23c9
KY
10353 HAVE_GTK_FILE_SELECTION=yes
10354else
10355 HAVE_GTK_FILE_SELECTION=no
10356fi
10357
10358 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10359 for ac_func in gtk_file_selection_new
10360do :
10361 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
7834125e 10362if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
067d23c9
KY
10363 cat >>confdefs.h <<_ACEOF
10364#define HAVE_GTK_FILE_SELECTION_NEW 1
10365_ACEOF
10366
10367fi
10368done
10369
10370 fi
10371
10372 HAVE_GTK_AND_PTHREAD=no
10373 for ac_header in pthread.h
10374do :
10375 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7834125e 10376if test "x$ac_cv_header_pthread_h" = x""yes; then :
067d23c9
KY
10377 cat >>confdefs.h <<_ACEOF
10378#define HAVE_PTHREAD_H 1
10379_ACEOF
10380
10381fi
10382
10383done
10384
10385 if test "$ac_cv_header_pthread_h"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10387$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
7834125e 10388if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
067d23c9
KY
10389 $as_echo_n "(cached) " >&6
10390else
10391 ac_check_lib_save_LIBS=$LIBS
10392LIBS="-lpthread $LIBS"
10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h. */
10395
10396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399#ifdef __cplusplus
10400extern "C"
10401#endif
10402char pthread_self ();
10403int
10404main ()
10405{
10406return pthread_self ();
10407 ;
10408 return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_link "$LINENO"; then :
10412 ac_cv_lib_pthread_pthread_self=yes
10413else
10414 ac_cv_lib_pthread_pthread_self=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418LIBS=$ac_check_lib_save_LIBS
10419fi
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10421$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
7834125e 10422if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
067d23c9
KY
10423 HAVE_GTK_AND_PTHREAD=yes
10424fi
10425
10426 fi
10427 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10428 case "${canonical}" in
10429 *-hpux*) ;;
10430 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10431 esac
10432
10433$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10434
10435 fi
10436
10437 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10438 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10439 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10440 gtk_orientable_set_orientation
10441do :
10442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10443ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
0afb4571
J
10444eval as_val=\$$as_ac_var
10445 if test "x$as_val" = x""yes; then :
067d23c9
KY
10446 cat >>confdefs.h <<_ACEOF
10447#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10448_ACEOF
10449
10450fi
10451done
10452
10453
10454fi
10455
10456HAVE_DBUS=no
10457DBUS_OBJ=
10458if test "${with_dbus}" = "yes"; then
10459
10460 succeeded=no
10461
10462 # Extract the first word of "pkg-config", so it can be a program name with args.
10463set dummy pkg-config; ac_word=$2
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465$as_echo_n "checking for $ac_word... " >&6; }
7834125e 10466if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
10467 $as_echo_n "(cached) " >&6
10468else
10469 case $PKG_CONFIG in
10470 [\\/]* | ?:[\\/]*)
10471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10472 ;;
10473 *)
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485done
10486 done
10487IFS=$as_save_IFS
10488
10489 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10490 ;;
10491esac
10492fi
10493PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10494if test -n "$PKG_CONFIG"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10496$as_echo "$PKG_CONFIG" >&6; }
10497else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
10500fi
10501
10502
10503
10504 if test "$PKG_CONFIG" = "no" ; then
10505 HAVE_DBUS=no
10506 else
10507 PKG_CONFIG_MIN_VERSION=0.9.0
10508 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10510$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10511
10512 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10514$as_echo "yes" >&6; }
10515 succeeded=yes
10516
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10518$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10519 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10521$as_echo "$DBUS_CFLAGS" >&6; }
10522
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10524$as_echo_n "checking DBUS_LIBS... " >&6; }
10525 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10527$as_echo "$DBUS_LIBS" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
10531 DBUS_CFLAGS=""
10532 DBUS_LIBS=""
10533 ## If we have a custom action on failure, don't print errors, but
10534 ## do set a variable so people can do so.
10535 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10536
10537 fi
10538
10539
10540
10541 else
10542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10544 fi
10545 fi
10546
10547 if test $succeeded = yes; then
10548 HAVE_DBUS=yes
10549 else
10550 HAVE_DBUS=no
10551 fi
10552
10553 if test "$HAVE_DBUS" = yes; then
10554 LIBS="$LIBS $DBUS_LIBS"
10555
10556$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10557
10558 for ac_func in dbus_watch_get_unix_fd
10559do :
10560 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
7834125e 10561if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
067d23c9
KY
10562 cat >>confdefs.h <<_ACEOF
10563#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10564_ACEOF
10565
10566fi
10567done
10568
10569 DBUS_OBJ=dbusbind.o
10570 fi
10571fi
10572
10573
10574HAVE_GCONF=no
10575if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10576
10577 succeeded=no
10578
10579 # Extract the first word of "pkg-config", so it can be a program name with args.
10580set dummy pkg-config; ac_word=$2
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582$as_echo_n "checking for $ac_word... " >&6; }
7834125e 10583if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
10584 $as_echo_n "(cached) " >&6
10585else
10586 case $PKG_CONFIG in
10587 [\\/]* | ?:[\\/]*)
10588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10589 ;;
10590 *)
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $PATH
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603 done
10604IFS=$as_save_IFS
10605
10606 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10607 ;;
10608esac
10609fi
10610PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10611if test -n "$PKG_CONFIG"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10613$as_echo "$PKG_CONFIG" >&6; }
10614else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616$as_echo "no" >&6; }
10617fi
10618
10619
10620
10621 if test "$PKG_CONFIG" = "no" ; then
10622 HAVE_GCONF=no
10623 else
10624 PKG_CONFIG_MIN_VERSION=0.9.0
10625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10627$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10628
10629 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10631$as_echo "yes" >&6; }
10632 succeeded=yes
10633
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10635$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10636 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10638$as_echo "$GCONF_CFLAGS" >&6; }
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10641$as_echo_n "checking GCONF_LIBS... " >&6; }
10642 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10644$as_echo "$GCONF_LIBS" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648 GCONF_CFLAGS=""
10649 GCONF_LIBS=""
10650 ## If we have a custom action on failure, don't print errors, but
10651 ## do set a variable so people can do so.
10652 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10653
10654 fi
10655
10656
10657
10658 else
10659 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10660 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10661 fi
10662 fi
10663
10664 if test $succeeded = yes; then
10665 HAVE_GCONF=yes
10666 else
10667 HAVE_GCONF=no
10668 fi
10669
10670 if test "$HAVE_GCONF" = yes; then
10671
10672$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10673
10674 for ac_func in g_type_init
10675do :
10676 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
7834125e 10677if test "x$ac_cv_func_g_type_init" = x""yes; then :
067d23c9
KY
10678 cat >>confdefs.h <<_ACEOF
10679#define HAVE_G_TYPE_INIT 1
10680_ACEOF
10681
10682fi
10683done
10684
10685 fi
10686fi
10687
10688HAVE_LIBSELINUX=no
10689LIBSELINUX_LIBS=
10690if test "${with_selinux}" = "yes"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10692$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
7834125e 10693if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
067d23c9
KY
10694 $as_echo_n "(cached) " >&6
10695else
10696 ac_check_lib_save_LIBS=$LIBS
10697LIBS="-lselinux $LIBS"
10698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699/* end confdefs.h. */
10700
10701/* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10704#ifdef __cplusplus
10705extern "C"
10706#endif
10707char lgetfilecon ();
10708int
10709main ()
10710{
10711return lgetfilecon ();
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_selinux_lgetfilecon=yes
10718else
10719 ac_cv_lib_selinux_lgetfilecon=no
10720fi
10721rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723LIBS=$ac_check_lib_save_LIBS
10724fi
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10726$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
7834125e 10727if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
067d23c9
KY
10728 HAVE_LIBSELINUX=yes
10729else
10730 HAVE_LIBSELINUX=no
10731fi
10732
10733 if test "$HAVE_LIBSELINUX" = yes; then
10734
10735$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10736
10737 LIBSELINUX_LIBS=-lselinux
10738 fi
10739fi
10740
10741
10742HAVE_GNUTLS=no
10743if test "${with_gnutls}" = "yes" ; then
10744
10745 succeeded=no
10746
10747 # Extract the first word of "pkg-config", so it can be a program name with args.
10748set dummy pkg-config; ac_word=$2
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750$as_echo_n "checking for $ac_word... " >&6; }
7834125e 10751if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
10752 $as_echo_n "(cached) " >&6
10753else
10754 case $PKG_CONFIG in
10755 [\\/]* | ?:[\\/]*)
10756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10757 ;;
10758 *)
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771 done
10772IFS=$as_save_IFS
10773
10774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10775 ;;
10776esac
10777fi
10778PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10779if test -n "$PKG_CONFIG"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10781$as_echo "$PKG_CONFIG" >&6; }
10782else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784$as_echo "no" >&6; }
10785fi
10786
10787
10788
10789 if test "$PKG_CONFIG" = "no" ; then
10790 HAVE_GNUTLS=no
10791 else
10792 PKG_CONFIG_MIN_VERSION=0.9.0
10793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10795$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10796
10797 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10799$as_echo "yes" >&6; }
10800 succeeded=yes
10801
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10803$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10804 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10806$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10807
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10809$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10810 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10812$as_echo "$LIBGNUTLS_LIBS" >&6; }
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
10816 LIBGNUTLS_CFLAGS=""
10817 LIBGNUTLS_LIBS=""
10818 ## If we have a custom action on failure, don't print errors, but
10819 ## do set a variable so people can do so.
10820 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10821
10822 fi
10823
10824
10825
10826 else
10827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10829 fi
10830 fi
10831
10832 if test $succeeded = yes; then
10833 HAVE_GNUTLS=yes
10834 else
10835 HAVE_GNUTLS=no
10836 fi
10837
10838 if test "${HAVE_GNUTLS}" = "yes"; then
10839
10840$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10841
10842 fi
10843fi
10844
10845
10846
10847HAVE_XAW3D=no
10848LUCID_LIBW=
10849if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10850 if test "$with_xaw3d" != no; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10852$as_echo_n "checking for xaw3d... " >&6; }
7834125e 10853 if test "${emacs_cv_xaw3d+set}" = set; then :
067d23c9
KY
10854 $as_echo_n "(cached) " >&6
10855else
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h. */
10858
10859#include <X11/Intrinsic.h>
10860#include <X11/Xaw3d/Simple.h>
10861int
10862main ()
10863{
10864
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869if ac_fn_c_try_link "$LINENO"; then :
14beddf4
CY
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10871$as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
7834125e 10872if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
ae1362a3
AS
10873 $as_echo_n "(cached) " >&6
10874else
10875 ac_check_lib_save_LIBS=$LIBS
14beddf4 10876LIBS="-lXaw3d $LIBS"
ae1362a3
AS
10877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878/* end confdefs.h. */
bf89cb4d 10879
ae1362a3
AS
10880/* Override any GCC internal prototype to avoid an error.
10881 Use char because int might match the return type of a GCC
10882 builtin and then its argument prototype would still apply. */
10883#ifdef __cplusplus
10884extern "C"
10885#endif
14beddf4 10886char XawScrollbarSetThumb ();
ae1362a3
AS
10887int
10888main ()
10889{
14beddf4 10890return XawScrollbarSetThumb ();
ae1362a3
AS
10891 ;
10892 return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_link "$LINENO"; then :
14beddf4 10896 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ae1362a3 10897else
14beddf4 10898 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ae1362a3
AS
10899fi
10900rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902LIBS=$ac_check_lib_save_LIBS
10903fi
14beddf4
CY
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10905$as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
7834125e 10906if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
067d23c9
KY
10907 emacs_cv_xaw3d=yes
10908else
10909 emacs_cv_xaw3d=no
10910fi
14beddf4
CY
10911
10912else
10913 emacs_cv_xaw3d=no
10914fi
067d23c9
KY
10915rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917fi
10918
10919 else
10920 emacs_cv_xaw3d=no
10921 fi
10922 if test $emacs_cv_xaw3d = yes; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10924$as_echo "yes; using Lucid toolkit" >&6; }
10925 USE_X_TOOLKIT=LUCID
10926 HAVE_XAW3D=yes
10927 LUCID_LIBW=-lXaw3d
10928
10929$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10930
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10935$as_echo_n "checking for libXaw... " >&6; }
7834125e 10936 if test "${emacs_cv_xaw+set}" = set; then :
067d23c9
KY
10937 $as_echo_n "(cached) " >&6
10938else
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h. */
10941
10942#include <X11/Intrinsic.h>
10943#include <X11/Xaw/Simple.h>
10944int
10945main ()
10946{
10947
10948 ;
10949 return 0;
10950}
10951_ACEOF
10952if ac_fn_c_try_link "$LINENO"; then :
10953 emacs_cv_xaw=yes
10954else
10955 emacs_cv_xaw=no
10956fi
10957rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959fi
10960
10961 if test $emacs_cv_xaw = yes; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10963$as_echo "yes; using Lucid toolkit" >&6; }
10964 USE_X_TOOLKIT=LUCID
10965 LUCID_LIBW=-lXaw
10966 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
0afb4571 10967 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10970$as_echo "no; do not use toolkit by default" >&6; }
10971 USE_X_TOOLKIT=none
10972 fi
10973 fi
10974fi
10975
10976X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10977
10978LIBXTR6=
10979if test "${USE_X_TOOLKIT}" != "none"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10981$as_echo_n "checking X11 toolkit version... " >&6; }
7834125e 10982 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
067d23c9
KY
10983 $as_echo_n "(cached) " >&6
10984else
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986/* end confdefs.h. */
10987#include <X11/Intrinsic.h>
10988int
10989main ()
10990{
10991#if XtSpecificationRelease < 6
10992fail;
10993#endif
10994
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999if ac_fn_c_try_link "$LINENO"; then :
11000 emacs_cv_x11_toolkit_version_6=yes
11001else
11002 emacs_cv_x11_toolkit_version_6=no
11003fi
11004rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006fi
11007
11008 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11009 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11011$as_echo "6 or newer" >&6; }
11012
11013$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11014
11015 LIBXTR6="-lSM -lICE"
11016 case "$opsys" in
11017 ## Use libw.a along with X11R6 Xt.
11018 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11019 esac
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11022$as_echo "before 6" >&6; }
11023 fi
11024
11025 OLDLIBS="$LIBS"
11026 if test x$HAVE_X11XTR6 = xyes; then
11027 LIBS="-lXt -lSM -lICE $LIBS"
11028 else
11029 LIBS="-lXt $LIBS"
11030 fi
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11032$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
7834125e 11033if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
067d23c9
KY
11034 $as_echo_n "(cached) " >&6
11035else
11036 ac_check_lib_save_LIBS=$LIBS
11037LIBS="-lXmu $LIBS"
11038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039/* end confdefs.h. */
11040
11041/* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044#ifdef __cplusplus
11045extern "C"
11046#endif
11047char XmuConvertStandardSelection ();
11048int
11049main ()
11050{
11051return XmuConvertStandardSelection ();
11052 ;
11053 return 0;
11054}
11055_ACEOF
11056if ac_fn_c_try_link "$LINENO"; then :
11057 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11058else
11059 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11060fi
11061rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063LIBS=$ac_check_lib_save_LIBS
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11066$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
7834125e 11067if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
067d23c9
KY
11068 cat >>confdefs.h <<_ACEOF
11069#define HAVE_LIBXMU 1
11070_ACEOF
11071
11072 LIBS="-lXmu $LIBS"
11073
11074fi
11075
11076 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11077fi
11078
11079
11080LIBXMU=-lXmu
d6a003a8
AS
11081case $opsys in
11082 ## These systems don't supply Xmu.
067d23c9
KY
11083 hpux* | aix4-2 )
11084 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11085 ;;
11086esac
11087
11088
11089# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11090if test "${HAVE_X11}" = "yes"; then
11091 if test "${USE_X_TOOLKIT}" != "none"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11093$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
7834125e 11094if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
067d23c9
KY
11095 $as_echo_n "(cached) " >&6
11096else
11097 ac_check_lib_save_LIBS=$LIBS
11098LIBS="-lXext $LIBS"
11099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100/* end confdefs.h. */
11101
11102/* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105#ifdef __cplusplus
11106extern "C"
11107#endif
11108char XShapeQueryExtension ();
11109int
11110main ()
11111{
11112return XShapeQueryExtension ();
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117if ac_fn_c_try_link "$LINENO"; then :
11118 ac_cv_lib_Xext_XShapeQueryExtension=yes
11119else
11120 ac_cv_lib_Xext_XShapeQueryExtension=no
11121fi
11122rm -f core conftest.err conftest.$ac_objext \
11123 conftest$ac_exeext conftest.$ac_ext
11124LIBS=$ac_check_lib_save_LIBS
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11127$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
7834125e 11128if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
067d23c9
KY
11129 cat >>confdefs.h <<_ACEOF
11130#define HAVE_LIBXEXT 1
11131_ACEOF
11132
11133 LIBS="-lXext $LIBS"
11134
11135fi
11136
11137 fi
11138fi
11139
11140LIBXP=
11141if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11143$as_echo_n "checking for Motif version 2.1... " >&6; }
7834125e 11144if test "${emacs_cv_motif_version_2_1+set}" = set; then :
067d23c9
KY
11145 $as_echo_n "(cached) " >&6
11146else
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148/* end confdefs.h. */
11149#include <Xm/Xm.h>
11150int
11151main ()
11152{
11153#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11154int x = 5;
11155#else
11156Motif version prior to 2.1.
11157#endif
11158 ;
11159 return 0;
11160}
11161_ACEOF
11162if ac_fn_c_try_compile "$LINENO"; then :
11163 emacs_cv_motif_version_2_1=yes
11164else
11165 emacs_cv_motif_version_2_1=no
11166fi
11167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168fi
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11170$as_echo "$emacs_cv_motif_version_2_1" >&6; }
11171 if test $emacs_cv_motif_version_2_1 = yes; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11173$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
7834125e 11174if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
067d23c9
KY
11175 $as_echo_n "(cached) " >&6
11176else
11177 ac_check_lib_save_LIBS=$LIBS
11178LIBS="-lXp $LIBS"
11179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180/* end confdefs.h. */
11181
11182/* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185#ifdef __cplusplus
11186extern "C"
11187#endif
11188char XpCreateContext ();
11189int
11190main ()
11191{
11192return XpCreateContext ();
11193 ;
11194 return 0;
11195}
11196_ACEOF
11197if ac_fn_c_try_link "$LINENO"; then :
11198 ac_cv_lib_Xp_XpCreateContext=yes
11199else
11200 ac_cv_lib_Xp_XpCreateContext=no
11201fi
11202rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204LIBS=$ac_check_lib_save_LIBS
11205fi
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11207$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
7834125e 11208if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
067d23c9
KY
11209 LIBXP=-lXp
11210fi
11211
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11214$as_echo_n "checking for LessTif where some systems put it... " >&6; }
7834125e 11215if test "${emacs_cv_lesstif+set}" = set; then :
067d23c9
KY
11216 $as_echo_n "(cached) " >&6
11217else
11218 # We put this in CFLAGS temporarily to precede other -I options
11219 # that might be in CFLAGS temporarily.
11220 # We put this in CPPFLAGS where it precedes the other -I options.
11221 OLD_CPPFLAGS=$CPPFLAGS
11222 OLD_CFLAGS=$CFLAGS
11223 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11224 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226/* end confdefs.h. */
11227#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11228int
11229main ()
11230{
11231int x = 5;
11232 ;
11233 return 0;
11234}
11235_ACEOF
11236if ac_fn_c_try_compile "$LINENO"; then :
11237 emacs_cv_lesstif=yes
11238else
11239 emacs_cv_lesstif=no
11240fi
11241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11244$as_echo "$emacs_cv_lesstif" >&6; }
11245 if test $emacs_cv_lesstif = yes; then
11246 # Make sure this -I option remains in CPPFLAGS after it is set
11247 # back to REAL_CPPFLAGS.
11248 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11249 # have those other -I options anyway. Ultimately, having this
11250 # directory ultimately in CPPFLAGS will be enough.
11251 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11252 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11253 else
11254 CFLAGS=$OLD_CFLAGS
11255 CPPFLAGS=$OLD_CPPFLAGS
11256 fi
11257 fi
11258fi
11259
11260
11261USE_TOOLKIT_SCROLL_BARS=no
11262if test "${with_toolkit_scroll_bars}" != "no"; then
11263 if test "${USE_X_TOOLKIT}" != "none"; then
11264 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11265 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11266
11267 HAVE_XAW3D=no
11268 USE_TOOLKIT_SCROLL_BARS=yes
11269 elif test "${HAVE_XAW3D}" = "yes"; then
11270 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11271
11272 USE_TOOLKIT_SCROLL_BARS=yes
11273 fi
11274 elif test "${HAVE_GTK}" = "yes"; then
11275 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11276
11277 USE_TOOLKIT_SCROLL_BARS=yes
11278 elif test "${HAVE_NS}" = "yes"; then
11279 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11280
11281 USE_TOOLKIT_SCROLL_BARS=yes
11282 fi
11283fi
11284
11285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h. */
11287
11288 #include <X11/Xlib.h>
11289 #include <X11/Xresource.h>
11290int
11291main ()
11292{
11293XIMProc callback;
11294 ;
11295 return 0;
11296}
11297_ACEOF
11298if ac_fn_c_try_compile "$LINENO"; then :
11299 HAVE_XIM=yes
11300
11301$as_echo "#define HAVE_XIM 1" >>confdefs.h
11302
11303else
11304 HAVE_XIM=no
11305fi
11306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11307
11308
11309if test "${with_xim}" != "no"; then
11310
11311$as_echo "#define USE_XIM 1" >>confdefs.h
11312
11313fi
11314
11315
11316if test "${HAVE_XIM}" != "no"; then
11317 late_CFLAGS=$CFLAGS
11318 if test "$GCC" = yes; then
11319 CFLAGS="$CFLAGS --pedantic-errors"
11320 fi
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h. */
11323
11324#include <X11/Xlib.h>
11325#include <X11/Xresource.h>
11326int
11327main ()
11328{
11329Display *display;
11330XrmDatabase db;
11331char *res_name;
11332char *res_class;
11333XIMProc callback;
11334XPointer *client_data;
11335#ifndef __GNUC__
11336/* If we're not using GCC, it's probably not XFree86, and this is
11337 probably right, but we can't use something like --pedantic-errors. */
11338extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11339 char*, XIMProc, XPointer*);
11340#endif
11341(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11342 client_data);
11343 ;
11344 return 0;
11345}
11346_ACEOF
11347if ac_fn_c_try_compile "$LINENO"; then :
11348 emacs_cv_arg6_star=yes
11349fi
11350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 if test "$emacs_cv_arg6_star" = yes; then
11352 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11353
11354 else
11355 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11356
11357 fi
11358 CFLAGS=$late_CFLAGS
11359fi
11360
11361### Start of font-backend (under any platform) section.
11362# (nothing here yet -- this is a placeholder)
11363### End of font-backend (under any platform) section.
11364
11365### Start of font-backend (under X11) section.
11366if test "${HAVE_X11}" = "yes"; then
11367
11368 succeeded=no
11369
11370 # Extract the first word of "pkg-config", so it can be a program name with args.
11371set dummy pkg-config; ac_word=$2
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
7834125e 11374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
11375 $as_echo_n "(cached) " >&6
11376else
11377 case $PKG_CONFIG in
11378 [\\/]* | ?:[\\/]*)
11379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11380 ;;
11381 *)
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391 break 2
11392 fi
11393done
11394 done
11395IFS=$as_save_IFS
11396
11397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11398 ;;
11399esac
11400fi
11401PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11402if test -n "$PKG_CONFIG"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11404$as_echo "$PKG_CONFIG" >&6; }
11405else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; }
11408fi
11409
11410
11411
11412 if test "$PKG_CONFIG" = "no" ; then
11413 HAVE_FC=no
11414 else
11415 PKG_CONFIG_MIN_VERSION=0.9.0
11416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11418$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11419
11420 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422$as_echo "yes" >&6; }
11423 succeeded=yes
11424
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11426$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11427 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11429$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11432$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11433 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11435$as_echo "$FONTCONFIG_LIBS" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
11439 FONTCONFIG_CFLAGS=""
11440 FONTCONFIG_LIBS=""
11441 ## If we have a custom action on failure, don't print errors, but
11442 ## do set a variable so people can do so.
11443 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11444
11445 fi
11446
11447
11448
11449 else
11450 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11451 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11452 fi
11453 fi
11454
11455 if test $succeeded = yes; then
11456 HAVE_FC=yes
11457 else
11458 HAVE_FC=no
11459 fi
11460
11461
11462 ## Use -lXft if available, unless `--with-xft=no'.
11463 HAVE_XFT=maybe
11464 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11465 with_xft="no";
11466 fi
11467 if test "x${with_xft}" != "xno"; then
11468
11469
11470 succeeded=no
11471
11472 # Extract the first word of "pkg-config", so it can be a program name with args.
11473set dummy pkg-config; ac_word=$2
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475$as_echo_n "checking for $ac_word... " >&6; }
7834125e 11476if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
11477 $as_echo_n "(cached) " >&6
11478else
11479 case $PKG_CONFIG in
11480 [\\/]* | ?:[\\/]*)
11481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11482 ;;
11483 *)
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11494 fi
11495done
11496 done
11497IFS=$as_save_IFS
11498
11499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11500 ;;
11501esac
11502fi
11503PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11504if test -n "$PKG_CONFIG"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11506$as_echo "$PKG_CONFIG" >&6; }
11507else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
11510fi
11511
11512
11513
11514 if test "$PKG_CONFIG" = "no" ; then
11515 HAVE_XFT=no
11516 else
11517 PKG_CONFIG_MIN_VERSION=0.9.0
11518 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11520$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11521
11522 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11524$as_echo "yes" >&6; }
11525 succeeded=yes
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11528$as_echo_n "checking XFT_CFLAGS... " >&6; }
11529 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11531$as_echo "$XFT_CFLAGS" >&6; }
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11534$as_echo_n "checking XFT_LIBS... " >&6; }
11535 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11537$as_echo "$XFT_LIBS" >&6; }
11538 else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540$as_echo "no" >&6; }
11541 XFT_CFLAGS=""
11542 XFT_LIBS=""
11543 ## If we have a custom action on failure, don't print errors, but
11544 ## do set a variable so people can do so.
11545 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11546
11547 fi
11548
11549
11550
11551 else
11552 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11553 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11554 fi
11555 fi
11556
11557 if test $succeeded = yes; then
11558 :
11559 else
11560 HAVE_XFT=no
11561 fi
11562
11563 ## Because xftfont.c uses XRenderQueryExtension, we also
11564 ## need to link to -lXrender.
11565 HAVE_XRENDER=no
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11567$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
7834125e 11568if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
067d23c9
KY
11569 $as_echo_n "(cached) " >&6
11570else
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-lXrender $LIBS"
11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
11575
11576/* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579#ifdef __cplusplus
11580extern "C"
11581#endif
11582char XRenderQueryExtension ();
11583int
11584main ()
11585{
11586return XRenderQueryExtension ();
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11593else
11594 ac_cv_lib_Xrender_XRenderQueryExtension=no
11595fi
11596rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598LIBS=$ac_check_lib_save_LIBS
11599fi
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11601$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
7834125e 11602if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
067d23c9
KY
11603 HAVE_XRENDER=yes
11604fi
11605
11606 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11607 OLD_CPPFLAGS="$CPPFLAGS"
11608 OLD_CFLAGS="$CFLAGS"
11609 OLD_LIBS="$LIBS"
11610 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11611 CFLAGS="$CFLAGS $XFT_CFLAGS"
11612 XFT_LIBS="-lXrender $XFT_LIBS"
11613 LIBS="$XFT_LIBS $LIBS"
11614 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7834125e 11615if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
067d23c9
KY
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11617$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
7834125e 11618if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
067d23c9
KY
11619 $as_echo_n "(cached) " >&6
11620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-lXft $XFT_LIBS $LIBS"
11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624/* end confdefs.h. */
11625
11626/* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char XftFontOpen ();
11633int
11634main ()
11635{
11636return XftFontOpen ();
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_Xft_XftFontOpen=yes
11643else
11644 ac_cv_lib_Xft_XftFontOpen=no
11645fi
11646rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648LIBS=$ac_check_lib_save_LIBS
11649fi
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11651$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
7834125e 11652if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
067d23c9
KY
11653 HAVE_XFT=yes
11654fi
11655
11656fi
11657
11658
11659
11660 if test "${HAVE_XFT}" = "yes"; then
11661
11662$as_echo "#define HAVE_XFT 1" >>confdefs.h
11663
11664
11665 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11666 else
11667 CPPFLAGS="$OLD_CPPFLAGS"
11668 CFLAGS="$OLD_CFLAGS"
11669 LIBS="$OLD_LIBS"
11670 fi # "${HAVE_XFT}" = "yes"
11671 fi # "$HAVE_XFT" != no
11672 fi # "x${with_xft}" != "xno"
11673
067d23c9
KY
11674 ## We used to allow building with FreeType and without Xft.
11675 ## However, the ftx font backend driver is not in good shape.
7834125e
GM
11676 if test "$HAVE_XFT" != "yes"; then
11677 HAVE_XFT=no
11678 HAVE_FREETYPE=no
11679 else
11680
11681 succeeded=no
11682
11683 # Extract the first word of "pkg-config", so it can be a program name with args.
11684set dummy pkg-config; ac_word=$2
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11686$as_echo_n "checking for $ac_word... " >&6; }
11687if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689else
11690 case $PKG_CONFIG in
11691 [\\/]* | ?:[\\/]*)
11692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11693 ;;
11694 *)
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11705 fi
11706done
11707 done
11708IFS=$as_save_IFS
11709
11710 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11711 ;;
11712esac
11713fi
11714PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11715if test -n "$PKG_CONFIG"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11717$as_echo "$PKG_CONFIG" >&6; }
11718else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
11721fi
11722
11723
11724
11725 if test "$PKG_CONFIG" = "no" ; then
11726 HAVE_FREETYPE=no
11727 else
11728 PKG_CONFIG_MIN_VERSION=0.9.0
11729 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11731$as_echo_n "checking for freetype2... " >&6; }
11732
11733 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735$as_echo "yes" >&6; }
11736 succeeded=yes
11737
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11739$as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11740 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11742$as_echo "$FREETYPE_CFLAGS" >&6; }
11743
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11745$as_echo_n "checking FREETYPE_LIBS... " >&6; }
11746 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11748$as_echo "$FREETYPE_LIBS" >&6; }
11749 else
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751$as_echo "no" >&6; }
11752 FREETYPE_CFLAGS=""
11753 FREETYPE_LIBS=""
11754 ## If we have a custom action on failure, don't print errors, but
11755 ## do set a variable so people can do so.
11756 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11757
11758 fi
11759
11760
11761
11762 else
11763 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11764 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11765 fi
11766 fi
11767
11768 if test $succeeded = yes; then
11769 HAVE_FREETYPE=yes
11770 else
11771 HAVE_FREETYPE=no
11772 fi
11773
11774
0afb4571 11775 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
7834125e 11776 fi
067d23c9
KY
11777
11778 HAVE_LIBOTF=no
11779 if test "${HAVE_FREETYPE}" = "yes"; then
11780
11781$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11782
11783 if test "${with_libotf}" != "no"; then
11784
11785 succeeded=no
11786
11787 # Extract the first word of "pkg-config", so it can be a program name with args.
11788set dummy pkg-config; ac_word=$2
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790$as_echo_n "checking for $ac_word... " >&6; }
7834125e 11791if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
11792 $as_echo_n "(cached) " >&6
11793else
11794 case $PKG_CONFIG in
11795 [\\/]* | ?:[\\/]*)
11796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11797 ;;
11798 *)
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800for as_dir in $PATH
11801do
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11806 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11809 fi
11810done
11811 done
11812IFS=$as_save_IFS
11813
11814 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11815 ;;
11816esac
11817fi
11818PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11819if test -n "$PKG_CONFIG"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11821$as_echo "$PKG_CONFIG" >&6; }
11822else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
11825fi
11826
11827
11828
11829 if test "$PKG_CONFIG" = "no" ; then
11830 HAVE_LIBOTF=no
11831 else
11832 PKG_CONFIG_MIN_VERSION=0.9.0
11833 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11835$as_echo_n "checking for libotf... " >&6; }
11836
11837 if $PKG_CONFIG --exists "libotf" 2>&5; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839$as_echo "yes" >&6; }
11840 succeeded=yes
11841
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11843$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11844 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11846$as_echo "$LIBOTF_CFLAGS" >&6; }
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11849$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11850 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11852$as_echo "$LIBOTF_LIBS" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855$as_echo "no" >&6; }
11856 LIBOTF_CFLAGS=""
11857 LIBOTF_LIBS=""
11858 ## If we have a custom action on failure, don't print errors, but
11859 ## do set a variable so people can do so.
11860 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11861
11862 fi
11863
11864
11865
11866 else
11867 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11868 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11869 fi
11870 fi
11871
11872 if test $succeeded = yes; then
11873 HAVE_LIBOTF=yes
11874 else
11875 HAVE_LIBOTF=no
11876 fi
11877
11878 if test "$HAVE_LIBOTF" = "yes"; then
11879
11880$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11881
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11883$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
7834125e 11884if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
067d23c9
KY
11885 $as_echo_n "(cached) " >&6
11886else
11887 ac_check_lib_save_LIBS=$LIBS
11888LIBS="-lotf $LIBS"
11889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890/* end confdefs.h. */
11891
11892/* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895#ifdef __cplusplus
11896extern "C"
11897#endif
11898char OTF_get_variation_glyphs ();
11899int
11900main ()
11901{
11902return OTF_get_variation_glyphs ();
11903 ;
11904 return 0;
11905}
11906_ACEOF
11907if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11909else
11910 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11911fi
11912rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914LIBS=$ac_check_lib_save_LIBS
11915fi
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11917$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
7834125e 11918if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
067d23c9
KY
11919 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11920else
11921 HAVE_OTF_GET_VARIATION_GLYPHS=no
11922fi
11923
11924 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11925
11926$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11927
11928 fi
11929 fi
11930 fi
11931 fi
11932
11933 HAVE_M17N_FLT=no
11934 if test "${HAVE_LIBOTF}" = yes; then
11935 if test "${with_m17n_flt}" != "no"; then
11936
11937 succeeded=no
11938
11939 # Extract the first word of "pkg-config", so it can be a program name with args.
11940set dummy pkg-config; ac_word=$2
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
7834125e 11943if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
11944 $as_echo_n "(cached) " >&6
11945else
11946 case $PKG_CONFIG in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11949 ;;
11950 *)
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962done
11963 done
11964IFS=$as_save_IFS
11965
11966 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11967 ;;
11968esac
11969fi
11970PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11971if test -n "$PKG_CONFIG"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11973$as_echo "$PKG_CONFIG" >&6; }
11974else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
11977fi
11978
11979
11980
11981 if test "$PKG_CONFIG" = "no" ; then
11982 HAVE_M17N_FLT=no
11983 else
11984 PKG_CONFIG_MIN_VERSION=0.9.0
11985 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11987$as_echo_n "checking for m17n-flt... " >&6; }
11988
11989 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991$as_echo "yes" >&6; }
11992 succeeded=yes
11993
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11995$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11996 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11998$as_echo "$M17N_FLT_CFLAGS" >&6; }
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12001$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12002 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12004$as_echo "$M17N_FLT_LIBS" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007$as_echo "no" >&6; }
12008 M17N_FLT_CFLAGS=""
12009 M17N_FLT_LIBS=""
12010 ## If we have a custom action on failure, don't print errors, but
12011 ## do set a variable so people can do so.
12012 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12013
12014 fi
12015
12016
12017
12018 else
12019 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12020 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12021 fi
12022 fi
12023
12024 if test $succeeded = yes; then
12025 HAVE_M17N_FLT=yes
12026 else
12027 HAVE_M17N_FLT=no
12028 fi
12029
12030 if test "$HAVE_M17N_FLT" = "yes"; then
12031
12032$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12033
12034 fi
12035 fi
12036 fi
12037else
12038 HAVE_XFT=no
12039 HAVE_FREETYPE=no
12040 HAVE_LIBOTF=no
12041 HAVE_M17N_FLT=no
12042fi
12043
12044### End of font-backend (under X11) section.
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055### Use -lXpm if available, unless `--with-xpm=no'.
12056HAVE_XPM=no
12057LIBXPM=
12058if test "${HAVE_X11}" = "yes"; then
12059 if test "${with_xpm}" != "no"; then
12060 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
7834125e 12061if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
067d23c9
KY
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12063$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
7834125e 12064if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
067d23c9
KY
12065 $as_echo_n "(cached) " >&6
12066else
12067 ac_check_lib_save_LIBS=$LIBS
12068LIBS="-lXpm -lX11 $LIBS"
12069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h. */
12071
12072/* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075#ifdef __cplusplus
12076extern "C"
12077#endif
12078char XpmReadFileToPixmap ();
12079int
12080main ()
12081{
12082return XpmReadFileToPixmap ();
12083 ;
12084 return 0;
12085}
12086_ACEOF
12087if ac_fn_c_try_link "$LINENO"; then :
12088 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12089else
12090 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12091fi
12092rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094LIBS=$ac_check_lib_save_LIBS
12095fi
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12097$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
7834125e 12098if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
067d23c9
KY
12099 HAVE_XPM=yes
12100fi
12101
12102fi
12103
12104
12105 if test "${HAVE_XPM}" = "yes"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12107$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
12110#include "X11/xpm.h"
12111#ifndef XpmReturnAllocPixels
12112no_return_alloc_pixels
12113#endif
12114
12115_ACEOF
12116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12117 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12118 HAVE_XPM=no
12119else
12120 HAVE_XPM=yes
12121fi
12122rm -f conftest*
12123
12124
12125 if test "${HAVE_XPM}" = "yes"; then
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12127$as_echo "yes" >&6; }
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130$as_echo "no" >&6; }
12131 fi
12132 fi
12133 fi
12134
12135 if test "${HAVE_XPM}" = "yes"; then
12136
12137$as_echo "#define HAVE_XPM 1" >>confdefs.h
12138
12139 LIBXPM=-lXpm
12140 fi
12141fi
12142
12143
12144### Use -ljpeg if available, unless `--with-jpeg=no'.
12145HAVE_JPEG=no
12146LIBJPEG=
12147if test "${HAVE_X11}" = "yes"; then
12148 if test "${with_jpeg}" != "no"; then
12149 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
7834125e 12150if test "x$ac_cv_header_jerror_h" = x""yes; then :
067d23c9
KY
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12152$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
7834125e 12153if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
067d23c9
KY
12154 $as_echo_n "(cached) " >&6
12155else
12156 ac_check_lib_save_LIBS=$LIBS
12157LIBS="-ljpeg $LIBS"
12158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159/* end confdefs.h. */
12160
12161/* Override any GCC internal prototype to avoid an error.
12162 Use char because int might match the return type of a GCC
12163 builtin and then its argument prototype would still apply. */
12164#ifdef __cplusplus
12165extern "C"
12166#endif
12167char jpeg_destroy_compress ();
12168int
12169main ()
12170{
12171return jpeg_destroy_compress ();
12172 ;
12173 return 0;
12174}
12175_ACEOF
12176if ac_fn_c_try_link "$LINENO"; then :
12177 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12178else
12179 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12180fi
12181rm -f core conftest.err conftest.$ac_objext \
12182 conftest$ac_exeext conftest.$ac_ext
12183LIBS=$ac_check_lib_save_LIBS
12184fi
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12186$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
7834125e 12187if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
067d23c9
KY
12188 HAVE_JPEG=yes
12189fi
12190
12191fi
12192
12193
12194 fi
12195
12196 if test "${HAVE_JPEG}" = "yes"; then
12197 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12198
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h. */
12201#include <jpeglib.h>
12202 version=JPEG_LIB_VERSION
12203
12204_ACEOF
12205if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12206 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12207 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12208
12209else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12211$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12212 HAVE_JPEG=no
12213fi
12214rm -f conftest*
12215
12216 fi
12217 if test "${HAVE_JPEG}" = "yes"; then
12218 LIBJPEG=-ljpeg
12219 fi
12220fi
12221
12222
12223### Use -lpng if available, unless `--with-png=no'.
12224HAVE_PNG=no
12225LIBPNG=
12226if test "${HAVE_X11}" = "yes"; then
12227 if test "${with_png}" != "no"; then
12228 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12229 # in /usr/include/libpng.
12230 for ac_header in png.h libpng/png.h
12231do :
12232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12233ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
0afb4571
J
12234eval as_val=\$$as_ac_Header
12235 if test "x$as_val" = x""yes; then :
067d23c9
KY
12236 cat >>confdefs.h <<_ACEOF
12237#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12238_ACEOF
12239
12240fi
12241
12242done
12243
12244 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12246$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
7834125e 12247if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
067d23c9
KY
12248 $as_echo_n "(cached) " >&6
12249else
12250 ac_check_lib_save_LIBS=$LIBS
12251LIBS="-lpng -lz -lm $LIBS"
12252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253/* end confdefs.h. */
12254
12255/* Override any GCC internal prototype to avoid an error.
12256 Use char because int might match the return type of a GCC
12257 builtin and then its argument prototype would still apply. */
12258#ifdef __cplusplus
12259extern "C"
12260#endif
12261char png_get_channels ();
12262int
12263main ()
12264{
12265return png_get_channels ();
12266 ;
12267 return 0;
12268}
12269_ACEOF
12270if ac_fn_c_try_link "$LINENO"; then :
12271 ac_cv_lib_png_png_get_channels=yes
12272else
12273 ac_cv_lib_png_png_get_channels=no
12274fi
12275rm -f core conftest.err conftest.$ac_objext \
12276 conftest$ac_exeext conftest.$ac_ext
12277LIBS=$ac_check_lib_save_LIBS
12278fi
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12280$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
7834125e 12281if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
067d23c9
KY
12282 HAVE_PNG=yes
12283fi
12284
12285 fi
12286 fi
12287
12288 if test "${HAVE_PNG}" = "yes"; then
12289
12290$as_echo "#define HAVE_PNG 1" >>confdefs.h
12291
12292 LIBPNG="-lpng -lz -lm"
12293 fi
12294fi
12295
12296
12297### Use -ltiff if available, unless `--with-tiff=no'.
12298HAVE_TIFF=no
12299LIBTIFF=
12300if test "${HAVE_X11}" = "yes"; then
12301 if test "${with_tiff}" != "no"; then
12302 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
7834125e 12303if test "x$ac_cv_header_tiffio_h" = x""yes; then :
067d23c9
KY
12304 tifflibs="-lz -lm"
12305 # At least one tiff package requires the jpeg library.
12306 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12308$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
7834125e 12309if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
067d23c9
KY
12310 $as_echo_n "(cached) " >&6
12311else
12312 ac_check_lib_save_LIBS=$LIBS
12313LIBS="-ltiff $tifflibs $LIBS"
12314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315/* end confdefs.h. */
12316
12317/* Override any GCC internal prototype to avoid an error.
12318 Use char because int might match the return type of a GCC
12319 builtin and then its argument prototype would still apply. */
12320#ifdef __cplusplus
12321extern "C"
12322#endif
12323char TIFFGetVersion ();
12324int
12325main ()
12326{
12327return TIFFGetVersion ();
12328 ;
12329 return 0;
12330}
12331_ACEOF
12332if ac_fn_c_try_link "$LINENO"; then :
12333 ac_cv_lib_tiff_TIFFGetVersion=yes
12334else
12335 ac_cv_lib_tiff_TIFFGetVersion=no
12336fi
12337rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
12339LIBS=$ac_check_lib_save_LIBS
12340fi
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12342$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
7834125e 12343if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
067d23c9
KY
12344 HAVE_TIFF=yes
12345fi
12346
12347fi
12348
12349
12350 fi
12351
12352 if test "${HAVE_TIFF}" = "yes"; then
12353
12354$as_echo "#define HAVE_TIFF 1" >>confdefs.h
12355
12356 LIBTIFF=-ltiff
12357 fi
12358fi
12359
12360
12361### Use -lgif or -lungif if available, unless `--with-gif=no'.
12362HAVE_GIF=no
12363LIBGIF=
12364if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12365 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
7834125e 12366if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
067d23c9
KY
12367 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12368# Earlier versions can crash Emacs.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12370$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
7834125e 12371if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
067d23c9
KY
12372 $as_echo_n "(cached) " >&6
12373else
12374 ac_check_lib_save_LIBS=$LIBS
12375LIBS="-lgif $LIBS"
12376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h. */
12378
12379/* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382#ifdef __cplusplus
12383extern "C"
12384#endif
12385char EGifPutExtensionLast ();
12386int
12387main ()
12388{
12389return EGifPutExtensionLast ();
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_gif_EGifPutExtensionLast=yes
12396else
12397 ac_cv_lib_gif_EGifPutExtensionLast=no
12398fi
12399rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401LIBS=$ac_check_lib_save_LIBS
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12404$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
7834125e 12405if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
067d23c9
KY
12406 HAVE_GIF=yes
12407else
12408 HAVE_GIF=maybe
12409fi
12410
12411fi
12412
12413
12414
12415 if test "$HAVE_GIF" = yes; then
12416 LIBGIF=-lgif
12417 elif test "$HAVE_GIF" = maybe; then
12418# If gif_lib.h but no libgif, try libungif.
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12420$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
7834125e 12421if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
067d23c9
KY
12422 $as_echo_n "(cached) " >&6
12423else
12424 ac_check_lib_save_LIBS=$LIBS
12425LIBS="-lungif $LIBS"
12426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427/* end confdefs.h. */
12428
12429/* Override any GCC internal prototype to avoid an error.
12430 Use char because int might match the return type of a GCC
12431 builtin and then its argument prototype would still apply. */
12432#ifdef __cplusplus
12433extern "C"
12434#endif
12435char EGifPutExtensionLast ();
12436int
12437main ()
12438{
12439return EGifPutExtensionLast ();
12440 ;
12441 return 0;
12442}
12443_ACEOF
12444if ac_fn_c_try_link "$LINENO"; then :
12445 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12446else
12447 ac_cv_lib_ungif_EGifPutExtensionLast=no
12448fi
12449rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451LIBS=$ac_check_lib_save_LIBS
12452fi
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12454$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
7834125e 12455if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
067d23c9
KY
12456 HAVE_GIF=yes
12457else
12458 HAVE_GIF=no
12459fi
12460
12461 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12462 fi
12463
12464 if test "${HAVE_GIF}" = "yes"; then
12465
12466$as_echo "#define HAVE_GIF 1" >>confdefs.h
12467
12468 fi
12469fi
12470
12471
12472if test "${HAVE_X11}" = "yes"; then
12473 MISSING=""
12474 WITH_NO=""
12475 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12476 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12477 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12478 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12479 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12480 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12481 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12482 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12483 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12484 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12485
12486 if test "X${MISSING}" != X; then
0afb4571 12487 as_fn_error "The following required libraries were not found:
067d23c9
KY
12488 $MISSING
12489Maybe some development libraries/packages are missing?
12490If you don't want to link with them give
12491 $WITH_NO
12492as options to configure" "$LINENO" 5
12493 fi
12494fi
12495
12496### Use -lgpm if available, unless `--with-gpm=no'.
12497HAVE_GPM=no
12498LIBGPM=
12499MOUSE_SUPPORT=
12500if test "${with_gpm}" != "no"; then
12501 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
7834125e 12502if test "x$ac_cv_header_gpm_h" = x""yes; then :
067d23c9
KY
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12504$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
7834125e 12505if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
067d23c9
KY
12506 $as_echo_n "(cached) " >&6
12507else
12508 ac_check_lib_save_LIBS=$LIBS
12509LIBS="-lgpm $LIBS"
12510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511/* end confdefs.h. */
12512
12513/* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12516#ifdef __cplusplus
12517extern "C"
12518#endif
12519char Gpm_Open ();
12520int
12521main ()
12522{
12523return Gpm_Open ();
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528if ac_fn_c_try_link "$LINENO"; then :
12529 ac_cv_lib_gpm_Gpm_Open=yes
12530else
12531 ac_cv_lib_gpm_Gpm_Open=no
12532fi
12533rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535LIBS=$ac_check_lib_save_LIBS
12536fi
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12538$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
7834125e 12539if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
067d23c9
KY
12540 HAVE_GPM=yes
12541fi
12542
12543fi
12544
12545
12546
12547 if test "${HAVE_GPM}" = "yes"; then
12548
12549$as_echo "#define HAVE_GPM 1" >>confdefs.h
12550
12551 LIBGPM=-lgpm
12552 ## May be reset below.
12553 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12554 fi
12555fi
12556
12557
12558ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
7834125e 12559if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
067d23c9
KY
12560
12561$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12562
12563fi
12564
12565
12566
12567C_SWITCH_X_SYSTEM=
12568### Use NeXTstep API to implement GUI.
12569if test "${HAVE_NS}" = "yes"; then
12570
12571$as_echo "#define HAVE_NS 1" >>confdefs.h
12572
12573 if test "${NS_IMPL_COCOA}" = "yes"; then
12574
12575$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12576
12577 GNU_OBJC_CFLAGS=
12578 fi
12579 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12580
12581$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12582
12583 # See also .m.o rule in Makefile.in */
12584 # FIXME: are all these flags really needed? Document here why. */
12585 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12586 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12587 fi
12588 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12589
12590$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12591
12592 fi
12593 # We also have mouse menus.
12594 HAVE_MENUS=yes
12595 OTHER_FILES=ns-app
12596fi
12597
12598
12599### Use session management (-lSM -lICE) if available
12600HAVE_X_SM=no
12601LIBXSM=
12602if test "${HAVE_X11}" = "yes"; then
12603 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
7834125e 12604if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
067d23c9
KY
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12606$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
7834125e 12607if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
067d23c9
KY
12608 $as_echo_n "(cached) " >&6
12609else
12610 ac_check_lib_save_LIBS=$LIBS
12611LIBS="-lSM -lICE $LIBS"
12612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613/* end confdefs.h. */
12614
12615/* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12618#ifdef __cplusplus
12619extern "C"
12620#endif
12621char SmcOpenConnection ();
12622int
12623main ()
12624{
12625return SmcOpenConnection ();
12626 ;
12627 return 0;
12628}
12629_ACEOF
12630if ac_fn_c_try_link "$LINENO"; then :
12631 ac_cv_lib_SM_SmcOpenConnection=yes
12632else
12633 ac_cv_lib_SM_SmcOpenConnection=no
12634fi
12635rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12637LIBS=$ac_check_lib_save_LIBS
12638fi
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12640$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
7834125e 12641if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
067d23c9
KY
12642 HAVE_X_SM=yes
12643fi
12644
12645fi
12646
12647
12648
12649 if test "${HAVE_X_SM}" = "yes"; then
12650
12651$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12652
12653 LIBXSM="-lSM -lICE"
12654 case "$LIBS" in
12655 *-lSM*) ;;
12656 *) LIBS="$LIBXSM $LIBS" ;;
12657 esac
12658 fi
12659fi
12660
12661
12662### Use libxml (-lxml2) if available
12663if test "${with_xml2}" != "no"; then
12664 ### I'm not sure what the version number should be, so I just guessed.
12665
12666 succeeded=no
12667
12668 # Extract the first word of "pkg-config", so it can be a program name with args.
12669set dummy pkg-config; ac_word=$2
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671$as_echo_n "checking for $ac_word... " >&6; }
7834125e 12672if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
067d23c9
KY
12673 $as_echo_n "(cached) " >&6
12674else
12675 case $PKG_CONFIG in
12676 [\\/]* | ?:[\\/]*)
12677 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12678 ;;
12679 *)
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681for as_dir in $PATH
12682do
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12690 fi
12691done
12692 done
12693IFS=$as_save_IFS
12694
12695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12696 ;;
12697esac
12698fi
12699PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12700if test -n "$PKG_CONFIG"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12702$as_echo "$PKG_CONFIG" >&6; }
12703else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705$as_echo "no" >&6; }
12706fi
12707
12708
12709
12710 if test "$PKG_CONFIG" = "no" ; then
12711 HAVE_LIBXML2=no
12712 else
12713 PKG_CONFIG_MIN_VERSION=0.9.0
12714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12716$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12717
dab73760 12718 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12720$as_echo "yes" >&6; }
12721 succeeded=yes
12722
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12724$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12725 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12727$as_echo "$LIBXML2_CFLAGS" >&6; }
12728
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12730$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12731 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12733$as_echo "$LIBXML2_LIBS" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
12737 LIBXML2_CFLAGS=""
12738 LIBXML2_LIBS=""
12739 ## If we have a custom action on failure, don't print errors, but
12740 ## do set a variable so people can do so.
dab73760 12741 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12742
12743 fi
12744
12745
12746
12747 else
12748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12750 fi
12751 fi
12752
12753 if test $succeeded = yes; then
12754 HAVE_LIBXML2=yes
12755 else
12756 HAVE_LIBXML2=no
12757 fi
12758
12759 if test "${HAVE_LIBXML2}" = "yes"; then
12760 LIBS="$LIBXML2_LIBS $LIBS"
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12762$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
7834125e 12763if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
067d23c9
KY
12764 $as_echo_n "(cached) " >&6
12765else
12766 ac_check_lib_save_LIBS=$LIBS
12767LIBS="-lxml2 $LIBS"
12768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769/* end confdefs.h. */
12770
12771/* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12774#ifdef __cplusplus
12775extern "C"
12776#endif
12777char htmlReadMemory ();
12778int
12779main ()
12780{
12781return htmlReadMemory ();
12782 ;
12783 return 0;
12784}
12785_ACEOF
12786if ac_fn_c_try_link "$LINENO"; then :
12787 ac_cv_lib_xml2_htmlReadMemory=yes
12788else
12789 ac_cv_lib_xml2_htmlReadMemory=no
12790fi
12791rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793LIBS=$ac_check_lib_save_LIBS
12794fi
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12796$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
7834125e 12797if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
067d23c9
KY
12798 HAVE_LIBXML2=yes
12799else
12800 HAVE_LIBXML2=no
12801fi
12802
12803 if test "${HAVE_LIBXML2}" = "yes"; then
12804
12805$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12806
12807 else
12808 LIBXML2_LIBS=""
12809 LIBXML2_CFLAGS=""
12810 fi
12811 fi
12812fi
12813
12814
12815
12816# If netdb.h doesn't declare h_errno, we must declare it by hand.
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12818$as_echo_n "checking whether netdb declares h_errno... " >&6; }
7834125e 12819if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
067d23c9
KY
12820 $as_echo_n "(cached) " >&6
12821else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h. */
12824#include <netdb.h>
12825int
12826main ()
12827{
12828return h_errno;
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833if ac_fn_c_try_link "$LINENO"; then :
12834 emacs_cv_netdb_declares_h_errno=yes
12835else
12836 emacs_cv_netdb_declares_h_errno=no
12837fi
12838rm -f core conftest.err conftest.$ac_objext \
12839 conftest$ac_exeext conftest.$ac_ext
12840fi
12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12842$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12843if test $emacs_cv_netdb_declares_h_errno = yes; then
12844
12845$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12846
12847fi
12848
12849# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12850# for constant arguments. Useless!
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12852$as_echo_n "checking for working alloca.h... " >&6; }
7834125e 12853if test "${ac_cv_working_alloca_h+set}" = set; then :
067d23c9
KY
12854 $as_echo_n "(cached) " >&6
12855else
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h. */
12858#include <alloca.h>
12859int
12860main ()
12861{
12862char *p = (char *) alloca (2 * sizeof (int));
12863 if (p) return 0;
12864 ;
12865 return 0;
12866}
12867_ACEOF
12868if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_working_alloca_h=yes
12870else
12871 ac_cv_working_alloca_h=no
12872fi
12873rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875fi
12876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12877$as_echo "$ac_cv_working_alloca_h" >&6; }
12878if test $ac_cv_working_alloca_h = yes; then
12879
12880$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12881
12882fi
12883
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12885$as_echo_n "checking for alloca... " >&6; }
7834125e 12886if test "${ac_cv_func_alloca_works+set}" = set; then :
067d23c9
KY
12887 $as_echo_n "(cached) " >&6
12888else
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890/* end confdefs.h. */
12891#ifdef __GNUC__
12892# define alloca __builtin_alloca
12893#else
12894# ifdef _MSC_VER
12895# include <malloc.h>
12896# define alloca _alloca
12897# else
12898# ifdef HAVE_ALLOCA_H
12899# include <alloca.h>
12900# else
12901# ifdef _AIX
12902 #pragma alloca
12903# else
12904# ifndef alloca /* predefined by HP cc +Olibcalls */
7834125e 12905char *alloca ();
067d23c9
KY
12906# endif
12907# endif
12908# endif
12909# endif
12910#endif
12911
12912int
12913main ()
12914{
12915char *p = (char *) alloca (1);
12916 if (p) return 0;
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_func_alloca_works=yes
12923else
12924 ac_cv_func_alloca_works=no
12925fi
12926rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928fi
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12930$as_echo "$ac_cv_func_alloca_works" >&6; }
12931
12932if test $ac_cv_func_alloca_works = yes; then
12933
12934$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12935
12936else
12937 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12938# that cause trouble. Some versions do not even contain alloca or
12939# contain a buggy version. If you still want to use their alloca,
12940# use ar to extract alloca.o from them instead of compiling alloca.c.
12941
12942ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12943
12944$as_echo "#define C_ALLOCA 1" >>confdefs.h
12945
12946
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12948$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7834125e 12949if test "${ac_cv_os_cray+set}" = set; then :
067d23c9
KY
12950 $as_echo_n "(cached) " >&6
12951else
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h. */
12954#if defined CRAY && ! defined CRAY2
12955webecray
12956#else
12957wenotbecray
12958#endif
12959
12960_ACEOF
12961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12962 $EGREP "webecray" >/dev/null 2>&1; then :
12963 ac_cv_os_cray=yes
12964else
12965 ac_cv_os_cray=no
12966fi
12967rm -f conftest*
12968
12969fi
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12971$as_echo "$ac_cv_os_cray" >&6; }
12972if test $ac_cv_os_cray = yes; then
12973 for ac_func in _getb67 GETB67 getb67; do
12974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
0afb4571
J
12976eval as_val=\$$as_ac_var
12977 if test "x$as_val" = x""yes; then :
067d23c9
KY
12978
12979cat >>confdefs.h <<_ACEOF
12980#define CRAY_STACKSEG_END $ac_func
12981_ACEOF
12982
12983 break
12984fi
12985
12986 done
12987fi
12988
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12990$as_echo_n "checking stack direction for C alloca... " >&6; }
7834125e 12991if test "${ac_cv_c_stack_direction+set}" = set; then :
067d23c9
KY
12992 $as_echo_n "(cached) " >&6
12993else
12994 if test "$cross_compiling" = yes; then :
12995 ac_cv_c_stack_direction=0
12996else
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998/* end confdefs.h. */
12999$ac_includes_default
13000int
13001find_stack_direction ()
13002{
13003 static char *addr = 0;
13004 auto char dummy;
13005 if (addr == 0)
13006 {
13007 addr = &dummy;
13008 return find_stack_direction ();
13009 }
13010 else
13011 return (&dummy > addr) ? 1 : -1;
13012}
13013
13014int
13015main ()
13016{
13017 return find_stack_direction () < 0;
13018}
13019_ACEOF
13020if ac_fn_c_try_run "$LINENO"; then :
13021 ac_cv_c_stack_direction=1
13022else
13023 ac_cv_c_stack_direction=-1
13024fi
13025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13026 conftest.$ac_objext conftest.beam conftest.$ac_ext
13027fi
13028
13029fi
13030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13031$as_echo "$ac_cv_c_stack_direction" >&6; }
13032cat >>confdefs.h <<_ACEOF
13033#define STACK_DIRECTION $ac_cv_c_stack_direction
13034_ACEOF
13035
13036
13037fi
13038
13039
13040if test x"$ac_cv_func_alloca_works" != xyes; then
0afb4571 13041 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
13042fi
13043
13044# fmod, logb, and frexp are found in -lm on most systems.
13045# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13047$as_echo_n "checking for sqrt in -lm... " >&6; }
7834125e 13048if test "${ac_cv_lib_m_sqrt+set}" = set; then :
067d23c9
KY
13049 $as_echo_n "(cached) " >&6
13050else
13051 ac_check_lib_save_LIBS=$LIBS
13052LIBS="-lm $LIBS"
13053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054/* end confdefs.h. */
13055
13056/* Override any GCC internal prototype to avoid an error.
13057 Use char because int might match the return type of a GCC
13058 builtin and then its argument prototype would still apply. */
13059#ifdef __cplusplus
13060extern "C"
13061#endif
13062char sqrt ();
13063int
13064main ()
13065{
13066return sqrt ();
13067 ;
13068 return 0;
13069}
13070_ACEOF
13071if ac_fn_c_try_link "$LINENO"; then :
13072 ac_cv_lib_m_sqrt=yes
13073else
13074 ac_cv_lib_m_sqrt=no
13075fi
13076rm -f core conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13078LIBS=$ac_check_lib_save_LIBS
13079fi
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13081$as_echo "$ac_cv_lib_m_sqrt" >&6; }
7834125e 13082if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
067d23c9
KY
13083 cat >>confdefs.h <<_ACEOF
13084#define HAVE_LIBM 1
13085_ACEOF
13086
13087 LIBS="-lm $LIBS"
13088
13089fi
13090
13091
13092# Check for mail-locking functions in a "mail" library. Probably this should
13093# have the same check as for liblockfile below.
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13095$as_echo_n "checking for maillock in -lmail... " >&6; }
7834125e 13096if test "${ac_cv_lib_mail_maillock+set}" = set; then :
067d23c9
KY
13097 $as_echo_n "(cached) " >&6
13098else
13099 ac_check_lib_save_LIBS=$LIBS
13100LIBS="-lmail $LIBS"
13101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102/* end confdefs.h. */
13103
13104/* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13107#ifdef __cplusplus
13108extern "C"
13109#endif
13110char maillock ();
13111int
13112main ()
13113{
13114return maillock ();
13115 ;
13116 return 0;
13117}
13118_ACEOF
13119if ac_fn_c_try_link "$LINENO"; then :
13120 ac_cv_lib_mail_maillock=yes
13121else
13122 ac_cv_lib_mail_maillock=no
13123fi
13124rm -f core conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126LIBS=$ac_check_lib_save_LIBS
13127fi
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13129$as_echo "$ac_cv_lib_mail_maillock" >&6; }
7834125e 13130if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
067d23c9
KY
13131 have_mail=yes
13132else
13133 have_mail=no
13134fi
13135
13136if test $have_mail = yes; then
13137 LIBS_MAIL=-lmail
13138 LIBS="$LIBS_MAIL $LIBS"
13139
13140$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13141
13142else
13143 LIBS_MAIL=
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13146$as_echo_n "checking for maillock in -llockfile... " >&6; }
7834125e 13147if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
067d23c9
KY
13148 $as_echo_n "(cached) " >&6
13149else
13150 ac_check_lib_save_LIBS=$LIBS
13151LIBS="-llockfile $LIBS"
13152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h. */
13154
13155/* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13158#ifdef __cplusplus
13159extern "C"
13160#endif
13161char maillock ();
13162int
13163main ()
13164{
13165return maillock ();
13166 ;
13167 return 0;
13168}
13169_ACEOF
13170if ac_fn_c_try_link "$LINENO"; then :
13171 ac_cv_lib_lockfile_maillock=yes
13172else
13173 ac_cv_lib_lockfile_maillock=no
13174fi
13175rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13177LIBS=$ac_check_lib_save_LIBS
13178fi
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13180$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
7834125e 13181if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
067d23c9
KY
13182 have_lockfile=yes
13183else
13184 have_lockfile=no
13185fi
13186
13187if test $have_lockfile = yes; then
13188 LIBS_MAIL=-llockfile
13189 LIBS="$LIBS_MAIL $LIBS"
13190
13191$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13192
13193else
13194# If we have the shared liblockfile, assume we must use it for mail
13195# locking (e.g. Debian). If we couldn't link against liblockfile
13196# (no liblockfile.a installed), ensure that we don't need to.
13197 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13198set dummy liblockfile.so; ac_word=$2
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200$as_echo_n "checking for $ac_word... " >&6; }
7834125e 13201if test "${ac_cv_prog_liblockfile+set}" = set; then :
067d23c9
KY
13202 $as_echo_n "(cached) " >&6
13203else
13204 if test -n "$liblockfile"; then
13205 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13206else
13207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13209for as_dir in $as_dummy
13210do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_liblockfile="yes"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219done
13220 done
13221IFS=$as_save_IFS
13222
13223 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13224fi
13225fi
13226liblockfile=$ac_cv_prog_liblockfile
13227if test -n "$liblockfile"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13229$as_echo "$liblockfile" >&6; }
13230else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232$as_echo "no" >&6; }
13233fi
13234
13235
13236 if test $ac_cv_prog_liblockfile = yes; then
0afb4571 13237 as_fn_error "Shared liblockfile found but can't link against it.
067d23c9
KY
13238This probably means that movemail could lose mail.
13239There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13240 fi
13241fi
13242for ac_func in touchlock
13243do :
13244 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
7834125e 13245if test "x$ac_cv_func_touchlock" = x""yes; then :
067d23c9
KY
13246 cat >>confdefs.h <<_ACEOF
13247#define HAVE_TOUCHLOCK 1
13248_ACEOF
13249
13250fi
13251done
13252
13253for ac_header in maillock.h
13254do :
13255 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
7834125e 13256if test "x$ac_cv_header_maillock_h" = x""yes; then :
067d23c9
KY
13257 cat >>confdefs.h <<_ACEOF
13258#define HAVE_MAILLOCK_H 1
13259_ACEOF
13260
13261fi
13262
13263done
13264
13265
13266
13267## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13268## interlock access to the mail spool. The alternative is a lock file named
13269## /usr/spool/mail/$USER.lock.
13270mail_lock=no
13271case "$opsys" in
13272 aix4-2) mail_lock="lockf" ;;
13273
13274 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13275
13276 ## On GNU/Linux systems, both methods are used by various mail programs.
13277 ## I assume most people are using newer mailers that have heard of flock.
13278 ## Change this if you need to.
13279 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13280 ## configure gets the right answers, and that means *NOT* using flock.
13281 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13282 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13283 ## Debian maintainer hasn't provided a clean fix for Emacs.
13284 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13285 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13286 ## correct logic. -- fx
13287 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13288 ## liblockfile is a Free Software replacement for libmail, used on
13289 ## Debian systems and elsewhere. -rfr.
13290 gnu-*)
13291 mail_lock="flock"
13292 if test $have_mail = yes || test $have_lockfile = yes; then
13293 test $ac_cv_header_maillock_h = yes && mail_lock=no
13294 fi
13295 ;;
13296esac
13297
13298BLESSMAIL_TARGET=
13299case "$mail_lock" in
13300 flock)
13301$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13302 ;;
13303
13304 lockf)
13305$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13306 ;;
13307
13308 *) BLESSMAIL_TARGET="need-blessmail" ;;
13309esac
13310
13311
13312
13313for ac_func in gethostname getdomainname dup2 \
13314rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13315random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 13316strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
13317utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13318__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13319sendto recvfrom getsockopt setsockopt getsockname getpeername \
13320gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13321memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13322cfmakeraw cfsetspeed isnan copysign __executable_start
13323do :
13324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13325ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
0afb4571
J
13326eval as_val=\$$as_ac_var
13327 if test "x$as_val" = x""yes; then :
067d23c9
KY
13328 cat >>confdefs.h <<_ACEOF
13329#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13330_ACEOF
13331
13332fi
13333done
13334
13335
2018939f
AS
13336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13337$as_echo_n "checking for __builtin_unwind_init... " >&6; }
7834125e 13338if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
2018939f
AS
13339 $as_echo_n "(cached) " >&6
13340else
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342/* end confdefs.h. */
13343
13344int
13345main ()
13346{
13347__builtin_unwind_init ();
13348 ;
13349 return 0;
13350}
13351_ACEOF
13352if ac_fn_c_try_link "$LINENO"; then :
13353 emacs_cv_func___builtin_unwind_init=yes
13354else
13355 emacs_cv_func___builtin_unwind_init=no
13356fi
13357rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13361$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13362if test $emacs_cv_func___builtin_unwind_init = yes; then
13363
13364$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13365
13366fi
13367
067d23c9
KY
13368for ac_header in sys/un.h
13369do :
13370 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
7834125e 13371if test "x$ac_cv_header_sys_un_h" = x""yes; then :
067d23c9
KY
13372 cat >>confdefs.h <<_ACEOF
13373#define HAVE_SYS_UN_H 1
13374_ACEOF
13375
13376fi
13377
13378done
13379
13380
1f5d53eb
PE
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13382$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7834125e 13383if test "${ac_cv_sys_largefile_source+set}" = set; then :
067d23c9
KY
13384 $as_echo_n "(cached) " >&6
13385else
1f5d53eb
PE
13386 while :; do
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13388/* end confdefs.h. */
1f5d53eb
PE
13389#include <sys/types.h> /* for off_t */
13390 #include <stdio.h>
067d23c9
KY
13391int
13392main ()
13393{
1f5d53eb
PE
13394int (*fp) (FILE *, off_t, int) = fseeko;
13395 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13396 ;
13397 return 0;
13398}
13399_ACEOF
13400if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13401 ac_cv_sys_largefile_source=no; break
067d23c9
KY
13402fi
13403rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
1f5d53eb 13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13406/* end confdefs.h. */
1f5d53eb
PE
13407#define _LARGEFILE_SOURCE 1
13408#include <sys/types.h> /* for off_t */
13409 #include <stdio.h>
067d23c9
KY
13410int
13411main ()
13412{
1f5d53eb
PE
13413int (*fp) (FILE *, off_t, int) = fseeko;
13414 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13415 ;
13416 return 0;
13417}
13418_ACEOF
13419if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13420 ac_cv_sys_largefile_source=1; break
067d23c9
KY
13421fi
13422rm -f core conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext conftest.$ac_ext
1f5d53eb
PE
13424 ac_cv_sys_largefile_source=unknown
13425 break
13426done
067d23c9 13427fi
1f5d53eb
PE
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13429$as_echo "$ac_cv_sys_largefile_source" >&6; }
13430case $ac_cv_sys_largefile_source in #(
13431 no | unknown) ;;
13432 *)
13433cat >>confdefs.h <<_ACEOF
13434#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13435_ACEOF
13436;;
13437esac
13438rm -rf conftest*
067d23c9 13439
1f5d53eb
PE
13440# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13441# in glibc 2.1.3, but that breaks too many other things.
13442# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13443if test $ac_cv_sys_largefile_source != unknown; then
13444
13445$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
067d23c9 13446
067d23c9
KY
13447fi
13448
1f5d53eb
PE
13449
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13451$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
7834125e 13452if test "${ac_cv_func_getpgrp_void+set}" = set; then :
067d23c9
KY
13453 $as_echo_n "(cached) " >&6
13454else
1f5d53eb 13455 # Use it with a single arg.
067d23c9
KY
13456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457/* end confdefs.h. */
1f5d53eb 13458$ac_includes_default
067d23c9
KY
13459int
13460main ()
13461{
1f5d53eb 13462getpgrp (0);
067d23c9
KY
13463 ;
13464 return 0;
13465}
13466_ACEOF
1f5d53eb
PE
13467if ac_fn_c_try_compile "$LINENO"; then :
13468 ac_cv_func_getpgrp_void=no
067d23c9 13469else
1f5d53eb 13470 ac_cv_func_getpgrp_void=yes
067d23c9 13471fi
1f5d53eb
PE
13472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473
067d23c9 13474fi
1f5d53eb
PE
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13476$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13477if test $ac_cv_func_getpgrp_void = yes; then
13478
13479$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
067d23c9
KY
13480
13481fi
13482
1f5d53eb
PE
13483
13484# Configure gnulib.
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495 LIBC_FATAL_STDERR_=1
13496 export LIBC_FATAL_STDERR_
13497
13498
942f733f
PE
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13500$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7834125e 13501if test "${ac_cv_c_bigendian+set}" = set; then :
942f733f
PE
13502 $as_echo_n "(cached) " >&6
13503else
13504 ac_cv_c_bigendian=unknown
13505 # See if we're dealing with a universal compiler.
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h. */
13508#ifndef __APPLE_CC__
13509 not a universal capable compiler
13510 #endif
13511 typedef int dummy;
13512
13513_ACEOF
13514if ac_fn_c_try_compile "$LINENO"; then :
13515
13516 # Check for potential -arch flags. It is not universal unless
13517 # there are at least two -arch flags with different values.
13518 ac_arch=
13519 ac_prev=
13520 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13521 if test -n "$ac_prev"; then
13522 case $ac_word in
13523 i?86 | x86_64 | ppc | ppc64)
13524 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13525 ac_arch=$ac_word
13526 else
13527 ac_cv_c_bigendian=universal
13528 break
13529 fi
13530 ;;
13531 esac
13532 ac_prev=
13533 elif test "x$ac_word" = "x-arch"; then
13534 ac_prev=arch
13535 fi
13536 done
13537fi
13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 if test $ac_cv_c_bigendian = unknown; then
13540 # See if sys/param.h defines the BYTE_ORDER macro.
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542/* end confdefs.h. */
13543#include <sys/types.h>
13544 #include <sys/param.h>
13545
13546int
13547main ()
13548{
13549#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13550 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13551 && LITTLE_ENDIAN)
13552 bogus endian macros
13553 #endif
13554
13555 ;
13556 return 0;
13557}
13558_ACEOF
13559if ac_fn_c_try_compile "$LINENO"; then :
13560 # It does; now see whether it defined to BIG_ENDIAN or not.
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h. */
13563#include <sys/types.h>
13564 #include <sys/param.h>
13565
13566int
13567main ()
13568{
13569#if BYTE_ORDER != BIG_ENDIAN
13570 not big endian
13571 #endif
13572
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577if ac_fn_c_try_compile "$LINENO"; then :
13578 ac_cv_c_bigendian=yes
13579else
13580 ac_cv_c_bigendian=no
13581fi
13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583fi
13584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 fi
13586 if test $ac_cv_c_bigendian = unknown; then
13587 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589/* end confdefs.h. */
13590#include <limits.h>
13591
13592int
13593main ()
13594{
13595#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13596 bogus endian macros
13597 #endif
13598
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603if ac_fn_c_try_compile "$LINENO"; then :
13604 # It does; now see whether it defined to _BIG_ENDIAN or not.
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606/* end confdefs.h. */
13607#include <limits.h>
13608
13609int
13610main ()
13611{
13612#ifndef _BIG_ENDIAN
13613 not big endian
13614 #endif
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620if ac_fn_c_try_compile "$LINENO"; then :
13621 ac_cv_c_bigendian=yes
13622else
13623 ac_cv_c_bigendian=no
13624fi
13625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626fi
13627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 fi
13629 if test $ac_cv_c_bigendian = unknown; then
13630 # Compile a test program.
13631 if test "$cross_compiling" = yes; then :
13632 # Try to guess by grepping values from an object file.
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h. */
13635short int ascii_mm[] =
13636 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13637 short int ascii_ii[] =
13638 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13639 int use_ascii (int i) {
13640 return ascii_mm[i] + ascii_ii[i];
13641 }
13642 short int ebcdic_ii[] =
13643 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13644 short int ebcdic_mm[] =
13645 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13646 int use_ebcdic (int i) {
13647 return ebcdic_mm[i] + ebcdic_ii[i];
13648 }
13649 extern int foo;
13650
13651int
13652main ()
13653{
13654return use_ascii (foo) == use_ebcdic (foo);
13655 ;
13656 return 0;
13657}
13658_ACEOF
13659if ac_fn_c_try_compile "$LINENO"; then :
13660 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13661 ac_cv_c_bigendian=yes
13662 fi
13663 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13664 if test "$ac_cv_c_bigendian" = unknown; then
13665 ac_cv_c_bigendian=no
13666 else
13667 # finding both strings is unlikely to happen, but who knows?
13668 ac_cv_c_bigendian=unknown
13669 fi
13670 fi
13671fi
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673else
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675/* end confdefs.h. */
13676$ac_includes_default
13677int
13678main ()
13679{
13680
13681 /* Are we little or big endian? From Harbison&Steele. */
13682 union
13683 {
13684 long int l;
13685 char c[sizeof (long int)];
13686 } u;
13687 u.l = 1;
13688 return u.c[sizeof (long int) - 1] == 1;
13689
13690 ;
13691 return 0;
13692}
13693_ACEOF
13694if ac_fn_c_try_run "$LINENO"; then :
13695 ac_cv_c_bigendian=no
13696else
13697 ac_cv_c_bigendian=yes
13698fi
13699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13700 conftest.$ac_objext conftest.beam conftest.$ac_ext
13701fi
13702
13703 fi
13704fi
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13706$as_echo "$ac_cv_c_bigendian" >&6; }
13707 case $ac_cv_c_bigendian in #(
13708 yes)
13709 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13710;; #(
13711 no)
13712 ;; #(
13713 universal)
13714
13715$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13716
13717 ;; #(
13718 *)
0afb4571
J
13719 as_fn_error "unknown endianness
13720 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
942f733f
PE
13721 esac
13722
13723
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13725$as_echo_n "checking for inline... " >&6; }
7834125e 13726if test "${ac_cv_c_inline+set}" = set; then :
942f733f
PE
13727 $as_echo_n "(cached) " >&6
13728else
13729 ac_cv_c_inline=no
13730for ac_kw in inline __inline__ __inline; do
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h. */
13733#ifndef __cplusplus
13734typedef int foo_t;
13735static $ac_kw foo_t static_foo () {return 0; }
13736$ac_kw foo_t foo () {return 0; }
13737#endif
13738
13739_ACEOF
13740if ac_fn_c_try_compile "$LINENO"; then :
13741 ac_cv_c_inline=$ac_kw
13742fi
13743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 test "$ac_cv_c_inline" != no && break
13745done
13746
13747fi
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13749$as_echo "$ac_cv_c_inline" >&6; }
13750
13751case $ac_cv_c_inline in
13752 inline | yes) ;;
13753 *)
13754 case $ac_cv_c_inline in
13755 no) ac_val=;;
13756 *) ac_val=$ac_cv_c_inline;;
13757 esac
13758 cat >>confdefs.h <<_ACEOF
13759#ifndef __cplusplus
13760#define inline $ac_val
13761#endif
13762_ACEOF
13763 ;;
13764esac
13765
13766
1f5d53eb
PE
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13768$as_echo_n "checking whether strtold conforms to C99... " >&6; }
7834125e 13769if test "${gl_cv_func_c99_strtold+set}" = set; then :
067d23c9
KY
13770 $as_echo_n "(cached) " >&6
13771else
1f5d53eb 13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13773/* end confdefs.h. */
1f5d53eb
PE
13774/* On HP-UX before 11.23, strtold returns a struct instead of
13775 long double. Reject implementations like that, by requiring
13776 compatibility with the C99 prototype. */
13777 #include <stdlib.h>
13778 static long double (*p) (char const *, char **) = strtold;
13779 static long double
13780 test (char const *nptr, char **endptr)
13781 {
13782 long double r;
13783 r = strtold (nptr, endptr);
13784 return r;
13785 }
067d23c9
KY
13786int
13787main ()
13788{
1f5d53eb 13789return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
067d23c9
KY
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13795 gl_cv_func_c99_strtold=yes
067d23c9 13796else
1f5d53eb 13797 gl_cv_func_c99_strtold=no
067d23c9
KY
13798fi
13799rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
067d23c9 13801fi
1f5d53eb
PE
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13803$as_echo "$gl_cv_func_c99_strtold" >&6; }
13804 if test $gl_cv_func_c99_strtold = yes; then
067d23c9 13805
1f5d53eb 13806$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
067d23c9 13807
1f5d53eb 13808 fi
067d23c9 13809
5fa4ac76
PE
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13811$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
7834125e 13812if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
5fa4ac76
PE
13813 $as_echo_n "(cached) " >&6
13814else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816/* end confdefs.h. */
13817
13818#include <sys/types.h>
13819#include <sys/stat.h>
13820int
13821main ()
13822{
13823struct stat s; s.st_dm_mode;
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828if ac_fn_c_try_compile "$LINENO"; then :
13829 ac_cv_struct_st_dm_mode=yes
13830else
13831 ac_cv_struct_st_dm_mode=no
13832fi
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834fi
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13836$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13837
13838 if test $ac_cv_struct_st_dm_mode = yes; then
13839
13840$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13841
13842 fi
13843
13844
13845ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
7834125e 13846if test "x$ac_cv_have_decl_strmode" = x""yes; then :
5fa4ac76
PE
13847 ac_have_decl=1
13848else
13849 ac_have_decl=0
13850fi
13851
13852cat >>confdefs.h <<_ACEOF
13853#define HAVE_DECL_STRMODE $ac_have_decl
13854_ACEOF
13855
067d23c9 13856
1f5d53eb
PE
13857 GNULIB__EXIT=0;
13858 GNULIB_ATOLL=0;
13859 GNULIB_CALLOC_POSIX=0;
13860 GNULIB_CANONICALIZE_FILE_NAME=0;
13861 GNULIB_GETLOADAVG=0;
13862 GNULIB_GETSUBOPT=0;
13863 GNULIB_GRANTPT=0;
13864 GNULIB_MALLOC_POSIX=0;
9411886d 13865 GNULIB_MBTOWC=0;
1f5d53eb
PE
13866 GNULIB_MKDTEMP=0;
13867 GNULIB_MKOSTEMP=0;
13868 GNULIB_MKOSTEMPS=0;
13869 GNULIB_MKSTEMP=0;
13870 GNULIB_MKSTEMPS=0;
13871 GNULIB_PTSNAME=0;
13872 GNULIB_PUTENV=0;
13873 GNULIB_RANDOM_R=0;
13874 GNULIB_REALLOC_POSIX=0;
13875 GNULIB_REALPATH=0;
13876 GNULIB_RPMATCH=0;
13877 GNULIB_SETENV=0;
13878 GNULIB_STRTOD=0;
13879 GNULIB_STRTOLL=0;
13880 GNULIB_STRTOULL=0;
13881 GNULIB_SYSTEM_POSIX=0;
13882 GNULIB_UNLOCKPT=0;
13883 GNULIB_UNSETENV=0;
9411886d 13884 GNULIB_WCTOMB=0;
1f5d53eb
PE
13885 HAVE__EXIT=1;
13886 HAVE_ATOLL=1;
13887 HAVE_CANONICALIZE_FILE_NAME=1;
13888 HAVE_DECL_GETLOADAVG=1;
13889 HAVE_GETSUBOPT=1;
13890 HAVE_GRANTPT=1;
13891 HAVE_MKDTEMP=1;
13892 HAVE_MKOSTEMP=1;
13893 HAVE_MKOSTEMPS=1;
13894 HAVE_MKSTEMP=1;
13895 HAVE_MKSTEMPS=1;
13896 HAVE_PTSNAME=1;
13897 HAVE_RANDOM_H=1;
13898 HAVE_RANDOM_R=1;
13899 HAVE_REALPATH=1;
13900 HAVE_RPMATCH=1;
13901 HAVE_SETENV=1;
13902 HAVE_DECL_SETENV=1;
13903 HAVE_STRTOD=1;
13904 HAVE_STRTOLL=1;
13905 HAVE_STRTOULL=1;
13906 HAVE_STRUCT_RANDOM_DATA=1;
13907 HAVE_SYS_LOADAVG_H=0;
13908 HAVE_UNLOCKPT=1;
13909 HAVE_DECL_UNSETENV=1;
13910 REPLACE_CALLOC=0;
13911 REPLACE_CANONICALIZE_FILE_NAME=0;
13912 REPLACE_MALLOC=0;
9411886d 13913 REPLACE_MBTOWC=0;
1f5d53eb
PE
13914 REPLACE_MKSTEMP=0;
13915 REPLACE_PUTENV=0;
13916 REPLACE_REALLOC=0;
13917 REPLACE_REALPATH=0;
13918 REPLACE_SETENV=0;
13919 REPLACE_STRTOD=0;
13920 REPLACE_UNSETENV=0;
9411886d 13921 REPLACE_WCTOMB=0;
067d23c9 13922
067d23c9 13923
1f5d53eb
PE
13924 GNULIB_CHOWN=0;
13925 GNULIB_CLOSE=0;
13926 GNULIB_DUP2=0;
13927 GNULIB_DUP3=0;
13928 GNULIB_ENVIRON=0;
13929 GNULIB_EUIDACCESS=0;
13930 GNULIB_FACCESSAT=0;
13931 GNULIB_FCHDIR=0;
13932 GNULIB_FCHOWNAT=0;
13933 GNULIB_FSYNC=0;
13934 GNULIB_FTRUNCATE=0;
13935 GNULIB_GETCWD=0;
13936 GNULIB_GETDOMAINNAME=0;
13937 GNULIB_GETDTABLESIZE=0;
13938 GNULIB_GETGROUPS=0;
13939 GNULIB_GETHOSTNAME=0;
13940 GNULIB_GETLOGIN=0;
13941 GNULIB_GETLOGIN_R=0;
13942 GNULIB_GETPAGESIZE=0;
13943 GNULIB_GETUSERSHELL=0;
13944 GNULIB_LCHOWN=0;
13945 GNULIB_LINK=0;
13946 GNULIB_LINKAT=0;
13947 GNULIB_LSEEK=0;
13948 GNULIB_PIPE=0;
13949 GNULIB_PIPE2=0;
13950 GNULIB_PREAD=0;
13951 GNULIB_PWRITE=0;
13952 GNULIB_READLINK=0;
13953 GNULIB_READLINKAT=0;
13954 GNULIB_RMDIR=0;
13955 GNULIB_SLEEP=0;
13956 GNULIB_SYMLINK=0;
13957 GNULIB_SYMLINKAT=0;
13958 GNULIB_TTYNAME_R=0;
13959 GNULIB_UNISTD_H_GETOPT=0;
13960 GNULIB_UNISTD_H_SIGPIPE=0;
13961 GNULIB_UNLINK=0;
13962 GNULIB_UNLINKAT=0;
13963 GNULIB_USLEEP=0;
13964 GNULIB_WRITE=0;
13965 HAVE_CHOWN=1;
13966 HAVE_DUP2=1;
13967 HAVE_DUP3=1;
13968 HAVE_EUIDACCESS=1;
13969 HAVE_FACCESSAT=1;
13970 HAVE_FCHDIR=1;
13971 HAVE_FCHOWNAT=1;
13972 HAVE_FSYNC=1;
13973 HAVE_FTRUNCATE=1;
13974 HAVE_GETDTABLESIZE=1;
13975 HAVE_GETGROUPS=1;
13976 HAVE_GETHOSTNAME=1;
13977 HAVE_GETLOGIN=1;
13978 HAVE_GETPAGESIZE=1;
13979 HAVE_LCHOWN=1;
13980 HAVE_LINK=1;
13981 HAVE_LINKAT=1;
13982 HAVE_PIPE=1;
13983 HAVE_PIPE2=1;
13984 HAVE_PREAD=1;
13985 HAVE_PWRITE=1;
13986 HAVE_READLINK=1;
13987 HAVE_READLINKAT=1;
13988 HAVE_SLEEP=1;
13989 HAVE_SYMLINK=1;
13990 HAVE_SYMLINKAT=1;
13991 HAVE_UNLINKAT=1;
13992 HAVE_USLEEP=1;
13993 HAVE_DECL_ENVIRON=1;
13994 HAVE_DECL_FCHDIR=1;
13995 HAVE_DECL_GETDOMAINNAME=1;
13996 HAVE_DECL_GETLOGIN_R=1;
13997 HAVE_DECL_GETPAGESIZE=1;
13998 HAVE_DECL_GETUSERSHELL=1;
13999 HAVE_DECL_TTYNAME_R=1;
14000 HAVE_OS_H=0;
14001 HAVE_SYS_PARAM_H=0;
14002 REPLACE_CHOWN=0;
14003 REPLACE_CLOSE=0;
14004 REPLACE_DUP=0;
14005 REPLACE_DUP2=0;
14006 REPLACE_FCHOWNAT=0;
14007 REPLACE_GETCWD=0;
14008 REPLACE_GETDOMAINNAME=0;
14009 REPLACE_GETLOGIN_R=0;
14010 REPLACE_GETGROUPS=0;
14011 REPLACE_GETPAGESIZE=0;
14012 REPLACE_LCHOWN=0;
14013 REPLACE_LINK=0;
14014 REPLACE_LINKAT=0;
14015 REPLACE_LSEEK=0;
14016 REPLACE_PREAD=0;
14017 REPLACE_PWRITE=0;
14018 REPLACE_READLINK=0;
14019 REPLACE_RMDIR=0;
14020 REPLACE_SLEEP=0;
14021 REPLACE_SYMLINK=0;
14022 REPLACE_TTYNAME_R=0;
14023 REPLACE_UNLINK=0;
14024 REPLACE_UNLINKAT=0;
14025 REPLACE_USLEEP=0;
14026 REPLACE_WRITE=0;
14027 UNISTD_H_HAVE_WINSOCK2_H=0;
14028 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
067d23c9 14029
067d23c9 14030
1f5d53eb
PE
14031
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14034$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7834125e 14035if test "${gl_cv_have_include_next+set}" = set; then :
067d23c9
KY
14036 $as_echo_n "(cached) " >&6
14037else
1f5d53eb
PE
14038 rm -rf conftestd1a conftestd1b conftestd2
14039 mkdir conftestd1a conftestd1b conftestd2
14040 cat <<EOF > conftestd1a/conftest.h
14041#define DEFINED_IN_CONFTESTD1
14042#include_next <conftest.h>
14043#ifdef DEFINED_IN_CONFTESTD2
14044int foo;
14045#else
14046#error "include_next doesn't work"
067d23c9 14047#endif
1f5d53eb
PE
14048EOF
14049 cat <<EOF > conftestd1b/conftest.h
14050#define DEFINED_IN_CONFTESTD1
14051#include <stdio.h>
14052#include_next <conftest.h>
14053#ifdef DEFINED_IN_CONFTESTD2
14054int foo;
14055#else
14056#error "include_next doesn't work"
14057#endif
14058EOF
14059 cat <<EOF > conftestd2/conftest.h
14060#ifndef DEFINED_IN_CONFTESTD1
14061#error "include_next test doesn't work"
14062#endif
14063#define DEFINED_IN_CONFTESTD2
14064EOF
14065 gl_save_CPPFLAGS="$CPPFLAGS"
14066 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068/* end confdefs.h. */
14069#include <conftest.h>
067d23c9 14070_ACEOF
1f5d53eb
PE
14071if ac_fn_c_try_compile "$LINENO"; then :
14072 gl_cv_have_include_next=yes
067d23c9 14073else
1f5d53eb
PE
14074 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14076/* end confdefs.h. */
14077#include <conftest.h>
067d23c9 14078_ACEOF
1f5d53eb
PE
14079if ac_fn_c_try_compile "$LINENO"; then :
14080 gl_cv_have_include_next=buggy
14081else
14082 gl_cv_have_include_next=no
067d23c9 14083fi
1f5d53eb 14084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9
KY
14085
14086fi
1f5d53eb
PE
14087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 CPPFLAGS="$gl_save_CPPFLAGS"
14089 rm -rf conftestd1a conftestd1b conftestd2
067d23c9 14090
1f5d53eb
PE
14091fi
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14093$as_echo "$gl_cv_have_include_next" >&6; }
14094 PRAGMA_SYSTEM_HEADER=
14095 if test $gl_cv_have_include_next = yes; then
14096 INCLUDE_NEXT=include_next
14097 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14098 if test -n "$GCC"; then
14099 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14100 fi
14101 else
14102 if test $gl_cv_have_include_next = buggy; then
14103 INCLUDE_NEXT=include
14104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14105 else
14106 INCLUDE_NEXT=include
14107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14108 fi
14109 fi
067d23c9
KY
14110
14111
067d23c9 14112
1f5d53eb
PE
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14114$as_echo_n "checking whether system header files limit the line length... " >&6; }
7834125e 14115if test "${gl_cv_pragma_columns+set}" = set; then :
1f5d53eb
PE
14116 $as_echo_n "(cached) " >&6
14117else
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119/* end confdefs.h. */
067d23c9 14120
1f5d53eb
PE
14121#ifdef __TANDEM
14122choke me
14123#endif
067d23c9 14124
067d23c9 14125_ACEOF
1f5d53eb
PE
14126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14127 $EGREP "choke me" >/dev/null 2>&1; then :
14128 gl_cv_pragma_columns=yes
14129else
14130 gl_cv_pragma_columns=no
067d23c9 14131fi
1f5d53eb 14132rm -f conftest*
067d23c9 14133
067d23c9
KY
14134
14135fi
1f5d53eb
PE
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14137$as_echo "$gl_cv_pragma_columns" >&6; }
14138 if test $gl_cv_pragma_columns = yes; then
14139 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14140 else
14141 PRAGMA_COLUMNS=
14142 fi
067d23c9 14143
067d23c9 14144
067d23c9
KY
14145
14146
067d23c9 14147
067d23c9
KY
14148
14149
067d23c9 14150
067d23c9 14151
067d23c9
KY
14152
14153
067d23c9 14154
067d23c9 14155
067d23c9 14156
067d23c9 14157
067d23c9 14158
067d23c9 14159
1f5d53eb
PE
14160 if test $gl_cv_have_include_next = yes; then
14161 gl_cv_next_getopt_h='<'getopt.h'>'
14162 else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14164$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
7834125e 14165if test "${gl_cv_next_getopt_h+set}" = set; then :
1f5d53eb
PE
14166 $as_echo_n "(cached) " >&6
14167else
067d23c9 14168
1f5d53eb 14169 if test $ac_cv_header_getopt_h = yes; then
067d23c9 14170
067d23c9 14171
1f5d53eb
PE
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173/* end confdefs.h. */
14174#include <getopt.h>
14175
14176_ACEOF
14177 case "$host_os" in
14178 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14179 *) gl_absname_cpp="$ac_cpp" ;;
14180 esac
14181 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14182 sed -n '\#/getopt.h#{
14183 s#.*"\(.*/getopt.h\)".*#\1#
14184 s#^/[^/]#//&#
14185 p
14186 q
14187 }'`'"'
14188 else
14189 gl_cv_next_getopt_h='<'getopt.h'>'
14190 fi
067d23c9
KY
14191
14192
14193fi
1f5d53eb
PE
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14195$as_echo "$gl_cv_next_getopt_h" >&6; }
14196 fi
14197 NEXT_GETOPT_H=$gl_cv_next_getopt_h
067d23c9 14198
1f5d53eb
PE
14199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14201 gl_next_as_first_directive='<'getopt.h'>'
14202 else
14203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14204 gl_next_as_first_directive=$gl_cv_next_getopt_h
14205 fi
14206 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
067d23c9 14207
067d23c9
KY
14208
14209
067d23c9 14210
1f5d53eb
PE
14211 if test $ac_cv_header_getopt_h = yes; then
14212 HAVE_GETOPT_H=1
14213 else
14214 HAVE_GETOPT_H=0
14215 fi
067d23c9 14216
1f5d53eb
PE
14217
14218 gl_replace_getopt=
14219
14220 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14221 for ac_header in getopt.h
14222do :
14223 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
7834125e 14224if test "x$ac_cv_header_getopt_h" = x""yes; then :
1f5d53eb
PE
14225 cat >>confdefs.h <<_ACEOF
14226#define HAVE_GETOPT_H 1
14227_ACEOF
067d23c9
KY
14228
14229else
1f5d53eb 14230 gl_replace_getopt=yes
067d23c9
KY
14231fi
14232
1f5d53eb
PE
14233done
14234
14235 fi
14236
14237 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14238 for ac_func in getopt_long_only
14239do :
14240 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
7834125e 14241if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
1f5d53eb
PE
14242 cat >>confdefs.h <<_ACEOF
14243#define HAVE_GETOPT_LONG_ONLY 1
14244_ACEOF
067d23c9 14245
067d23c9 14246else
1f5d53eb 14247 gl_replace_getopt=yes
067d23c9 14248fi
1f5d53eb 14249done
067d23c9 14250
1f5d53eb 14251 fi
067d23c9 14252
1f5d53eb
PE
14253 if test -z "$gl_replace_getopt"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14255$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
7834125e 14256if test "${gl_cv_func_getopt_posix+set}" = set; then :
067d23c9
KY
14257 $as_echo_n "(cached) " >&6
14258else
1f5d53eb
PE
14259
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 14261/* end confdefs.h. */
1f5d53eb 14262#include <unistd.h>
067d23c9
KY
14263int
14264main ()
14265{
1f5d53eb 14266int *p = &optreset; return optreset;
067d23c9
KY
14267 ;
14268 return 0;
14269}
14270_ACEOF
1f5d53eb
PE
14271if ac_fn_c_try_compile "$LINENO"; then :
14272 gl_optind_min=1
1fd182f0 14273else
1f5d53eb 14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14275/* end confdefs.h. */
1f5d53eb 14276#include <getopt.h>
1fd182f0
PE
14277int
14278main ()
14279{
1f5d53eb 14280return !getopt_clip;
1fd182f0
PE
14281 ;
14282 return 0;
14283}
14284_ACEOF
14285if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14286 gl_optind_min=1
1fd182f0 14287else
1f5d53eb 14288 gl_optind_min=0
1fd182f0
PE
14289fi
14290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14291fi
1f5d53eb 14292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14293
1f5d53eb
PE
14294 gl_save_CPPFLAGS=$CPPFLAGS
14295 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14296 if test "$cross_compiling" = yes; then :
14297 case "$host_os" in
14298 mingw*) gl_cv_func_getopt_posix="guessing no";;
14299 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14300 *) gl_cv_func_getopt_posix="guessing yes";;
14301 esac
1fd182f0 14302
1f5d53eb
PE
14303else
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305/* end confdefs.h. */
1fd182f0 14306
1f5d53eb
PE
14307#include <unistd.h>
14308#include <stdlib.h>
14309#include <string.h>
1fd182f0 14310
1f5d53eb
PE
14311int
14312main ()
14313{
14314 {
14315 int argc = 0;
14316 char *argv[10];
14317 int c;
1fd182f0 14318
1f5d53eb
PE
14319 argv[argc++] = "program";
14320 argv[argc++] = "-a";
14321 argv[argc++] = "foo";
14322 argv[argc++] = "bar";
14323 argv[argc] = NULL;
14324 optind = OPTIND_MIN;
14325 opterr = 0;
b06b1098 14326
1f5d53eb
PE
14327 c = getopt (argc, argv, "ab");
14328 if (!(c == 'a'))
14329 return 1;
14330 c = getopt (argc, argv, "ab");
14331 if (!(c == -1))
14332 return 2;
14333 if (!(optind == 2))
14334 return 3;
14335 }
14336 /* Some internal state exists at this point. */
14337 {
14338 int argc = 0;
14339 char *argv[10];
14340 int c;
b06b1098 14341
1f5d53eb
PE
14342 argv[argc++] = "program";
14343 argv[argc++] = "donald";
14344 argv[argc++] = "-p";
14345 argv[argc++] = "billy";
14346 argv[argc++] = "duck";
14347 argv[argc++] = "-a";
14348 argv[argc++] = "bar";
14349 argv[argc] = NULL;
14350 optind = OPTIND_MIN;
14351 opterr = 0;
b06b1098 14352
1f5d53eb
PE
14353 c = getopt (argc, argv, "+abp:q:");
14354 if (!(c == -1))
14355 return 4;
14356 if (!(strcmp (argv[0], "program") == 0))
14357 return 5;
14358 if (!(strcmp (argv[1], "donald") == 0))
14359 return 6;
14360 if (!(strcmp (argv[2], "-p") == 0))
14361 return 7;
14362 if (!(strcmp (argv[3], "billy") == 0))
14363 return 8;
14364 if (!(strcmp (argv[4], "duck") == 0))
14365 return 9;
14366 if (!(strcmp (argv[5], "-a") == 0))
14367 return 10;
14368 if (!(strcmp (argv[6], "bar") == 0))
14369 return 11;
14370 if (!(optind == 1))
14371 return 12;
14372 }
14373 /* Detect MacOS 10.5, AIX 7.1 bug. */
14374 {
14375 char *argv[3] = { "program", "-ab", NULL };
14376 optind = OPTIND_MIN;
14377 opterr = 0;
14378 if (getopt (2, argv, "ab:") != 'a')
14379 return 13;
14380 if (getopt (2, argv, "ab:") != '?')
14381 return 14;
14382 if (optopt != 'b')
14383 return 15;
14384 if (optind != 2)
14385 return 16;
14386 }
d6974efa 14387
1f5d53eb
PE
14388 return 0;
14389}
d6974efa 14390
1f5d53eb
PE
14391_ACEOF
14392if ac_fn_c_try_run "$LINENO"; then :
14393 gl_cv_func_getopt_posix=yes
14394else
14395 gl_cv_func_getopt_posix=no
14396fi
14397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14398 conftest.$ac_objext conftest.beam conftest.$ac_ext
14399fi
d6974efa 14400
1f5d53eb 14401 CPPFLAGS=$gl_save_CPPFLAGS
1fd182f0 14402
1f5d53eb
PE
14403fi
14404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14405$as_echo "$gl_cv_func_getopt_posix" >&6; }
14406 case "$gl_cv_func_getopt_posix" in
14407 *no) gl_replace_getopt=yes ;;
14408 esac
14409 fi
1fd182f0 14410
1f5d53eb
PE
14411 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14413$as_echo_n "checking for working GNU getopt function... " >&6; }
7834125e 14414if test "${gl_cv_func_getopt_gnu+set}" = set; then :
1fd182f0 14415 $as_echo_n "(cached) " >&6
1f5d53eb
PE
14416else
14417 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14418 # optstring is necessary for programs like m4 that have POSIX-mandated
14419 # semantics for supporting options interspersed with files.
14420 # Also, since getopt_long is a GNU extension, we require optind=0.
14421 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14422 # so take care to revert to the correct (non-)export state.
14423 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14424 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14425 xx) gl_had_POSIXLY_CORRECT=exported ;;
14426 x) gl_had_POSIXLY_CORRECT=yes ;;
14427 *) gl_had_POSIXLY_CORRECT= ;;
14428 esac
14429 POSIXLY_CORRECT=1
14430 export POSIXLY_CORRECT
14431 if test "$cross_compiling" = yes; then :
14432 case $host_os:$ac_cv_have_decl_optreset in
14433 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14434 *:yes) gl_cv_func_getopt_gnu=no;;
14435 *) gl_cv_func_getopt_gnu=yes;;
14436 esac
14437
1fd182f0
PE
14438else
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h. */
1f5d53eb
PE
14441#include <getopt.h>
14442 #include <stddef.h>
14443 #include <string.h>
14444
1fd182f0
PE
14445int
14446main ()
14447{
1f5d53eb
PE
14448
14449 int result = 0;
14450 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14451 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14452 OSF/1 5.1, Solaris 10. */
14453 {
14454 char *myargv[3];
14455 myargv[0] = "conftest";
14456 myargv[1] = "-+";
14457 myargv[2] = 0;
14458 opterr = 0;
14459 if (getopt (2, myargv, "+a") != '?')
14460 result |= 1;
14461 }
14462 /* This code succeeds on glibc 2.8, mingw,
14463 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14464 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14465 {
14466 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14467
14468 optind = 1;
14469 if (getopt (4, argv, "p::") != 'p')
14470 result |= 2;
14471 else if (optarg != NULL)
14472 result |= 4;
14473 else if (getopt (4, argv, "p::") != -1)
14474 result |= 6;
14475 else if (optind != 2)
14476 result |= 8;
14477 }
14478 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14479 {
14480 char *argv[] = { "program", "foo", "-p", NULL };
14481 optind = 0;
14482 if (getopt (3, argv, "-p") != 1)
14483 result |= 16;
14484 else if (getopt (3, argv, "-p") != 'p')
14485 result |= 32;
14486 }
14487 /* This code fails on glibc 2.11. */
14488 {
14489 char *argv[] = { "program", "-b", "-a", NULL };
14490 optind = opterr = 0;
14491 if (getopt (3, argv, "+:a:b") != 'b')
14492 result |= 64;
14493 else if (getopt (3, argv, "+:a:b") != ':')
14494 result |= 64;
14495 }
14496 return result;
14497
1fd182f0
PE
14498 ;
14499 return 0;
14500}
14501_ACEOF
1f5d53eb
PE
14502if ac_fn_c_try_run "$LINENO"; then :
14503 gl_cv_func_getopt_gnu=yes
1fd182f0 14504else
1f5d53eb 14505 gl_cv_func_getopt_gnu=no
1fd182f0 14506fi
1f5d53eb
PE
14507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14508 conftest.$ac_objext conftest.beam conftest.$ac_ext
1fd182f0 14509fi
1fd182f0 14510
1f5d53eb
PE
14511 case $gl_had_POSIXLY_CORRECT in
14512 exported) ;;
14513 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14514 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14515 esac
1fd182f0 14516
1f5d53eb
PE
14517fi
14518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14519$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14520 if test "$gl_cv_func_getopt_gnu" = "no"; then
14521 gl_replace_getopt=yes
14522 fi
1fd182f0
PE
14523 fi
14524
1f5d53eb 14525ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
7834125e 14526if test "x$ac_cv_have_decl_getenv" = x""yes; then :
1f5d53eb
PE
14527 ac_have_decl=1
14528else
14529 ac_have_decl=0
14530fi
1fd182f0 14531
1f5d53eb
PE
14532cat >>confdefs.h <<_ACEOF
14533#define HAVE_DECL_GETENV $ac_have_decl
14534_ACEOF
1fd182f0
PE
14535
14536
14537
14538
1f5d53eb
PE
14539
14540
14541 if test -n "$gl_replace_getopt"; then :
14542
14543
14544
14545 GETOPT_H=getopt.h
14546
14547$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14548
14549
14550
14551 GNULIB_UNISTD_H_GETOPT=1
14552
14553
14554
14555
14556
14557
14558
14559
14560 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14571
14572
14573
14574
14575
14576
14577fi
14578
14579
1f5d53eb 14580
ae0d7250
PE
14581 GNULIB_FCHMODAT=0;
14582 GNULIB_FSTATAT=0;
14583 GNULIB_FUTIMENS=0;
14584 GNULIB_LCHMOD=0;
14585 GNULIB_LSTAT=0;
14586 GNULIB_MKDIRAT=0;
14587 GNULIB_MKFIFO=0;
14588 GNULIB_MKFIFOAT=0;
14589 GNULIB_MKNOD=0;
14590 GNULIB_MKNODAT=0;
14591 GNULIB_STAT=0;
14592 GNULIB_UTIMENSAT=0;
14593 HAVE_FCHMODAT=1;
14594 HAVE_FSTATAT=1;
14595 HAVE_FUTIMENS=1;
14596 HAVE_LCHMOD=1;
14597 HAVE_LSTAT=1;
14598 HAVE_MKDIRAT=1;
14599 HAVE_MKFIFO=1;
14600 HAVE_MKFIFOAT=1;
14601 HAVE_MKNOD=1;
14602 HAVE_MKNODAT=1;
14603 HAVE_UTIMENSAT=1;
14604 REPLACE_FSTAT=0;
14605 REPLACE_FSTATAT=0;
14606 REPLACE_FUTIMENS=0;
14607 REPLACE_LSTAT=0;
14608 REPLACE_MKDIR=0;
14609 REPLACE_MKFIFO=0;
14610 REPLACE_MKNOD=0;
14611 REPLACE_STAT=0;
14612 REPLACE_UTIMENSAT=0;
1f5d53eb
PE
14613
14614
14615
14616
14617 for ac_func in $ac_func_list
14618do :
14619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
0afb4571
J
14621eval as_val=\$$as_ac_var
14622 if test "x$as_val" = x""yes; then :
1f5d53eb
PE
14623 cat >>confdefs.h <<_ACEOF
14624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14625_ACEOF
1fd182f0 14626
e275c824 14627fi
1f5d53eb 14628done
1fd182f0
PE
14629
14630
e275c824 14631
1fd182f0 14632
ae0d7250
PE
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14634$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7834125e 14635if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
ae0d7250
PE
14636 $as_echo_n "(cached) " >&6
14637else
14638 rm -f conftest.sym conftest.file
14639 echo >conftest.file
14640 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14641 if test "$cross_compiling" = yes; then :
14642 # When cross-compiling, be pessimistic so we will end up using the
14643 # replacement version of lstat that checks for trailing slashes and
14644 # calls lstat a second time when necessary.
14645 ac_cv_func_lstat_dereferences_slashed_symlink=no
14646
14647else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649/* end confdefs.h. */
14650$ac_includes_default
14651int
14652main ()
14653{
14654struct stat sbuf;
14655 /* Linux will dereference the symlink and fail, as required by
14656 POSIX. That is better in the sense that it means we will not
14657 have to compile and use the lstat wrapper. */
14658 return lstat ("conftest.sym/", &sbuf) == 0;
14659
14660 ;
14661 return 0;
14662}
14663_ACEOF
14664if ac_fn_c_try_run "$LINENO"; then :
14665 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14666else
14667 ac_cv_func_lstat_dereferences_slashed_symlink=no
14668fi
14669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14670 conftest.$ac_objext conftest.beam conftest.$ac_ext
14671fi
14672
14673 else
14674 # If the 'ln -s' command failed, then we probably don't even
14675 # have an lstat function.
14676 ac_cv_func_lstat_dereferences_slashed_symlink=no
14677 fi
14678 rm -f conftest.sym conftest.file
14679
14680fi
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14682$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14683 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14684
14685cat >>confdefs.h <<_ACEOF
14686#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14687_ACEOF
14688
14689 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14690
14691
14692
14693
14694
14695
14696
14697
14698 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14699
14700 fi
14701
14702
14703 GNULIB_MKTIME=0;
14704 GNULIB_NANOSLEEP=0;
14705 GNULIB_STRPTIME=0;
14706 GNULIB_TIMEGM=0;
14707 GNULIB_TIME_R=0;
14708 HAVE_DECL_LOCALTIME_R=1;
14709 HAVE_NANOSLEEP=1;
14710 HAVE_STRPTIME=1;
14711 HAVE_TIMEGM=1;
14712 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14713 REPLACE_MKTIME=GNULIB_PORTCHECK;
14714 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14715 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14716
14717
14718
14719
1f5d53eb
PE
14720 gl_cv_c_multiarch=no
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722/* end confdefs.h. */
14723#ifndef __APPLE_CC__
14724 not a universal capable compiler
14725 #endif
14726 typedef int dummy;
e275c824
PE
14727
14728_ACEOF
1f5d53eb 14729if ac_fn_c_try_compile "$LINENO"; then :
e275c824 14730
1f5d53eb
PE
14731 arch=
14732 prev=
14733 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14734 if test -n "$prev"; then
14735 case $word in
14736 i?86 | x86_64 | ppc | ppc64)
14737 if test -z "$arch" || test "$arch" = "$word"; then
14738 arch="$word"
14739 else
14740 gl_cv_c_multiarch=yes
14741 fi
14742 ;;
14743 esac
14744 prev=
14745 else
14746 if test "x$word" = "x-arch"; then
14747 prev=arch
14748 fi
14749 fi
14750 done
e275c824
PE
14751
14752fi
1f5d53eb
PE
14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 if test $gl_cv_c_multiarch = yes; then
14755 APPLE_UNIVERSAL_BUILD=1
e275c824 14756 else
1f5d53eb 14757 APPLE_UNIVERSAL_BUILD=0
e275c824
PE
14758 fi
14759
14760
ae0d7250
PE
14761
14762
1f5d53eb
PE
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14764$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7834125e 14765if test "${ac_cv_header_stdbool_h+set}" = set; then :
1f5d53eb
PE
14766 $as_echo_n "(cached) " >&6
14767else
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769/* end confdefs.h. */
e275c824 14770
1f5d53eb
PE
14771 #include <stdbool.h>
14772 #ifndef bool
14773 "error: bool is not defined"
14774 #endif
14775 #ifndef false
14776 "error: false is not defined"
14777 #endif
14778 #if false
14779 "error: false is not 0"
14780 #endif
14781 #ifndef true
14782 "error: true is not defined"
14783 #endif
14784 #if true != 1
14785 "error: true is not 1"
14786 #endif
14787 #ifndef __bool_true_false_are_defined
14788 "error: __bool_true_false_are_defined is not defined"
14789 #endif
e275c824 14790
1f5d53eb 14791 struct s { _Bool s: 1; _Bool t; } s;
e275c824 14792
1f5d53eb
PE
14793 char a[true == 1 ? 1 : -1];
14794 char b[false == 0 ? 1 : -1];
14795 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14796 char d[(bool) 0.5 == true ? 1 : -1];
14797 /* See body of main program for 'e'. */
14798 char f[(_Bool) 0.0 == false ? 1 : -1];
14799 char g[true];
14800 char h[sizeof (_Bool)];
14801 char i[sizeof s.t];
14802 enum { j = false, k = true, l = false * true, m = true * 256 };
14803 /* The following fails for
14804 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14805 _Bool n[m];
14806 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14807 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14808 /* Catch a bug in an HP-UX C compiler. See
14809 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14810 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14811 */
14812 _Bool q = true;
14813 _Bool *pq = &q;
e275c824 14814
1f5d53eb
PE
14815int
14816main ()
14817{
e275c824 14818
1f5d53eb
PE
14819 bool e = &s;
14820 *pq |= q;
14821 *pq |= ! q;
14822 /* Refer to every declared value, to avoid compiler optimizations. */
14823 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14824 + !m + !n + !o + !p + !q + !pq);
e275c824 14825
1f5d53eb
PE
14826 ;
14827 return 0;
14828}
14829_ACEOF
14830if ac_fn_c_try_compile "$LINENO"; then :
14831 ac_cv_header_stdbool_h=yes
14832else
14833 ac_cv_header_stdbool_h=no
14834fi
14835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836fi
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14838$as_echo "$ac_cv_header_stdbool_h" >&6; }
14839 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7834125e 14840if test "x$ac_cv_type__Bool" = x""yes; then :
e275c824 14841
1f5d53eb
PE
14842cat >>confdefs.h <<_ACEOF
14843#define HAVE__BOOL 1
14844_ACEOF
e275c824
PE
14845
14846
1f5d53eb 14847fi
e275c824
PE
14848
14849
14850
1f5d53eb
PE
14851 REPLACE_NULL=0;
14852 HAVE_WCHAR_T=1;
14853 STDDEF_H='';
b06b1098
PE
14854
14855
1f5d53eb
PE
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14857$as_echo_n "checking for wchar_t... " >&6; }
7834125e 14858if test "${gt_cv_c_wchar_t+set}" = set; then :
e275c824
PE
14859 $as_echo_n "(cached) " >&6
14860else
1f5d53eb 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14862/* end confdefs.h. */
1f5d53eb
PE
14863#include <stddef.h>
14864 wchar_t foo = (wchar_t)'\0';
14865int
14866main ()
14867{
e275c824 14868
1f5d53eb
PE
14869 ;
14870 return 0;
14871}
e275c824 14872_ACEOF
1f5d53eb
PE
14873if ac_fn_c_try_compile "$LINENO"; then :
14874 gt_cv_c_wchar_t=yes
14875else
14876 gt_cv_c_wchar_t=no
e275c824 14877fi
1f5d53eb
PE
14878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879fi
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14881$as_echo "$gt_cv_c_wchar_t" >&6; }
14882 if test $gt_cv_c_wchar_t = yes; then
e275c824 14883
1f5d53eb 14884$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
e275c824 14885
e275c824
PE
14886 fi
14887
14888
5f90be1b
PE
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14890$as_echo_n "checking for unsigned long long int... " >&6; }
7834125e 14891if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5f90be1b
PE
14892 $as_echo_n "(cached) " >&6
14893else
14894 ac_cv_type_unsigned_long_long_int=yes
14895 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897/* end confdefs.h. */
14898
14899 /* For now, do not test the preprocessor; as of 2007 there are too many
14900 implementations with broken preprocessors. Perhaps this can
14901 be revisited in 2012. In the meantime, code should not expect
14902 #if to work with literals wider than 32 bits. */
14903 /* Test literals. */
14904 long long int ll = 9223372036854775807ll;
14905 long long int nll = -9223372036854775807LL;
14906 unsigned long long int ull = 18446744073709551615ULL;
14907 /* Test constant expressions. */
14908 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14909 ? 1 : -1)];
14910 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14911 ? 1 : -1)];
14912 int i = 63;
14913int
14914main ()
14915{
14916/* Test availability of runtime routines for shift and division. */
14917 long long int llmax = 9223372036854775807ll;
14918 unsigned long long int ullmax = 18446744073709551615ull;
14919 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14920 | (llmax / ll) | (llmax % ll)
14921 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14922 | (ullmax / ull) | (ullmax % ull));
14923 ;
14924 return 0;
14925}
14926
14927_ACEOF
14928if ac_fn_c_try_link "$LINENO"; then :
14929
14930else
14931 ac_cv_type_unsigned_long_long_int=no
14932fi
14933rm -f core conftest.err conftest.$ac_objext \
14934 conftest$ac_exeext conftest.$ac_ext
14935 fi
14936fi
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14938$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14939 if test $ac_cv_type_unsigned_long_long_int = yes; then
14940
14941$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14942
14943 fi
14944
14945
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14948$as_echo_n "checking for long long int... " >&6; }
7834125e 14949if test "${ac_cv_type_long_long_int+set}" = set; then :
5f90be1b
PE
14950 $as_echo_n "(cached) " >&6
14951else
14952 ac_cv_type_long_long_int=yes
14953 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14954 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14955 if test $ac_cv_type_long_long_int = yes; then
14956 if test "$cross_compiling" = yes; then :
14957 :
14958else
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h. */
14961#include <limits.h>
14962 #ifndef LLONG_MAX
14963 # define HALF \
14964 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14965 # define LLONG_MAX (HALF - 1 + HALF)
14966 #endif
14967int
14968main ()
14969{
14970long long int n = 1;
14971 int i;
14972 for (i = 0; ; i++)
14973 {
14974 long long int m = n << i;
14975 if (m >> i != n)
14976 return 1;
14977 if (LLONG_MAX / 2 < m)
14978 break;
14979 }
14980 return 0;
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985if ac_fn_c_try_run "$LINENO"; then :
14986
14987else
14988 ac_cv_type_long_long_int=no
14989fi
14990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14991 conftest.$ac_objext conftest.beam conftest.$ac_ext
14992fi
14993
14994 fi
14995 fi
14996fi
14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14998$as_echo "$ac_cv_type_long_long_int" >&6; }
14999 if test $ac_cv_type_long_long_int = yes; then
15000
15001$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15002
15003 fi
15004
15005
15006
15007
15008
15009
1f5d53eb
PE
15010 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15011"
7834125e 15012if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
e275c824 15013
1f5d53eb 15014$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
e275c824 15015
e275c824
PE
15016fi
15017
e275c824 15018
e275c824 15019
e275c824 15020
5fa4ac76 15021
5fa4ac76
PE
15022
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15024$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7834125e 15025if test "${ac_cv_header_stat_broken+set}" = set; then :
5fa4ac76
PE
15026 $as_echo_n "(cached) " >&6
15027else
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h. */
15030#include <sys/types.h>
15031#include <sys/stat.h>
15032
15033#if defined S_ISBLK && defined S_IFDIR
15034extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15035#endif
15036
15037#if defined S_ISBLK && defined S_IFCHR
15038extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15039#endif
15040
15041#if defined S_ISLNK && defined S_IFREG
15042extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15043#endif
15044
15045#if defined S_ISSOCK && defined S_IFREG
15046extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15047#endif
15048
15049_ACEOF
15050if ac_fn_c_try_compile "$LINENO"; then :
15051 ac_cv_header_stat_broken=no
15052else
15053 ac_cv_header_stat_broken=yes
15054fi
15055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056fi
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15058$as_echo "$ac_cv_header_stat_broken" >&6; }
15059if test $ac_cv_header_stat_broken = yes; then
15060
15061$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15062
15063fi
15064
15065
15066
1f5d53eb
PE
15067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15068$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7834125e 15069if test "${ac_cv_c_restrict+set}" = set; then :
d6974efa 15070 $as_echo_n "(cached) " >&6
e275c824 15071else
1f5d53eb
PE
15072 ac_cv_c_restrict=no
15073 # The order here caters to the fact that C++ does not require restrict.
15074 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6974efa 15076/* end confdefs.h. */
1f5d53eb
PE
15077typedef int * int_ptr;
15078 int foo (int_ptr $ac_kw ip) {
15079 return ip[0];
15080 }
d6974efa
PE
15081int
15082main ()
15083{
1f5d53eb
PE
15084int s[1];
15085 int * $ac_kw t = s;
15086 t[0] = 0;
15087 return foo(t)
d6974efa
PE
15088 ;
15089 return 0;
15090}
e275c824 15091_ACEOF
1f5d53eb
PE
15092if ac_fn_c_try_compile "$LINENO"; then :
15093 ac_cv_c_restrict=$ac_kw
15094fi
15095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 test "$ac_cv_c_restrict" != no && break
15097 done
15098
15099fi
15100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15101$as_echo "$ac_cv_c_restrict" >&6; }
15102
15103 case $ac_cv_c_restrict in
15104 restrict) ;;
15105 no) $as_echo "#define restrict /**/" >>confdefs.h
15106 ;;
15107 *) cat >>confdefs.h <<_ACEOF
15108#define restrict $ac_cv_c_restrict
15109_ACEOF
15110 ;;
15111 esac
15112
15113
15114
15115
15116
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15118$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
7834125e 15119if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
1f5d53eb 15120 $as_echo_n "(cached) " >&6
e275c824 15121else
d6974efa
PE
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123/* end confdefs.h. */
1f5d53eb
PE
15124#include <time.h>
15125
d6974efa
PE
15126int
15127main ()
15128{
1f5d53eb 15129static struct timespec x; x.tv_sec = x.tv_nsec;
d6974efa
PE
15130 ;
15131 return 0;
15132}
15133_ACEOF
15134if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 15135 gl_cv_sys_struct_timespec_in_time_h=yes
e275c824 15136else
1f5d53eb 15137 gl_cv_sys_struct_timespec_in_time_h=no
e275c824 15138fi
d6974efa 15139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15140fi
1f5d53eb
PE
15141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15142$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
e275c824 15143
1f5d53eb
PE
15144 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15145 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15146 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15147 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15148 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15151$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
7834125e 15152if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
1f5d53eb 15153 $as_echo_n "(cached) " >&6
e275c824
PE
15154else
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156/* end confdefs.h. */
1f5d53eb 15157#include <sys/time.h>
e275c824 15158
e275c824
PE
15159int
15160main ()
15161{
1f5d53eb
PE
15162static struct timespec x; x.tv_sec = x.tv_nsec;
15163 ;
e275c824
PE
15164 return 0;
15165}
e275c824 15166_ACEOF
1f5d53eb
PE
15167if ac_fn_c_try_compile "$LINENO"; then :
15168 gl_cv_sys_struct_timespec_in_sys_time_h=yes
e275c824 15169else
1f5d53eb 15170 gl_cv_sys_struct_timespec_in_sys_time_h=no
e275c824 15171fi
1f5d53eb 15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15173fi
1f5d53eb
PE
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15175$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15176 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15177 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15180$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
7834125e 15181if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
e275c824 15182 $as_echo_n "(cached) " >&6
e275c824
PE
15183else
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185/* end confdefs.h. */
1f5d53eb 15186#include <pthread.h>
e275c824
PE
15187
15188int
15189main ()
15190{
1f5d53eb 15191static struct timespec x; x.tv_sec = x.tv_nsec;
e275c824
PE
15192 ;
15193 return 0;
15194}
15195_ACEOF
1f5d53eb
PE
15196if ac_fn_c_try_compile "$LINENO"; then :
15197 gl_cv_sys_struct_timespec_in_pthread_h=yes
e275c824 15198else
1f5d53eb 15199 gl_cv_sys_struct_timespec_in_pthread_h=no
e275c824 15200fi
1f5d53eb 15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15202fi
1f5d53eb
PE
15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15204$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15205 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15206 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15207 fi
e275c824
PE
15208 fi
15209 fi
15210
e275c824 15211
e275c824 15212
e275c824
PE
15213
15214
15215
e275c824
PE
15216
15217
15218
15219
15220
15221
15222
15223
e275c824 15224
1f5d53eb
PE
15225 if test $gl_cv_have_include_next = yes; then
15226 gl_cv_next_time_h='<'time.h'>'
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15229$as_echo_n "checking absolute name of <time.h>... " >&6; }
7834125e 15230if test "${gl_cv_next_time_h+set}" = set; then :
1f5d53eb
PE
15231 $as_echo_n "(cached) " >&6
15232else
e275c824 15233
1f5d53eb
PE
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h. */
15236#include <time.h>
e275c824 15237
1f5d53eb
PE
15238_ACEOF
15239 case "$host_os" in
15240 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15241 *) gl_absname_cpp="$ac_cpp" ;;
15242 esac
15243 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15244 sed -n '\#/time.h#{
15245 s#.*"\(.*/time.h\)".*#\1#
15246 s#^/[^/]#//&#
15247 p
15248 q
15249 }'`'"'
e275c824
PE
15250
15251
1f5d53eb
PE
15252fi
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15254$as_echo "$gl_cv_next_time_h" >&6; }
15255 fi
15256 NEXT_TIME_H=$gl_cv_next_time_h
e275c824 15257
1f5d53eb
PE
15258 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15259 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15260 gl_next_as_first_directive='<'time.h'>'
15261 else
15262 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15263 gl_next_as_first_directive=$gl_cv_next_time_h
15264 fi
15265 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
e275c824
PE
15266
15267
15268
e275c824
PE
15269
15270
15271
1f5d53eb 15272ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
7834125e 15273if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
1f5d53eb
PE
15274 ac_have_decl=1
15275else
15276 ac_have_decl=0
15277fi
e275c824 15278
1f5d53eb
PE
15279cat >>confdefs.h <<_ACEOF
15280#define HAVE_DECL_LOCALTIME_R $ac_have_decl
15281_ACEOF
e275c824
PE
15282
15283
e275c824
PE
15284
15285
1f5d53eb
PE
15286 if false; then
15287 GL_COND_LIBTOOL_TRUE=
15288 GL_COND_LIBTOOL_FALSE='#'
67342916 15289else
1f5d53eb
PE
15290 GL_COND_LIBTOOL_TRUE='#'
15291 GL_COND_LIBTOOL_FALSE=
67342916 15292fi
67342916 15293
1f5d53eb
PE
15294 gl_cond_libtool=false
15295 gl_libdeps=
15296 gl_ltlibdeps=
15297 gl_m4_base='m4'
67342916 15298
67342916 15299
e275c824 15300
e275c824
PE
15301
15302
15303
15304
e275c824 15305
e275c824 15306
1f5d53eb
PE
15307 gl_source_base='lib'
15308 # Code from module arg-nonnull:
15309 # Code from module c++defs:
942f733f
PE
15310 # Code from module crypto/md5:
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15321
15322
15323
15324
15325 :
15326
36f13e16 15327 # Code from module dosname:
1f5d53eb 15328 # Code from module dtoastr:
e275c824 15329
1f5d53eb 15330 # Code from module extensions:
5fa4ac76
PE
15331 # Code from module filemode:
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15343
15344
15345
1f5d53eb 15346 # Code from module getloadavg:
e275c824
PE
15347
15348
1f5d53eb 15349# Persuade glibc <stdlib.h> to declare getloadavg().
e275c824 15350
e275c824 15351
1f5d53eb
PE
15352# Make sure getloadavg.c is where it belongs, at configure-time.
15353test -f "$srcdir/$gl_source_base/getloadavg.c" ||
0afb4571 15354 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
e275c824 15355
1f5d53eb 15356gl_save_LIBS=$LIBS
e275c824 15357
7d315eb6
PE
15358# getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15359# NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
1f5d53eb 15360ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
7834125e 15361if test "x$ac_cv_func_getloadavg" = x""yes; then :
e275c824 15362
1f5d53eb
PE
15363else
15364 gl_have_func=no
15365
15366 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15367 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15368 # to get the right answer into the cache.
15369 # For kstat on solaris, we need to test for libelf and libkvm to force the
15370 # definition of SVR4 below.
15371 if test $gl_have_func = no; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15373$as_echo_n "checking for elf_begin in -lelf... " >&6; }
7834125e 15374if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16c3e636
PE
15375 $as_echo_n "(cached) " >&6
15376else
1f5d53eb
PE
15377 ac_check_lib_save_LIBS=$LIBS
15378LIBS="-lelf $LIBS"
15379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16c3e636
PE
15380/* end confdefs.h. */
15381
1f5d53eb
PE
15382/* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15385#ifdef __cplusplus
15386extern "C"
15387#endif
15388char elf_begin ();
15389int
15390main ()
15391{
15392return elf_begin ();
15393 ;
15394 return 0;
15395}
15396_ACEOF
15397if ac_fn_c_try_link "$LINENO"; then :
15398 ac_cv_lib_elf_elf_begin=yes
15399else
15400 ac_cv_lib_elf_elf_begin=no
15401fi
15402rm -f core conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext conftest.$ac_ext
15404LIBS=$ac_check_lib_save_LIBS
15405fi
15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15407$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
7834125e 15408if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
1f5d53eb
PE
15409 LIBS="-lelf $LIBS"
15410fi
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15413$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
7834125e 15414if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
1f5d53eb
PE
15415 $as_echo_n "(cached) " >&6
15416else
15417 ac_check_lib_save_LIBS=$LIBS
15418LIBS="-lkvm $LIBS"
15419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420/* end confdefs.h. */
16c3e636 15421
1f5d53eb
PE
15422/* Override any GCC internal prototype to avoid an error.
15423 Use char because int might match the return type of a GCC
15424 builtin and then its argument prototype would still apply. */
15425#ifdef __cplusplus
15426extern "C"
15427#endif
15428char kvm_open ();
16c3e636
PE
15429int
15430main ()
15431{
1f5d53eb 15432return kvm_open ();
16c3e636
PE
15433 ;
15434 return 0;
15435}
15436_ACEOF
1f5d53eb
PE
15437if ac_fn_c_try_link "$LINENO"; then :
15438 ac_cv_lib_kvm_kvm_open=yes
16c3e636 15439else
1f5d53eb 15440 ac_cv_lib_kvm_kvm_open=no
16c3e636 15441fi
1f5d53eb
PE
15442rm -f core conftest.err conftest.$ac_objext \
15443 conftest$ac_exeext conftest.$ac_ext
15444LIBS=$ac_check_lib_save_LIBS
16c3e636 15445fi
1f5d53eb
PE
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15447$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
7834125e 15448if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
1f5d53eb 15449 LIBS="-lkvm $LIBS"
16c3e636
PE
15450fi
15451
1f5d53eb
PE
15452 # Check for the 4.4BSD definition of getloadavg.
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15454$as_echo_n "checking for getloadavg in -lutil... " >&6; }
7834125e 15455if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
1fd182f0
PE
15456 $as_echo_n "(cached) " >&6
15457else
1f5d53eb
PE
15458 ac_check_lib_save_LIBS=$LIBS
15459LIBS="-lutil $LIBS"
15460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15461/* end confdefs.h. */
1f5d53eb
PE
15462
15463/* Override any GCC internal prototype to avoid an error.
15464 Use char because int might match the return type of a GCC
15465 builtin and then its argument prototype would still apply. */
15466#ifdef __cplusplus
15467extern "C"
15468#endif
15469char getloadavg ();
1fd182f0
PE
15470int
15471main ()
15472{
1f5d53eb 15473return getloadavg ();
1fd182f0
PE
15474 ;
15475 return 0;
15476}
15477_ACEOF
1f5d53eb
PE
15478if ac_fn_c_try_link "$LINENO"; then :
15479 ac_cv_lib_util_getloadavg=yes
1fd182f0 15480else
1f5d53eb 15481 ac_cv_lib_util_getloadavg=no
1fd182f0 15482fi
1f5d53eb
PE
15483rm -f core conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485LIBS=$ac_check_lib_save_LIBS
1fd182f0 15486fi
1f5d53eb
PE
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15488$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
7834125e 15489if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
1f5d53eb 15490 LIBS="-lutil $LIBS" gl_have_func=yes
16c3e636
PE
15491fi
15492
1f5d53eb 15493 fi
16c3e636 15494
1f5d53eb
PE
15495 if test $gl_have_func = no; then
15496 # There is a commonly available library for RS/6000 AIX.
15497 # Since it is not a standard part of AIX, it might be installed locally.
15498 gl_getloadavg_LIBS=$LIBS
15499 LIBS="-L/usr/local/lib $LIBS"
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15501$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
7834125e 15502if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
1fd182f0
PE
15503 $as_echo_n "(cached) " >&6
15504else
1f5d53eb
PE
15505 ac_check_lib_save_LIBS=$LIBS
15506LIBS="-lgetloadavg $LIBS"
15507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15508/* end confdefs.h. */
1f5d53eb
PE
15509
15510/* Override any GCC internal prototype to avoid an error.
15511 Use char because int might match the return type of a GCC
15512 builtin and then its argument prototype would still apply. */
15513#ifdef __cplusplus
15514extern "C"
15515#endif
15516char getloadavg ();
1fd182f0
PE
15517int
15518main ()
15519{
1f5d53eb 15520return getloadavg ();
1fd182f0
PE
15521 ;
15522 return 0;
15523}
15524_ACEOF
1f5d53eb
PE
15525if ac_fn_c_try_link "$LINENO"; then :
15526 ac_cv_lib_getloadavg_getloadavg=yes
15527else
15528 ac_cv_lib_getloadavg_getloadavg=no
1fd182f0 15529fi
1f5d53eb
PE
15530rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532LIBS=$ac_check_lib_save_LIBS
15533fi
15534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15535$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
7834125e 15536if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
1f5d53eb
PE
15537 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15538else
15539 LIBS=$gl_getloadavg_LIBS
1fd182f0 15540fi
1fd182f0 15541
1f5d53eb 15542 fi
1fd182f0 15543
1f5d53eb
PE
15544 # Set up the replacement function if necessary.
15545 if test $gl_have_func = no; then
1fd182f0
PE
15546
15547
15548
15549
1f5d53eb
PE
15550
15551
15552
15553
15554 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15555
15556
15557# Figure out what our getloadavg.c needs.
15558
15559# Solaris has libkstat which does not require root.
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15561$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
7834125e 15562if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
1fd182f0
PE
15563 $as_echo_n "(cached) " >&6
15564else
1f5d53eb
PE
15565 ac_check_lib_save_LIBS=$LIBS
15566LIBS="-lkstat $LIBS"
15567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15568/* end confdefs.h. */
1fd182f0 15569
1f5d53eb
PE
15570/* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15573#ifdef __cplusplus
15574extern "C"
15575#endif
15576char kstat_open ();
1fd182f0
PE
15577int
15578main ()
15579{
1f5d53eb 15580return kstat_open ();
1fd182f0
PE
15581 ;
15582 return 0;
15583}
15584_ACEOF
1f5d53eb
PE
15585if ac_fn_c_try_link "$LINENO"; then :
15586 ac_cv_lib_kstat_kstat_open=yes
1fd182f0 15587else
1f5d53eb 15588 ac_cv_lib_kstat_kstat_open=no
1fd182f0 15589fi
1f5d53eb
PE
15590rm -f core conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592LIBS=$ac_check_lib_save_LIBS
1fd182f0 15593fi
1f5d53eb
PE
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15595$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
7834125e 15596if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
1f5d53eb
PE
15597 cat >>confdefs.h <<_ACEOF
15598#define HAVE_LIBKSTAT 1
15599_ACEOF
1fd182f0 15600
1f5d53eb
PE
15601 LIBS="-lkstat $LIBS"
15602
15603fi
15604
15605test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15606
15607# On HPUX9, an unprivileged user can get load averages this way.
15608if test $gl_have_func = no; then
15609 for ac_func in pstat_getdynamic
15610do :
15611 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
7834125e 15612if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
1f5d53eb
PE
15613 cat >>confdefs.h <<_ACEOF
15614#define HAVE_PSTAT_GETDYNAMIC 1
15615_ACEOF
15616 gl_have_func=yes
15617fi
15618done
15619
15620fi
15621
15622# AIX has libperfstat which does not require root
15623if test $gl_have_func = no; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15625$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
7834125e 15626if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
1fd182f0
PE
15627 $as_echo_n "(cached) " >&6
15628else
1f5d53eb
PE
15629 ac_check_lib_save_LIBS=$LIBS
15630LIBS="-lperfstat $LIBS"
15631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15632/* end confdefs.h. */
1fd182f0 15633
1f5d53eb
PE
15634/* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15637#ifdef __cplusplus
15638extern "C"
15639#endif
15640char perfstat_cpu_total ();
1fd182f0
PE
15641int
15642main ()
15643{
1f5d53eb 15644return perfstat_cpu_total ();
1fd182f0
PE
15645 ;
15646 return 0;
15647}
15648_ACEOF
1f5d53eb
PE
15649if ac_fn_c_try_link "$LINENO"; then :
15650 ac_cv_lib_perfstat_perfstat_cpu_total=yes
1fd182f0 15651else
1f5d53eb 15652 ac_cv_lib_perfstat_perfstat_cpu_total=no
1fd182f0 15653fi
1f5d53eb
PE
15654rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656LIBS=$ac_check_lib_save_LIBS
1fd182f0 15657fi
1f5d53eb
PE
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15659$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
7834125e 15660if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
1f5d53eb
PE
15661 cat >>confdefs.h <<_ACEOF
15662#define HAVE_LIBPERFSTAT 1
15663_ACEOF
15664
15665 LIBS="-lperfstat $LIBS"
15666
15667fi
15668
15669 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15670fi
15671
15672if test $gl_have_func = no; then
15673 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
7834125e 15674if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
1f5d53eb
PE
15675 gl_have_func=yes
15676
15677$as_echo "#define DGUX 1" >>confdefs.h
15678
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15680$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
7834125e 15681if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
1fd182f0
PE
15682 $as_echo_n "(cached) " >&6
15683else
1f5d53eb
PE
15684 ac_check_lib_save_LIBS=$LIBS
15685LIBS="-ldgc $LIBS"
15686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15687/* end confdefs.h. */
1fd182f0 15688
1f5d53eb
PE
15689/* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15692#ifdef __cplusplus
15693extern "C"
15694#endif
15695char dg_sys_info ();
1fd182f0
PE
15696int
15697main ()
15698{
1f5d53eb 15699return dg_sys_info ();
1fd182f0
PE
15700 ;
15701 return 0;
15702}
15703_ACEOF
1f5d53eb
PE
15704if ac_fn_c_try_link "$LINENO"; then :
15705 ac_cv_lib_dgc_dg_sys_info=yes
1fd182f0 15706else
1f5d53eb 15707 ac_cv_lib_dgc_dg_sys_info=no
1fd182f0 15708fi
1f5d53eb
PE
15709rm -f core conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15711LIBS=$ac_check_lib_save_LIBS
1fd182f0 15712fi
1f5d53eb
PE
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15714$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
7834125e 15715if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
1f5d53eb
PE
15716 cat >>confdefs.h <<_ACEOF
15717#define HAVE_LIBDGC 1
15718_ACEOF
1fd182f0 15719
1f5d53eb 15720 LIBS="-ldgc $LIBS"
1fd182f0 15721
1f5d53eb 15722fi
1fd182f0 15723
1f5d53eb 15724fi
1fd182f0
PE
15725
15726
1f5d53eb 15727fi
1fd182f0 15728
1f5d53eb
PE
15729# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15730# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15731# Irix 4.0.5F has the header but not the library.
15732if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15733 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15734 gl_have_func=yes
1fd182f0 15735
1f5d53eb 15736$as_echo "#define SVR4 1" >>confdefs.h
1fd182f0 15737
1f5d53eb 15738fi
1fd182f0 15739
1f5d53eb
PE
15740if test $gl_have_func = no; then
15741 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
7834125e 15742if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
1f5d53eb 15743 gl_have_func=yes
1fd182f0 15744
1f5d53eb 15745$as_echo "#define UMAX 1" >>confdefs.h
1fd182f0
PE
15746
15747
1f5d53eb 15748$as_echo "#define UMAX4_3 1" >>confdefs.h
1fd182f0 15749
1f5d53eb 15750fi
b06b1098
PE
15751
15752
1f5d53eb 15753fi
1fd182f0 15754
1f5d53eb
PE
15755if test $gl_have_func = no; then
15756 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
7834125e 15757if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
1f5d53eb 15758 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
1fd182f0 15759
1f5d53eb 15760fi
b06b1098 15761
1fd182f0
PE
15762
15763fi
1fd182f0 15764
1f5d53eb
PE
15765if test $gl_have_func = no; then
15766 for ac_header in mach/mach.h
15767do :
15768 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
7834125e 15769if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
1f5d53eb
PE
15770 cat >>confdefs.h <<_ACEOF
15771#define HAVE_MACH_MACH_H 1
15772_ACEOF
1fd182f0 15773
1f5d53eb 15774fi
1fd182f0 15775
1f5d53eb 15776done
1fd182f0 15777
1f5d53eb 15778fi
1fd182f0 15779
1f5d53eb
PE
15780for ac_header in nlist.h
15781do :
15782 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
7834125e 15783if test "x$ac_cv_header_nlist_h" = x""yes; then :
1f5d53eb
PE
15784 cat >>confdefs.h <<_ACEOF
15785#define HAVE_NLIST_H 1
15786_ACEOF
15787 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15788"
7834125e 15789if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
1f5d53eb
PE
15790
15791cat >>confdefs.h <<_ACEOF
15792#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15793_ACEOF
1fd182f0 15794
b06b1098 15795
1fd182f0
PE
15796fi
15797
1f5d53eb
PE
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h. */
15800#include <nlist.h>
15801int
15802main ()
15803{
15804struct nlist x;
15805 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15806 x.n_un.n_name = "";
15807 #else
15808 x.n_name = "";
15809 #endif
15810 ;
15811 return 0;
15812}
1fd182f0 15813_ACEOF
1f5d53eb
PE
15814if ac_fn_c_try_link "$LINENO"; then :
15815
15816$as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15817
15818fi
15819rm -f core conftest.err conftest.$ac_objext \
15820 conftest$ac_exeext conftest.$ac_ext
1fd182f0 15821
1f5d53eb 15822fi
1fd182f0 15823
1f5d53eb 15824done
1fd182f0 15825
1f5d53eb
PE
15826 fi
15827fi
1fd182f0 15828
1f5d53eb
PE
15829
15830if test "x$gl_save_LIBS" = x; then
15831 GETLOADAVG_LIBS=$LIBS
1fd182f0 15832else
1f5d53eb 15833 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
1fd182f0 15834fi
1f5d53eb 15835LIBS=$gl_save_LIBS
1fd182f0 15836
1fd182f0 15837
1f5d53eb
PE
15838# Test whether the system declares getloadavg. Solaris has the function
15839# but declares it in <sys/loadavg.h>, not <stdlib.h>.
15840for ac_header in sys/loadavg.h
15841do :
15842 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
7834125e 15843if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
1f5d53eb
PE
15844 cat >>confdefs.h <<_ACEOF
15845#define HAVE_SYS_LOADAVG_H 1
15846_ACEOF
15847
15848fi
1fd182f0 15849
1f5d53eb 15850done
1fd182f0 15851
1f5d53eb
PE
15852if test $ac_cv_header_sys_loadavg_h = yes; then
15853 HAVE_SYS_LOADAVG_H=1
15854else
15855 HAVE_SYS_LOADAVG_H=0
15856fi
15857ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15858 # include <sys/loadavg.h>
15859 #endif
15860 #include <stdlib.h>
15861"
7834125e 15862if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
1fd182f0 15863
1f5d53eb
PE
15864else
15865 HAVE_DECL_GETLOADAVG=0
15866fi
1fd182f0
PE
15867
15868
15869
15870
15871
1f5d53eb
PE
15872 GNULIB_GETLOADAVG=1
15873
15874
1fd182f0 15875
e275c824
PE
15876 # Code from module getopt-gnu:
15877
15878
15879
15880
15881
15882
e275c824
PE
15883 # Code from module getopt-posix:
15884
15885
15886
15887
15888
15889 if test -n "$gl_replace_getopt"; then :
15890
15891
15892
15893 GETOPT_H=getopt.h
15894
15895$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15896
15897
15898
15899 GNULIB_UNISTD_H_GETOPT=1
15900
15901
15902
15903
15904
15905
15906
15907
15908 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15919
15920
15921
15922
15923
15924
15925fi
15926
15927
15928 # Code from module gettext-h:
15929
15930
67342916
PE
15931 # Code from module ignore-value:
15932
1fd182f0
PE
15933 # Code from module include_next:
15934 # Code from module intprops:
ae0d7250
PE
15935 # Code from module lstat:
15936
15937
15938
15939 if test $ac_cv_func_lstat = yes; then
15940
15941 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15942 REPLACE_LSTAT=1
15943 fi
15944 # Prerequisites of lib/lstat.c.
15945
15946 else
15947 HAVE_LSTAT=0
15948 fi
15949
15950
15951
15952
15953 GNULIB_LSTAT=1
15954
15955
15956
1fd182f0
PE
15957 # Code from module mktime:
15958
15959
15960
15961
15962
15963if test $APPLE_UNIVERSAL_BUILD = 1; then
15964 # A universal build on Apple MacOS X platforms.
15965 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15966 # But we need a configuration result that is valid in both modes.
15967 ac_cv_func_working_mktime=no
15968fi
15969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15970$as_echo_n "checking for working mktime... " >&6; }
7834125e 15971if test "${ac_cv_func_working_mktime+set}" = set; then :
1fd182f0
PE
15972 $as_echo_n "(cached) " >&6
15973else
15974 if test "$cross_compiling" = yes; then :
15975 ac_cv_func_working_mktime=no
15976else
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978/* end confdefs.h. */
15979/* Test program from Paul Eggert and Tony Leneis. */
15980#include <limits.h>
15981#include <stdlib.h>
15982#include <time.h>
15983
15984#ifdef HAVE_UNISTD_H
15985# include <unistd.h>
15986#endif
15987
15988#ifndef HAVE_ALARM
15989# define alarm(X) /* empty */
15990#endif
15991
15992/* Work around redefinition to rpl_putenv by other config tests. */
15993#undef putenv
15994
15995static time_t time_t_max;
15996static time_t time_t_min;
15997
15998/* Values we'll use to set the TZ environment variable. */
15999static char *tz_strings[] = {
16000 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16001 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16002};
16003#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16004
16005/* Return 0 if mktime fails to convert a date in the spring-forward gap.
16006 Based on a problem report from Andreas Jaeger. */
16007static int
16008spring_forward_gap ()
16009{
16010 /* glibc (up to about 1998-10-07) failed this test. */
16011 struct tm tm;
16012
16013 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16014 instead of "TZ=America/Vancouver" in order to detect the bug even
16015 on systems that don't support the Olson extension, or don't have the
16016 full zoneinfo tables installed. */
16017 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16018
16019 tm.tm_year = 98;
16020 tm.tm_mon = 3;
16021 tm.tm_mday = 5;
16022 tm.tm_hour = 2;
16023 tm.tm_min = 0;
16024 tm.tm_sec = 0;
16025 tm.tm_isdst = -1;
16026 return mktime (&tm) != (time_t) -1;
16027}
16028
16029static int
16030mktime_test1 (time_t now)
16031{
16032 struct tm *lt;
16033 return ! (lt = localtime (&now)) || mktime (lt) == now;
16034}
16035
16036static int
16037mktime_test (time_t now)
16038{
16039 return (mktime_test1 (now)
16040 && mktime_test1 ((time_t) (time_t_max - now))
16041 && mktime_test1 ((time_t) (time_t_min + now)));
16042}
16043
16044static int
16045irix_6_4_bug ()
16046{
16047 /* Based on code from Ariel Faigon. */
16048 struct tm tm;
16049 tm.tm_year = 96;
16050 tm.tm_mon = 3;
16051 tm.tm_mday = 0;
16052 tm.tm_hour = 0;
16053 tm.tm_min = 0;
16054 tm.tm_sec = 0;
16055 tm.tm_isdst = -1;
16056 mktime (&tm);
16057 return tm.tm_mon == 2 && tm.tm_mday == 31;
16058}
16059
16060static int
16061bigtime_test (int j)
16062{
16063 struct tm tm;
16064 time_t now;
16065 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16066 now = mktime (&tm);
16067 if (now != (time_t) -1)
16068 {
16069 struct tm *lt = localtime (&now);
16070 if (! (lt
16071 && lt->tm_year == tm.tm_year
16072 && lt->tm_mon == tm.tm_mon
16073 && lt->tm_mday == tm.tm_mday
16074 && lt->tm_hour == tm.tm_hour
16075 && lt->tm_min == tm.tm_min
16076 && lt->tm_sec == tm.tm_sec
16077 && lt->tm_yday == tm.tm_yday
16078 && lt->tm_wday == tm.tm_wday
16079 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16080 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16081 return 0;
16082 }
16083 return 1;
16084}
16085
16086static int
16087year_2050_test ()
16088{
16089 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16090 ignoring leap seconds. */
16091 unsigned long int answer = 2527315200UL;
16092
16093 struct tm tm;
16094 time_t t;
16095 tm.tm_year = 2050 - 1900;
16096 tm.tm_mon = 2 - 1;
16097 tm.tm_mday = 1;
16098 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16099 tm.tm_isdst = -1;
16100
16101 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16102 instead of "TZ=America/Vancouver" in order to detect the bug even
16103 on systems that don't support the Olson extension, or don't have the
16104 full zoneinfo tables installed. */
16105 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16106
16107 t = mktime (&tm);
16108
16109 /* Check that the result is either a failure, or close enough
16110 to the correct answer that we can assume the discrepancy is
16111 due to leap seconds. */
16112 return (t == (time_t) -1
16113 || (0 < t && answer - 120 <= t && t <= answer + 120));
16114}
16115
16116int
16117main ()
16118{
16119 int result = 0;
16120 time_t t, delta;
16121 int i, j;
3de84ad9
PE
16122 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16123 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
16124
16125 /* This test makes some buggy mktime implementations loop.
16126 Give up after 60 seconds; a mktime slower than that
16127 isn't worth using anyway. */
16128 alarm (60);
16129
3de84ad9
PE
16130 time_t_max = (! time_t_signed
16131 ? (time_t) -1
16132 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16133 * 2 + 1));
16134 time_t_min = (! time_t_signed
16135 ? (time_t) 0
16136 : time_t_signed_magnitude
16137 ? ~ (time_t) 0
16138 : ~ time_t_max);
1fd182f0
PE
16139
16140 delta = time_t_max / 997; /* a suitable prime number */
16141 for (i = 0; i < N_STRINGS; i++)
16142 {
16143 if (tz_strings[i])
16144 putenv (tz_strings[i]);
16145
16146 for (t = 0; t <= time_t_max - delta; t += delta)
16147 if (! mktime_test (t))
16148 result |= 1;
16149 if (! (mktime_test ((time_t) 1)
16150 && mktime_test ((time_t) (60 * 60))
16151 && mktime_test ((time_t) (60 * 60 * 24))))
16152 result |= 2;
16153
16154 for (j = 1; ; j <<= 1)
16155 if (! bigtime_test (j))
16156 result |= 4;
16157 else if (INT_MAX / 2 < j)
16158 break;
16159 if (! bigtime_test (INT_MAX))
16160 result |= 8;
16161 }
16162 if (! irix_6_4_bug ())
16163 result |= 16;
16164 if (! spring_forward_gap ())
16165 result |= 32;
16166 if (! year_2050_test ())
16167 result |= 64;
16168 return result;
16169}
16170_ACEOF
16171if ac_fn_c_try_run "$LINENO"; then :
16172 ac_cv_func_working_mktime=yes
16173else
16174 ac_cv_func_working_mktime=no
16175fi
16176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16177 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 16178fi
067d23c9 16179
1fd182f0
PE
16180fi
16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16182$as_echo "$ac_cv_func_working_mktime" >&6; }
16183if test $ac_cv_func_working_mktime = no; then
067d23c9 16184
067d23c9 16185
067d23c9
KY
16186
16187
067d23c9 16188
067d23c9
KY
16189
16190
16191
1fd182f0 16192 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 16193
1fd182f0 16194fi
067d23c9 16195
1fd182f0
PE
16196 if test $ac_cv_func_working_mktime = no; then
16197 REPLACE_MKTIME=1
067d23c9
KY
16198
16199
16200
1fd182f0
PE
16201 else
16202 REPLACE_MKTIME=0
16203 fi
067d23c9
KY
16204
16205
16206
067d23c9 16207
1fd182f0 16208 GNULIB_MKTIME=1
067d23c9
KY
16209
16210
16211
1fd182f0 16212 # Code from module multiarch:
067d23c9 16213
ae0d7250
PE
16214 # Code from module readlink:
16215
16216
16217
16218 if test $ac_cv_func_readlink = no; then
16219 HAVE_READLINK=0
16220
16221
16222
16223
16224
16225
16226
16227
16228 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16229
16230
16231 :
16232
16233 else
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16235$as_echo_n "checking whether readlink signature is correct... " >&6; }
7834125e 16236if test "${gl_cv_decl_readlink_works+set}" = set; then :
ae0d7250
PE
16237 $as_echo_n "(cached) " >&6
16238else
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240/* end confdefs.h. */
16241#include <unistd.h>
16242 /* Cause compilation failure if original declaration has wrong type. */
16243 ssize_t readlink (const char *, char *, size_t);
16244int
16245main ()
16246{
16247
16248 ;
16249 return 0;
16250}
16251_ACEOF
16252if ac_fn_c_try_compile "$LINENO"; then :
16253 gl_cv_decl_readlink_works=yes
16254else
16255 gl_cv_decl_readlink_works=no
16256fi
16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258fi
16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16260$as_echo "$gl_cv_decl_readlink_works" >&6; }
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16262$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
7834125e 16263if test "${gl_cv_func_readlink_works+set}" = set; then :
ae0d7250
PE
16264 $as_echo_n "(cached) " >&6
16265else
16266 # We have readlink, so assume ln -s works.
16267 ln -s conftest.no-such conftest.link
16268 ln -s conftest.link conftest.lnk2
16269 if test "$cross_compiling" = yes; then :
16270 gl_cv_func_readlink_works="guessing no"
16271else
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273/* end confdefs.h. */
16274#include <unistd.h>
16275
16276int
16277main ()
16278{
16279char buf[20];
16280 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285if ac_fn_c_try_run "$LINENO"; then :
16286 gl_cv_func_readlink_works=yes
16287else
16288 gl_cv_func_readlink_works=no
16289fi
16290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16291 conftest.$ac_objext conftest.beam conftest.$ac_ext
16292fi
16293
16294 rm -f conftest.link conftest.lnk2
16295fi
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16297$as_echo "$gl_cv_func_readlink_works" >&6; }
16298 if test "$gl_cv_func_readlink_works" != yes; then
16299
16300$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16301
16302 REPLACE_READLINK=1
16303
16304
16305
16306
16307
16308
16309
16310
16311 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16312
16313 elif test "$gl_cv_decl_readlink_works" != yes; then
16314 REPLACE_READLINK=1
16315
16316
16317
16318
16319
16320
16321
16322
16323 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16324
16325 fi
16326 fi
16327
16328
16329
16330
16331 GNULIB_READLINK=1
16332
16333
16334
16335 # Code from module stat:
16336
16337
16338
ae0d7250
PE
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16340$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
7834125e 16341if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
ae0d7250
PE
16342 $as_echo_n "(cached) " >&6
16343else
16344 if test "$cross_compiling" = yes; then :
16345 case $host_os in
16346 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16347 *) gl_cv_func_stat_dir_slash="guessing yes";;
16348 esac
16349else
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351/* end confdefs.h. */
16352#include <sys/stat.h>
16353
16354int
16355main ()
16356{
16357struct stat st; return stat (".", &st) != stat ("./", &st);
16358 ;
16359 return 0;
16360}
16361_ACEOF
16362if ac_fn_c_try_run "$LINENO"; then :
16363 gl_cv_func_stat_dir_slash=yes
16364else
16365 gl_cv_func_stat_dir_slash=no
16366fi
16367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16368 conftest.$ac_objext conftest.beam conftest.$ac_ext
16369fi
16370
16371fi
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16373$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16375$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
7834125e 16376if test "${gl_cv_func_stat_file_slash+set}" = set; then :
ae0d7250
PE
16377 $as_echo_n "(cached) " >&6
16378else
16379 touch conftest.tmp
16380 # Assume that if we have lstat, we can also check symlinks.
16381 if test $ac_cv_func_lstat = yes; then
16382 ln -s conftest.tmp conftest.lnk
16383 fi
16384 if test "$cross_compiling" = yes; then :
16385 gl_cv_func_stat_file_slash="guessing no"
16386else
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388/* end confdefs.h. */
16389#include <sys/stat.h>
16390
16391int
16392main ()
16393{
16394int result = 0;
16395 struct stat st;
16396 if (!stat ("conftest.tmp/", &st))
16397 result |= 1;
16398#if HAVE_LSTAT
16399 if (!stat ("conftest.lnk/", &st))
16400 result |= 2;
16401#endif
16402 return result;
16403
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408if ac_fn_c_try_run "$LINENO"; then :
16409 gl_cv_func_stat_file_slash=yes
16410else
16411 gl_cv_func_stat_file_slash=no
16412fi
16413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16414 conftest.$ac_objext conftest.beam conftest.$ac_ext
16415fi
16416
16417 rm -f conftest.tmp conftest.lnk
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16420$as_echo "$gl_cv_func_stat_file_slash" >&6; }
16421 case $gl_cv_func_stat_dir_slash in
16422 *no) REPLACE_STAT=1
16423
16424$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16425;;
16426 esac
16427 case $gl_cv_func_stat_file_slash in
16428 *no) REPLACE_STAT=1
16429
16430$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16431;;
16432 esac
16433 if test $REPLACE_STAT = 1; then
16434
16435
16436
16437
16438
16439
16440
16441
16442 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16443
16444
16445 fi
16446
16447
16448
16449
16450 GNULIB_STAT=1
16451
16452
16453
16c3e636
PE
16454 # Code from module stdbool:
16455
16456
16457
16458 # Define two additional variables used in the Makefile substitution.
16459
16460 if test "$ac_cv_header_stdbool_h" = yes; then
16461 STDBOOL_H=''
16462 else
16463 STDBOOL_H='stdbool.h'
16464 fi
16465
16466
16467 if test "$ac_cv_type__Bool" = yes; then
16468 HAVE__BOOL=1
16469 else
16470 HAVE__BOOL=0
16471 fi
16472
16473
1fd182f0 16474 # Code from module stddef:
067d23c9 16475
067d23c9 16476
067d23c9 16477
1fd182f0
PE
16478 if test $gt_cv_c_wchar_t = no; then
16479 HAVE_WCHAR_T=0
16480 STDDEF_H=stddef.h
067d23c9 16481 fi
1fd182f0
PE
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16483$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7834125e 16484if test "${gl_cv_decl_null_works+set}" = set; then :
067d23c9 16485 $as_echo_n "(cached) " >&6
067d23c9
KY
16486else
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488/* end confdefs.h. */
1fd182f0
PE
16489#include <stddef.h>
16490 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16491
067d23c9
KY
16492int
16493main ()
16494{
16495
067d23c9
KY
16496 ;
16497 return 0;
16498}
16499_ACEOF
1fd182f0
PE
16500if ac_fn_c_try_compile "$LINENO"; then :
16501 gl_cv_decl_null_works=yes
067d23c9 16502else
1fd182f0 16503 gl_cv_decl_null_works=no
067d23c9 16504fi
1fd182f0 16505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 16506fi
1fd182f0
PE
16507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16508$as_echo "$gl_cv_decl_null_works" >&6; }
16509 if test $gl_cv_decl_null_works = no; then
16510 REPLACE_NULL=1
16511 STDDEF_H=stddef.h
16512 fi
16513 if test -n "$STDDEF_H"; then
16514
16515
16516
16517
16518
16519
b06b1098
PE
16520
16521
1fd182f0
PE
16522 if test $gl_cv_have_include_next = yes; then
16523 gl_cv_next_stddef_h='<'stddef.h'>'
16524 else
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16526$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7834125e 16527if test "${gl_cv_next_stddef_h+set}" = set; then :
1fd182f0
PE
16528 $as_echo_n "(cached) " >&6
16529else
16530
b06b1098 16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
16532/* end confdefs.h. */
16533#include <stddef.h>
16534
16535_ACEOF
b06b1098
PE
16536 case "$host_os" in
16537 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16538 *) gl_absname_cpp="$ac_cpp" ;;
16539 esac
16540 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16541 sed -n '\#/stddef.h#{
16542 s#.*"\(.*/stddef.h\)".*#\1#
16543 s#^/[^/]#//&#
16544 p
16545 q
16546 }'`'"'
16547
067d23c9
KY
16548
16549fi
1fd182f0
PE
16550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16551$as_echo "$gl_cv_next_stddef_h" >&6; }
16552 fi
16553 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16554
16555 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16557 gl_next_as_first_directive='<'stddef.h'>'
16558 else
16559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16560 gl_next_as_first_directive=$gl_cv_next_stddef_h
16561 fi
16562 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16563
16564
16565
b06b1098 16566
067d23c9
KY
16567 fi
16568
5f90be1b
PE
16569 # Code from module stdint:
16570
16571
16572
16573 if test $ac_cv_type_long_long_int = yes; then
16574 HAVE_LONG_LONG_INT=1
16575 else
16576 HAVE_LONG_LONG_INT=0
16577 fi
16578
16579
16580 if test $ac_cv_type_unsigned_long_long_int = yes; then
16581 HAVE_UNSIGNED_LONG_LONG_INT=1
16582 else
16583 HAVE_UNSIGNED_LONG_LONG_INT=0
16584 fi
16585
16586
16587
16588 if test $ac_cv_header_wchar_h = yes; then
16589 HAVE_WCHAR_H=1
16590 else
16591 HAVE_WCHAR_H=0
16592 fi
16593
16594
16595 if test $ac_cv_header_inttypes_h = yes; then
16596 HAVE_INTTYPES_H=1
16597 else
16598 HAVE_INTTYPES_H=0
16599 fi
16600
16601
16602 if test $ac_cv_header_sys_types_h = yes; then
16603 HAVE_SYS_TYPES_H=1
16604 else
16605 HAVE_SYS_TYPES_H=0
16606 fi
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618 if test $gl_cv_have_include_next = yes; then
16619 gl_cv_next_stdint_h='<'stdint.h'>'
16620 else
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16622$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7834125e 16623if test "${gl_cv_next_stdint_h+set}" = set; then :
5f90be1b
PE
16624 $as_echo_n "(cached) " >&6
16625else
16626
16627 if test $ac_cv_header_stdint_h = yes; then
16628
16629
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631/* end confdefs.h. */
16632#include <stdint.h>
16633
16634_ACEOF
16635 case "$host_os" in
16636 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16637 *) gl_absname_cpp="$ac_cpp" ;;
16638 esac
16639 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16640 sed -n '\#/stdint.h#{
16641 s#.*"\(.*/stdint.h\)".*#\1#
16642 s#^/[^/]#//&#
16643 p
16644 q
16645 }'`'"'
16646 else
16647 gl_cv_next_stdint_h='<'stdint.h'>'
16648 fi
16649
16650
16651fi
16652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16653$as_echo "$gl_cv_next_stdint_h" >&6; }
16654 fi
16655 NEXT_STDINT_H=$gl_cv_next_stdint_h
16656
16657 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16659 gl_next_as_first_directive='<'stdint.h'>'
16660 else
16661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16662 gl_next_as_first_directive=$gl_cv_next_stdint_h
16663 fi
16664 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16665
16666
16667
16668
16669 if test $ac_cv_header_stdint_h = yes; then
16670 HAVE_STDINT_H=1
16671 else
16672 HAVE_STDINT_H=0
16673 fi
16674
16675
16676 if test $ac_cv_header_stdint_h = yes; then
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16678$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7834125e 16679if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5f90be1b
PE
16680 $as_echo_n "(cached) " >&6
16681else
16682 gl_cv_header_working_stdint_h=no
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684/* end confdefs.h. */
16685
16686
16687#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16688#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16689#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16690#include <stdint.h>
16691/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16692#if !(defined WCHAR_MIN && defined WCHAR_MAX)
16693#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16694#endif
16695
16696
16697 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16698 included before <wchar.h>. */
16699 #include <stddef.h>
16700 #include <signal.h>
16701 #if HAVE_WCHAR_H
16702 # include <stdio.h>
16703 # include <time.h>
16704 # include <wchar.h>
16705 #endif
16706
16707
16708#ifdef INT8_MAX
16709int8_t a1 = INT8_MAX;
16710int8_t a1min = INT8_MIN;
16711#endif
16712#ifdef INT16_MAX
16713int16_t a2 = INT16_MAX;
16714int16_t a2min = INT16_MIN;
16715#endif
16716#ifdef INT32_MAX
16717int32_t a3 = INT32_MAX;
16718int32_t a3min = INT32_MIN;
16719#endif
16720#ifdef INT64_MAX
16721int64_t a4 = INT64_MAX;
16722int64_t a4min = INT64_MIN;
16723#endif
16724#ifdef UINT8_MAX
16725uint8_t b1 = UINT8_MAX;
16726#else
16727typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16728#endif
16729#ifdef UINT16_MAX
16730uint16_t b2 = UINT16_MAX;
16731#endif
16732#ifdef UINT32_MAX
16733uint32_t b3 = UINT32_MAX;
16734#endif
16735#ifdef UINT64_MAX
16736uint64_t b4 = UINT64_MAX;
16737#endif
16738int_least8_t c1 = INT8_C (0x7f);
16739int_least8_t c1max = INT_LEAST8_MAX;
16740int_least8_t c1min = INT_LEAST8_MIN;
16741int_least16_t c2 = INT16_C (0x7fff);
16742int_least16_t c2max = INT_LEAST16_MAX;
16743int_least16_t c2min = INT_LEAST16_MIN;
16744int_least32_t c3 = INT32_C (0x7fffffff);
16745int_least32_t c3max = INT_LEAST32_MAX;
16746int_least32_t c3min = INT_LEAST32_MIN;
16747int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16748int_least64_t c4max = INT_LEAST64_MAX;
16749int_least64_t c4min = INT_LEAST64_MIN;
16750uint_least8_t d1 = UINT8_C (0xff);
16751uint_least8_t d1max = UINT_LEAST8_MAX;
16752uint_least16_t d2 = UINT16_C (0xffff);
16753uint_least16_t d2max = UINT_LEAST16_MAX;
16754uint_least32_t d3 = UINT32_C (0xffffffff);
16755uint_least32_t d3max = UINT_LEAST32_MAX;
16756uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16757uint_least64_t d4max = UINT_LEAST64_MAX;
16758int_fast8_t e1 = INT_FAST8_MAX;
16759int_fast8_t e1min = INT_FAST8_MIN;
16760int_fast16_t e2 = INT_FAST16_MAX;
16761int_fast16_t e2min = INT_FAST16_MIN;
16762int_fast32_t e3 = INT_FAST32_MAX;
16763int_fast32_t e3min = INT_FAST32_MIN;
16764int_fast64_t e4 = INT_FAST64_MAX;
16765int_fast64_t e4min = INT_FAST64_MIN;
16766uint_fast8_t f1 = UINT_FAST8_MAX;
16767uint_fast16_t f2 = UINT_FAST16_MAX;
16768uint_fast32_t f3 = UINT_FAST32_MAX;
16769uint_fast64_t f4 = UINT_FAST64_MAX;
16770#ifdef INTPTR_MAX
16771intptr_t g = INTPTR_MAX;
16772intptr_t gmin = INTPTR_MIN;
16773#endif
16774#ifdef UINTPTR_MAX
16775uintptr_t h = UINTPTR_MAX;
16776#endif
16777intmax_t i = INTMAX_MAX;
16778uintmax_t j = UINTMAX_MAX;
16779
16780#include <limits.h> /* for CHAR_BIT */
16781#define TYPE_MINIMUM(t) \
16782 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16783#define TYPE_MAXIMUM(t) \
16784 ((t) ((t) 0 < (t) -1 \
16785 ? (t) -1 \
16786 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16787struct s {
16788 int check_PTRDIFF:
16789 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16790 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16791 ? 1 : -1;
16792 /* Detect bug in FreeBSD 6.0 / ia64. */
16793 int check_SIG_ATOMIC:
16794 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16795 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16796 ? 1 : -1;
16797 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16798 int check_WCHAR:
16799 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16800 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16801 ? 1 : -1;
16802 /* Detect bug in mingw. */
16803 int check_WINT:
16804 WINT_MIN == TYPE_MINIMUM (wint_t)
16805 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16806 ? 1 : -1;
16807
16808 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16809 int check_UINT8_C:
16810 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16811 int check_UINT16_C:
16812 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16813
16814 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16815#ifdef UINT8_MAX
16816 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16817#endif
16818#ifdef UINT16_MAX
16819 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16820#endif
16821#ifdef UINT32_MAX
16822 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16823#endif
16824#ifdef UINT64_MAX
16825 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16826#endif
16827 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16828 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16829 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16830 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16831 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16832 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16833 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16834 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16835 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16836 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16837 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16838};
16839
16840int
16841main ()
16842{
16843
16844 ;
16845 return 0;
16846}
16847_ACEOF
16848if ac_fn_c_try_compile "$LINENO"; then :
16849 if test "$cross_compiling" = yes; then :
16850 gl_cv_header_working_stdint_h=yes
16851
16852else
16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854/* end confdefs.h. */
16855
16856
16857#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16858#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16859#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16860#include <stdint.h>
16861
16862
16863 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16864 included before <wchar.h>. */
16865 #include <stddef.h>
16866 #include <signal.h>
16867 #if HAVE_WCHAR_H
16868 # include <stdio.h>
16869 # include <time.h>
16870 # include <wchar.h>
16871 #endif
16872
16873
16874#include <stdio.h>
16875#include <string.h>
16876#define MVAL(macro) MVAL1(macro)
16877#define MVAL1(expression) #expression
16878static const char *macro_values[] =
16879 {
16880#ifdef INT8_MAX
16881 MVAL (INT8_MAX),
16882#endif
16883#ifdef INT16_MAX
16884 MVAL (INT16_MAX),
16885#endif
16886#ifdef INT32_MAX
16887 MVAL (INT32_MAX),
16888#endif
16889#ifdef INT64_MAX
16890 MVAL (INT64_MAX),
16891#endif
16892#ifdef UINT8_MAX
16893 MVAL (UINT8_MAX),
16894#endif
16895#ifdef UINT16_MAX
16896 MVAL (UINT16_MAX),
16897#endif
16898#ifdef UINT32_MAX
16899 MVAL (UINT32_MAX),
16900#endif
16901#ifdef UINT64_MAX
16902 MVAL (UINT64_MAX),
16903#endif
16904 NULL
16905 };
16906
16907int
16908main ()
16909{
16910
16911 const char **mv;
16912 for (mv = macro_values; *mv != NULL; mv++)
16913 {
16914 const char *value = *mv;
16915 /* Test whether it looks like a cast expression. */
16916 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16917 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16918 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16919 || strncmp (value, "((int)"/*)*/, 6) == 0
16920 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16921 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16922 return mv - macro_values + 1;
16923 }
16924 return 0;
16925
16926 ;
16927 return 0;
16928}
16929_ACEOF
16930if ac_fn_c_try_run "$LINENO"; then :
16931 gl_cv_header_working_stdint_h=yes
16932fi
16933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16934 conftest.$ac_objext conftest.beam conftest.$ac_ext
16935fi
16936
16937
16938fi
16939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940
16941fi
16942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16943$as_echo "$gl_cv_header_working_stdint_h" >&6; }
16944 fi
16945 if test "$gl_cv_header_working_stdint_h" = yes; then
16946 STDINT_H=
16947 else
16948 for ac_header in sys/inttypes.h sys/bitypes.h
16949do :
16950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
0afb4571
J
16952eval as_val=\$$as_ac_Header
16953 if test "x$as_val" = x""yes; then :
5f90be1b
PE
16954 cat >>confdefs.h <<_ACEOF
16955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16956_ACEOF
16957
16958fi
16959
16960done
16961
16962 if test $ac_cv_header_sys_inttypes_h = yes; then
16963 HAVE_SYS_INTTYPES_H=1
16964 else
16965 HAVE_SYS_INTTYPES_H=0
16966 fi
16967
16968 if test $ac_cv_header_sys_bitypes_h = yes; then
16969 HAVE_SYS_BITYPES_H=1
16970 else
16971 HAVE_SYS_BITYPES_H=0
16972 fi
16973
16974
16975
16976
16977 if test $APPLE_UNIVERSAL_BUILD = 0; then
16978
16979
16980 for gltype in ptrdiff_t size_t ; do
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16982$as_echo_n "checking for bit size of $gltype... " >&6; }
0afb4571 16983if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5f90be1b
PE
16984 $as_echo_n "(cached) " >&6
16985else
16986 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16987 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16988 included before <wchar.h>. */
16989 #include <stddef.h>
16990 #include <signal.h>
16991 #if HAVE_WCHAR_H
16992 # include <stdio.h>
16993 # include <time.h>
16994 # include <wchar.h>
16995 #endif
16996
16997#include <limits.h>"; then :
16998
16999else
17000 result=unknown
17001fi
17002
17003 eval gl_cv_bitsizeof_${gltype}=\$result
17004
17005fi
17006eval ac_res=\$gl_cv_bitsizeof_${gltype}
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17008$as_echo "$ac_res" >&6; }
17009 eval result=\$gl_cv_bitsizeof_${gltype}
17010 if test $result = unknown; then
17011 result=0
17012 fi
17013 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17014 cat >>confdefs.h <<_ACEOF
17015#define BITSIZEOF_${GLTYPE} $result
17016_ACEOF
17017
17018 eval BITSIZEOF_${GLTYPE}=\$result
17019 done
17020
17021
17022 fi
17023
17024
17025 for gltype in sig_atomic_t wchar_t wint_t ; do
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17027$as_echo_n "checking for bit size of $gltype... " >&6; }
0afb4571 17028if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5f90be1b
PE
17029 $as_echo_n "(cached) " >&6
17030else
17031 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17032 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17033 included before <wchar.h>. */
17034 #include <stddef.h>
17035 #include <signal.h>
17036 #if HAVE_WCHAR_H
17037 # include <stdio.h>
17038 # include <time.h>
17039 # include <wchar.h>
17040 #endif
17041
17042#include <limits.h>"; then :
17043
17044else
17045 result=unknown
17046fi
17047
17048 eval gl_cv_bitsizeof_${gltype}=\$result
17049
17050fi
17051eval ac_res=\$gl_cv_bitsizeof_${gltype}
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17053$as_echo "$ac_res" >&6; }
17054 eval result=\$gl_cv_bitsizeof_${gltype}
17055 if test $result = unknown; then
17056 result=0
17057 fi
17058 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17059 cat >>confdefs.h <<_ACEOF
17060#define BITSIZEOF_${GLTYPE} $result
17061_ACEOF
17062
17063 eval BITSIZEOF_${GLTYPE}=\$result
17064 done
17065
17066
17067
17068
17069 for gltype in sig_atomic_t wchar_t wint_t ; do
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17071$as_echo_n "checking whether $gltype is signed... " >&6; }
0afb4571 17072if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5f90be1b
PE
17073 $as_echo_n "(cached) " >&6
17074else
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076/* end confdefs.h. */
17077
17078 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17079 included before <wchar.h>. */
17080 #include <stddef.h>
17081 #include <signal.h>
17082 #if HAVE_WCHAR_H
17083 # include <stdio.h>
17084 # include <time.h>
17085 # include <wchar.h>
17086 #endif
17087
17088 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17089int
17090main ()
17091{
17092
17093 ;
17094 return 0;
17095}
17096_ACEOF
17097if ac_fn_c_try_compile "$LINENO"; then :
17098 result=yes
17099else
17100 result=no
17101fi
17102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 eval gl_cv_type_${gltype}_signed=\$result
17104
17105fi
17106eval ac_res=\$gl_cv_type_${gltype}_signed
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17108$as_echo "$ac_res" >&6; }
17109 eval result=\$gl_cv_type_${gltype}_signed
17110 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17111 if test "$result" = yes; then
17112 cat >>confdefs.h <<_ACEOF
17113#define HAVE_SIGNED_${GLTYPE} 1
17114_ACEOF
17115
17116 eval HAVE_SIGNED_${GLTYPE}=1
17117 else
17118 eval HAVE_SIGNED_${GLTYPE}=0
17119 fi
17120 done
17121
17122
17123 gl_cv_type_ptrdiff_t_signed=yes
17124 gl_cv_type_size_t_signed=no
17125 if test $APPLE_UNIVERSAL_BUILD = 0; then
17126
17127
17128 for gltype in ptrdiff_t size_t ; do
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17130$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
0afb4571 17131if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5f90be1b
PE
17132 $as_echo_n "(cached) " >&6
17133else
17134 eval gl_cv_type_${gltype}_suffix=no
17135 eval result=\$gl_cv_type_${gltype}_signed
17136 if test "$result" = yes; then
17137 glsufu=
17138 else
17139 glsufu=u
17140 fi
17141 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17142 case $glsuf in
17143 '') gltype1='int';;
17144 l) gltype1='long int';;
17145 ll) gltype1='long long int';;
17146 i64) gltype1='__int64';;
17147 u) gltype1='unsigned int';;
17148 ul) gltype1='unsigned long int';;
17149 ull) gltype1='unsigned long long int';;
17150 ui64)gltype1='unsigned __int64';;
17151 esac
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h. */
17154
17155 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17156 included before <wchar.h>. */
17157 #include <stddef.h>
17158 #include <signal.h>
17159 #if HAVE_WCHAR_H
17160 # include <stdio.h>
17161 # include <time.h>
17162 # include <wchar.h>
17163 #endif
17164
17165 extern $gltype foo;
17166 extern $gltype1 foo;
17167int
17168main ()
17169{
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175if ac_fn_c_try_compile "$LINENO"; then :
17176 eval gl_cv_type_${gltype}_suffix=\$glsuf
17177fi
17178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17179 eval result=\$gl_cv_type_${gltype}_suffix
17180 test "$result" != no && break
17181 done
17182fi
17183eval ac_res=\$gl_cv_type_${gltype}_suffix
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17185$as_echo "$ac_res" >&6; }
17186 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17187 eval result=\$gl_cv_type_${gltype}_suffix
17188 test "$result" = no && result=
17189 eval ${GLTYPE}_SUFFIX=\$result
17190 cat >>confdefs.h <<_ACEOF
17191#define ${GLTYPE}_SUFFIX $result
17192_ACEOF
17193
17194 done
17195
17196
17197 fi
17198
17199
17200 for gltype in sig_atomic_t wchar_t wint_t ; do
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17202$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
0afb4571 17203if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5f90be1b
PE
17204 $as_echo_n "(cached) " >&6
17205else
17206 eval gl_cv_type_${gltype}_suffix=no
17207 eval result=\$gl_cv_type_${gltype}_signed
17208 if test "$result" = yes; then
17209 glsufu=
17210 else
17211 glsufu=u
17212 fi
17213 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17214 case $glsuf in
17215 '') gltype1='int';;
17216 l) gltype1='long int';;
17217 ll) gltype1='long long int';;
17218 i64) gltype1='__int64';;
17219 u) gltype1='unsigned int';;
17220 ul) gltype1='unsigned long int';;
17221 ull) gltype1='unsigned long long int';;
17222 ui64)gltype1='unsigned __int64';;
17223 esac
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225/* end confdefs.h. */
17226
17227 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17228 included before <wchar.h>. */
17229 #include <stddef.h>
17230 #include <signal.h>
17231 #if HAVE_WCHAR_H
17232 # include <stdio.h>
17233 # include <time.h>
17234 # include <wchar.h>
17235 #endif
17236
17237 extern $gltype foo;
17238 extern $gltype1 foo;
17239int
17240main ()
17241{
17242
17243 ;
17244 return 0;
17245}
17246_ACEOF
17247if ac_fn_c_try_compile "$LINENO"; then :
17248 eval gl_cv_type_${gltype}_suffix=\$glsuf
17249fi
17250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17251 eval result=\$gl_cv_type_${gltype}_suffix
17252 test "$result" != no && break
17253 done
17254fi
17255eval ac_res=\$gl_cv_type_${gltype}_suffix
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17257$as_echo "$ac_res" >&6; }
17258 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17259 eval result=\$gl_cv_type_${gltype}_suffix
17260 test "$result" = no && result=
17261 eval ${GLTYPE}_SUFFIX=\$result
17262 cat >>confdefs.h <<_ACEOF
17263#define ${GLTYPE}_SUFFIX $result
17264_ACEOF
17265
17266 done
17267
17268
17269
17270 STDINT_H=stdint.h
17271 fi
17272
17273
1f5d53eb
PE
17274 # Code from module stdlib:
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285 if test $gl_cv_have_include_next = yes; then
17286 gl_cv_next_stdlib_h='<'stdlib.h'>'
17287 else
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17289$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
7834125e 17290if test "${gl_cv_next_stdlib_h+set}" = set; then :
1f5d53eb
PE
17291 $as_echo_n "(cached) " >&6
17292else
17293
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17295/* end confdefs.h. */
17296#include <stdlib.h>
17297
17298_ACEOF
17299 case "$host_os" in
17300 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17301 *) gl_absname_cpp="$ac_cpp" ;;
17302 esac
17303 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17304 sed -n '\#/stdlib.h#{
17305 s#.*"\(.*/stdlib.h\)".*#\1#
17306 s#^/[^/]#//&#
17307 p
17308 q
17309 }'`'"'
17310
17311
17312fi
17313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17314$as_echo "$gl_cv_next_stdlib_h" >&6; }
17315 fi
17316 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17317
17318 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17319 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17320 gl_next_as_first_directive='<'stdlib.h'>'
17321 else
17322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17323 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17324 fi
17325 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17326
17327
17328
17329
17330
17331
17332
16c3e636
PE
17333 # Code from module strftime:
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17345
17346
17347 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17348
17349
17350
17351
17352
17353
17354
17355$as_echo "#define my_strftime nstrftime" >>confdefs.h
17356
17357
17358
ae0d7250
PE
17359 # Code from module symlink:
17360
17361
17362
17363 if test $ac_cv_func_symlink = no; then
17364 HAVE_SYMLINK=0
17365
17366
17367
17368
17369
17370
17371
17372
17373 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17374
17375 else
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17377$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
7834125e 17378if test "${gl_cv_func_symlink_works+set}" = set; then :
ae0d7250
PE
17379 $as_echo_n "(cached) " >&6
17380else
17381 if test "$cross_compiling" = yes; then :
17382 gl_cv_func_symlink_works="guessing no"
17383else
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h. */
17386#include <unistd.h>
17387
17388int
17389main ()
17390{
17391int result = 0;
17392 if (!symlink ("a", "conftest.link/"))
17393 result |= 1;
17394 if (symlink ("conftest.f", "conftest.lnk2"))
17395 result |= 2;
17396 else if (!symlink ("a", "conftest.lnk2/"))
17397 result |= 4;
17398 return result;
17399
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404if ac_fn_c_try_run "$LINENO"; then :
17405 gl_cv_func_symlink_works=yes
17406else
17407 gl_cv_func_symlink_works=no
17408fi
17409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17410 conftest.$ac_objext conftest.beam conftest.$ac_ext
17411fi
17412
17413 rm -f conftest.f conftest.link conftest.lnk2
17414fi
17415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17416$as_echo "$gl_cv_func_symlink_works" >&6; }
17417 if test "$gl_cv_func_symlink_works" != yes; then
17418 REPLACE_SYMLINK=1
17419
17420
17421
17422
17423
17424
17425
17426
17427 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17428
17429 fi
17430 fi
17431
17432
17433
17434
17435 GNULIB_SYMLINK=1
17436
17437
17438
5fa4ac76
PE
17439 # Code from module sys_stat:
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456 if test $gl_cv_have_include_next = yes; then
17457 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17458 else
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17460$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
7834125e 17461if test "${gl_cv_next_sys_stat_h+set}" = set; then :
5fa4ac76
PE
17462 $as_echo_n "(cached) " >&6
17463else
17464
17465 if test $ac_cv_header_sys_stat_h = yes; then
17466
17467
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469/* end confdefs.h. */
17470#include <sys/stat.h>
17471
17472_ACEOF
17473 case "$host_os" in
17474 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17475 *) gl_absname_cpp="$ac_cpp" ;;
17476 esac
17477 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17478 sed -n '\#/sys/stat.h#{
17479 s#.*"\(.*/sys/stat.h\)".*#\1#
17480 s#^/[^/]#//&#
17481 p
17482 q
17483 }'`'"'
17484 else
17485 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17486 fi
17487
17488
17489fi
17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17491$as_echo "$gl_cv_next_sys_stat_h" >&6; }
17492 fi
17493 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17494
17495 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17496 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17497 gl_next_as_first_directive='<'sys/stat.h'>'
17498 else
17499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17500 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17501 fi
17502 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17503
17504
17505
17506
17507
17508 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17509 #include <sys/stat.h>
17510"
7834125e 17511if test "x$ac_cv_type_nlink_t" = x""yes; then :
5fa4ac76
PE
17512
17513else
17514
17515$as_echo "#define nlink_t int" >>confdefs.h
17516
17517fi
17518
17519
17520
17521
17522
1fd182f0 17523 # Code from module time:
067d23c9
KY
17524
17525
067d23c9 17526
1fd182f0 17527 # Code from module time_r:
067d23c9 17528
067d23c9 17529
067d23c9
KY
17530
17531
17532
067d23c9 17533
067d23c9 17534
1fd182f0
PE
17535 if test $ac_cv_have_decl_localtime_r = no; then
17536 HAVE_DECL_LOCALTIME_R=0
17537 fi
067d23c9
KY
17538
17539
1fd182f0
PE
17540 if test $ac_cv_func_localtime_r = yes; then
17541 HAVE_LOCALTIME_R=1
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17543$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
7834125e 17544if test "${gl_cv_time_r_posix+set}" = set; then :
067d23c9
KY
17545 $as_echo_n "(cached) " >&6
17546else
1fd182f0 17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 17548/* end confdefs.h. */
1fd182f0 17549#include <time.h>
067d23c9
KY
17550int
17551main ()
17552{
1fd182f0
PE
17553/* We don't need to append 'restrict's to the argument types,
17554 even though the POSIX signature has the 'restrict's,
17555 since C99 says they can't affect type compatibility. */
17556 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17557 if (ptr) return 0;
17558 /* Check the return type is a pointer.
17559 On HP-UX 10 it is 'int'. */
17560 *localtime_r (0, 0);
067d23c9
KY
17561 ;
17562 return 0;
17563}
1fd182f0 17564
067d23c9
KY
17565_ACEOF
17566if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 17567 gl_cv_time_r_posix=yes
067d23c9 17568else
1fd182f0 17569 gl_cv_time_r_posix=no
067d23c9
KY
17570fi
17571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17572
17573fi
1fd182f0
PE
17574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17575$as_echo "$gl_cv_time_r_posix" >&6; }
17576 if test $gl_cv_time_r_posix = yes; then
17577 REPLACE_LOCALTIME_R=0
17578 else
17579 REPLACE_LOCALTIME_R=1
17580 fi
17581 else
17582 HAVE_LOCALTIME_R=0
17583 fi
17584 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 17585
067d23c9
KY
17586
17587
743c80a7 17588
a451f14b
PE
17589
17590
17591
a451f14b 17592
1fd182f0 17593 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 17594
a451f14b 17595
1fd182f0 17596 :
a451f14b
PE
17597
17598 fi
17599
17600
743c80a7
PE
17601
17602
1fd182f0 17603 GNULIB_TIME_R=1
743c80a7
PE
17604
17605
17606
b06b1098 17607 # Code from module unistd:
a451f14b
PE
17608
17609
17610
e275c824
PE
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621 if test $gl_cv_have_include_next = yes; then
17622 gl_cv_next_unistd_h='<'unistd.h'>'
17623 else
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17625$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
7834125e 17626if test "${gl_cv_next_unistd_h+set}" = set; then :
e275c824
PE
17627 $as_echo_n "(cached) " >&6
17628else
17629
b06b1098
PE
17630 if test $ac_cv_header_unistd_h = yes; then
17631
17632
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
17634/* end confdefs.h. */
17635#include <unistd.h>
17636
17637_ACEOF
b06b1098
PE
17638 case "$host_os" in
17639 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17640 *) gl_absname_cpp="$ac_cpp" ;;
17641 esac
17642 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17643 sed -n '\#/unistd.h#{
17644 s#.*"\(.*/unistd.h\)".*#\1#
17645 s#^/[^/]#//&#
17646 p
17647 q
17648 }'`'"'
e275c824 17649 else
b06b1098
PE
17650 gl_cv_next_unistd_h='<'unistd.h'>'
17651 fi
17652
e275c824
PE
17653
17654fi
17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17656$as_echo "$gl_cv_next_unistd_h" >&6; }
17657 fi
17658 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17659
17660 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17662 gl_next_as_first_directive='<'unistd.h'>'
17663 else
17664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17665 gl_next_as_first_directive=$gl_cv_next_unistd_h
17666 fi
17667 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17668
17669
17670
17671
e275c824
PE
17672 if test $ac_cv_header_unistd_h = yes; then
17673 HAVE_UNISTD_H=1
17674 else
17675 HAVE_UNISTD_H=0
17676 fi
17677
17678
17679
e275c824 17680
1fd182f0
PE
17681 # Code from module warn-on-use:
17682 # End of code from modules
a451f14b 17683
a451f14b 17684
743c80a7
PE
17685
17686
17687
17688
17689
17690
17691
17692 gltests_libdeps=
17693 gltests_ltlibdeps=
17694
17695
17696
17697
17698
a451f14b
PE
17699
17700
17701
17702
743c80a7
PE
17703 gl_source_base='tests'
17704 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
17705
17706 gl_module_indicator_condition=$gltests_WITNESS
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716 LIBGNU_LIBDEPS="$gl_libdeps"
17717
17718 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17719
17720
17721
067d23c9
KY
17722# UNIX98 PTYs.
17723for ac_func in grantpt
17724do :
17725 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
7834125e 17726if test "x$ac_cv_func_grantpt" = x""yes; then :
067d23c9
KY
17727 cat >>confdefs.h <<_ACEOF
17728#define HAVE_GRANTPT 1
17729_ACEOF
17730
17731fi
17732done
17733
17734
17735# PTY-related GNU extensions.
17736for ac_func in getpt
17737do :
17738 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
7834125e 17739if test "x$ac_cv_func_getpt" = x""yes; then :
067d23c9
KY
17740 cat >>confdefs.h <<_ACEOF
17741#define HAVE_GETPT 1
17742_ACEOF
17743
17744fi
17745done
17746
17747
17748# Check this now, so that we will NOT find the above functions in ncurses.
17749# That is because we have not set up to link ncurses in lib-src.
17750# It's better to believe a function is not available
17751# than to expect to find it in ncurses.
17752# Also we need tputs and friends to be able to build at all.
17753have_tputs_et_al=true
17754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17755$as_echo_n "checking for library containing tputs... " >&6; }
7834125e 17756if test "${ac_cv_search_tputs+set}" = set; then :
067d23c9
KY
17757 $as_echo_n "(cached) " >&6
17758else
17759 ac_func_search_save_LIBS=$LIBS
17760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h. */
17762
17763/* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17766#ifdef __cplusplus
17767extern "C"
17768#endif
17769char tputs ();
17770int
17771main ()
17772{
17773return tputs ();
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778for ac_lib in '' ncurses terminfo termcap; do
17779 if test -z "$ac_lib"; then
17780 ac_res="none required"
17781 else
17782 ac_res=-l$ac_lib
17783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17784 fi
17785 if ac_fn_c_try_link "$LINENO"; then :
17786 ac_cv_search_tputs=$ac_res
17787fi
17788rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext
7834125e 17790 if test "${ac_cv_search_tputs+set}" = set; then :
067d23c9
KY
17791 break
17792fi
17793done
7834125e 17794if test "${ac_cv_search_tputs+set}" = set; then :
067d23c9
KY
17795
17796else
17797 ac_cv_search_tputs=no
17798fi
17799rm conftest.$ac_ext
17800LIBS=$ac_func_search_save_LIBS
17801fi
17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17803$as_echo "$ac_cv_search_tputs" >&6; }
17804ac_res=$ac_cv_search_tputs
17805if test "$ac_res" != no; then :
17806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17807
17808else
17809 have_tputs_et_al=false
17810fi
17811
17812if test "$have_tputs_et_al" != true; then
0afb4571 17813 as_fn_error "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
17814Maybe some development libraries/packages are missing? Try installing
17815libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17816fi
17817# Must define this when any termcap library is found.
17818
17819$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17820
17821## FIXME This was the cpp logic, but I am not sure it is right.
17822## The above test has not necessarily found libncurses.
17823HAVE_LIBNCURSES=yes
17824
17825## Use terminfo instead of termcap?
17826## Note only system files NOT using terminfo are:
17827## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17828## darwin|gnu without ncurses.
17829TERMINFO=no
17830LIBS_TERMCAP=
17831case "$opsys" in
17832 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17833 ## hpux10-20: Use the system provided termcap(3) library.
17834 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17835 ## is necessary. Otherwise Emacs dumps core when run -nw.
17836 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17837
17838 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17839 ## The ncurses library has been moved out of the System framework in
17840 ## Mac OS X 10.2. So if configure detects it, set the command-line
17841 ## option to use it.
17842 darwin|gnu*)
17843 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17844 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17845 TERMINFO=yes
17846 LIBS_TERMCAP="-lncurses"
17847 fi
17848 ;;
17849
17850 freebsd)
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17852$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
7834125e 17853 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
067d23c9
KY
17854 $as_echo_n "(cached) " >&6
17855else
17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17857/* end confdefs.h. */
17858#include <osreldate.h>
17859int
17860main ()
17861{
17862#if __FreeBSD_version < 400000
17863fail;
17864#endif
17865
17866 ;
17867 return 0;
17868}
17869_ACEOF
17870if ac_fn_c_try_link "$LINENO"; then :
17871 emacs_cv_freebsd_terminfo=yes
17872else
17873 emacs_cv_freebsd_terminfo=no
17874fi
17875rm -f core conftest.err conftest.$ac_objext \
17876 conftest$ac_exeext conftest.$ac_ext
17877fi
17878
17879
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17881$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17882
17883 if test $emacs_cv_freebsd_terminfo = yes; then
17884 TERMINFO=yes
17885 LIBS_TERMCAP="-lncurses"
17886 else
17887 LIBS_TERMCAP="-ltermcap"
17888 fi
17889 ;;
17890
17891 netbsd)
17892 if test $ac_cv_search_tputs = -lterminfo; then
17893 TERMINFO=yes
17894 LIBS_TERMCAP="-lterminfo"
17895 else
17896 LIBS_TERMCAP="-ltermcap"
17897 fi
17898 ;;
17899
17900esac
17901
17902case "$opsys" in
17903 ## hpux: Make sure we get select from libc rather than from libcurses
17904 ## because libcurses on HPUX 10.10 has a broken version of select.
17905 ## We used to use -lc -lcurses, but this may be cleaner.
17906 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17907
17908 openbsd) LIBS_TERMCAP="-lncurses" ;;
17909
17910 ## Must use system termcap, if we use any termcap. It does special things.
17911 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17912esac
17913
17914TERMCAP_OBJ=tparam.o
17915if test $TERMINFO = yes; then
17916
17917$as_echo "#define TERMINFO 1" >>confdefs.h
17918
17919
17920 ## Default used to be -ltermcap. Add a case above if need something else.
17921 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17922
17923 TERMCAP_OBJ=terminfo.o
17924fi
17925
17926
17927
17928
17929# Do we have res_init, for detecting changes in /etc/resolv.conf?
17930resolv=no
17931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17932/* end confdefs.h. */
17933#include <netinet/in.h>
17934#include <arpa/nameser.h>
17935#include <resolv.h>
17936int
17937main ()
17938{
17939return res_init();
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944if ac_fn_c_try_link "$LINENO"; then :
17945 have_res_init=yes
17946else
17947 have_res_init=no
17948fi
17949rm -f core conftest.err conftest.$ac_objext \
17950 conftest$ac_exeext conftest.$ac_ext
17951if test "$have_res_init" = no; then
17952 OLIBS="$LIBS"
17953 LIBS="$LIBS -lresolv"
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17955$as_echo_n "checking for res_init with -lresolv... " >&6; }
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957/* end confdefs.h. */
17958#include <netinet/in.h>
17959#include <arpa/nameser.h>
17960#include <resolv.h>
17961int
17962main ()
17963{
17964return res_init();
17965 ;
17966 return 0;
17967}
17968_ACEOF
17969if ac_fn_c_try_link "$LINENO"; then :
17970 have_res_init=yes
17971else
17972 have_res_init=no
17973fi
17974rm -f core conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17977$as_echo "$have_res_init" >&6; }
17978 if test "$have_res_init" = yes ; then
17979 resolv=yes
17980 fi
17981 LIBS="$OLIBS"
17982fi
17983
17984if test "$have_res_init" = yes; then
17985
17986$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17987
17988fi
17989
17990# Do we need the Hesiod library to provide the support routines?
17991LIBHESIOD=
17992if test "$with_hesiod" != no ; then
17993 # Don't set $LIBS here -- see comments above. FIXME which comments?
17994 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
7834125e 17995if test "x$ac_cv_func_res_send" = x""yes; then :
067d23c9
KY
17996
17997else
17998 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
7834125e 17999if test "x$ac_cv_func___res_send" = x""yes; then :
067d23c9
KY
18000
18001else
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18003$as_echo_n "checking for res_send in -lresolv... " >&6; }
7834125e 18004if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
067d23c9
KY
18005 $as_echo_n "(cached) " >&6
18006else
18007 ac_check_lib_save_LIBS=$LIBS
18008LIBS="-lresolv $LIBS"
18009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18010/* end confdefs.h. */
18011
18012/* Override any GCC internal prototype to avoid an error.
18013 Use char because int might match the return type of a GCC
18014 builtin and then its argument prototype would still apply. */
18015#ifdef __cplusplus
18016extern "C"
18017#endif
18018char res_send ();
18019int
18020main ()
18021{
18022return res_send ();
18023 ;
18024 return 0;
18025}
18026_ACEOF
18027if ac_fn_c_try_link "$LINENO"; then :
18028 ac_cv_lib_resolv_res_send=yes
18029else
18030 ac_cv_lib_resolv_res_send=no
18031fi
18032rm -f core conftest.err conftest.$ac_objext \
18033 conftest$ac_exeext conftest.$ac_ext
18034LIBS=$ac_check_lib_save_LIBS
18035fi
18036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18037$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
7834125e 18038if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
067d23c9
KY
18039 resolv=yes
18040else
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18042$as_echo_n "checking for __res_send in -lresolv... " >&6; }
7834125e 18043if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
067d23c9
KY
18044 $as_echo_n "(cached) " >&6
18045else
18046 ac_check_lib_save_LIBS=$LIBS
18047LIBS="-lresolv $LIBS"
18048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18049/* end confdefs.h. */
18050
18051/* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
18054#ifdef __cplusplus
18055extern "C"
18056#endif
18057char __res_send ();
18058int
18059main ()
18060{
18061return __res_send ();
18062 ;
18063 return 0;
18064}
18065_ACEOF
18066if ac_fn_c_try_link "$LINENO"; then :
18067 ac_cv_lib_resolv___res_send=yes
18068else
18069 ac_cv_lib_resolv___res_send=no
18070fi
18071rm -f core conftest.err conftest.$ac_objext \
18072 conftest$ac_exeext conftest.$ac_ext
18073LIBS=$ac_check_lib_save_LIBS
18074fi
18075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18076$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
7834125e 18077if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
067d23c9
KY
18078 resolv=yes
18079fi
18080
18081fi
18082
18083fi
18084
18085fi
18086
18087 if test "$resolv" = yes ; then
18088 RESOLVLIB=-lresolv
18089 else
18090 RESOLVLIB=
18091 fi
18092 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
7834125e 18093if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
067d23c9
KY
18094
18095else
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18097$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
7834125e 18098if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
067d23c9
KY
18099 $as_echo_n "(cached) " >&6
18100else
18101 ac_check_lib_save_LIBS=$LIBS
18102LIBS="-lhesiod $RESOLVLIB $LIBS"
18103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104/* end confdefs.h. */
18105
18106/* Override any GCC internal prototype to avoid an error.
18107 Use char because int might match the return type of a GCC
18108 builtin and then its argument prototype would still apply. */
18109#ifdef __cplusplus
18110extern "C"
18111#endif
18112char hes_getmailhost ();
18113int
18114main ()
18115{
18116return hes_getmailhost ();
18117 ;
18118 return 0;
18119}
18120_ACEOF
18121if ac_fn_c_try_link "$LINENO"; then :
18122 ac_cv_lib_hesiod_hes_getmailhost=yes
18123else
18124 ac_cv_lib_hesiod_hes_getmailhost=no
18125fi
18126rm -f core conftest.err conftest.$ac_objext \
18127 conftest$ac_exeext conftest.$ac_ext
18128LIBS=$ac_check_lib_save_LIBS
18129fi
18130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18131$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
7834125e 18132if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
067d23c9
KY
18133 hesiod=yes
18134else
18135 :
18136fi
18137
18138fi
18139
18140
18141 if test x"$hesiod" = xyes; then
18142
18143$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18144
18145 LIBHESIOD=-lhesiod
18146 fi
18147fi
18148
18149
18150# Do we need libresolv (due to res_init or Hesiod)?
18151if test "$resolv" = yes ; then
18152
18153$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18154
18155 LIBRESOLV=-lresolv
18156else
18157 LIBRESOLV=
18158fi
18159
18160
18161# These tell us which Kerberos-related libraries to use.
18162COM_ERRLIB=
18163CRYPTOLIB=
18164KRB5LIB=
18165DESLIB=
18166KRB4LIB=
18167
18168if test "${with_kerberos}" != no; then
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18170$as_echo_n "checking for com_err in -lcom_err... " >&6; }
7834125e 18171if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
067d23c9
KY
18172 $as_echo_n "(cached) " >&6
18173else
18174 ac_check_lib_save_LIBS=$LIBS
18175LIBS="-lcom_err $LIBS"
18176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177/* end confdefs.h. */
18178
18179/* Override any GCC internal prototype to avoid an error.
18180 Use char because int might match the return type of a GCC
18181 builtin and then its argument prototype would still apply. */
18182#ifdef __cplusplus
18183extern "C"
18184#endif
18185char com_err ();
18186int
18187main ()
18188{
18189return com_err ();
18190 ;
18191 return 0;
18192}
18193_ACEOF
18194if ac_fn_c_try_link "$LINENO"; then :
18195 ac_cv_lib_com_err_com_err=yes
18196else
18197 ac_cv_lib_com_err_com_err=no
18198fi
18199rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18201LIBS=$ac_check_lib_save_LIBS
18202fi
18203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18204$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
7834125e 18205if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
067d23c9
KY
18206 have_com_err=yes
18207else
18208 have_com_err=no
18209fi
18210
18211 if test $have_com_err = yes; then
18212 COM_ERRLIB=-lcom_err
18213 LIBS="$COM_ERRLIB $LIBS"
18214
18215$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18216
18217 fi
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18219$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
7834125e 18220if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
067d23c9
KY
18221 $as_echo_n "(cached) " >&6
18222else
18223 ac_check_lib_save_LIBS=$LIBS
18224LIBS="-lcrypto $LIBS"
18225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h. */
18227
18228/* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18231#ifdef __cplusplus
18232extern "C"
18233#endif
18234char mit_des_cbc_encrypt ();
18235int
18236main ()
18237{
18238return mit_des_cbc_encrypt ();
18239 ;
18240 return 0;
18241}
18242_ACEOF
18243if ac_fn_c_try_link "$LINENO"; then :
18244 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18245else
18246 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18247fi
18248rm -f core conftest.err conftest.$ac_objext \
18249 conftest$ac_exeext conftest.$ac_ext
18250LIBS=$ac_check_lib_save_LIBS
18251fi
18252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18253$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
7834125e 18254if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
067d23c9
KY
18255 have_crypto=yes
18256else
18257 have_crypto=no
18258fi
18259
18260 if test $have_crypto = yes; then
18261 CRYPTOLIB=-lcrypto
18262 LIBS="$CRYPTOLIB $LIBS"
18263
18264$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18265
18266 fi
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18268$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
7834125e 18269if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
067d23c9
KY
18270 $as_echo_n "(cached) " >&6
18271else
18272 ac_check_lib_save_LIBS=$LIBS
18273LIBS="-lk5crypto $LIBS"
18274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h. */
18276
18277/* Override any GCC internal prototype to avoid an error.
18278 Use char because int might match the return type of a GCC
18279 builtin and then its argument prototype would still apply. */
18280#ifdef __cplusplus
18281extern "C"
18282#endif
18283char mit_des_cbc_encrypt ();
18284int
18285main ()
18286{
18287return mit_des_cbc_encrypt ();
18288 ;
18289 return 0;
18290}
18291_ACEOF
18292if ac_fn_c_try_link "$LINENO"; then :
18293 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18294else
18295 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18296fi
18297rm -f core conftest.err conftest.$ac_objext \
18298 conftest$ac_exeext conftest.$ac_ext
18299LIBS=$ac_check_lib_save_LIBS
18300fi
18301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18302$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
7834125e 18303if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
067d23c9
KY
18304 have_k5crypto=yes
18305else
18306 have_k5crypto=no
18307fi
18308
18309 if test $have_k5crypto = yes; then
18310 CRYPTOLIB=-lk5crypto
18311 LIBS="$CRYPTOLIB $LIBS"
18312
18313$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18314
18315 fi
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18317$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
7834125e 18318if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
067d23c9
KY
18319 $as_echo_n "(cached) " >&6
18320else
18321 ac_check_lib_save_LIBS=$LIBS
18322LIBS="-lkrb5 $LIBS"
18323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324/* end confdefs.h. */
18325
18326/* Override any GCC internal prototype to avoid an error.
18327 Use char because int might match the return type of a GCC
18328 builtin and then its argument prototype would still apply. */
18329#ifdef __cplusplus
18330extern "C"
18331#endif
18332char krb5_init_context ();
18333int
18334main ()
18335{
18336return krb5_init_context ();
18337 ;
18338 return 0;
18339}
18340_ACEOF
18341if ac_fn_c_try_link "$LINENO"; then :
18342 ac_cv_lib_krb5_krb5_init_context=yes
18343else
18344 ac_cv_lib_krb5_krb5_init_context=no
18345fi
18346rm -f core conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18348LIBS=$ac_check_lib_save_LIBS
18349fi
18350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18351$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
7834125e 18352if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
067d23c9
KY
18353 have_krb5=yes
18354else
18355 have_krb5=no
18356fi
18357
18358 if test $have_krb5=yes; then
18359 KRB5LIB=-lkrb5
18360 LIBS="$KRB5LIB $LIBS"
18361
18362$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18363
18364 fi
18365 if test "${with_kerberos5}" = no; then
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18367$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
7834125e 18368if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
067d23c9
KY
18369 $as_echo_n "(cached) " >&6
18370else
18371 ac_check_lib_save_LIBS=$LIBS
18372LIBS="-ldes425 $LIBS"
18373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374/* end confdefs.h. */
18375
18376/* Override any GCC internal prototype to avoid an error.
18377 Use char because int might match the return type of a GCC
18378 builtin and then its argument prototype would still apply. */
18379#ifdef __cplusplus
18380extern "C"
18381#endif
18382char des_cbc_encrypt ();
18383int
18384main ()
18385{
18386return des_cbc_encrypt ();
18387 ;
18388 return 0;
18389}
18390_ACEOF
18391if ac_fn_c_try_link "$LINENO"; then :
18392 ac_cv_lib_des425_des_cbc_encrypt=yes
18393else
18394 ac_cv_lib_des425_des_cbc_encrypt=no
18395fi
18396rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398LIBS=$ac_check_lib_save_LIBS
18399fi
18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18401$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
7834125e 18402if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
067d23c9
KY
18403 have_des425=yes
18404else
18405 have_des425=no
18406fi
18407
18408 if test $have_des425 = yes; then
18409 DESLIB=-ldes425
18410 LIBS="$DESLIB $LIBS"
18411
18412$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18413
18414 else
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18416$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
7834125e 18417if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
067d23c9
KY
18418 $as_echo_n "(cached) " >&6
18419else
18420 ac_check_lib_save_LIBS=$LIBS
18421LIBS="-ldes $LIBS"
18422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423/* end confdefs.h. */
18424
18425/* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428#ifdef __cplusplus
18429extern "C"
18430#endif
18431char des_cbc_encrypt ();
18432int
18433main ()
18434{
18435return des_cbc_encrypt ();
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440if ac_fn_c_try_link "$LINENO"; then :
18441 ac_cv_lib_des_des_cbc_encrypt=yes
18442else
18443 ac_cv_lib_des_des_cbc_encrypt=no
18444fi
18445rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447LIBS=$ac_check_lib_save_LIBS
18448fi
18449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18450$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
7834125e 18451if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
067d23c9
KY
18452 have_des=yes
18453else
18454 have_des=no
18455fi
18456
18457 if test $have_des = yes; then
18458 DESLIB=-ldes
18459 LIBS="$DESLIB $LIBS"
18460
18461$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18462
18463 fi
18464 fi
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18466$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
7834125e 18467if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
067d23c9
KY
18468 $as_echo_n "(cached) " >&6
18469else
18470 ac_check_lib_save_LIBS=$LIBS
18471LIBS="-lkrb4 $LIBS"
18472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473/* end confdefs.h. */
18474
18475/* Override any GCC internal prototype to avoid an error.
18476 Use char because int might match the return type of a GCC
18477 builtin and then its argument prototype would still apply. */
18478#ifdef __cplusplus
18479extern "C"
18480#endif
18481char krb_get_cred ();
18482int
18483main ()
18484{
18485return krb_get_cred ();
18486 ;
18487 return 0;
18488}
18489_ACEOF
18490if ac_fn_c_try_link "$LINENO"; then :
18491 ac_cv_lib_krb4_krb_get_cred=yes
18492else
18493 ac_cv_lib_krb4_krb_get_cred=no
18494fi
18495rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18497LIBS=$ac_check_lib_save_LIBS
18498fi
18499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18500$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
7834125e 18501if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
067d23c9
KY
18502 have_krb4=yes
18503else
18504 have_krb4=no
18505fi
18506
18507 if test $have_krb4 = yes; then
18508 KRB4LIB=-lkrb4
18509 LIBS="$KRB4LIB $LIBS"
18510
18511$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18512
18513 else
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18515$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
7834125e 18516if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
067d23c9
KY
18517 $as_echo_n "(cached) " >&6
18518else
18519 ac_check_lib_save_LIBS=$LIBS
18520LIBS="-lkrb $LIBS"
18521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522/* end confdefs.h. */
18523
18524/* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18527#ifdef __cplusplus
18528extern "C"
18529#endif
18530char krb_get_cred ();
18531int
18532main ()
18533{
18534return krb_get_cred ();
18535 ;
18536 return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_link "$LINENO"; then :
18540 ac_cv_lib_krb_krb_get_cred=yes
18541else
18542 ac_cv_lib_krb_krb_get_cred=no
18543fi
18544rm -f core conftest.err conftest.$ac_objext \
18545 conftest$ac_exeext conftest.$ac_ext
18546LIBS=$ac_check_lib_save_LIBS
18547fi
18548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18549$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
7834125e 18550if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
067d23c9
KY
18551 have_krb=yes
18552else
18553 have_krb=no
18554fi
18555
18556 if test $have_krb = yes; then
18557 KRB4LIB=-lkrb
18558 LIBS="$KRB4LIB $LIBS"
18559
18560$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18561
18562 fi
18563 fi
18564 fi
18565
18566 if test "${with_kerberos5}" != no; then
18567 for ac_header in krb5.h
18568do :
18569 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7834125e 18570if test "x$ac_cv_header_krb5_h" = x""yes; then :
067d23c9
KY
18571 cat >>confdefs.h <<_ACEOF
18572#define HAVE_KRB5_H 1
18573_ACEOF
18574 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18575"
7834125e 18576if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
067d23c9
KY
18577
18578cat >>confdefs.h <<_ACEOF
18579#define HAVE_KRB5_ERROR_TEXT 1
18580_ACEOF
18581
18582
18583fi
18584ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18585"
7834125e 18586if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
067d23c9
KY
18587
18588cat >>confdefs.h <<_ACEOF
18589#define HAVE_KRB5_ERROR_E_TEXT 1
18590_ACEOF
18591
18592
18593fi
18594
18595fi
18596
18597done
18598
18599 else
18600 for ac_header in des.h
18601do :
18602 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
7834125e 18603if test "x$ac_cv_header_des_h" = x""yes; then :
067d23c9
KY
18604 cat >>confdefs.h <<_ACEOF
18605#define HAVE_DES_H 1
18606_ACEOF
18607
18608else
18609 for ac_header in kerberosIV/des.h
18610do :
18611 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
7834125e 18612if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
067d23c9
KY
18613 cat >>confdefs.h <<_ACEOF
18614#define HAVE_KERBEROSIV_DES_H 1
18615_ACEOF
18616
18617else
18618 for ac_header in kerberos/des.h
18619do :
18620 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
7834125e 18621if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
067d23c9
KY
18622 cat >>confdefs.h <<_ACEOF
18623#define HAVE_KERBEROS_DES_H 1
18624_ACEOF
18625
18626fi
18627
18628done
18629
18630fi
18631
18632done
18633
18634fi
18635
18636done
18637
18638 for ac_header in krb.h
18639do :
18640 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
7834125e 18641if test "x$ac_cv_header_krb_h" = x""yes; then :
067d23c9
KY
18642 cat >>confdefs.h <<_ACEOF
18643#define HAVE_KRB_H 1
18644_ACEOF
18645
18646else
18647 for ac_header in kerberosIV/krb.h
18648do :
18649 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
7834125e 18650if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
067d23c9
KY
18651 cat >>confdefs.h <<_ACEOF
18652#define HAVE_KERBEROSIV_KRB_H 1
18653_ACEOF
18654
18655else
18656 for ac_header in kerberos/krb.h
18657do :
18658 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
7834125e 18659if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
067d23c9
KY
18660 cat >>confdefs.h <<_ACEOF
18661#define HAVE_KERBEROS_KRB_H 1
18662_ACEOF
18663
18664fi
18665
18666done
18667
18668fi
18669
18670done
18671
18672fi
18673
18674done
18675
18676 fi
18677 for ac_header in com_err.h
18678do :
18679 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
7834125e 18680if test "x$ac_cv_header_com_err_h" = x""yes; then :
067d23c9
KY
18681 cat >>confdefs.h <<_ACEOF
18682#define HAVE_COM_ERR_H 1
18683_ACEOF
18684
18685fi
18686
18687done
18688
18689fi
18690
18691
18692
18693
18694
18695
18696
18697# Solaris requires -lintl if you want strerror (which calls dgettext)
18698# to return localized messages.
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18700$as_echo_n "checking for dgettext in -lintl... " >&6; }
7834125e 18701if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
067d23c9
KY
18702 $as_echo_n "(cached) " >&6
18703else
18704 ac_check_lib_save_LIBS=$LIBS
18705LIBS="-lintl $LIBS"
18706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707/* end confdefs.h. */
18708
18709/* Override any GCC internal prototype to avoid an error.
18710 Use char because int might match the return type of a GCC
18711 builtin and then its argument prototype would still apply. */
18712#ifdef __cplusplus
18713extern "C"
18714#endif
18715char dgettext ();
18716int
18717main ()
18718{
18719return dgettext ();
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724if ac_fn_c_try_link "$LINENO"; then :
18725 ac_cv_lib_intl_dgettext=yes
18726else
18727 ac_cv_lib_intl_dgettext=no
18728fi
18729rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18731LIBS=$ac_check_lib_save_LIBS
18732fi
18733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18734$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
7834125e 18735if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
067d23c9
KY
18736 cat >>confdefs.h <<_ACEOF
18737#define HAVE_LIBINTL 1
18738_ACEOF
18739
18740 LIBS="-lintl $LIBS"
18741
18742fi
18743
18744
18745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18746$as_echo_n "checking whether localtime caches TZ... " >&6; }
7834125e 18747if test "${emacs_cv_localtime_cache+set}" = set; then :
067d23c9
KY
18748 $as_echo_n "(cached) " >&6
18749else
18750 if test x$ac_cv_func_tzset = xyes; then
18751if test "$cross_compiling" = yes; then :
18752 # If we have tzset, assume the worst when cross-compiling.
18753emacs_cv_localtime_cache=yes
18754else
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756/* end confdefs.h. */
18757#include <time.h>
18758char TZ_GMT0[] = "TZ=GMT0";
18759char TZ_PST8[] = "TZ=PST8";
18760main()
18761{
18762 time_t now = time ((time_t *) 0);
18763 int hour_GMT0, hour_unset;
18764 if (putenv (TZ_GMT0) != 0)
18765 exit (1);
18766 hour_GMT0 = localtime (&now)->tm_hour;
18767 unsetenv("TZ");
18768 hour_unset = localtime (&now)->tm_hour;
18769 if (putenv (TZ_PST8) != 0)
18770 exit (1);
18771 if (localtime (&now)->tm_hour == hour_GMT0)
18772 exit (1);
18773 unsetenv("TZ");
18774 if (localtime (&now)->tm_hour != hour_unset)
18775 exit (1);
18776 exit (0);
18777}
18778_ACEOF
18779if ac_fn_c_try_run "$LINENO"; then :
18780 emacs_cv_localtime_cache=no
18781else
18782 emacs_cv_localtime_cache=yes
18783fi
18784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18785 conftest.$ac_objext conftest.beam conftest.$ac_ext
18786fi
18787
18788else
18789 # If we lack tzset, report that localtime does not cache TZ,
18790 # since we can't invalidate the cache if we don't have tzset.
18791 emacs_cv_localtime_cache=no
18792fi
18793fi
18794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18795$as_echo "$emacs_cv_localtime_cache" >&6; }
18796if test $emacs_cv_localtime_cache = yes; then
18797
18798$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18799
18800fi
18801
18802if test "x$HAVE_TIMEVAL" = xyes; then
18803 for ac_func in gettimeofday
18804do :
18805 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7834125e 18806if test "x$ac_cv_func_gettimeofday" = x""yes; then :
067d23c9
KY
18807 cat >>confdefs.h <<_ACEOF
18808#define HAVE_GETTIMEOFDAY 1
18809_ACEOF
18810
18811fi
18812done
18813
18814 if test $ac_cv_func_gettimeofday = yes; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18816$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
7834125e 18817if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
067d23c9
KY
18818 $as_echo_n "(cached) " >&6
18819else
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821/* end confdefs.h. */
18822
18823#ifdef TIME_WITH_SYS_TIME
18824#include <sys/time.h>
18825#include <time.h>
18826#else
18827#ifdef HAVE_SYS_TIME_H
18828#include <sys/time.h>
18829#else
18830#include <time.h>
18831#endif
18832#endif
18833int
18834main ()
18835{
18836struct timeval time;
18837 gettimeofday (&time, 0);
18838 ;
18839 return 0;
18840}
18841_ACEOF
18842if ac_fn_c_try_compile "$LINENO"; then :
18843 emacs_cv_gettimeofday_two_arguments=yes
18844else
18845 emacs_cv_gettimeofday_two_arguments=no
18846fi
18847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18848fi
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18850$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18851 if test $emacs_cv_gettimeofday_two_arguments = no; then
18852
18853$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18854
18855 fi
18856 fi
18857fi
18858
18859ok_so_far=yes
18860ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
7834125e 18861if test "x$ac_cv_func_socket" = x""yes; then :
067d23c9
KY
18862
18863else
18864 ok_so_far=no
18865fi
18866
18867if test $ok_so_far = yes; then
18868 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
7834125e 18869if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
067d23c9
KY
18870
18871else
18872 ok_so_far=no
18873fi
18874
18875
18876fi
18877if test $ok_so_far = yes; then
18878 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
7834125e 18879if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
067d23c9
KY
18880
18881else
18882 ok_so_far=no
18883fi
18884
18885
18886fi
18887if test $ok_so_far = yes; then
18888
18889$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18890
18891fi
18892
18893if test -f /usr/lpp/X11/bin/smt.exp; then
18894
18895$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18896
18897fi
18898
18899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18900$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18901if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18903$as_echo "yes" >&6; }
18904
18905$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18906
18907else
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909$as_echo "no" >&6; }
18910fi
18911
18912ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7834125e 18913if test "x$ac_cv_type_pid_t" = x""yes; then :
067d23c9
KY
18914
18915else
18916
18917cat >>confdefs.h <<_ACEOF
18918#define pid_t int
18919_ACEOF
18920
18921fi
18922
18923for ac_header in vfork.h
18924do :
18925 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7834125e 18926if test "x$ac_cv_header_vfork_h" = x""yes; then :
067d23c9
KY
18927 cat >>confdefs.h <<_ACEOF
18928#define HAVE_VFORK_H 1
18929_ACEOF
18930
18931fi
18932
18933done
18934
18935for ac_func in fork vfork
18936do :
18937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
0afb4571
J
18939eval as_val=\$$as_ac_var
18940 if test "x$as_val" = x""yes; then :
067d23c9
KY
18941 cat >>confdefs.h <<_ACEOF
18942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18943_ACEOF
18944
18945fi
18946done
18947
18948if test "x$ac_cv_func_fork" = xyes; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18950$as_echo_n "checking for working fork... " >&6; }
7834125e 18951if test "${ac_cv_func_fork_works+set}" = set; then :
067d23c9
KY
18952 $as_echo_n "(cached) " >&6
18953else
18954 if test "$cross_compiling" = yes; then :
18955 ac_cv_func_fork_works=cross
18956else
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958/* end confdefs.h. */
18959$ac_includes_default
18960int
18961main ()
18962{
18963
18964 /* By Ruediger Kuhlmann. */
18965 return fork () < 0;
18966
18967 ;
18968 return 0;
18969}
18970_ACEOF
18971if ac_fn_c_try_run "$LINENO"; then :
18972 ac_cv_func_fork_works=yes
18973else
18974 ac_cv_func_fork_works=no
18975fi
18976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977 conftest.$ac_objext conftest.beam conftest.$ac_ext
18978fi
18979
18980fi
18981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18982$as_echo "$ac_cv_func_fork_works" >&6; }
18983
18984else
18985 ac_cv_func_fork_works=$ac_cv_func_fork
18986fi
18987if test "x$ac_cv_func_fork_works" = xcross; then
18988 case $host in
18989 *-*-amigaos* | *-*-msdosdjgpp*)
18990 # Override, as these systems have only a dummy fork() stub
18991 ac_cv_func_fork_works=no
18992 ;;
18993 *)
18994 ac_cv_func_fork_works=yes
18995 ;;
18996 esac
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18998$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18999fi
19000ac_cv_func_vfork_works=$ac_cv_func_vfork
19001if test "x$ac_cv_func_vfork" = xyes; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19003$as_echo_n "checking for working vfork... " >&6; }
7834125e 19004if test "${ac_cv_func_vfork_works+set}" = set; then :
067d23c9
KY
19005 $as_echo_n "(cached) " >&6
19006else
19007 if test "$cross_compiling" = yes; then :
19008 ac_cv_func_vfork_works=cross
19009else
19010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011/* end confdefs.h. */
19012/* Thanks to Paul Eggert for this test. */
19013$ac_includes_default
19014#include <sys/wait.h>
19015#ifdef HAVE_VFORK_H
19016# include <vfork.h>
19017#endif
19018/* On some sparc systems, changes by the child to local and incoming
19019 argument registers are propagated back to the parent. The compiler
19020 is told about this with #include <vfork.h>, but some compilers
19021 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19022 static variable whose address is put into a register that is
19023 clobbered by the vfork. */
19024static void
19025#ifdef __cplusplus
19026sparc_address_test (int arg)
19027# else
19028sparc_address_test (arg) int arg;
19029#endif
19030{
19031 static pid_t child;
19032 if (!child) {
19033 child = vfork ();
19034 if (child < 0) {
19035 perror ("vfork");
19036 _exit(2);
19037 }
19038 if (!child) {
19039 arg = getpid();
19040 write(-1, "", 0);
19041 _exit (arg);
19042 }
19043 }
19044}
19045
19046int
19047main ()
19048{
19049 pid_t parent = getpid ();
19050 pid_t child;
19051
19052 sparc_address_test (0);
19053
19054 child = vfork ();
19055
19056 if (child == 0) {
19057 /* Here is another test for sparc vfork register problems. This
19058 test uses lots of local variables, at least as many local
19059 variables as main has allocated so far including compiler
19060 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19061 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19062 reuse the register of parent for one of the local variables,
19063 since it will think that parent can't possibly be used any more
19064 in this routine. Assigning to the local variable will thus
19065 munge parent in the parent process. */
19066 pid_t
19067 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19068 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19069 /* Convince the compiler that p..p7 are live; otherwise, it might
19070 use the same hardware register for all 8 local variables. */
19071 if (p != p1 || p != p2 || p != p3 || p != p4
19072 || p != p5 || p != p6 || p != p7)
19073 _exit(1);
19074
19075 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19076 from child file descriptors. If the child closes a descriptor
19077 before it execs or exits, this munges the parent's descriptor
19078 as well. Test for this by closing stdout in the child. */
19079 _exit(close(fileno(stdout)) != 0);
19080 } else {
19081 int status;
19082 struct stat st;
19083
19084 while (wait(&status) != child)
19085 ;
19086 return (
19087 /* Was there some problem with vforking? */
19088 child < 0
19089
19090 /* Did the child fail? (This shouldn't happen.) */
19091 || status
19092
19093 /* Did the vfork/compiler bug occur? */
19094 || parent != getpid()
19095
19096 /* Did the file descriptor bug occur? */
19097 || fstat(fileno(stdout), &st) != 0
19098 );
19099 }
19100}
19101_ACEOF
19102if ac_fn_c_try_run "$LINENO"; then :
19103 ac_cv_func_vfork_works=yes
19104else
19105 ac_cv_func_vfork_works=no
19106fi
19107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19108 conftest.$ac_objext conftest.beam conftest.$ac_ext
19109fi
19110
19111fi
19112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19113$as_echo "$ac_cv_func_vfork_works" >&6; }
19114
19115fi;
19116if test "x$ac_cv_func_fork_works" = xcross; then
19117 ac_cv_func_vfork_works=$ac_cv_func_vfork
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19119$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19120fi
19121
19122if test "x$ac_cv_func_vfork_works" = xyes; then
19123
19124$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19125
19126else
19127
19128$as_echo "#define vfork fork" >>confdefs.h
19129
19130fi
19131if test "x$ac_cv_func_fork_works" = xyes; then
19132
19133$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19134
19135fi
19136
19137
19138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19139$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7834125e 19140if test "${emacs_cv_langinfo_codeset+set}" = set; then :
067d23c9
KY
19141 $as_echo_n "(cached) " >&6
19142else
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144/* end confdefs.h. */
19145#include <langinfo.h>
19146int
19147main ()
19148{
19149char* cs = nl_langinfo(CODESET);
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154if ac_fn_c_try_link "$LINENO"; then :
19155 emacs_cv_langinfo_codeset=yes
19156else
19157 emacs_cv_langinfo_codeset=no
19158fi
19159rm -f core conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
19161
19162fi
19163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19164$as_echo "$emacs_cv_langinfo_codeset" >&6; }
19165if test $emacs_cv_langinfo_codeset = yes; then
19166
19167$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19168
19169fi
19170
19171ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7834125e 19172if test "x$ac_cv_type_size_t" = x""yes; then :
067d23c9
KY
19173
19174cat >>confdefs.h <<_ACEOF
19175#define HAVE_SIZE_T 1
19176_ACEOF
19177
19178
19179fi
19180
19181
19182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19183$as_echo_n "checking for mbstate_t... " >&6; }
7834125e 19184if test "${ac_cv_type_mbstate_t+set}" = set; then :
067d23c9
KY
19185 $as_echo_n "(cached) " >&6
19186else
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188/* end confdefs.h. */
19189$ac_includes_default
19190# include <wchar.h>
19191int
19192main ()
19193{
19194mbstate_t x; return sizeof x;
19195 ;
19196 return 0;
19197}
19198_ACEOF
19199if ac_fn_c_try_compile "$LINENO"; then :
19200 ac_cv_type_mbstate_t=yes
19201else
19202 ac_cv_type_mbstate_t=no
19203fi
19204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19205fi
19206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19207$as_echo "$ac_cv_type_mbstate_t" >&6; }
19208 if test $ac_cv_type_mbstate_t = yes; then
19209
19210$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19211
19212 else
19213
19214$as_echo "#define mbstate_t int" >>confdefs.h
19215
19216 fi
19217
067d23c9
KY
19218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19219$as_echo_n "checking for C restricted array declarations... " >&6; }
7834125e 19220if test "${emacs_cv_c_restrict_arr+set}" = set; then :
067d23c9
KY
19221 $as_echo_n "(cached) " >&6
19222else
19223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224/* end confdefs.h. */
19225void fred (int x[__restrict]);
19226int
19227main ()
19228{
19229
19230 ;
19231 return 0;
19232}
19233_ACEOF
19234if ac_fn_c_try_compile "$LINENO"; then :
19235 emacs_cv_c_restrict_arr=yes
19236else
19237 emacs_cv_c_restrict_arr=no
19238fi
19239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240fi
19241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19242$as_echo "$emacs_cv_c_restrict_arr" >&6; }
19243if test "$emacs_cv_c_restrict_arr" = yes; then
19244
19245$as_echo "#define __restrict_arr __restrict" >>confdefs.h
19246
19247fi
19248
19249
19250
19251# Set up the CFLAGS for real compilation, so we can substitute it.
19252CFLAGS="$REAL_CFLAGS"
19253CPPFLAGS="$REAL_CPPFLAGS"
19254
19255## Hack to detect a buggy GCC version.
19256if test "x$GCC" = xyes \
19257 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19258 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19259 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
0afb4571 19260 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
19261fi
19262
16fab143 19263version=$PACKAGE_VERSION
067d23c9
KY
19264
19265### Specify what sort of things we'll be editing into Makefile and config.h.
19266### Use configuration here uncanonicalized to avoid exceeding size limits.
19267
19268
19269## Unused?
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19291## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19292## end of LIBX_BASE, but nothing ever set it.
19293
19294
19295
19296
19297## Used in lwlib/Makefile.in.
19298
d6a003a8
AS
19299if test -n "${machfile}"; then
19300 M_FILE="\$(srcdir)/${machfile}"
19301else
19302 M_FILE=
19303fi
19304S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
067d23c9
KY
19315cat >>confdefs.h <<_ACEOF
19316#define EMACS_CONFIGURATION "${canonical}"
19317_ACEOF
19318
19319
19320cat >>confdefs.h <<_ACEOF
19321#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19322_ACEOF
19323
d6a003a8 19324if test -n "$machfile"; then
067d23c9
KY
19325
19326cat >>confdefs.h <<_ACEOF
19327#define config_machfile "${machfile}"
19328_ACEOF
19329
d6a003a8 19330fi
067d23c9
KY
19331
19332cat >>confdefs.h <<_ACEOF
19333#define config_opsysfile "${opsysfile}"
19334_ACEOF
19335
19336
19337XMENU_OBJ=
19338XOBJ=
19339FONT_OBJ=
19340if test "${HAVE_X_WINDOWS}" = "yes" ; then
19341
19342$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19343
19344 XMENU_OBJ=xmenu.o
19345 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19346 FONT_OBJ=xfont.o
19347 if test "$HAVE_XFT" = "yes"; then
19348 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19349 elif test "$HAVE_FREETYPE" = "yes"; then
19350 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19351 fi
19352
19353fi
19354
19355
19356
19357
19358WIDGET_OBJ=
19359MOTIF_LIBW=
19360if test "${USE_X_TOOLKIT}" != "none" ; then
19361 WIDGET_OBJ=widget.o
19362
19363$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19364
19365 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19366
19367$as_echo "#define USE_LUCID 1" >>confdefs.h
19368
19369 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19370
19371$as_echo "#define USE_MOTIF 1" >>confdefs.h
19372
19373 MOTIF_LIBW=-lXm
19374 case "$opsys" in
19375 gnu-linux)
19376 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19377 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19378 ;;
19379
19380 unixware)
19381 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19382 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19383 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19384 ;;
19385
19386 aix4-2)
19387 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19388 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19389 ;;
19390 esac
19391 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19392 fi
19393fi
19394
19395
19396TOOLKIT_LIBW=
19397case "$USE_X_TOOLKIT" in
19398 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19399 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19400 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19401esac
19402
19403
19404if test "$USE_X_TOOLKIT" = "none"; then
19405 LIBXT_OTHER="\$(LIBXSM)"
19406 OLDXMENU_TARGET="really-oldXMenu"
19407else
19408 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19409 OLDXMENU_TARGET="really-lwlib"
19410fi
19411
19412
19413## The X Menu stuff is present in the X10 distribution, but missing
19414## from X11. If we have X10, just use the installed library;
19415## otherwise, use our own copy.
19416if test "${HAVE_X11}" = "yes" ; then
19417
19418$as_echo "#define HAVE_X11 1" >>confdefs.h
19419
19420
19421 if test "$USE_X_TOOLKIT" = "none"; then
19422 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19423 else
19424 OLDXMENU="\${lwlibdir}/liblw.a"
19425 fi
19426 LIBXMENU="\$(OLDXMENU)"
19427 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19428 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19429else
19430 ## For a syntactically valid Makefile; not actually used for anything.
19431 ## See comments in src/Makefile.in.
19432 OLDXMENU=nothing
19433 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19434 if test "${HAVE_X_WINDOWS}" = "yes"; then
19435 LIBXMENU="-lXMenu"
19436 else
19437 LIBXMENU=
19438 fi
19439 LIBX_OTHER=
19440 OLDXMENU_DEPS=
19441fi
19442
19443if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19444 OLDXMENU_TARGET=
19445 OLDXMENU=nothing
19446 LIBXMENU=
19447 OLDXMENU_DEPS=
19448fi
19449
19450
19451
19452
19453
19454
19455
19456if test "${HAVE_MENUS}" = "yes" ; then
19457
19458$as_echo "#define HAVE_MENUS 1" >>confdefs.h
19459
19460fi
19461
19462if test "${GNU_MALLOC}" = "yes" ; then
19463
19464$as_echo "#define GNU_MALLOC 1" >>confdefs.h
19465
19466fi
19467
19468RALLOC_OBJ=
19469if test "${REL_ALLOC}" = "yes" ; then
19470
19471$as_echo "#define REL_ALLOC 1" >>confdefs.h
19472
19473
19474 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19475fi
19476
19477
19478if test "$opsys" = "cygwin"; then
19479 CYGWIN_OBJ="sheap.o"
19480 ## Cygwin differs because of its unexec().
19481 PRE_ALLOC_OBJ=
19482 POST_ALLOC_OBJ=lastfile.o
19483else
19484 CYGWIN_OBJ=
19485 PRE_ALLOC_OBJ=lastfile.o
19486 POST_ALLOC_OBJ=
19487fi
19488
19489
19490
19491
19492
19493case "$opsys" in
19494 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19495
19496 darwin)
19497 ## The -headerpad option tells ld (see man page) to leave room at the
19498 ## end of the header for adding load commands. Needed for dumping.
19499 ## 0x690 is the total size of 30 segment load commands (at 56
19500 ## each); under Cocoa 31 commands are required.
19501 if test "$HAVE_NS" = "yes"; then
19502 libs_nsgui="-framework AppKit"
19503 headerpad_extra=6C8
19504 else
19505 libs_nsgui=
19506 headerpad_extra=690
19507 fi
19508 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19509
19510 ## This is here because src/Makefile.in did some extra fiddling around
19511 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19512 ## #ifndef LD_SWITCH_SYSTEM
19513 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19514 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19515 ## not using gcc, darwin system not on an alpha (ie darwin, since
19516 ## darwin + alpha does not occur).
19517 ## Because this was done in src/Makefile.in, the resulting part of
19518 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19519 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19520 ## rather than LD_SWITCH_SYSTEM.
19521 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19522 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19523 ;;
19524
19525 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19526 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19527 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19528 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19529 ## had different values in configure (in ac_link) and src/Makefile.in.
19530 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19531 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19532
19533 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19534esac
19535
19536if test "$NS_IMPL_GNUSTEP" = "yes"; then
19537 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19538fi
19539
19540
19541
19542
19543LD_FIRSTFLAG=
19544ORDINARY_LINK=
19545case "$opsys" in
19546 ## gnu: GNU needs its own crt0.
19547 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19548
19549 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19550 ## library search parth, i.e. it won't search /usr/lib for libc and
19551 ## friends. Using -nostartfiles instead avoids this problem, and
19552 ## will also work on earlier NetBSD releases.
19553 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19554
19555 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19556 ## MkLinux/LinuxPPC needs this.
19557 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19558 gnu-*)
19559 case "$machine" in
19560 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19561 esac
19562 ;;
19563esac
19564
19565
19566if test "x$ORDINARY_LINK" = "xyes"; then
19567
19568 LD_FIRSTFLAG=""
19569
19570$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19571
19572
19573## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19574## freebsd, gnu-* not on macppc|ibms390x.
19575elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19576
19577 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19578 ## places that are difficult to figure out at make time. Fortunately,
19579 ## these same versions allow you to pass arbitrary flags on to the
19580 ## linker, so there is no reason not to use it as a linker.
19581 ##
19582 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19583 ## searching for libraries in its internal directories, so we have to
19584 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19585 LD_FIRSTFLAG="-nostdlib"
19586fi
19587
19588## FIXME? What setting of EDIT_LDFLAGS should this have?
19589test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19590
19591
19592
19593
19594## FIXME? The logic here is not precisely the same as that above.
19595## There is no check here for a pre-defined LD_FIRSTFLAG.
19596## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19597LIB_GCC=
19598if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19599
19600 case "$opsys" in
19601 freebsd|netbsd|openbsd) LIB_GCC= ;;
19602
19603 gnu-*)
19604 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19605 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
19606 case $host_cpu in
19607 arm*)
067d23c9 19608 LIB_GCC="-lgcc_s"
d6a003a8
AS
19609 ;;
19610 *)
067d23c9
KY
19611 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19612 ## immediately undefine it again and redefine it to empty.
19613 ## Was the C_SWITCH_X_SITE part really necessary?
19614## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19615 LIB_GCC=
d6a003a8
AS
19616 ;;
19617 esac
067d23c9
KY
19618 ;;
19619
19620 ## Ask GCC where to find libgcc.a.
19621 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19622 esac
19623fi
19624
19625
19626TOOLTIP_SUPPORT=
19627WINDOW_SUPPORT=
19628## If we're using X11/GNUstep, define some consequences.
19629if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19630
19631$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19632
19633
19634$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19635
19636 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19637 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19638
19639 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19640 test "$HAVE_X_WINDOWS" = "yes" && \
19641 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19642
19643fi
19644
19645
19646
19647
19648
19649
19650
19651#### Report on what we decided to do.
19652#### Report GTK as a toolkit, even if it doesn't use Xt.
19653#### It makes printing result more understandable as using GTK sets
19654#### toolkit_scroll_bars to yes by default.
19655if test "${HAVE_GTK}" = "yes"; then
19656 USE_X_TOOLKIT=GTK
19657fi
19658
2b7f50d8
AS
19659and_machfile=
19660if test -n "$machfile"; then
19661 and_machfile=" and \`${machfile}'"
19662fi
19663
067d23c9
KY
19664echo "
19665Configured for \`${canonical}'.
19666
19667 Where should the build process find the source code? ${srcdir}
19668 What operating system and machine description files should Emacs use?
2b7f50d8 19669 \`${opsysfile}'${and_machfile}
067d23c9
KY
19670 What compiler should emacs be built with? ${CC} ${CFLAGS}
19671 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19672 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19673 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19674 What window system should Emacs use? ${window_system}
19675 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19676
19677if test -n "${x_includes}"; then
19678echo " Where do we find X Windows header files? ${x_includes}"
19679else
19680echo " Where do we find X Windows header files? Standard dirs"
19681fi
19682if test -n "${x_libraries}"; then
19683echo " Where do we find X Windows libraries? ${x_libraries}"
19684else
19685echo " Where do we find X Windows libraries? Standard dirs"
19686fi
19687
19688echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19689echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19690echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19691echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19692echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19693echo " Does Emacs use -lpng? ${HAVE_PNG}"
19694echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19695echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19696
19697echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19698echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19699echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19700echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19701echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19702echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19703
19704echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19705echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19706echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19707echo " Does Emacs use -lxft? ${HAVE_XFT}"
19708
19709echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19710echo
19711
19712if test $USE_XASSERTS = yes; then
19713 echo " Compiling with asserts turned on."
19714 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19715fi
19716
19717echo
19718
19719if test "$HAVE_NS" = "yes"; then
19720 echo
19721 echo "You must run \"make install\" in order to test the built application.
19722The installed application will go to nextstep/Emacs.app and can be
19723run or moved from there."
19724 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19725 echo "The application will be fully self-contained."
19726 else
19727 echo "The lisp resources for the application will be installed under ${prefix}.
19728You may need to run \"make install\" with sudo. The application will fail
19729to run if these resources are not installed."
19730 fi
19731 echo
19732fi
19733
19734
19735# Remove any trailing slashes in these variables.
19736test "${prefix}" != NONE &&
19737 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19738test "${exec_prefix}" != NONE &&
19739 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19740
193770ee 19741ac_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 19742
9411886d
PE
19743
19744ac_config_commands="$ac_config_commands mkdirs"
19745
19746
19747ac_config_commands="$ac_config_commands epaths"
19748
19749
19750ac_config_commands="$ac_config_commands gdbinit"
19751
067d23c9
KY
19752
19753cat >confcache <<\_ACEOF
19754# This file is a shell script that caches the results of configure
19755# tests run on this system so they can be shared between configure
19756# scripts and configure runs, see configure's option --config-cache.
19757# It is not useful on other systems. If it contains results you don't
19758# want to keep, you may remove or edit it.
19759#
19760# config.status only pays attention to the cache file if you give it
19761# the --recheck option to rerun configure.
19762#
19763# `ac_cv_env_foo' variables (set or unset) will be overridden when
19764# loading this file, other *unset* `ac_cv_foo' will be assigned the
19765# following values.
19766
19767_ACEOF
19768
19769# The following way of writing the cache mishandles newlines in values,
19770# but we know of no workaround that is simple, portable, and efficient.
19771# So, we kill variables containing newlines.
19772# Ultrix sh set writes to stderr and can't be redirected directly,
19773# and sets the high bit in the cache file unless we assign to the vars.
19774(
19775 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19776 eval ac_val=\$$ac_var
19777 case $ac_val in #(
19778 *${as_nl}*)
19779 case $ac_var in #(
19780 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19781$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19782 esac
19783 case $ac_var in #(
19784 _ | IFS | as_nl) ;; #(
19785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19786 *) { eval $ac_var=; unset $ac_var;} ;;
19787 esac ;;
19788 esac
19789 done
19790
19791 (set) 2>&1 |
19792 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19793 *${as_nl}ac_space=\ *)
19794 # `set' does not quote correctly, so add quotes: double-quote
19795 # substitution turns \\\\ into \\, and sed turns \\ into \.
19796 sed -n \
19797 "s/'/'\\\\''/g;
19798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19799 ;; #(
19800 *)
19801 # `set' quotes correctly as required by POSIX, so do not add quotes.
19802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19803 ;;
19804 esac |
19805 sort
19806) |
19807 sed '
19808 /^ac_cv_env_/b end
19809 t clear
19810 :clear
19811 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19812 t end
19813 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19814 :end' >>confcache
19815if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19816 if test -w "$cache_file"; then
7834125e 19817 test "x$cache_file" != "x/dev/null" &&
067d23c9
KY
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19819$as_echo "$as_me: updating cache $cache_file" >&6;}
7834125e 19820 cat confcache >$cache_file
067d23c9
KY
19821 else
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19823$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19824 fi
19825fi
19826rm -f confcache
19827
19828test "x$prefix" = xNONE && prefix=$ac_default_prefix
19829# Let make expand exec_prefix.
19830test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19831
19832DEFS=-DHAVE_CONFIG_H
19833
19834ac_libobjs=
19835ac_ltlibobjs=
19836for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19837 # 1. Remove the extension, and $U if already installed.
19838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19841 # will be set to the directory where LIBOBJS objects are built.
19842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19844done
19845LIBOBJS=$ac_libobjs
19846
19847LTLIBOBJS=$ac_ltlibobjs
19848
19849
743c80a7
PE
19850 if test -n "$EXEEXT"; then
19851 am__EXEEXT_TRUE=
19852 am__EXEEXT_FALSE='#'
19853else
19854 am__EXEEXT_TRUE='#'
19855 am__EXEEXT_FALSE=
19856fi
19857
19858if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
0afb4571 19859 as_fn_error "conditional \"AMDEP\" was never defined.
743c80a7
PE
19860Usually this means the macro was only invoked conditionally." "$LINENO" 5
19861fi
19862if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
0afb4571 19863 as_fn_error "conditional \"am__fastdepCC\" was never defined.
743c80a7
PE
19864Usually this means the macro was only invoked conditionally." "$LINENO" 5
19865fi
19866
19867if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
0afb4571 19868 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
743c80a7
PE
19869Usually this means the macro was only invoked conditionally." "$LINENO" 5
19870fi
19871
942f733f 19872
743c80a7
PE
19873 gl_libobjs=
19874 gl_ltlibobjs=
19875 if test -n "$gl_LIBOBJS"; then
19876 # Remove the extension.
19877 sed_drop_objext='s/\.o$//;s/\.obj$//'
19878 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19879 gl_libobjs="$gl_libobjs $i.$ac_objext"
19880 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19881 done
19882 fi
19883 gl_LIBOBJS=$gl_libobjs
19884
19885 gl_LTLIBOBJS=$gl_ltlibobjs
19886
19887
19888
19889 gltests_libobjs=
19890 gltests_ltlibobjs=
19891 if test -n "$gltests_LIBOBJS"; then
19892 # Remove the extension.
19893 sed_drop_objext='s/\.o$//;s/\.obj$//'
19894 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19895 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19896 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19897 done
19898 fi
19899 gltests_LIBOBJS=$gltests_libobjs
19900
19901 gltests_LTLIBOBJS=$gltests_ltlibobjs
19902
067d23c9
KY
19903
19904
7834125e 19905: ${CONFIG_STATUS=./config.status}
067d23c9
KY
19906ac_write_fail=0
19907ac_clean_files_save=$ac_clean_files
19908ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19909{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19910$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19911as_write_fail=0
19912cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19913#! $SHELL
19914# Generated by $as_me.
19915# Run this file to recreate the current configuration.
19916# Compiler output produced by configure, useful for debugging
19917# configure, is in config.log if it exists.
19918
19919debug=false
19920ac_cs_recheck=false
19921ac_cs_silent=false
19922
19923SHELL=\${CONFIG_SHELL-$SHELL}
19924export SHELL
19925_ASEOF
19926cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19927## -------------------- ##
19928## M4sh Initialization. ##
19929## -------------------- ##
19930
19931# Be more Bourne compatible
19932DUALCASE=1; export DUALCASE # for MKS sh
19933if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19934 emulate sh
19935 NULLCMD=:
19936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19937 # is contrary to our usage. Disable this feature.
19938 alias -g '${1+"$@"}'='"$@"'
19939 setopt NO_GLOB_SUBST
19940else
19941 case `(set -o) 2>/dev/null` in #(
19942 *posix*) :
19943 set -o posix ;; #(
19944 *) :
19945 ;;
19946esac
19947fi
19948
19949
19950as_nl='
19951'
19952export as_nl
19953# Printing a long string crashes Solaris 7 /usr/bin/printf.
19954as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19955as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19956as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19957# Prefer a ksh shell builtin over an external printf program on Solaris,
19958# but without wasting forks for bash or zsh.
19959if test -z "$BASH_VERSION$ZSH_VERSION" \
19960 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19961 as_echo='print -r --'
19962 as_echo_n='print -rn --'
19963elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19964 as_echo='printf %s\n'
19965 as_echo_n='printf %s'
19966else
19967 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19968 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19969 as_echo_n='/usr/ucb/echo -n'
19970 else
19971 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19972 as_echo_n_body='eval
19973 arg=$1;
19974 case $arg in #(
19975 *"$as_nl"*)
19976 expr "X$arg" : "X\\(.*\\)$as_nl";
19977 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19978 esac;
19979 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19980 '
19981 export as_echo_n_body
19982 as_echo_n='sh -c $as_echo_n_body as_echo'
19983 fi
19984 export as_echo_body
19985 as_echo='sh -c $as_echo_body as_echo'
19986fi
19987
19988# The user is always right.
19989if test "${PATH_SEPARATOR+set}" != set; then
19990 PATH_SEPARATOR=:
19991 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19992 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19993 PATH_SEPARATOR=';'
19994 }
19995fi
19996
19997
19998# IFS
19999# We need space, tab and new line, in precisely that order. Quoting is
20000# there to prevent editors from complaining about space-tab.
20001# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20002# splitting by setting IFS to empty value.)
20003IFS=" "" $as_nl"
20004
20005# Find who we are. Look in the path if we contain no directory separator.
20006case $0 in #((
20007 *[\\/]* ) as_myself=$0 ;;
20008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20009for as_dir in $PATH
20010do
20011 IFS=$as_save_IFS
20012 test -z "$as_dir" && as_dir=.
20013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20014 done
20015IFS=$as_save_IFS
20016
20017 ;;
20018esac
20019# We did not find ourselves, most probably we were run as `sh COMMAND'
20020# in which case we are not to be found in the path.
20021if test "x$as_myself" = x; then
20022 as_myself=$0
20023fi
20024if test ! -f "$as_myself"; then
20025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20026 exit 1
20027fi
20028
20029# Unset variables that we do not need and which cause bugs (e.g. in
20030# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20031# suppresses any "Segmentation fault" message there. '((' could
20032# trigger a bug in pdksh 5.2.14.
20033for as_var in BASH_ENV ENV MAIL MAILPATH
20034do eval test x\${$as_var+set} = xset \
20035 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20036done
20037PS1='$ '
20038PS2='> '
20039PS4='+ '
20040
20041# NLS nuisances.
20042LC_ALL=C
20043export LC_ALL
20044LANGUAGE=C
20045export LANGUAGE
20046
20047# CDPATH.
20048(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20049
20050
0afb4571
J
20051# as_fn_error ERROR [LINENO LOG_FD]
20052# ---------------------------------
067d23c9
KY
20053# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20054# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
0afb4571 20055# script with status $?, using 1 if that was 0.
067d23c9
KY
20056as_fn_error ()
20057{
0afb4571
J
20058 as_status=$?; test $as_status -eq 0 && as_status=1
20059 if test "$3"; then
20060 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20061 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
067d23c9 20062 fi
0afb4571 20063 $as_echo "$as_me: error: $1" >&2
067d23c9
KY
20064 as_fn_exit $as_status
20065} # as_fn_error
20066
20067
20068# as_fn_set_status STATUS
20069# -----------------------
20070# Set $? to STATUS, without forking.
20071as_fn_set_status ()
20072{
20073 return $1
20074} # as_fn_set_status
20075
20076# as_fn_exit STATUS
20077# -----------------
20078# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20079as_fn_exit ()
20080{
20081 set +e
20082 as_fn_set_status $1
20083 exit $1
20084} # as_fn_exit
20085
20086# as_fn_unset VAR
20087# ---------------
20088# Portably unset VAR.
20089as_fn_unset ()
20090{
20091 { eval $1=; unset $1;}
20092}
20093as_unset=as_fn_unset
20094# as_fn_append VAR VALUE
20095# ----------------------
20096# Append the text in VALUE to the end of the definition contained in VAR. Take
20097# advantage of any shell optimizations that allow amortized linear growth over
20098# repeated appends, instead of the typical quadratic growth present in naive
20099# implementations.
20100if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20101 eval 'as_fn_append ()
20102 {
20103 eval $1+=\$2
20104 }'
20105else
20106 as_fn_append ()
20107 {
20108 eval $1=\$$1\$2
20109 }
20110fi # as_fn_append
20111
20112# as_fn_arith ARG...
20113# ------------------
20114# Perform arithmetic evaluation on the ARGs, and store the result in the
20115# global $as_val. Take advantage of shells that can avoid forks. The arguments
20116# must be portable across $(()) and expr.
20117if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20118 eval 'as_fn_arith ()
20119 {
20120 as_val=$(( $* ))
20121 }'
20122else
20123 as_fn_arith ()
20124 {
20125 as_val=`expr "$@" || test $? -eq 1`
20126 }
20127fi # as_fn_arith
20128
20129
20130if expr a : '\(a\)' >/dev/null 2>&1 &&
20131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20132 as_expr=expr
20133else
20134 as_expr=false
20135fi
20136
20137if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20138 as_basename=basename
20139else
20140 as_basename=false
20141fi
20142
20143if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20144 as_dirname=dirname
20145else
20146 as_dirname=false
20147fi
20148
20149as_me=`$as_basename -- "$0" ||
20150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20151 X"$0" : 'X\(//\)$' \| \
20152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20153$as_echo X/"$0" |
20154 sed '/^.*\/\([^/][^/]*\)\/*$/{
20155 s//\1/
20156 q
20157 }
20158 /^X\/\(\/\/\)$/{
20159 s//\1/
20160 q
20161 }
20162 /^X\/\(\/\).*/{
20163 s//\1/
20164 q
20165 }
20166 s/.*/./; q'`
20167
20168# Avoid depending upon Character Ranges.
20169as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20171as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20172as_cr_digits='0123456789'
20173as_cr_alnum=$as_cr_Letters$as_cr_digits
20174
20175ECHO_C= ECHO_N= ECHO_T=
20176case `echo -n x` in #(((((
20177-n*)
20178 case `echo 'xy\c'` in
20179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20180 xy) ECHO_C='\c';;
20181 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20182 ECHO_T=' ';;
20183 esac;;
20184*)
20185 ECHO_N='-n';;
20186esac
20187
20188rm -f conf$$ conf$$.exe conf$$.file
20189if test -d conf$$.dir; then
20190 rm -f conf$$.dir/conf$$.file
20191else
20192 rm -f conf$$.dir
20193 mkdir conf$$.dir 2>/dev/null
20194fi
20195if (echo >conf$$.file) 2>/dev/null; then
20196 if ln -s conf$$.file conf$$ 2>/dev/null; then
20197 as_ln_s='ln -s'
20198 # ... but there are two gotchas:
20199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20201 # In both cases, we have to default to `cp -p'.
20202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20203 as_ln_s='cp -p'
20204 elif ln conf$$.file conf$$ 2>/dev/null; then
20205 as_ln_s=ln
20206 else
20207 as_ln_s='cp -p'
20208 fi
20209else
20210 as_ln_s='cp -p'
20211fi
20212rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20213rmdir conf$$.dir 2>/dev/null
20214
20215
20216# as_fn_mkdir_p
20217# -------------
20218# Create "$as_dir" as a directory, including parents if necessary.
20219as_fn_mkdir_p ()
20220{
20221
20222 case $as_dir in #(
20223 -*) as_dir=./$as_dir;;
20224 esac
20225 test -d "$as_dir" || eval $as_mkdir_p || {
20226 as_dirs=
20227 while :; do
20228 case $as_dir in #(
20229 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20230 *) as_qdir=$as_dir;;
20231 esac
20232 as_dirs="'$as_qdir' $as_dirs"
20233 as_dir=`$as_dirname -- "$as_dir" ||
20234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20235 X"$as_dir" : 'X\(//\)[^/]' \| \
20236 X"$as_dir" : 'X\(//\)$' \| \
20237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20238$as_echo X"$as_dir" |
20239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20240 s//\1/
20241 q
20242 }
20243 /^X\(\/\/\)[^/].*/{
20244 s//\1/
20245 q
20246 }
20247 /^X\(\/\/\)$/{
20248 s//\1/
20249 q
20250 }
20251 /^X\(\/\).*/{
20252 s//\1/
20253 q
20254 }
20255 s/.*/./; q'`
20256 test -d "$as_dir" && break
20257 done
20258 test -z "$as_dirs" || eval "mkdir $as_dirs"
0afb4571 20259 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
067d23c9
KY
20260
20261
20262} # as_fn_mkdir_p
20263if mkdir -p . 2>/dev/null; then
20264 as_mkdir_p='mkdir -p "$as_dir"'
20265else
20266 test -d ./-p && rmdir ./-p
20267 as_mkdir_p=false
20268fi
20269
20270if test -x / >/dev/null 2>&1; then
20271 as_test_x='test -x'
20272else
20273 if ls -dL / >/dev/null 2>&1; then
20274 as_ls_L_option=L
20275 else
20276 as_ls_L_option=
20277 fi
20278 as_test_x='
20279 eval sh -c '\''
20280 if test -d "$1"; then
20281 test -d "$1/.";
20282 else
20283 case $1 in #(
20284 -*)set "./$1";;
20285 esac;
20286 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20287 ???[sx]*):;;*)false;;esac;fi
20288 '\'' sh
20289 '
20290fi
20291as_executable_p=$as_test_x
20292
20293# Sed expression to map a string onto a valid CPP name.
20294as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20295
20296# Sed expression to map a string onto a valid variable name.
20297as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20298
20299
20300exec 6>&1
20301## ----------------------------------- ##
20302## Main body of $CONFIG_STATUS script. ##
20303## ----------------------------------- ##
20304_ASEOF
20305test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20306
20307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20308# Save the log message, to keep $0 and so on meaningful, and to
20309# report actual input values of CONFIG_FILES etc. instead of their
20310# values after options handling.
20311ac_log="
20312This file was extended by emacs $as_me 24.0.50, which was
0afb4571 20313generated by GNU Autoconf 2.65. Invocation command line was
067d23c9
KY
20314
20315 CONFIG_FILES = $CONFIG_FILES
20316 CONFIG_HEADERS = $CONFIG_HEADERS
20317 CONFIG_LINKS = $CONFIG_LINKS
20318 CONFIG_COMMANDS = $CONFIG_COMMANDS
20319 $ $0 $@
20320
20321on `(hostname || uname -n) 2>/dev/null | sed 1q`
20322"
20323
20324_ACEOF
20325
20326case $ac_config_files in *"
20327"*) set x $ac_config_files; shift; ac_config_files=$*;;
20328esac
20329
20330case $ac_config_headers in *"
20331"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20332esac
20333
20334
20335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20336# Files that config.status was made for.
20337config_files="$ac_config_files"
20338config_headers="$ac_config_headers"
20339config_commands="$ac_config_commands"
20340
20341_ACEOF
20342
20343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20344ac_cs_usage="\
20345\`$as_me' instantiates files and other configuration actions
20346from templates according to the current configuration. Unless the files
20347and actions are specified as TAGs, all are instantiated by default.
20348
20349Usage: $0 [OPTION]... [TAG]...
20350
20351 -h, --help print this help, then exit
20352 -V, --version print version number and configuration settings, then exit
20353 --config print configuration, then exit
20354 -q, --quiet, --silent
20355 do not print progress messages
20356 -d, --debug don't remove temporary files
20357 --recheck update $as_me by reconfiguring in the same conditions
20358 --file=FILE[:TEMPLATE]
20359 instantiate the configuration file FILE
20360 --header=FILE[:TEMPLATE]
20361 instantiate the configuration header FILE
20362
20363Configuration files:
20364$config_files
20365
20366Configuration headers:
20367$config_headers
20368
20369Configuration commands:
20370$config_commands
20371
20372Report bugs to the package provider."
20373
20374_ACEOF
20375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20376ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20377ac_cs_version="\\
20378emacs config.status 24.0.50
0afb4571 20379configured by $0, generated by GNU Autoconf 2.65,
067d23c9
KY
20380 with options \\"\$ac_cs_config\\"
20381
0afb4571 20382Copyright (C) 2009 Free Software Foundation, Inc.
067d23c9
KY
20383This config.status script is free software; the Free Software Foundation
20384gives unlimited permission to copy, distribute and modify it."
20385
20386ac_pwd='$ac_pwd'
20387srcdir='$srcdir'
20388INSTALL='$INSTALL'
743c80a7
PE
20389MKDIR_P='$MKDIR_P'
20390AWK='$AWK'
067d23c9
KY
20391test -n "\$AWK" || AWK=awk
20392_ACEOF
20393
20394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20395# The default lists apply if the user does not specify any file.
20396ac_need_defaults=:
20397while test $# != 0
20398do
20399 case $1 in
0afb4571 20400 --*=*)
067d23c9
KY
20401 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20403 ac_shift=:
20404 ;;
20405 *)
20406 ac_option=$1
20407 ac_optarg=$2
20408 ac_shift=shift
20409 ;;
20410 esac
20411
20412 case $ac_option in
20413 # Handling of the options.
20414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20415 ac_cs_recheck=: ;;
20416 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20417 $as_echo "$ac_cs_version"; exit ;;
20418 --config | --confi | --conf | --con | --co | --c )
20419 $as_echo "$ac_cs_config"; exit ;;
20420 --debug | --debu | --deb | --de | --d | -d )
20421 debug=: ;;
20422 --file | --fil | --fi | --f )
20423 $ac_shift
20424 case $ac_optarg in
20425 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20426 esac
20427 as_fn_append CONFIG_FILES " '$ac_optarg'"
20428 ac_need_defaults=false;;
20429 --header | --heade | --head | --hea )
20430 $ac_shift
20431 case $ac_optarg in
20432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20433 esac
20434 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20435 ac_need_defaults=false;;
20436 --he | --h)
20437 # Conflict between --help and --header
0afb4571 20438 as_fn_error "ambiguous option: \`$1'
067d23c9
KY
20439Try \`$0 --help' for more information.";;
20440 --help | --hel | -h )
20441 $as_echo "$ac_cs_usage"; exit ;;
20442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20444 ac_cs_silent=: ;;
20445
20446 # This is an error.
0afb4571 20447 -*) as_fn_error "unrecognized option: \`$1'
067d23c9
KY
20448Try \`$0 --help' for more information." ;;
20449
20450 *) as_fn_append ac_config_targets " $1"
20451 ac_need_defaults=false ;;
20452
20453 esac
20454 shift
20455done
20456
20457ac_configure_extra_args=
20458
20459if $ac_cs_silent; then
20460 exec 6>/dev/null
20461 ac_configure_extra_args="$ac_configure_extra_args --silent"
20462fi
20463
20464_ACEOF
20465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20466if \$ac_cs_recheck; then
20467 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20468 shift
20469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20470 CONFIG_SHELL='$SHELL'
20471 export CONFIG_SHELL
20472 exec "\$@"
20473fi
20474
20475_ACEOF
20476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20477exec 5>>config.log
20478{
20479 echo
20480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20481## Running $as_me. ##
20482_ASBOX
20483 $as_echo "$ac_log"
20484} >&5
20485
20486_ACEOF
20487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20488#
20489# INIT-COMMANDS
20490#
743c80a7 20491AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
20492GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20493
20494_ACEOF
20495
20496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20497
20498# Handling of arguments.
20499for ac_config_target in $ac_config_targets
20500do
20501 case $ac_config_target in
20502 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 20503 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 20504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 20505 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
20506 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20507 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20508 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20509 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20510 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20511 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20512 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20513 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20514 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20515 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 20516 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
9411886d
PE
20517 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20518 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20519 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
067d23c9 20520
0afb4571 20521 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
20522 esac
20523done
20524
20525
20526# If the user did not use the arguments to specify the items to instantiate,
20527# then the envvar interface is used. Set only those that are not.
20528# We use the long form for the default assignment because of an extremely
20529# bizarre bug on SunOS 4.1.3.
20530if $ac_need_defaults; then
20531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20534fi
20535
20536# Have a temporary directory for convenience. Make it in the build tree
20537# simply because there is no reason against having it here, and in addition,
20538# creating and moving files from /tmp can sometimes cause problems.
20539# Hook for its removal unless debugging.
20540# Note that there is a small window in which the directory will not be cleaned:
20541# after its creation but before its name has been assigned to `$tmp'.
20542$debug ||
20543{
7834125e 20544 tmp=
067d23c9 20545 trap 'exit_status=$?
7834125e 20546 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
067d23c9
KY
20547' 0
20548 trap 'as_fn_exit 1' 1 2 13 15
20549}
20550# Create a (secure) tmp directory for tmp files.
20551
20552{
20553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7834125e 20554 test -n "$tmp" && test -d "$tmp"
067d23c9
KY
20555} ||
20556{
20557 tmp=./conf$$-$RANDOM
20558 (umask 077 && mkdir "$tmp")
0afb4571 20559} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
067d23c9
KY
20560
20561# Set up the scripts for CONFIG_FILES section.
20562# No need to generate them if there are no CONFIG_FILES.
20563# This happens for instance with `./config.status config.h'.
20564if test -n "$CONFIG_FILES"; then
20565
20566if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20567 ac_cs_awk_getline=:
20568 ac_cs_awk_pipe_init=
20569 ac_cs_awk_read_file='
20570 while ((getline aline < (F[key])) > 0)
20571 print(aline)
20572 close(F[key])'
20573 ac_cs_awk_pipe_fini=
20574else
20575 ac_cs_awk_getline=false
20576 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20577 ac_cs_awk_read_file='
20578 print "|#_!!_#|"
20579 print "cat " F[key] " &&"
20580 '$ac_cs_awk_pipe_init
20581 # The final `:' finishes the AND list.
20582 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20583fi
20584ac_cr=`echo X | tr X '\015'`
20585# On cygwin, bash can eat \r inside `` if the user requested igncr.
20586# But we know of no other shell where ac_cr would be empty at this
20587# point, so we can use a bashism as a fallback.
20588if test "x$ac_cr" = x; then
20589 eval ac_cr=\$\'\\r\'
20590fi
20591ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20592if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
0afb4571 20593 ac_cs_awk_cr='\r'
067d23c9
KY
20594else
20595 ac_cs_awk_cr=$ac_cr
20596fi
20597
7834125e 20598echo 'BEGIN {' >"$tmp/subs1.awk" &&
067d23c9
KY
20599_ACEOF
20600
20601# Create commands to substitute file output variables.
20602{
20603 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
7834125e 20604 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
20605 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20606 echo "_ACAWK" &&
20607 echo "_ACEOF"
20608} >conf$$files.sh &&
20609. ./conf$$files.sh ||
0afb4571 20610 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20611rm -f conf$$files.sh
20612
20613{
20614 echo "cat >conf$$subs.awk <<_ACEOF" &&
20615 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20616 echo "_ACEOF"
20617} >conf$$subs.sh ||
0afb4571
J
20618 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20619ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
067d23c9
KY
20620ac_delim='%!_!# '
20621for ac_last_try in false false false false false :; do
20622 . ./conf$$subs.sh ||
0afb4571 20623 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20624
20625 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20626 if test $ac_delim_n = $ac_delim_num; then
20627 break
20628 elif $ac_last_try; then
0afb4571 20629 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20630 else
20631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20632 fi
20633done
20634rm -f conf$$subs.sh
20635
20636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7834125e 20637cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
20638_ACEOF
20639sed -n '
20640h
20641s/^/S["/; s/!.*/"]=/
20642p
20643g
20644s/^[^!]*!//
20645:repl
20646t repl
20647s/'"$ac_delim"'$//
20648t delim
20649:nl
20650h
20651s/\(.\{148\}\)..*/\1/
20652t more1
20653s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20654p
20655n
20656b repl
20657:more1
20658s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20659p
20660g
20661s/.\{148\}//
20662t nl
20663:delim
20664h
20665s/\(.\{148\}\)..*/\1/
20666t more2
20667s/["\\]/\\&/g; s/^/"/; s/$/"/
20668p
20669b
20670:more2
20671s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20672p
20673g
20674s/.\{148\}//
20675t delim
20676' <conf$$subs.awk | sed '
20677/^[^""]/{
20678 N
20679 s/\n//
20680}
20681' >>$CONFIG_STATUS || ac_write_fail=1
20682rm -f conf$$subs.awk
20683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20684_ACAWK
7834125e 20685cat >>"\$tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
20686 for (key in S) S_is_set[key] = 1
20687 FS = "\a"
20688 \$ac_cs_awk_pipe_init
20689}
20690{
20691 line = $ 0
20692 nfields = split(line, field, "@")
20693 substed = 0
20694 len = length(field[1])
20695 for (i = 2; i < nfields; i++) {
20696 key = field[i]
20697 keylen = length(key)
20698 if (S_is_set[key]) {
20699 value = S[key]
20700 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20701 len += length(value) + length(field[++i])
20702 substed = 1
20703 } else
20704 len += 1 + keylen
20705 }
20706 if (nfields == 3 && !substed) {
20707 key = field[2]
20708 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20709 \$ac_cs_awk_read_file
20710 next
20711 }
20712 }
20713 print line
20714}
20715\$ac_cs_awk_pipe_fini
20716_ACAWK
20717_ACEOF
20718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20719if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20720 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20721else
20722 cat
7834125e 20723fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
0afb4571 20724 || as_fn_error "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
20725_ACEOF
20726
0afb4571
J
20727# VPATH may cause trouble with some makes, so we remove $(srcdir),
20728# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
067d23c9
KY
20729# trailing colons and then remove the whole line if VPATH becomes empty
20730# (actually we leave an empty line to preserve line numbers).
20731if test "x$srcdir" = x.; then
0afb4571
J
20732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20733s/:*\$(srcdir):*/:/
20734s/:*\${srcdir}:*/:/
20735s/:*@srcdir@:*/:/
20736s/^\([^=]*=[ ]*\):*/\1/
067d23c9
KY
20737s/:*$//
20738s/^[^=]*=[ ]*$//
20739}'
20740fi
20741
20742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20743fi # test -n "$CONFIG_FILES"
20744
20745# Set up the scripts for CONFIG_HEADERS section.
20746# No need to generate them if there are no CONFIG_HEADERS.
20747# This happens for instance with `./config.status Makefile'.
20748if test -n "$CONFIG_HEADERS"; then
7834125e 20749cat >"$tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
20750BEGIN {
20751_ACEOF
20752
20753# Transform confdefs.h into an awk script `defines.awk', embedded as
20754# here-document in config.status, that substitutes the proper values into
20755# config.h.in to produce config.h.
20756
20757# Create a delimiter string that does not exist in confdefs.h, to ease
20758# handling of long lines.
20759ac_delim='%!_!# '
20760for ac_last_try in false false :; do
7834125e
GM
20761 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20762 if test -z "$ac_t"; then
067d23c9
KY
20763 break
20764 elif $ac_last_try; then
0afb4571 20765 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
20766 else
20767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20768 fi
20769done
20770
20771# For the awk script, D is an array of macro values keyed by name,
20772# likewise P contains macro parameters if any. Preserve backslash
20773# newline sequences.
20774
20775ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20776sed -n '
20777s/.\{148\}/&'"$ac_delim"'/g
20778t rset
20779:rset
20780s/^[ ]*#[ ]*define[ ][ ]*/ /
20781t def
20782d
20783:def
20784s/\\$//
20785t bsnl
20786s/["\\]/\\&/g
20787s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20788D["\1"]=" \3"/p
20789s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20790d
20791:bsnl
20792s/["\\]/\\&/g
20793s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20794D["\1"]=" \3\\\\\\n"\\/p
20795t cont
20796s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20797t cont
20798d
20799:cont
20800n
20801s/.\{148\}/&'"$ac_delim"'/g
20802t clear
20803:clear
20804s/\\$//
20805t bsnlc
20806s/["\\]/\\&/g; s/^/"/; s/$/"/p
20807d
20808:bsnlc
20809s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20810b cont
20811' <confdefs.h | sed '
20812s/'"$ac_delim"'/"\\\
20813"/g' >>$CONFIG_STATUS || ac_write_fail=1
20814
20815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20816 for (key in D) D_is_set[key] = 1
20817 FS = "\a"
20818}
20819/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20820 line = \$ 0
20821 split(line, arg, " ")
20822 if (arg[1] == "#") {
20823 defundef = arg[2]
20824 mac1 = arg[3]
20825 } else {
20826 defundef = substr(arg[1], 2)
20827 mac1 = arg[2]
20828 }
20829 split(mac1, mac2, "(") #)
20830 macro = mac2[1]
20831 prefix = substr(line, 1, index(line, defundef) - 1)
20832 if (D_is_set[macro]) {
20833 # Preserve the white space surrounding the "#".
20834 print prefix "define", macro P[macro] D[macro]
20835 next
20836 } else {
20837 # Replace #undef with comments. This is necessary, for example,
20838 # in the case of _POSIX_SOURCE, which is predefined and required
20839 # on some systems where configure will not decide to define it.
20840 if (defundef == "undef") {
20841 print "/*", prefix defundef, macro, "*/"
20842 next
20843 }
20844 }
20845}
20846{ print }
20847_ACAWK
20848_ACEOF
20849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
0afb4571 20850 as_fn_error "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
20851fi # test -n "$CONFIG_HEADERS"
20852
20853
20854eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20855shift
20856for ac_tag
20857do
20858 case $ac_tag in
20859 :[FHLC]) ac_mode=$ac_tag; continue;;
20860 esac
20861 case $ac_mode$ac_tag in
20862 :[FHL]*:*);;
0afb4571 20863 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
20864 :[FH]-) ac_tag=-:-;;
20865 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20866 esac
20867 ac_save_IFS=$IFS
20868 IFS=:
20869 set x $ac_tag
20870 IFS=$ac_save_IFS
20871 shift
20872 ac_file=$1
20873 shift
20874
20875 case $ac_mode in
20876 :L) ac_source=$1;;
20877 :[FH])
20878 ac_file_inputs=
20879 for ac_f
20880 do
20881 case $ac_f in
7834125e 20882 -) ac_f="$tmp/stdin";;
067d23c9
KY
20883 *) # Look for the file first in the build tree, then in the source tree
20884 # (if the path is not absolute). The absolute path cannot be DOS-style,
20885 # because $ac_f cannot contain `:'.
20886 test -f "$ac_f" ||
20887 case $ac_f in
20888 [\\/$]*) false;;
20889 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20890 esac ||
0afb4571 20891 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
20892 esac
20893 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20894 as_fn_append ac_file_inputs " '$ac_f'"
20895 done
20896
20897 # Let's still pretend it is `configure' which instantiates (i.e., don't
20898 # use $as_me), people would be surprised to read:
20899 # /* config.h. Generated by config.status. */
20900 configure_input='Generated from '`
20901 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20902 `' by configure.'
20903 if test x"$ac_file" != x-; then
20904 configure_input="$ac_file. $configure_input"
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20906$as_echo "$as_me: creating $ac_file" >&6;}
20907 fi
20908 # Neutralize special characters interpreted by sed in replacement strings.
20909 case $configure_input in #(
20910 *\&* | *\|* | *\\* )
20911 ac_sed_conf_input=`$as_echo "$configure_input" |
20912 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20913 *) ac_sed_conf_input=$configure_input;;
20914 esac
20915
20916 case $ac_tag in
7834125e 20917 *:-:* | *:-) cat >"$tmp/stdin" \
0afb4571 20918 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
20919 esac
20920 ;;
20921 esac
20922
20923 ac_dir=`$as_dirname -- "$ac_file" ||
20924$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20925 X"$ac_file" : 'X\(//\)[^/]' \| \
20926 X"$ac_file" : 'X\(//\)$' \| \
20927 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20928$as_echo X"$ac_file" |
20929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20930 s//\1/
20931 q
20932 }
20933 /^X\(\/\/\)[^/].*/{
20934 s//\1/
20935 q
20936 }
20937 /^X\(\/\/\)$/{
20938 s//\1/
20939 q
20940 }
20941 /^X\(\/\).*/{
20942 s//\1/
20943 q
20944 }
20945 s/.*/./; q'`
20946 as_dir="$ac_dir"; as_fn_mkdir_p
20947 ac_builddir=.
20948
20949case "$ac_dir" in
20950.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20951*)
20952 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20953 # A ".." for each directory in $ac_dir_suffix.
20954 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20955 case $ac_top_builddir_sub in
20956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20958 esac ;;
20959esac
20960ac_abs_top_builddir=$ac_pwd
20961ac_abs_builddir=$ac_pwd$ac_dir_suffix
20962# for backward compatibility:
20963ac_top_builddir=$ac_top_build_prefix
20964
20965case $srcdir in
20966 .) # We are building in place.
20967 ac_srcdir=.
20968 ac_top_srcdir=$ac_top_builddir_sub
20969 ac_abs_top_srcdir=$ac_pwd ;;
20970 [\\/]* | ?:[\\/]* ) # Absolute name.
20971 ac_srcdir=$srcdir$ac_dir_suffix;
20972 ac_top_srcdir=$srcdir
20973 ac_abs_top_srcdir=$srcdir ;;
20974 *) # Relative name.
20975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20976 ac_top_srcdir=$ac_top_build_prefix$srcdir
20977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20978esac
20979ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20980
20981
20982 case $ac_mode in
20983 :F)
20984 #
20985 # CONFIG_FILE
20986 #
20987
20988 case $INSTALL in
20989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20990 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20991 esac
743c80a7
PE
20992 ac_MKDIR_P=$MKDIR_P
20993 case $MKDIR_P in
20994 [\\/$]* | ?:[\\/]* ) ;;
20995 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20996 esac
067d23c9
KY
20997_ACEOF
20998
20999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21000# If the template does not know about datarootdir, expand it.
21001# FIXME: This hack should be removed a few years after 2.60.
21002ac_datarootdir_hack=; ac_datarootdir_seen=
21003ac_sed_dataroot='
21004/datarootdir/ {
21005 p
21006 q
21007}
21008/@datadir@/p
21009/@docdir@/p
21010/@infodir@/p
21011/@localedir@/p
21012/@mandir@/p'
21013case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21014*datarootdir*) ac_datarootdir_seen=yes;;
21015*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21017$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21018_ACEOF
21019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21020 ac_datarootdir_hack='
21021 s&@datadir@&$datadir&g
21022 s&@docdir@&$docdir&g
21023 s&@infodir@&$infodir&g
21024 s&@localedir@&$localedir&g
21025 s&@mandir@&$mandir&g
21026 s&\\\${datarootdir}&$datarootdir&g' ;;
21027esac
21028_ACEOF
21029
21030# Neutralize VPATH when `$srcdir' = `.'.
21031# Shell code in configure.ac might set extrasub.
21032# FIXME: do we really want to maintain this feature?
21033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21034ac_sed_extra="$ac_vpsub
21035$extrasub
21036_ACEOF
21037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21038:t
21039/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21040s|@configure_input@|$ac_sed_conf_input|;t t
21041s&@top_builddir@&$ac_top_builddir_sub&;t t
21042s&@top_build_prefix@&$ac_top_build_prefix&;t t
21043s&@srcdir@&$ac_srcdir&;t t
21044s&@abs_srcdir@&$ac_abs_srcdir&;t t
21045s&@top_srcdir@&$ac_top_srcdir&;t t
21046s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21047s&@builddir@&$ac_builddir&;t t
21048s&@abs_builddir@&$ac_abs_builddir&;t t
21049s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21050s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 21051s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
21052$ac_datarootdir_hack
21053"
21054eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21055if $ac_cs_awk_getline; then
7834125e 21056 $AWK -f "$tmp/subs.awk"
067d23c9 21057else
7834125e
GM
21058 $AWK -f "$tmp/subs.awk" | $SHELL
21059fi >$tmp/out \
0afb4571 21060 || as_fn_error "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21061
21062test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7834125e
GM
21063 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
067d23c9 21065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0afb4571 21066which seems to be undefined. Please make sure it is defined." >&5
067d23c9 21067$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
0afb4571 21068which seems to be undefined. Please make sure it is defined." >&2;}
067d23c9 21069
7834125e 21070 rm -f "$tmp/stdin"
067d23c9 21071 case $ac_file in
7834125e
GM
21072 -) cat "$tmp/out" && rm -f "$tmp/out";;
21073 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
067d23c9 21074 esac \
0afb4571 21075 || as_fn_error "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21076 ;;
21077 :H)
21078 #
21079 # CONFIG_HEADER
21080 #
21081 if test x"$ac_file" != x-; then
21082 {
21083 $as_echo "/* $configure_input */" \
7834125e
GM
21084 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21085 } >"$tmp/config.h" \
0afb4571 21086 || as_fn_error "could not create $ac_file" "$LINENO" 5
7834125e 21087 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21089$as_echo "$as_me: $ac_file is unchanged" >&6;}
21090 else
21091 rm -f "$ac_file"
7834125e 21092 mv "$tmp/config.h" "$ac_file" \
0afb4571 21093 || as_fn_error "could not create $ac_file" "$LINENO" 5
067d23c9
KY
21094 fi
21095 else
21096 $as_echo "/* $configure_input */" \
7834125e 21097 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
0afb4571 21098 || as_fn_error "could not create -" "$LINENO" 5
067d23c9 21099 fi
743c80a7
PE
21100# Compute "$ac_file"'s index in $config_headers.
21101_am_arg="$ac_file"
21102_am_stamp_count=1
21103for _am_header in $config_headers :; do
21104 case $_am_header in
21105 $_am_arg | $_am_arg:* )
21106 break ;;
21107 * )
21108 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21109 esac
21110done
21111echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21112$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21113 X"$_am_arg" : 'X\(//\)[^/]' \| \
21114 X"$_am_arg" : 'X\(//\)$' \| \
21115 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21116$as_echo X"$_am_arg" |
21117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21118 s//\1/
21119 q
21120 }
21121 /^X\(\/\/\)[^/].*/{
21122 s//\1/
21123 q
21124 }
21125 /^X\(\/\/\)$/{
21126 s//\1/
21127 q
21128 }
21129 /^X\(\/\).*/{
21130 s//\1/
21131 q
21132 }
21133 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
21134 ;;
21135
21136 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21137$as_echo "$as_me: executing $ac_file commands" >&6;}
21138 ;;
21139 esac
21140
21141
21142 case $ac_file$ac_mode in
743c80a7
PE
21143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21144 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21145 # are listed without --file. Let's play safe and only enable the eval
21146 # if we detect the quoting.
21147 case $CONFIG_FILES in
21148 *\'*) eval set x "$CONFIG_FILES" ;;
21149 *) set x $CONFIG_FILES ;;
21150 esac
21151 shift
21152 for mf
21153 do
21154 # Strip MF so we end up with the name of the file.
21155 mf=`echo "$mf" | sed -e 's/:.*$//'`
21156 # Check whether this is an Automake generated Makefile or not.
21157 # We used to match only the files named `Makefile.in', but
21158 # some people rename them; so instead we look at the file content.
21159 # Grep'ing the first line is not enough: some people post-process
21160 # each Makefile.in and add a new line on top of each file to say so.
21161 # Grep'ing the whole file is not good either: AIX grep has a line
21162 # limit of 2048, but all sed's we know have understand at least 4000.
21163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21164 dirpart=`$as_dirname -- "$mf" ||
21165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21166 X"$mf" : 'X\(//\)[^/]' \| \
21167 X"$mf" : 'X\(//\)$' \| \
21168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21169$as_echo X"$mf" |
21170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21171 s//\1/
21172 q
21173 }
21174 /^X\(\/\/\)[^/].*/{
21175 s//\1/
21176 q
21177 }
21178 /^X\(\/\/\)$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\(\/\).*/{
21183 s//\1/
21184 q
21185 }
21186 s/.*/./; q'`
21187 else
21188 continue
21189 fi
21190 # Extract the definition of DEPDIR, am__include, and am__quote
21191 # from the Makefile without running `make'.
21192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21193 test -z "$DEPDIR" && continue
21194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21195 test -z "am__include" && continue
21196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21197 # When using ansi2knr, U may be empty or an underscore; expand it
21198 U=`sed -n 's/^U = //p' < "$mf"`
21199 # Find all dependency output files, they are included files with
21200 # $(DEPDIR) in their names. We invoke sed twice because it is the
21201 # simplest approach to changing $(DEPDIR) to its actual value in the
21202 # expansion.
21203 for file in `sed -n "
21204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21206 # Make sure the directory exists.
21207 test -f "$dirpart/$file" && continue
21208 fdir=`$as_dirname -- "$file" ||
21209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21210 X"$file" : 'X\(//\)[^/]' \| \
21211 X"$file" : 'X\(//\)$' \| \
21212 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21213$as_echo X"$file" |
21214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21215 s//\1/
21216 q
21217 }
21218 /^X\(\/\/\)[^/].*/{
21219 s//\1/
21220 q
21221 }
21222 /^X\(\/\/\)$/{
21223 s//\1/
21224 q
21225 }
21226 /^X\(\/\).*/{
21227 s//\1/
21228 q
21229 }
21230 s/.*/./; q'`
21231 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21232 # echo "creating $dirpart/$file"
21233 echo '# dummy' > "$dirpart/$file"
21234 done
21235 done
21236}
21237 ;;
9411886d 21238 "mkdirs":C)
067d23c9
KY
21239for dir in etc lisp ; do
21240 test -d ${dir} || mkdir ${dir}
21241done
9411886d
PE
21242 ;;
21243 "epaths":C)
067d23c9
KY
21244echo creating src/epaths.h
21245${MAKE-make} epaths-force
9411886d
PE
21246 ;;
21247 "gdbinit":C)
067d23c9
KY
21248if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21249 echo creating src/.gdbinit
21250 echo source $srcdir/src/.gdbinit > src/.gdbinit
21251fi
067d23c9
KY
21252 ;;
21253
21254 esac
21255done # for ac_tag
21256
21257
21258as_fn_exit 0
21259_ACEOF
21260ac_clean_files=$ac_clean_files_save
21261
21262test $ac_write_fail = 0 ||
0afb4571 21263 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
21264
21265
21266# configure is writing to config.log, and then calls config.status.
21267# config.status does its own redirection, appending to config.log.
21268# Unfortunately, on DOS this fails, as config.log is still kept open
21269# by configure, so config.status won't be able to write to it; its
21270# output is simply discarded. So we exec the FD to /dev/null,
21271# effectively closing config.log, so it can be properly (re)opened and
21272# appended to by config.status. When coming back to configure, we
21273# need to make the FD available again.
21274if test "$no_create" != yes; then
21275 ac_cs_success=:
21276 ac_config_status_args=
21277 test "$silent" = yes &&
21278 ac_config_status_args="$ac_config_status_args --quiet"
21279 exec 5>/dev/null
21280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21281 exec 5>>config.log
21282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21283 # would make configure fail if this is the last instruction.
0afb4571 21284 $ac_cs_success || as_fn_exit $?
067d23c9
KY
21285fi
21286if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21288$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21289fi
21290
9411886d 21291