src/emacs.c now gets version number from configure.in
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d6974efa 3# Generated by GNU Autoconf 2.68 for emacs 24.0.50.
067d23c9
KY
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2018939f
AS
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
067d23c9
KY
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d6974efa 92as_myself=
067d23c9
KY
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
d6974efa 218 # Preserve -v and -x to the replacement shell.
067d23c9
KY
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
d6974efa
PE
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
067d23c9
KY
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
2018939f
AS
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
067d23c9
KY
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 371# script with STATUS, using 1 if that was 0.
067d23c9
KY
372as_fn_error ()
373{
2018939f
AS
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 378 fi
2018939f 379 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494else
495 as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
2018939f 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
067d23c9
KY
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME='emacs'
559PACKAGE_TARNAME='emacs'
560PACKAGE_VERSION='24.0.50'
561PACKAGE_STRING='emacs 24.0.50'
562PACKAGE_BUGREPORT=''
563PACKAGE_URL=''
564
565ac_unique_file="src/lisp.h"
566# Factoring default headers for most tests.
567ac_includes_default="\
568#include <stdio.h>
569#ifdef HAVE_SYS_TYPES_H
570# include <sys/types.h>
571#endif
572#ifdef HAVE_SYS_STAT_H
573# include <sys/stat.h>
574#endif
575#ifdef STDC_HEADERS
576# include <stdlib.h>
577# include <stddef.h>
578#else
579# ifdef HAVE_STDLIB_H
580# include <stdlib.h>
581# endif
582#endif
583#ifdef HAVE_STRING_H
584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585# include <memory.h>
586# endif
587# include <string.h>
588#endif
589#ifdef HAVE_STRINGS_H
590# include <strings.h>
591#endif
592#ifdef HAVE_INTTYPES_H
593# include <inttypes.h>
594#endif
595#ifdef HAVE_STDINT_H
596# include <stdint.h>
597#endif
598#ifdef HAVE_UNISTD_H
599# include <unistd.h>
600#endif"
601
602ac_config_libobj_dir=src
603ac_header_list=
e275c824
PE
604gl_getopt_required=POSIX
605gl_getopt_required=POSIX
067d23c9 606ac_func_list=
743c80a7
PE
607ac_subst_vars='gltests_LTLIBOBJS
608gltests_LIBOBJS
609gl_LTLIBOBJS
610gl_LIBOBJS
611am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
067d23c9
KY
614WINDOW_SUPPORT
615TOOLTIP_SUPPORT
616MOUSE_SUPPORT
617LIB_GCC
618LD_FIRSTFLAG
619LD_SWITCH_SYSTEM_TEMACS
620POST_ALLOC_OBJ
621PRE_ALLOC_OBJ
622CYGWIN_OBJ
623RALLOC_OBJ
624OLDXMENU_DEPS
625LIBX_OTHER
626LIBXMENU
627OLDXMENU
628OLDXMENU_TARGET
629LIBXT_OTHER
630TOOLKIT_LIBW
631WIDGET_OBJ
632XOBJ
633XMENU_OBJ
634FONT_OBJ
635OTHER_FILES
636GNU_OBJC_CFLAGS
637ns_appsrc
638ns_appresdir
639ns_appbindir
640ns_appdir
d6a003a8
AS
641S_FILE
642M_FILE
067d23c9
KY
643X_TOOLKIT_TYPE
644C_SWITCH_X_SYSTEM
645C_SWITCH_X_SITE
646LD_SWITCH_X_SITE
647gameuser
648gamedir
649bitmapdir
650archlibdir
651etcdir
652x_default_search_path
653lisppath
654locallisppath
655lispdir
656srcdir
657canonical
658configuration
659version
660KRB4LIB
661DESLIB
662KRB5LIB
663CRYPTOLIB
664COM_ERRLIB
665LIBRESOLV
666LIBHESIOD
667TERMCAP_OBJ
668LIBS_TERMCAP
743c80a7
PE
669LIBGNU_LTLIBDEPS
670LIBGNU_LIBDEPS
671gltests_WITNESS
e275c824
PE
672HAVE_UNISTD_H
673NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674NEXT_UNISTD_H
1fd182f0
PE
675PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677TIME_H_DEFINES_STRUCT_TIMESPEC
678NEXT_AS_FIRST_DIRECTIVE_TIME_H
679NEXT_TIME_H
680NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
681NEXT_STDDEF_H
1fd182f0
PE
682STDDEF_H
683HAVE_WCHAR_T
684REPLACE_NULL
16c3e636
PE
685HAVE__BOOL
686STDBOOL_H
1fd182f0
PE
687APPLE_UNIVERSAL_BUILD
688REPLACE_TIMEGM
689REPLACE_NANOSLEEP
690REPLACE_MKTIME
691REPLACE_LOCALTIME_R
692HAVE_TIMEGM
693HAVE_STRPTIME
694HAVE_NANOSLEEP
695HAVE_DECL_LOCALTIME_R
696GNULIB_TIME_R
697GNULIB_TIMEGM
698GNULIB_STRPTIME
699GNULIB_NANOSLEEP
700GNULIB_MKTIME
e275c824
PE
701LTLIBINTL
702LIBINTL
703GETOPT_H
704HAVE_GETOPT_H
705NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
706NEXT_GETOPT_H
707PRAGMA_COLUMNS
708PRAGMA_SYSTEM_HEADER
709INCLUDE_NEXT_AS_FIRST_DIRECTIVE
710INCLUDE_NEXT
711UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
712UNISTD_H_HAVE_WINSOCK2_H
713REPLACE_WRITE
714REPLACE_USLEEP
715REPLACE_UNLINKAT
716REPLACE_UNLINK
717REPLACE_TTYNAME_R
718REPLACE_SYMLINK
719REPLACE_SLEEP
720REPLACE_RMDIR
721REPLACE_READLINK
722REPLACE_PWRITE
723REPLACE_PREAD
724REPLACE_LSEEK
725REPLACE_LINKAT
726REPLACE_LINK
727REPLACE_LCHOWN
728REPLACE_GETPAGESIZE
729REPLACE_GETGROUPS
730REPLACE_GETLOGIN_R
731REPLACE_GETDOMAINNAME
732REPLACE_GETCWD
733REPLACE_FCHOWNAT
734REPLACE_DUP2
735REPLACE_DUP
736REPLACE_CLOSE
737REPLACE_CHOWN
738HAVE_SYS_PARAM_H
739HAVE_OS_H
740HAVE_DECL_TTYNAME_R
741HAVE_DECL_GETUSERSHELL
742HAVE_DECL_GETPAGESIZE
743HAVE_DECL_GETLOGIN_R
744HAVE_DECL_GETDOMAINNAME
745HAVE_DECL_FCHDIR
746HAVE_DECL_ENVIRON
747HAVE_USLEEP
748HAVE_UNLINKAT
749HAVE_SYMLINKAT
750HAVE_SYMLINK
751HAVE_SLEEP
752HAVE_READLINKAT
753HAVE_READLINK
754HAVE_PWRITE
755HAVE_PREAD
756HAVE_PIPE2
757HAVE_PIPE
758HAVE_LINKAT
759HAVE_LINK
760HAVE_LCHOWN
761HAVE_GETPAGESIZE
762HAVE_GETLOGIN
763HAVE_GETHOSTNAME
764HAVE_GETGROUPS
765HAVE_GETDTABLESIZE
766HAVE_FTRUNCATE
767HAVE_FSYNC
768HAVE_FCHOWNAT
769HAVE_FCHDIR
770HAVE_FACCESSAT
771HAVE_EUIDACCESS
772HAVE_DUP3
773HAVE_DUP2
774HAVE_CHOWN
775GNULIB_WRITE
776GNULIB_USLEEP
777GNULIB_UNLINKAT
778GNULIB_UNLINK
779GNULIB_UNISTD_H_SIGPIPE
780GNULIB_UNISTD_H_GETOPT
781GNULIB_TTYNAME_R
782GNULIB_SYMLINKAT
783GNULIB_SYMLINK
784GNULIB_SLEEP
785GNULIB_RMDIR
786GNULIB_READLINKAT
787GNULIB_READLINK
788GNULIB_PWRITE
789GNULIB_PREAD
790GNULIB_PIPE2
791GNULIB_PIPE
792GNULIB_LSEEK
793GNULIB_LINKAT
794GNULIB_LINK
795GNULIB_LCHOWN
796GNULIB_GETUSERSHELL
797GNULIB_GETPAGESIZE
798GNULIB_GETLOGIN_R
799GNULIB_GETLOGIN
800GNULIB_GETHOSTNAME
801GNULIB_GETGROUPS
802GNULIB_GETDTABLESIZE
803GNULIB_GETDOMAINNAME
804GNULIB_GETCWD
805GNULIB_FTRUNCATE
806GNULIB_FSYNC
807GNULIB_FCHOWNAT
808GNULIB_FCHDIR
809GNULIB_FACCESSAT
810GNULIB_EUIDACCESS
811GNULIB_ENVIRON
812GNULIB_DUP3
813GNULIB_DUP2
814GNULIB_CLOSE
815GNULIB_CHOWN
743c80a7
PE
816GL_COND_LIBTOOL_FALSE
817GL_COND_LIBTOOL_TRUE
067d23c9
KY
818GETLOADAVG_LIBS
819KMEM_GROUP
820NEED_SETGID
821LIBOBJS
822BLESSMAIL_TARGET
823LIBS_MAIL
824liblockfile
825ALLOCA
826LIBXML2_LIBS
827LIBXML2_CFLAGS
828LIBXSM
829LIBGPM
830LIBGIF
831LIBTIFF
832LIBPNG
833LIBJPEG
834LIBXPM
835FREETYPE_LIBS
836FREETYPE_CFLAGS
837M17N_FLT_LIBS
838M17N_FLT_CFLAGS
839LIBOTF_LIBS
840LIBOTF_CFLAGS
841XFT_LIBS
842XFT_CFLAGS
843FONTCONFIG_LIBS
844FONTCONFIG_CFLAGS
845LIBXMU
846LIBXTR6
847LIBGNUTLS_LIBS
848LIBGNUTLS_CFLAGS
849LIBSELINUX_LIBS
850GCONF_LIBS
851GCONF_CFLAGS
852DBUS_OBJ
853DBUS_LIBS
854DBUS_CFLAGS
855GTK_OBJ
856GTK_LIBS
857GTK_CFLAGS
858IMAGEMAGICK_LIBS
859IMAGEMAGICK_CFLAGS
860RSVG_LIBS
861RSVG_CFLAGS
862VMLIMIT_OBJ
863GMALLOC_OBJ
864HAVE_XSERVER
865LIB_STANDARD
866NS_SUPPORT
867NS_OBJ
868TEMACS_LDFLAGS2
869LD_SWITCH_X_SITE_AUX_RPATH
870LD_SWITCH_X_SITE_AUX
871XMKMF
872DEPFLAGS
873MKDEPDIR
067d23c9
KY
874CFLAGS_SOUND
875ALSA_LIBS
876ALSA_CFLAGS
877PKG_CONFIG
878LIBSOUND
879START_FILES
880LIB_MATH
881CRT_DIR
882LIBS_SYSTEM
883C_SWITCH_SYSTEM
884UNEXEC_OBJ
885C_SWITCH_MACHINE
886LD_SWITCH_SYSTEM
887CANNOT_DUMP
96f129d5 888HAVE_MAKEINFO
067d23c9
KY
889GZIP_PROG
890INSTALL_INFO
067d23c9
KY
891C_WARNINGS_SWITCH
892EGREP
893GREP
894CPP
743c80a7
PE
895RANLIB
896am__fastdepCC_FALSE
897am__fastdepCC_TRUE
898CCDEPMODE
899AMDEPBACKSLASH
900AMDEP_FALSE
901AMDEP_TRUE
902am__quote
903am__include
904DEPDIR
067d23c9
KY
905OBJEXT
906EXEEXT
907ac_ct_CC
908CPPFLAGS
909LDFLAGS
910CFLAGS
911CC
912host_os
913host_vendor
914host_cpu
915host
916build_os
917build_vendor
918build_cpu
919build
920PROFILING_CFLAGS
921MAINT
922GZIP_INFO
743c80a7
PE
923am__untar
924am__tar
925AMTAR
926am__leading_dot
927SET_MAKE
928AWK
929mkdir_p
930MKDIR_P
931INSTALL_STRIP_PROGRAM
932STRIP
933install_sh
934MAKEINFO
935AUTOHEADER
936AUTOMAKE
937AUTOCONF
938ACLOCAL
939VERSION
940PACKAGE
941CYGPATH_W
942am__isrc
943INSTALL_DATA
944INSTALL_SCRIPT
945INSTALL_PROGRAM
067d23c9
KY
946target_alias
947host_alias
948build_alias
949LIBS
950ECHO_T
951ECHO_N
952ECHO_C
953DEFS
954mandir
955localedir
956libdir
957psdir
958pdfdir
959dvidir
960htmldir
961infodir
962docdir
963oldincludedir
964includedir
965localstatedir
966sharedstatedir
967sysconfdir
968datadir
969datarootdir
970libexecdir
971sbindir
972bindir
973program_transform_name
974prefix
975exec_prefix
976PACKAGE_URL
977PACKAGE_BUGREPORT
978PACKAGE_STRING
979PACKAGE_VERSION
980PACKAGE_TARNAME
981PACKAGE_NAME
982PATH_SEPARATOR
983SHELL'
984ac_subst_files='deps_frag
985ns_frag'
986ac_user_opts='
987enable_option_checking
988with_pop
989with_kerberos
990with_kerberos5
991with_hesiod
992with_mmdf
993with_mail_unlink
994with_mailhost
995with_sound
996with_sync_input
997with_x_toolkit
998with_xpm
999with_jpeg
1000with_tiff
1001with_gif
1002with_png
1003with_rsvg
1004with_xml2
1005with_imagemagick
1006with_xft
1007with_libotf
1008with_m17n_flt
1009with_toolkit_scroll_bars
1010with_xaw3d
1011with_xim
1012with_ns
1013with_gpm
1014with_dbus
1015with_gconf
1016with_selinux
1017with_gnutls
1018with_makeinfo
1019with_compress_info
1020with_pkg_config_prog
1021with_crt_dir
4fc5868a 1022with_gameuser
067d23c9
KY
1023with_gnustep_conf
1024enable_ns_self_contained
1025enable_asserts
1026enable_maintainer_mode
1027enable_locallisppath
1028enable_checking
1029enable_use_lisp_union_type
1030enable_profiling
1031enable_autodepend
743c80a7 1032enable_dependency_tracking
067d23c9
KY
1033enable_largefile
1034with_x
1035'
1036 ac_precious_vars='build_alias
1037host_alias
1038target_alias
1039CC
1040CFLAGS
1041LDFLAGS
1042LIBS
1043CPPFLAGS
1044CPP
d6974efa
PE
1045CPPFLAGS
1046CPP
1047CPPFLAGS
067d23c9
KY
1048XMKMF'
1049
1050
1051# Initialize some variables set by options.
1052ac_init_help=
1053ac_init_version=false
1054ac_unrecognized_opts=
1055ac_unrecognized_sep=
1056# The variables have the same names as the options, with
1057# dashes changed to underlines.
1058cache_file=/dev/null
1059exec_prefix=NONE
1060no_create=
1061no_recursion=
1062prefix=NONE
1063program_prefix=NONE
1064program_suffix=NONE
1065program_transform_name=s,x,x,
1066silent=
1067site=
1068srcdir=
1069verbose=
1070x_includes=NONE
1071x_libraries=NONE
1072
1073# Installation directory options.
1074# These are left unexpanded so users can "make install exec_prefix=/foo"
1075# and all the variables that are supposed to be based on exec_prefix
1076# by default will actually change.
1077# Use braces instead of parens because sh, perl, etc. also accept them.
1078# (The list follows the same order as the GNU Coding Standards.)
1079bindir='${exec_prefix}/bin'
1080sbindir='${exec_prefix}/sbin'
1081libexecdir='${exec_prefix}/libexec'
1082datarootdir='${prefix}/share'
1083datadir='${datarootdir}'
1084sysconfdir='${prefix}/etc'
1085sharedstatedir='${prefix}/com'
1086localstatedir='${prefix}/var'
1087includedir='${prefix}/include'
1088oldincludedir='/usr/include'
1089docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1090infodir='${datarootdir}/info'
1091htmldir='${docdir}'
1092dvidir='${docdir}'
1093pdfdir='${docdir}'
1094psdir='${docdir}'
1095libdir='${exec_prefix}/lib'
1096localedir='${datarootdir}/locale'
1097mandir='${datarootdir}/man'
1098
1099ac_prev=
1100ac_dashdash=
1101for ac_option
1102do
1103 # If the previous option needs an argument, assign it.
1104 if test -n "$ac_prev"; then
1105 eval $ac_prev=\$ac_option
1106 ac_prev=
1107 continue
1108 fi
1109
1110 case $ac_option in
2018939f
AS
1111 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1112 *=) ac_optarg= ;;
1113 *) ac_optarg=yes ;;
067d23c9
KY
1114 esac
1115
1116 # Accept the important Cygnus configure options, so we can diagnose typos.
1117
1118 case $ac_dashdash$ac_option in
1119 --)
1120 ac_dashdash=yes ;;
1121
1122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1123 ac_prev=bindir ;;
1124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1125 bindir=$ac_optarg ;;
1126
1127 -build | --build | --buil | --bui | --bu)
1128 ac_prev=build_alias ;;
1129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1130 build_alias=$ac_optarg ;;
1131
1132 -cache-file | --cache-file | --cache-fil | --cache-fi \
1133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1134 ac_prev=cache_file ;;
1135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1137 cache_file=$ac_optarg ;;
1138
1139 --config-cache | -C)
1140 cache_file=config.cache ;;
1141
1142 -datadir | --datadir | --datadi | --datad)
1143 ac_prev=datadir ;;
1144 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1145 datadir=$ac_optarg ;;
1146
1147 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1148 | --dataroo | --dataro | --datar)
1149 ac_prev=datarootdir ;;
1150 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1151 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1152 datarootdir=$ac_optarg ;;
1153
1154 -disable-* | --disable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1158 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"enable_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval enable_$ac_useropt=no ;;
1169
1170 -docdir | --docdir | --docdi | --doc | --do)
1171 ac_prev=docdir ;;
1172 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1173 docdir=$ac_optarg ;;
1174
1175 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1176 ac_prev=dvidir ;;
1177 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1178 dvidir=$ac_optarg ;;
1179
1180 -enable-* | --enable-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1184 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"enable_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval enable_$ac_useropt=\$ac_optarg ;;
1195
1196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198 | --exec | --exe | --ex)
1199 ac_prev=exec_prefix ;;
1200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202 | --exec=* | --exe=* | --ex=*)
1203 exec_prefix=$ac_optarg ;;
1204
1205 -gas | --gas | --ga | --g)
1206 # Obsolete; use --with-gas.
1207 with_gas=yes ;;
1208
1209 -help | --help | --hel | --he | -h)
1210 ac_init_help=long ;;
1211 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212 ac_init_help=recursive ;;
1213 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214 ac_init_help=short ;;
1215
1216 -host | --host | --hos | --ho)
1217 ac_prev=host_alias ;;
1218 -host=* | --host=* | --hos=* | --ho=*)
1219 host_alias=$ac_optarg ;;
1220
1221 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 ac_prev=htmldir ;;
1223 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 | --ht=*)
1225 htmldir=$ac_optarg ;;
1226
1227 -includedir | --includedir | --includedi | --included | --include \
1228 | --includ | --inclu | --incl | --inc)
1229 ac_prev=includedir ;;
1230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231 | --includ=* | --inclu=* | --incl=* | --inc=*)
1232 includedir=$ac_optarg ;;
1233
1234 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 ac_prev=infodir ;;
1236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237 infodir=$ac_optarg ;;
1238
1239 -libdir | --libdir | --libdi | --libd)
1240 ac_prev=libdir ;;
1241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242 libdir=$ac_optarg ;;
1243
1244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245 | --libexe | --libex | --libe)
1246 ac_prev=libexecdir ;;
1247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248 | --libexe=* | --libex=* | --libe=*)
1249 libexecdir=$ac_optarg ;;
1250
1251 -localedir | --localedir | --localedi | --localed | --locale)
1252 ac_prev=localedir ;;
1253 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254 localedir=$ac_optarg ;;
1255
1256 -localstatedir | --localstatedir | --localstatedi | --localstated \
1257 | --localstate | --localstat | --localsta | --localst | --locals)
1258 ac_prev=localstatedir ;;
1259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261 localstatedir=$ac_optarg ;;
1262
1263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 ac_prev=mandir ;;
1265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266 mandir=$ac_optarg ;;
1267
1268 -nfp | --nfp | --nf)
1269 # Obsolete; use --without-fp.
1270 with_fp=no ;;
1271
1272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273 | --no-cr | --no-c | -n)
1274 no_create=yes ;;
1275
1276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278 no_recursion=yes ;;
1279
1280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282 | --oldin | --oldi | --old | --ol | --o)
1283 ac_prev=oldincludedir ;;
1284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287 oldincludedir=$ac_optarg ;;
1288
1289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 ac_prev=prefix ;;
1291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292 prefix=$ac_optarg ;;
1293
1294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295 | --program-pre | --program-pr | --program-p)
1296 ac_prev=program_prefix ;;
1297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299 program_prefix=$ac_optarg ;;
1300
1301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302 | --program-suf | --program-su | --program-s)
1303 ac_prev=program_suffix ;;
1304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306 program_suffix=$ac_optarg ;;
1307
1308 -program-transform-name | --program-transform-name \
1309 | --program-transform-nam | --program-transform-na \
1310 | --program-transform-n | --program-transform- \
1311 | --program-transform | --program-transfor \
1312 | --program-transfo | --program-transf \
1313 | --program-trans | --program-tran \
1314 | --progr-tra | --program-tr | --program-t)
1315 ac_prev=program_transform_name ;;
1316 -program-transform-name=* | --program-transform-name=* \
1317 | --program-transform-nam=* | --program-transform-na=* \
1318 | --program-transform-n=* | --program-transform-=* \
1319 | --program-transform=* | --program-transfor=* \
1320 | --program-transfo=* | --program-transf=* \
1321 | --program-trans=* | --program-tran=* \
1322 | --progr-tra=* | --program-tr=* | --program-t=*)
1323 program_transform_name=$ac_optarg ;;
1324
1325 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 ac_prev=pdfdir ;;
1327 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328 pdfdir=$ac_optarg ;;
1329
1330 -psdir | --psdir | --psdi | --psd | --ps)
1331 ac_prev=psdir ;;
1332 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333 psdir=$ac_optarg ;;
1334
1335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336 | -silent | --silent | --silen | --sile | --sil)
1337 silent=yes ;;
1338
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 ac_prev=sbindir ;;
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 | --sbi=* | --sb=*)
1343 sbindir=$ac_optarg ;;
1344
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1348 | --sha | --sh)
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 | --sha=* | --sh=*)
1354 sharedstatedir=$ac_optarg ;;
1355
1356 -site | --site | --sit)
1357 ac_prev=site ;;
1358 -site=* | --site=* | --sit=*)
1359 site=$ac_optarg ;;
1360
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 ac_prev=srcdir ;;
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1365
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1372
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1377
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379 verbose=yes ;;
1380
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1383
1384 -with-* | --with-*)
1385 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1388 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1392 *"
1393"with_$ac_useropt"
1394"*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval with_$ac_useropt=\$ac_optarg ;;
1399
1400 -without-* | --without-*)
1401 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1402 # Reject names that are not valid shell variable names.
1403 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1404 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1405 ac_useropt_orig=$ac_useropt
1406 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407 case $ac_user_opts in
1408 *"
1409"with_$ac_useropt"
1410"*) ;;
1411 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412 ac_unrecognized_sep=', ';;
1413 esac
1414 eval with_$ac_useropt=no ;;
1415
1416 --x)
1417 # Obsolete; use --with-x.
1418 with_x=yes ;;
1419
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1426
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1433
2018939f
AS
1434 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1435Try \`$0 --help' for more information"
067d23c9
KY
1436 ;;
1437
1438 *=*)
1439 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440 # Reject names that are not valid shell variable names.
1441 case $ac_envvar in #(
1442 '' | [0-9]* | *[!_$as_cr_alnum]* )
2018939f 1443 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1444 esac
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1447
1448 *)
1449 # FIXME: should be removed in autoconf 3.0.
1450 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6974efa 1453 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1454 ;;
1455
1456 esac
1457done
1458
1459if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2018939f 1461 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1462fi
1463
1464if test -n "$ac_unrecognized_opts"; then
1465 case $enable_option_checking in
1466 no) ;;
2018939f 1467 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1468 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1469 esac
1470fi
1471
1472# Check all directory arguments for consistency.
1473for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1474 datadir sysconfdir sharedstatedir localstatedir includedir \
1475 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1476 libdir localedir mandir
1477do
1478 eval ac_val=\$$ac_var
1479 # Remove trailing slashes.
1480 case $ac_val in
1481 */ )
1482 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483 eval $ac_var=\$ac_val;;
1484 esac
1485 # Be sure to have absolute directory names.
1486 case $ac_val in
1487 [\\/$]* | ?:[\\/]* ) continue;;
1488 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1489 esac
2018939f 1490 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1491done
1492
1493# There might be people who depend on the old broken behavior: `$host'
1494# used to hold the argument of --host etc.
1495# FIXME: To remove some day.
1496build=$build_alias
1497host=$host_alias
1498target=$target_alias
1499
1500# FIXME: To remove some day.
1501if test "x$host_alias" != x; then
1502 if test "x$build_alias" = x; then
1503 cross_compiling=maybe
2018939f
AS
1504 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1505 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1506 elif test "x$build_alias" != "x$host_alias"; then
1507 cross_compiling=yes
1508 fi
1509fi
1510
1511ac_tool_prefix=
1512test -n "$host_alias" && ac_tool_prefix=$host_alias-
1513
1514test "$silent" = yes && exec 6>/dev/null
1515
1516
1517ac_pwd=`pwd` && test -n "$ac_pwd" &&
1518ac_ls_di=`ls -di .` &&
1519ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018939f 1520 as_fn_error $? "working directory cannot be determined"
067d23c9 1521test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2018939f 1522 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1523
1524
1525# Find the source files, if location was not specified.
1526if test -z "$srcdir"; then
1527 ac_srcdir_defaulted=yes
1528 # Try the directory containing this script, then the parent directory.
1529 ac_confdir=`$as_dirname -- "$as_myself" ||
1530$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1531 X"$as_myself" : 'X\(//\)[^/]' \| \
1532 X"$as_myself" : 'X\(//\)$' \| \
1533 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1534$as_echo X"$as_myself" |
1535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536 s//\1/
1537 q
1538 }
1539 /^X\(\/\/\)[^/].*/{
1540 s//\1/
1541 q
1542 }
1543 /^X\(\/\/\)$/{
1544 s//\1/
1545 q
1546 }
1547 /^X\(\/\).*/{
1548 s//\1/
1549 q
1550 }
1551 s/.*/./; q'`
1552 srcdir=$ac_confdir
1553 if test ! -r "$srcdir/$ac_unique_file"; then
1554 srcdir=..
1555 fi
1556else
1557 ac_srcdir_defaulted=no
1558fi
1559if test ! -r "$srcdir/$ac_unique_file"; then
1560 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018939f 1561 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1562fi
1563ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1564ac_abs_confdir=`(
2018939f 1565 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1566 pwd)`
1567# When building in place, set srcdir=.
1568if test "$ac_abs_confdir" = "$ac_pwd"; then
1569 srcdir=.
1570fi
1571# Remove unnecessary trailing slashes from srcdir.
1572# Double slashes in file names in object file debugging info
1573# mess up M-x gdb in Emacs.
1574case $srcdir in
1575*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1576esac
1577for ac_var in $ac_precious_vars; do
1578 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1579 eval ac_env_${ac_var}_value=\$${ac_var}
1580 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1582done
1583
1584#
1585# Report the --help message.
1586#
1587if test "$ac_init_help" = "long"; then
1588 # Omit some internal or obsolete options to make the list less imposing.
1589 # This message is too long to be a string in the A/UX 3.1 sh.
1590 cat <<_ACEOF
1591\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1592
1593Usage: $0 [OPTION]... [VAR=VALUE]...
1594
1595To assign environment variables (e.g., CC, CFLAGS...), specify them as
1596VAR=VALUE. See below for descriptions of some of the useful variables.
1597
1598Defaults for the options are specified in brackets.
1599
1600Configuration:
1601 -h, --help display this help and exit
1602 --help=short display options specific to this package
1603 --help=recursive display the short help of all the included packages
1604 -V, --version display version information and exit
2018939f 1605 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1606 --cache-file=FILE cache test results in FILE [disabled]
1607 -C, --config-cache alias for \`--cache-file=config.cache'
1608 -n, --no-create do not create output files
1609 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1610
1611Installation directories:
1612 --prefix=PREFIX install architecture-independent files in PREFIX
1613 [$ac_default_prefix]
1614 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1615 [PREFIX]
1616
1617By default, \`make install' will install all the files in
1618\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1619an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1620for instance \`--prefix=\$HOME'.
1621
1622For better control, use the options below.
1623
1624Fine tuning of the installation directories:
1625 --bindir=DIR user executables [EPREFIX/bin]
1626 --sbindir=DIR system admin executables [EPREFIX/sbin]
1627 --libexecdir=DIR program executables [EPREFIX/libexec]
1628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1631 --libdir=DIR object code libraries [EPREFIX/lib]
1632 --includedir=DIR C header files [PREFIX/include]
1633 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1634 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1635 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1636 --infodir=DIR info documentation [DATAROOTDIR/info]
1637 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1638 --mandir=DIR man documentation [DATAROOTDIR/man]
1639 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1640 --htmldir=DIR html documentation [DOCDIR]
1641 --dvidir=DIR dvi documentation [DOCDIR]
1642 --pdfdir=DIR pdf documentation [DOCDIR]
1643 --psdir=DIR ps documentation [DOCDIR]
1644_ACEOF
1645
1646 cat <<\_ACEOF
1647
1648Program names:
1649 --program-prefix=PREFIX prepend PREFIX to installed program names
1650 --program-suffix=SUFFIX append SUFFIX to installed program names
1651 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1652
1653X features:
1654 --x-includes=DIR X include files are in DIR
1655 --x-libraries=DIR X library files are in DIR
1656
1657System types:
1658 --build=BUILD configure for building on BUILD [guessed]
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1660_ACEOF
1661fi
1662
1663if test -n "$ac_init_help"; then
1664 case $ac_init_help in
1665 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1666 esac
1667 cat <<\_ACEOF
1668
1669Optional Features:
1670 --disable-option-checking ignore unrecognized --enable/--with options
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1673 --disable-ns-self-contained
1674 disable self contained build under NeXTstep
1675 --enable-asserts compile code with asserts enabled
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-locallisppath=PATH
1680 directories Emacs should search for lisp files
1681 specific to this site
1682 --enable-checking[=LIST]
1683 enable expensive run-time checks. With LIST, enable
1684 only specific categories of checks. Categories are:
1685 all,yes,no. Flags are: stringbytes, stringoverrun,
1686 stringfreelist, xmallocoverrun, conslist
1687 --enable-use-lisp-union-type
1688 use a union for the Lisp_Object data type. This is
1689 only useful for development for catching certain
1690 types of bugs.
1691 --enable-profiling build emacs with profiling support. This might not
1692 work on all platforms
1693 --enable-autodepend automatically generate dependencies to .h-files.
1694 Requires GNU Make and Gcc. Enabled if GNU Make and
1695 Gcc is found
743c80a7
PE
1696 --disable-dependency-tracking speeds up one-time build
1697 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1698 --disable-largefile omit support for large files
1699
1700Optional Packages:
1701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1703 --without-pop don't support POP mail retrieval with movemail
1704 --with-kerberos support Kerberos-authenticated POP
1705 --with-kerberos5 support Kerberos version 5 authenticated POP
1706 --with-hesiod support Hesiod to get the POP server host
1707 --with-mmdf support MMDF mailboxes
1708 --with-mail-unlink unlink, rather than empty, mail spool after reading
1709 --with-mailhost=HOSTNAME
1710 string giving default POP mail host
1711 --without-sound don't compile with sound support
1712 --without-sync-input process async input synchronously
1713 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1714 lucid or athena, motif, no)
1715 --without-xpm don't compile with XPM image support
1716 --without-jpeg don't compile with JPEG image support
1717 --without-tiff don't compile with TIFF image support
1718 --without-gif don't compile with GIF image support
1719 --without-png don't compile with PNG image support
1720 --without-rsvg don't compile with SVG image support
1721 --without-xml2 don't compile with XML parsing support
1722 --without-imagemagick don't compile with ImageMagick image support
1723 --without-xft don't use XFT for anti aliased fonts
1724 --without-libotf don't use libotf for OpenType font support
1725 --without-m17n-flt don't use m17n-flt for text shaping
1726 --without-toolkit-scroll-bars
1727 don't use Motif or Xaw3d scroll bars
1728 --without-xaw3d don't use Xaw3d
1729 --without-xim don't use X11 XIM
1730 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1731 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1732 console
1733 --without-dbus don't compile with D-Bus support
1734 --without-gconf don't compile with GConf support
1735 --without-selinux don't compile with SELinux support
1736 --without-gnutls don't use -lgnutls for SSL/TLS support
1737 --without-makeinfo don't require makeinfo for building manuals
1738 --without-compress-info don't compress the installed Info pages
1739 --with-pkg-config-prog=PATH
1740 path to pkg-config for finding GTK and librsvg
1741 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1742 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1743 --with-gameuser=USER user for shared game score files
067d23c9
KY
1744 --with-gnustep-conf=PATH
1745 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1746 or /etc/GNUstep/GNUstep.conf
1747 --with-x use the X Window System
1748
1749Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1757 CPP C preprocessor
1758 XMKMF Path to xmkmf, Makefile generator for X Window System
1759
1760Use these variables to override the choices made by `configure' or to help
1761it to find libraries and programs with nonstandard names/locations.
1762
1763Report bugs to the package provider.
1764_ACEOF
1765ac_status=$?
1766fi
1767
1768if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1775
1776case "$ac_dir" in
1777.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778*)
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786esac
1787ac_abs_top_builddir=$ac_pwd
1788ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789# for backward compatibility:
1790ac_top_builddir=$ac_top_build_prefix
1791
1792case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805esac
1806ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1821fi
1822
1823test -n "$ac_init_help" && exit $ac_status
1824if $ac_init_version; then
1825 cat <<\_ACEOF
1826emacs configure 24.0.50
d6974efa 1827generated by GNU Autoconf 2.68
067d23c9 1828
2018939f 1829Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1830This configure script is free software; the Free Software Foundation
1831gives unlimited permission to copy, distribute and modify it.
1832_ACEOF
1833 exit
1834fi
1835
1836## ------------------------ ##
1837## Autoconf initialization. ##
1838## ------------------------ ##
1839
1840# ac_fn_c_try_compile LINENO
1841# --------------------------
1842# Try to compile conftest.$ac_ext, and return whether this succeeded.
1843ac_fn_c_try_compile ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867else
1868 $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872fi
d6974efa 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1874 as_fn_set_status $ac_retval
1875
1876} # ac_fn_c_try_compile
1877
067d23c9
KY
1878# ac_fn_c_try_cpp LINENO
1879# ----------------------
1880# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881ac_fn_c_try_cpp ()
1882{
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018939f 1899 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904else
1905 $as_echo "$as_me: failed program was:" >&5
1906sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909fi
d6974efa 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1911 as_fn_set_status $ac_retval
1912
1913} # ac_fn_c_try_cpp
1914
1915# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916# -------------------------------------------------------
1917# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918# the include files in INCLUDES and setting the cache variable VAR
1919# accordingly.
1920ac_fn_c_check_header_mongrel ()
1921{
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d6974efa 1923 if eval \${$3+:} false; then :
067d23c9
KY
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
d6974efa 1926if eval \${$3+:} false; then :
067d23c9
KY
1927 $as_echo_n "(cached) " >&6
1928fi
1929eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
1932else
1933 # Is the header compilable?
1934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935$as_echo_n "checking $2 usability... " >&6; }
1936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938$4
1939#include <$2>
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943else
1944 ac_header_compiler=no
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948$as_echo "$ac_header_compiler" >&6; }
1949
1950# Is the header present?
1951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952$as_echo_n "checking $2 presence... " >&6; }
1953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955#include <$2>
1956_ACEOF
1957if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959else
1960 ac_header_preproc=no
1961fi
2018939f 1962rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
1963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964$as_echo "$ac_header_preproc" >&6; }
1965
1966# So? What about this header?
1967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 ;;
1974 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 ;;
1986esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
d6974efa 1989if eval \${$3+:} false; then :
067d23c9
KY
1990 $as_echo_n "(cached) " >&6
1991else
1992 eval "$3=\$ac_header_compiler"
1993fi
1994eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997fi
d6974efa 1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1999
2000} # ac_fn_c_check_header_mongrel
2001
2002# ac_fn_c_try_run LINENO
2003# ----------------------
2004# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005# that executables *can* be run.
2006ac_fn_c_try_run ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013esac
2014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015$as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023esac
2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025$as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_retval=$ac_status
2037fi
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2040 as_fn_set_status $ac_retval
2041
2042} # ac_fn_c_try_run
2043
2044# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045# -------------------------------------------------------
2046# Tests whether HEADER exists and can be compiled using the include files in
2047# INCLUDES, setting the cache variable VAR accordingly.
2048ac_fn_c_check_header_compile ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052$as_echo_n "checking for $2... " >&6; }
d6974efa 2053if eval \${$3+:} false; then :
067d23c9
KY
2054 $as_echo_n "(cached) " >&6
2055else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059#include <$2>
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063else
2064 eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
d6974efa 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2072
2073} # ac_fn_c_check_header_compile
2074
1fd182f0
PE
2075# ac_fn_c_try_link LINENO
2076# -----------------------
2077# Try to link conftest.$ac_ext, and return whether this succeeded.
2078ac_fn_c_try_link ()
2079{
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext conftest$ac_exeext
2082 if { { ac_try="$ac_link"
2083case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086esac
2087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088$as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2095 fi
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 $as_test_x conftest$ac_exeext
2103 }; then :
2104 ac_retval=0
2105else
2106 $as_echo "$as_me: failed program was:" >&5
2107sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_retval=1
2110fi
2111 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2112 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2113 # interfere with the next link command; also delete a directory that is
2114 # left behind by Apple's compiler. We do this before executing the actions.
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2117 as_fn_set_status $ac_retval
2118
2119} # ac_fn_c_try_link
2120
2018939f
AS
2121# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122# ---------------------------------------------
2123# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124# accordingly.
067d23c9
KY
2125ac_fn_c_check_decl ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018939f
AS
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6974efa 2132if eval \${$3+:} false; then :
067d23c9
KY
2133 $as_echo_n "(cached) " >&6
2134else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2018939f
AS
2141#ifndef $as_decl_name
2142#ifdef __cplusplus
2143 (void) $as_decl_use;
2144#else
2145 (void) $as_decl_name;
2146#endif
067d23c9
KY
2147#endif
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155else
2156 eval "$3=no"
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159fi
2160eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162$as_echo "$ac_res" >&6; }
d6974efa 2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2164
2165} # ac_fn_c_check_decl
2166
2167# ac_fn_c_check_header_preproc LINENO HEADER VAR
2168# ----------------------------------------------
2169# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2170ac_fn_c_check_header_preproc ()
2171{
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174$as_echo_n "checking for $2... " >&6; }
d6974efa 2175if eval \${$3+:} false; then :
067d23c9
KY
2176 $as_echo_n "(cached) " >&6
2177else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h. */
2180#include <$2>
2181_ACEOF
2182if ac_fn_c_try_cpp "$LINENO"; then :
2183 eval "$3=yes"
2184else
2185 eval "$3=no"
2186fi
2018939f 2187rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2188fi
2189eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
d6974efa 2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2193
2194} # ac_fn_c_check_header_preproc
2195
2196# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197# ----------------------------------------------------
2198# Tries to find if the field MEMBER exists in type AGGR, after including
2199# INCLUDES, setting cache variable VAR accordingly.
2200ac_fn_c_check_member ()
2201{
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204$as_echo_n "checking for $2.$3... " >&6; }
d6974efa 2205if eval \${$4+:} false; then :
067d23c9
KY
2206 $as_echo_n "(cached) " >&6
2207else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209/* end confdefs.h. */
2210$5
2211int
2212main ()
2213{
2214static $2 ac_aggr;
2215if (ac_aggr.$3)
2216return 0;
2217 ;
2218 return 0;
2219}
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$4=yes"
2223else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$5
2227int
2228main ()
2229{
2230static $2 ac_aggr;
2231if (sizeof ac_aggr.$3)
2232return 0;
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239else
2240 eval "$4=no"
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245fi
2246eval ac_res=\$$4
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248$as_echo "$ac_res" >&6; }
d6974efa 2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2250
2251} # ac_fn_c_check_member
2252
2253# ac_fn_c_check_func LINENO FUNC VAR
2254# ----------------------------------
2255# Tests whether FUNC exists, setting the cache variable VAR accordingly
2256ac_fn_c_check_func ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260$as_echo_n "checking for $2... " >&6; }
d6974efa 2261if eval \${$3+:} false; then :
067d23c9
KY
2262 $as_echo_n "(cached) " >&6
2263else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265/* end confdefs.h. */
2266/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2268#define $2 innocuous_$2
2269
2270/* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $2 (); below.
2272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2273 <limits.h> exists even on freestanding compilers. */
2274
2275#ifdef __STDC__
2276# include <limits.h>
2277#else
2278# include <assert.h>
2279#endif
2280
2281#undef $2
2282
2283/* Override any GCC internal prototype to avoid an error.
2284 Use char because int might match the return type of a GCC
2285 builtin and then its argument prototype would still apply. */
2286#ifdef __cplusplus
2287extern "C"
2288#endif
2289char $2 ();
2290/* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293#if defined __stub_$2 || defined __stub___$2
2294choke me
2295#endif
2296
2297int
2298main ()
2299{
2300return $2 ();
2301 ;
2302 return 0;
2303}
2304_ACEOF
2305if ac_fn_c_try_link "$LINENO"; then :
2306 eval "$3=yes"
2307else
2308 eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext \
2311 conftest$ac_exeext conftest.$ac_ext
2312fi
2313eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315$as_echo "$ac_res" >&6; }
d6974efa 2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2317
2318} # ac_fn_c_check_func
2319
2320# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2321# -------------------------------------------
2322# Tests whether TYPE exists after having included INCLUDES, setting cache
2323# variable VAR accordingly.
2324ac_fn_c_check_type ()
2325{
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328$as_echo_n "checking for $2... " >&6; }
d6974efa 2329if eval \${$3+:} false; then :
067d23c9
KY
2330 $as_echo_n "(cached) " >&6
2331else
2332 eval "$3=no"
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h. */
2335$4
2336int
2337main ()
2338{
2339if (sizeof ($2))
2340 return 0;
2341 ;
2342 return 0;
2343}
2344_ACEOF
2345if ac_fn_c_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h. */
2348$4
2349int
2350main ()
2351{
2352if (sizeof (($2)))
2353 return 0;
2354 ;
2355 return 0;
2356}
2357_ACEOF
2358if ac_fn_c_try_compile "$LINENO"; then :
2359
2360else
2361 eval "$3=yes"
2362fi
2363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364fi
2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366fi
2367eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369$as_echo "$ac_res" >&6; }
d6974efa 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2371
2372} # ac_fn_c_check_type
2373cat >config.log <<_ACEOF
2374This file contains any messages produced by compilers while
2375running configure, to aid debugging if configure makes a mistake.
2376
2377It was created by emacs $as_me 24.0.50, which was
d6974efa 2378generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2379
2380 $ $0 $@
2381
2382_ACEOF
2383exec 5>>config.log
2384{
2385cat <<_ASUNAME
2386## --------- ##
2387## Platform. ##
2388## --------- ##
2389
2390hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2391uname -m = `(uname -m) 2>/dev/null || echo unknown`
2392uname -r = `(uname -r) 2>/dev/null || echo unknown`
2393uname -s = `(uname -s) 2>/dev/null || echo unknown`
2394uname -v = `(uname -v) 2>/dev/null || echo unknown`
2395
2396/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2397/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2398
2399/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2400/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2401/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2402/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2403/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2404/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2405/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2406
2407_ASUNAME
2408
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 $as_echo "PATH: $as_dir"
2415 done
2416IFS=$as_save_IFS
2417
2418} >&5
2419
2420cat >&5 <<_ACEOF
2421
2422
2423## ----------- ##
2424## Core tests. ##
2425## ----------- ##
2426
2427_ACEOF
2428
2429
2430# Keep a trace of the command line.
2431# Strip out --no-create and --no-recursion so they do not pile up.
2432# Strip out --silent because we don't want to record it for future runs.
2433# Also quote any args containing shell meta-characters.
2434# Make two passes to allow for proper duplicate-argument suppression.
2435ac_configure_args=
2436ac_configure_args0=
2437ac_configure_args1=
2438ac_must_keep_next=false
2439for ac_pass in 1 2
2440do
2441 for ac_arg
2442 do
2443 case $ac_arg in
2444 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2446 | -silent | --silent | --silen | --sile | --sil)
2447 continue ;;
2448 *\'*)
2449 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 esac
2451 case $ac_pass in
2452 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2453 2)
2454 as_fn_append ac_configure_args1 " '$ac_arg'"
2455 if test $ac_must_keep_next = true; then
2456 ac_must_keep_next=false # Got value, back to normal.
2457 else
2458 case $ac_arg in
2459 *=* | --config-cache | -C | -disable-* | --disable-* \
2460 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2461 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2462 | -with-* | --with-* | -without-* | --without-* | --x)
2463 case "$ac_configure_args0 " in
2464 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2465 esac
2466 ;;
2467 -* ) ac_must_keep_next=true ;;
2468 esac
2469 fi
2470 as_fn_append ac_configure_args " '$ac_arg'"
2471 ;;
2472 esac
2473 done
2474done
2475{ ac_configure_args0=; unset ac_configure_args0;}
2476{ ac_configure_args1=; unset ac_configure_args1;}
2477
2478# When interrupted or exit'd, cleanup temporary files, and complete
2479# config.log. We remove comments because anyway the quotes in there
2480# would cause problems or look ugly.
2481# WARNING: Use '\'' to represent an apostrophe within the trap.
2482# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2483trap 'exit_status=$?
2484 # Save into config.log some information that might help in debugging.
2485 {
2486 echo
2487
2018939f 2488 $as_echo "## ---------------- ##
067d23c9 2489## Cache variables. ##
2018939f 2490## ---------------- ##"
067d23c9
KY
2491 echo
2492 # The following way of writing the cache mishandles newlines in values,
2493(
2494 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in #(
2497 *${as_nl}*)
2498 case $ac_var in #(
2499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2500$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2501 esac
2502 case $ac_var in #(
2503 _ | IFS | as_nl) ;; #(
2504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2505 *) { eval $ac_var=; unset $ac_var;} ;;
2506 esac ;;
2507 esac
2508 done
2509 (set) 2>&1 |
2510 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2511 *${as_nl}ac_space=\ *)
2512 sed -n \
2513 "s/'\''/'\''\\\\'\'''\''/g;
2514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2515 ;; #(
2516 *)
2517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 ;;
2519 esac |
2520 sort
2521)
2522 echo
2523
2018939f 2524 $as_echo "## ----------------- ##
067d23c9 2525## Output variables. ##
2018939f 2526## ----------------- ##"
067d23c9
KY
2527 echo
2528 for ac_var in $ac_subst_vars
2529 do
2530 eval ac_val=\$$ac_var
2531 case $ac_val in
2532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 esac
2534 $as_echo "$ac_var='\''$ac_val'\''"
2535 done | sort
2536 echo
2537
2538 if test -n "$ac_subst_files"; then
2018939f 2539 $as_echo "## ------------------- ##
067d23c9 2540## File substitutions. ##
2018939f 2541## ------------------- ##"
067d23c9
KY
2542 echo
2543 for ac_var in $ac_subst_files
2544 do
2545 eval ac_val=\$$ac_var
2546 case $ac_val in
2547 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 esac
2549 $as_echo "$ac_var='\''$ac_val'\''"
2550 done | sort
2551 echo
2552 fi
2553
2554 if test -s confdefs.h; then
2018939f 2555 $as_echo "## ----------- ##
067d23c9 2556## confdefs.h. ##
2018939f 2557## ----------- ##"
067d23c9
KY
2558 echo
2559 cat confdefs.h
2560 echo
2561 fi
2562 test "$ac_signal" != 0 &&
2563 $as_echo "$as_me: caught signal $ac_signal"
2564 $as_echo "$as_me: exit $exit_status"
2565 } >&5
2566 rm -f core *.core core.conftest.* &&
2567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568 exit $exit_status
2569' 0
2570for ac_signal in 1 2 13 15; do
2571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2572done
2573ac_signal=0
2574
2575# confdefs.h avoids OS command line length limits that DEFS can exceed.
2576rm -f -r conftest* confdefs.h
2577
2578$as_echo "/* confdefs.h */" > confdefs.h
2579
2580# Predefined preprocessor variables.
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_NAME "$PACKAGE_NAME"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588_ACEOF
2589
2590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_VERSION "$PACKAGE_VERSION"
2592_ACEOF
2593
2594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_STRING "$PACKAGE_STRING"
2596_ACEOF
2597
2598cat >>confdefs.h <<_ACEOF
2599#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600_ACEOF
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE_URL "$PACKAGE_URL"
2604_ACEOF
2605
2606
2607# Let the site file select an alternate cache file if it wants to.
2608# Prefer an explicitly selected file to automatically selected ones.
2609ac_site_file1=NONE
2610ac_site_file2=NONE
2611if test -n "$CONFIG_SITE"; then
2018939f
AS
2612 # We do not want a PATH search for config.site.
2613 case $CONFIG_SITE in #((
2614 -*) ac_site_file1=./$CONFIG_SITE;;
2615 */*) ac_site_file1=$CONFIG_SITE;;
2616 *) ac_site_file1=./$CONFIG_SITE;;
2617 esac
067d23c9
KY
2618elif test "x$prefix" != xNONE; then
2619 ac_site_file1=$prefix/share/config.site
2620 ac_site_file2=$prefix/etc/config.site
2621else
2622 ac_site_file1=$ac_default_prefix/share/config.site
2623 ac_site_file2=$ac_default_prefix/etc/config.site
2624fi
2625for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2626do
2627 test "x$ac_site_file" = xNONE && continue
2628 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2018939f
AS
2632 . "$ac_site_file" \
2633 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635as_fn_error $? "failed to load site script $ac_site_file
d6974efa 2636See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2637 fi
2638done
2639
2640if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645$as_echo "$as_me: loading cache $cache_file" >&6;}
2646 case $cache_file in
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2649 esac
2650 fi
2651else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653$as_echo "$as_me: creating cache $cache_file" >&6;}
2654 >$cache_file
2655fi
2656
2657as_fn_append ac_header_list " stdlib.h"
2658as_fn_append ac_header_list " unistd.h"
2659as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2660gl_getopt_required=GNU
2661as_fn_append ac_header_list " getopt.h"
067d23c9 2662as_fn_append ac_func_list " alarm"
16c3e636 2663as_fn_append ac_func_list " tzset"
1fd182f0
PE
2664as_fn_append ac_header_list " sys/time.h"
2665as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2666# Check that the precious variables saved in the cache have kept the same
2667# value.
2668ac_cache_corrupted=false
2669for ac_var in $ac_precious_vars; do
2670 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2671 eval ac_new_set=\$ac_env_${ac_var}_set
2672 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2673 eval ac_new_val=\$ac_env_${ac_var}_value
2674 case $ac_old_set,$ac_new_set in
2675 set,)
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2677$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2679 ,set)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2681$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2683 ,);;
2684 *)
2685 if test "x$ac_old_val" != "x$ac_new_val"; then
2686 # differences in whitespace do not lead to failure.
2687 ac_old_val_w=`echo x $ac_old_val`
2688 ac_new_val_w=`echo x $ac_new_val`
2689 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2691$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2692 ac_cache_corrupted=:
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2695$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2696 eval $ac_var=\$ac_old_val
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2699$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2701$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2702 fi;;
2703 esac
2704 # Pass precious variables to config.status.
2705 if test "$ac_new_set" = set; then
2706 case $ac_new_val in
2707 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2708 *) ac_arg=$ac_var=$ac_new_val ;;
2709 esac
2710 case " $ac_configure_args " in
2711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2712 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2713 esac
2714 fi
2715done
2716if $ac_cache_corrupted; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2720$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 2721 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
2722fi
2723## -------------------- ##
2724## Main body of script. ##
2725## -------------------- ##
2726
2727ac_ext=c
2728ac_cpp='$CPP $CPPFLAGS'
2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2735
2736
743c80a7 2737am__api_version='1.11'
067d23c9 2738
743c80a7
PE
2739ac_aux_dir=
2740for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2741 if test -f "$ac_dir/install-sh"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/install-sh -c"
2744 break
2745 elif test -f "$ac_dir/install.sh"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/install.sh -c"
2748 break
2749 elif test -f "$ac_dir/shtool"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/shtool install -c"
2752 break
2753 fi
2754done
2755if test -z "$ac_aux_dir"; then
2756 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757fi
067d23c9 2758
743c80a7
PE
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 2766
067d23c9 2767
743c80a7
PE
2768# Find a good install program. We prefer a C program (faster),
2769# so one script is as good as another. But avoid the broken or
2770# incompatible versions:
2771# SysV /etc/install, /usr/sbin/install
2772# SunOS /usr/etc/install
2773# IRIX /sbin/install
2774# AIX /bin/install
2775# AmigaOS /C/install, which installs bootblocks on floppy discs
2776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779# OS/2's system install, which has a completely different semantic
2780# ./install, which can be erroneously created by make from ./install.sh.
2781# Reject install programs that cannot install multiple files.
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783$as_echo_n "checking for a BSD-compatible install... " >&6; }
2784if test -z "$INSTALL"; then
d6974efa 2785if ${ac_cv_path_install+:} false; then :
743c80a7
PE
2786 $as_echo_n "(cached) " >&6
2787else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 # Account for people who put trailing slashes in PATH elements.
2794case $as_dir/ in #((
2795 ./ | .// | /[cC]/* | \
2796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798 /usr/ucb/* ) ;;
2799 *)
2800 # OSF1 and SCO ODT 3.0 have their own names for install.
2801 # Don't use installbsd from OSF since it installs stuff as root
2802 # by default.
2803 for ac_prog in ginstall scoinst install; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2806 if test $ac_prog = install &&
2807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808 # AIX install. It has an incompatible calling convention.
2809 :
2810 elif test $ac_prog = install &&
2811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # program-specific install script used by HP pwplus--don't use.
2813 :
2814 else
2815 rm -rf conftest.one conftest.two conftest.dir
2816 echo one > conftest.one
2817 echo two > conftest.two
2818 mkdir conftest.dir
2819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820 test -s conftest.one && test -s conftest.two &&
2821 test -s conftest.dir/conftest.one &&
2822 test -s conftest.dir/conftest.two
2823 then
2824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825 break 3
2826 fi
2827 fi
2828 fi
2829 done
2830 done
2831 ;;
2832esac
067d23c9 2833
743c80a7
PE
2834 done
2835IFS=$as_save_IFS
067d23c9 2836
743c80a7 2837rm -rf conftest.one conftest.two conftest.dir
067d23c9 2838
067d23c9 2839fi
743c80a7
PE
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2842 else
2843 # As a last resort, use the slow shell script. Don't cache a
2844 # value for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the value is a relative name.
2847 INSTALL=$ac_install_sh
2848 fi
067d23c9 2849fi
743c80a7
PE
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851$as_echo "$INSTALL" >&6; }
067d23c9 2852
743c80a7
PE
2853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854# It thinks the first close brace ends the variable substitution.
2855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 2856
743c80a7 2857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 2858
743c80a7 2859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 2860
743c80a7
PE
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862$as_echo_n "checking whether build environment is sane... " >&6; }
2863# Just in case
2864sleep 1
2865echo timestamp > conftest.file
2866# Reject unsafe characters in $srcdir or the absolute working directory
2867# name. Accept space and tab only in the latter.
2868am_lf='
2869'
2870case `pwd` in
2871 *[\\\"\#\$\&\'\`$am_lf]*)
d6974efa 2872 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
2873esac
2874case $srcdir in
2875 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d6974efa 2876 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 2877esac
067d23c9 2878
743c80a7
PE
2879# Do `set' in a subshell so we don't clobber the current shell's
2880# arguments. Must try -L first in case configure is actually a
2881# symlink; some systems play weird games with the mod time of symlinks
2882# (eg FreeBSD returns the mod time of the symlink's containing
2883# directory).
2884if (
2885 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886 if test "$*" = "X"; then
2887 # -L didn't work.
2888 set X `ls -t "$srcdir/configure" conftest.file`
2889 fi
2890 rm -f conftest.file
2891 if test "$*" != "X $srcdir/configure conftest.file" \
2892 && test "$*" != "X conftest.file $srcdir/configure"; then
2893
2894 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane".
2898 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2899alias in your environment" "$LINENO" 5
2900 fi
067d23c9 2901
743c80a7
PE
2902 test "$2" = conftest.file
2903 )
2904then
2905 # Ok.
2906 :
067d23c9 2907else
743c80a7
PE
2908 as_fn_error $? "newly created file is older than distributed files!
2909Check your system clock" "$LINENO" 5
067d23c9 2910fi
743c80a7
PE
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912$as_echo "yes" >&6; }
2913test "$program_prefix" != NONE &&
2914 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2915# Use a double $ so make ignores it.
2916test "$program_suffix" != NONE &&
2917 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918# Double any \ or $.
2919# By default was `s,x,x', remove it if useless.
2920ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 2922
743c80a7
PE
2923# expand $ac_aux_dir to an absolute path
2924am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 2925
743c80a7
PE
2926if test x"${MISSING+set}" != xset; then
2927 case $am_aux_dir in
2928 *\ * | *\ *)
2929 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930 *)
2931 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932 esac
067d23c9 2933fi
743c80a7
PE
2934# Use eval to expand $SHELL
2935if eval "$MISSING --run true"; then
2936 am_missing_run="$MISSING --run "
067d23c9 2937else
743c80a7
PE
2938 am_missing_run=
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2940$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
2941fi
2942
743c80a7
PE
2943if test x"${install_sh}" != xset; then
2944 case $am_aux_dir in
2945 *\ * | *\ *)
2946 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947 *)
2948 install_sh="\${SHELL} $am_aux_dir/install-sh"
2949 esac
067d23c9
KY
2950fi
2951
743c80a7
PE
2952# Installed binaries are usually stripped using `strip' when the user
2953# run `make install-strip'. However `strip' might not be the right
2954# tool to use in cross-compilation environments, therefore Automake
2955# will honor the `STRIP' environment variable to overrule this program.
2956if test "$cross_compiling" != no; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}strip; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 2962if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 2963 $as_echo_n "(cached) " >&6
067d23c9 2964else
743c80a7
PE
2965 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979done
2980 done
2981IFS=$as_save_IFS
067d23c9
KY
2982
2983fi
067d23c9 2984fi
743c80a7
PE
2985STRIP=$ac_cv_prog_STRIP
2986if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988$as_echo "$STRIP" >&6; }
2989else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
067d23c9
KY
2992fi
2993
2994
067d23c9 2995fi
743c80a7
PE
2996if test -z "$ac_cv_prog_STRIP"; then
2997 ac_ct_STRIP=$STRIP
2998 # Extract the first word of "strip", so it can be a program name with args.
2999set dummy strip; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3002if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3003 $as_echo_n "(cached) " >&6
3004else
3005 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_STRIP="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019done
3020 done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028$as_echo "$ac_ct_STRIP" >&6; }
3029else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034 if test "x$ac_ct_STRIP" = x; then
3035 STRIP=":"
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043 STRIP=$ac_ct_STRIP
3044 fi
3045else
3046 STRIP="$ac_cv_prog_STRIP"
3047fi
3048
3049fi
3050INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054if test -z "$MKDIR_P"; then
d6974efa 3055 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3056 $as_echo_n "(cached) " >&6
3057else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_prog in mkdir gmkdir; do
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067 'mkdir (GNU coreutils) '* | \
3068 'mkdir (coreutils) '* | \
3069 'mkdir (fileutils) '4.1*)
3070 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3071 break 3;;
3072 esac
3073 done
3074 done
3075 done
3076IFS=$as_save_IFS
3077
3078fi
3079
3080 test -d ./--version && rmdir ./--version
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P="$ac_cv_path_mkdir -p"
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 MKDIR_P="$ac_install_sh -d"
3089 fi
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092$as_echo "$MKDIR_P" >&6; }
3093
a451f14b 3094
743c80a7
PE
3095mkdir_p="$MKDIR_P"
3096case $mkdir_p in
3097 [\\/$]* | ?:[\\/]*) ;;
3098 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099esac
3100
3101for ac_prog in gawk mawk nawk awk
3102do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104set dummy $ac_prog; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3107if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3108 $as_echo_n "(cached) " >&6
3109else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124done
3125 done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130AWK=$ac_cv_prog_AWK
3131if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133$as_echo "$AWK" >&6; }
3134else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140 test -n "$AWK" && break
3141done
3142
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145set x ${MAKE-make}
3146ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 3147if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3148 $as_echo_n "(cached) " >&6
3149else
3150 cat >conftest.make <<\_ACEOF
3151SHELL = /bin/sh
3152all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154_ACEOF
3155# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3159 *)
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161esac
3162rm -f conftest.make
3163fi
3164if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166$as_echo "yes" >&6; }
3167 SET_MAKE=
3168else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170$as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3172fi
3173
3174rm -rf .tst 2>/dev/null
3175mkdir .tst 2>/dev/null
3176if test -d .tst; then
3177 am__leading_dot=.
3178else
3179 am__leading_dot=_
3180fi
3181rmdir .tst 2>/dev/null
3182
3183if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status; then
3189 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190 fi
3191fi
3192
3193# test whether we have cygpath
3194if test -z "$CYGPATH_W"; then
3195 if (cygpath --version) >/dev/null 2>/dev/null; then
3196 CYGPATH_W='cygpath -w'
3197 else
3198 CYGPATH_W=echo
3199 fi
3200fi
3201
3202
3203# Define the identity of the package.
3204 PACKAGE='emacs'
3205 VERSION='24.0.50'
3206
3207
3208cat >>confdefs.h <<_ACEOF
3209#define PACKAGE "$PACKAGE"
3210_ACEOF
3211
3212
3213cat >>confdefs.h <<_ACEOF
3214#define VERSION "$VERSION"
3215_ACEOF
3216
3217# Some tools Automake needs.
3218
3219ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233# We need awk for the "check" target. The system "awk" is bad on
3234# some platforms.
3235# Always define AMTAR for backward compatibility.
3236
3237AMTAR=${AMTAR-"${am_missing_run}tar"}
3238
3239am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3240
3241
3242
3243
3244
3245
3246
3247
3248lispdir='${datadir}/emacs/${version}/lisp'
3249locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3250'${datadir}/emacs/site-lisp'
3251lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3252etcdir='${datadir}/emacs/${version}/etc'
3253archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3254docdir='${datadir}/emacs/${version}/etc'
3255gamedir='${localstatedir}/games/emacs'
3256
3257
3258
3259
3260# Check whether --with-pop was given.
3261if test "${with_pop+set}" = set; then :
3262 withval=$with_pop;
3263else
3264 with_pop=yes
3265fi
3266
3267if test "$with_pop" = yes; then
3268 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3269
3270fi
3271
3272
3273# Check whether --with-kerberos was given.
3274if test "${with_kerberos+set}" = set; then :
3275 withval=$with_kerberos;
3276else
3277 with_kerberos=no
3278fi
3279
3280if test "$with_kerberos" != no; then
3281 $as_echo "#define KERBEROS 1" >>confdefs.h
3282
3283fi
3284
3285
3286# Check whether --with-kerberos5 was given.
3287if test "${with_kerberos5+set}" = set; then :
3288 withval=$with_kerberos5;
3289else
3290 with_kerberos5=no
3291fi
3292
3293if test "${with_kerberos5}" != no; then
3294 if test "${with_kerberos}" = no; then
3295 with_kerberos=yes
3296 $as_echo "#define KERBEROS 1" >>confdefs.h
3297
3298 fi
3299
3300$as_echo "#define KERBEROS5 1" >>confdefs.h
3301
3302fi
3303
3304
3305# Check whether --with-hesiod was given.
3306if test "${with_hesiod+set}" = set; then :
3307 withval=$with_hesiod;
3308else
3309 with_hesiod=no
3310fi
3311
3312if test "$with_hesiod" != no; then
3313
3314$as_echo "#define HESIOD 1" >>confdefs.h
3315
3316fi
3317
3318
3319# Check whether --with-mmdf was given.
3320if test "${with_mmdf+set}" = set; then :
3321 withval=$with_mmdf;
3322else
3323 with_mmdf=no
3324fi
3325
3326if test "$with_mmdf" != no; then
3327
3328$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3329
3330fi
3331
3332
3333# Check whether --with-mail-unlink was given.
3334if test "${with_mail_unlink+set}" = set; then :
3335 withval=$with_mail_unlink;
3336else
3337 with_mail_unlink=no
3338fi
3339
3340if test "$with_mail_unlink" != no; then
3341
3342$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3343
3344fi
3345
3346
3347# Check whether --with-mailhost was given.
3348if test "${with_mailhost+set}" = set; then :
3349 withval=$with_mailhost;
3350cat >>confdefs.h <<_ACEOF
3351#define MAILHOST "$withval"
3352_ACEOF
3353
3354fi
3355
3356
3357
067d23c9
KY
3358# Check whether --with-sound was given.
3359if test "${with_sound+set}" = set; then :
3360 withval=$with_sound;
3361else
3362 with_sound=yes
3363fi
3364
3365
3366
3367# Check whether --with-sync-input was given.
3368if test "${with_sync_input+set}" = set; then :
3369 withval=$with_sync_input;
3370else
3371 with_sync_input=yes
3372fi
3373
3374if test "$with_sync_input" = yes; then
3375
3376$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3377
3378fi
3379
3380
3381# Check whether --with-x-toolkit was given.
3382if test "${with_x_toolkit+set}" = set; then :
3383 withval=$with_x_toolkit; case "${withval}" in
3384 y | ye | yes ) val=gtk ;;
3385 n | no ) val=no ;;
3386 l | lu | luc | luci | lucid ) val=lucid ;;
3387 a | at | ath | athe | athen | athena ) val=athena ;;
3388 m | mo | mot | moti | motif ) val=motif ;;
3389 g | gt | gtk ) val=gtk ;;
3390 gtk3 ) val=gtk3 ;;
3391 * )
2018939f 3392as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3393this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3394\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3395 ;;
3396 esac
3397 with_x_toolkit=$val
3398
3399fi
3400
3401
3402
3403# Check whether --with-xpm was given.
3404if test "${with_xpm+set}" = set; then :
3405 withval=$with_xpm;
3406else
3407 with_xpm=yes
3408fi
3409
3410
3411# Check whether --with-jpeg was given.
3412if test "${with_jpeg+set}" = set; then :
3413 withval=$with_jpeg;
3414else
3415 with_jpeg=yes
3416fi
3417
3418
3419# Check whether --with-tiff was given.
3420if test "${with_tiff+set}" = set; then :
3421 withval=$with_tiff;
3422else
3423 with_tiff=yes
3424fi
3425
3426
3427# Check whether --with-gif was given.
3428if test "${with_gif+set}" = set; then :
3429 withval=$with_gif;
3430else
3431 with_gif=yes
3432fi
3433
3434
3435# Check whether --with-png was given.
3436if test "${with_png+set}" = set; then :
3437 withval=$with_png;
3438else
3439 with_png=yes
3440fi
3441
3442
3443# Check whether --with-rsvg was given.
3444if test "${with_rsvg+set}" = set; then :
3445 withval=$with_rsvg;
3446else
3447 with_rsvg=yes
3448fi
3449
3450
3451# Check whether --with-xml2 was given.
3452if test "${with_xml2+set}" = set; then :
3453 withval=$with_xml2;
3454else
3455 with_xml2=yes
3456fi
3457
3458
3459# Check whether --with-imagemagick was given.
3460if test "${with_imagemagick+set}" = set; then :
3461 withval=$with_imagemagick;
3462else
3463 with_imagemagick=yes
3464fi
3465
3466
3467
3468# Check whether --with-xft was given.
3469if test "${with_xft+set}" = set; then :
3470 withval=$with_xft;
3471else
3472 with_xft=yes
3473fi
3474
3475
3476# Check whether --with-libotf was given.
3477if test "${with_libotf+set}" = set; then :
3478 withval=$with_libotf;
3479else
3480 with_libotf=yes
3481fi
3482
3483
3484# Check whether --with-m17n-flt was given.
3485if test "${with_m17n_flt+set}" = set; then :
3486 withval=$with_m17n_flt;
3487else
3488 with_m17n_flt=yes
3489fi
3490
3491
3492
3493# Check whether --with-toolkit-scroll-bars was given.
3494if test "${with_toolkit_scroll_bars+set}" = set; then :
3495 withval=$with_toolkit_scroll_bars;
3496else
3497 with_toolkit_scroll_bars=yes
3498fi
3499
3500
3501# Check whether --with-xaw3d was given.
3502if test "${with_xaw3d+set}" = set; then :
3503 withval=$with_xaw3d;
3504else
3505 with_xaw3d=yes
3506fi
3507
3508
3509# Check whether --with-xim was given.
3510if test "${with_xim+set}" = set; then :
3511 withval=$with_xim;
3512else
3513 with_xim=yes
3514fi
3515
3516
3517# Check whether --with-ns was given.
3518if test "${with_ns+set}" = set; then :
3519 withval=$with_ns;
3520else
3521 with_ns=no
3522fi
3523
3524
3525
3526# Check whether --with-gpm was given.
3527if test "${with_gpm+set}" = set; then :
3528 withval=$with_gpm;
3529else
3530 with_gpm=yes
3531fi
3532
3533
3534# Check whether --with-dbus was given.
3535if test "${with_dbus+set}" = set; then :
3536 withval=$with_dbus;
3537else
3538 with_dbus=yes
3539fi
3540
3541
3542# Check whether --with-gconf was given.
3543if test "${with_gconf+set}" = set; then :
3544 withval=$with_gconf;
3545else
3546 with_gconf=yes
3547fi
3548
3549
3550# Check whether --with-selinux was given.
3551if test "${with_selinux+set}" = set; then :
3552 withval=$with_selinux;
3553else
3554 with_selinux=yes
3555fi
3556
3557
3558# Check whether --with-gnutls was given.
3559if test "${with_gnutls+set}" = set; then :
3560 withval=$with_gnutls;
3561else
3562 with_gnutls=yes
3563fi
3564
3565
3566## For the times when you want to build Emacs but don't have
3567## a suitable makeinfo, and can live without the manuals.
3568
3569# Check whether --with-makeinfo was given.
3570if test "${with_makeinfo+set}" = set; then :
3571 withval=$with_makeinfo;
3572else
3573 with_makeinfo=yes
3574fi
3575
3576
3577## This is an option because I do not know if all info/man support
3578## compressed files, nor how to test if they do so.
3579
3580# Check whether --with-compress-info was given.
3581if test "${with_compress_info+set}" = set; then :
3582 withval=$with_compress_info;
3583else
3584 with_compress_info=yes
3585fi
3586
3587if test $with_compress_info = yes; then
3588 GZIP_INFO=yes
3589else
3590 GZIP_INFO=
3591fi
3592
3593
3594
3595# Check whether --with-pkg-config-prog was given.
3596if test "${with_pkg_config_prog+set}" = set; then :
3597 withval=$with_pkg_config_prog;
3598fi
3599
3600if test "X${with_pkg_config_prog}" != X; then
3601 if test "${with_pkg_config_prog}" != yes; then
3602 PKG_CONFIG="${with_pkg_config_prog}"
3603 fi
3604fi
3605
3606CRT_DIR=
3607
3608# Check whether --with-crt-dir was given.
3609if test "${with_crt_dir+set}" = set; then :
3610 withval=$with_crt_dir;
3611fi
3612
3613CRT_DIR="${with_crt_dir}"
3614
3615
4fc5868a
UM
3616# Check whether --with-gameuser was given.
3617if test "${with_gameuser+set}" = set; then :
3618 withval=$with_gameuser;
3619fi
3620
3621test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3622 && gameuser="${with_gameuser}"
3623test "X$gameuser" = X && gameuser=games
3624
3625
067d23c9
KY
3626# Check whether --with-gnustep-conf was given.
3627if test "${with_gnustep_conf+set}" = set; then :
3628 withval=$with_gnustep_conf;
3629fi
3630
3631test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3632 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3633test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3634 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3635
3636# Check whether --enable-ns-self-contained was given.
3637if test "${enable_ns_self_contained+set}" = set; then :
3638 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3639else
3640 EN_NS_SELF_CONTAINED=yes
3641fi
3642
3643
3644# Check whether --enable-asserts was given.
3645if test "${enable_asserts+set}" = set; then :
3646 enableval=$enable_asserts; USE_XASSERTS=$enableval
3647else
3648 USE_XASSERTS=no
3649fi
3650
3651
3652# Check whether --enable-maintainer-mode was given.
3653if test "${enable_maintainer_mode+set}" = set; then :
3654 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3655else
3656 USE_MAINTAINER_MODE=no
3657fi
3658
3659if test $USE_MAINTAINER_MODE = yes; then
3660 MAINT=
3661else
3662 MAINT=#
3663fi
3664
3665
3666# Check whether --enable-locallisppath was given.
3667if test "${enable_locallisppath+set}" = set; then :
3668 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3669 locallisppath=
3670elif test "${enableval}" != "yes"; then
3671 locallisppath=${enableval}
3672fi
3673fi
3674
3675
3676# Check whether --enable-checking was given.
3677if test "${enable_checking+set}" = set; then :
3678 enableval=$enable_checking; ac_checking_flags="${enableval}"
3679fi
3680
3681IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3682for check in $ac_checking_flags
3683do
3684 case $check in
3685 # these set all the flags to specific states
3686 yes) ac_enable_checking=1 ;;
3687 no) ac_enable_checking= ;
3688 ac_gc_check_stringbytes= ;
3689 ac_gc_check_string_overrun= ;
3690 ac_gc_check_string_free_list= ;
3691 ac_xmalloc_overrun= ;
3692 ac_gc_check_cons_list= ;;
3693 all) ac_enable_checking=1 ;
3694 ac_gc_check_stringbytes=1 ;
3695 ac_gc_check_string_overrun=1 ;
3696 ac_gc_check_string_free_list=1 ;
3697 ac_xmalloc_overrun=1 ;
3698 ac_gc_check_cons_list=1 ;;
3699 # these enable particular checks
3700 stringbytes) ac_gc_check_stringbytes=1 ;;
3701 stringoverrun) ac_gc_check_string_overrun=1 ;;
3702 stringfreelist) ac_gc_check_string_free_list=1 ;;
3703 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3704 conslist) ac_gc_check_cons_list=1 ;;
d6974efa 3705 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
3706 esac
3707done
3708IFS="$ac_save_IFS"
3709
3710if test x$ac_enable_checking != x ; then
3711
3712$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3713
3714fi
3715if test x$ac_gc_check_stringbytes != x ; then
3716
3717$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3718
3719fi
3720if test x$ac_gc_check_stringoverrun != x ; then
3721
3722$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3723
3724fi
3725if test x$ac_gc_check_string_free_list != x ; then
3726
3727$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3728
3729fi
3730if test x$ac_xmalloc_overrun != x ; then
3731
3732$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3733
3734fi
3735if test x$ac_gc_check_cons_list != x ; then
3736
3737$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3738
3739fi
3740
3741# Check whether --enable-use-lisp-union-type was given.
3742if test "${enable_use_lisp_union_type+set}" = set; then :
3743 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3744
3745$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3746
3747fi
3748fi
3749
3750
3751
3752# Check whether --enable-profiling was given.
3753if test "${enable_profiling+set}" = set; then :
3754 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3755fi
3756
3757if test x$ac_enable_profiling != x ; then
3758 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3759else
3760 PROFILING_CFLAGS=
3761fi
3762
3763
3764# Check whether --enable-autodepend was given.
3765if test "${enable_autodepend+set}" = set; then :
3766 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3767else
3768 ac_enable_autodepend=yes
3769fi
3770
3771
3772#### Make srcdir absolute, if it isn't already. It's important to
3773#### avoid running the path through pwd unnecessarily, since pwd can
3774#### give you automounter prefixes, which can go away. We do all this
3775#### so Emacs can find its files when run uninstalled.
3776## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3777unset CDPATH
3778case "${srcdir}" in
3779 /* ) ;;
3780 . )
3781 ## We may be able to use the $PWD environment variable to make this
3782 ## absolute. But sometimes PWD is inaccurate.
3783 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3784 ## but that tested only for a well-formed and valid PWD,
3785 ## it did not object when PWD was well-formed and valid but just wrong.
3786 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3787 then
3788 srcdir="$PWD"
3789 else
3790 srcdir="`(cd ${srcdir}; pwd)`"
3791 fi
3792 ;;
3793 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3794esac
3795
3796#### Check if the source directory already has a configured system in it.
3797if test `pwd` != `(cd ${srcdir} && pwd)` \
3798 && test -f "${srcdir}/src/config.h" ; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3800 as a build directory right now; it has been configured in its own
3801 right. To configure in another directory as well, you MUST
3802 use GNU make. If you do not have GNU make, then you must
3803 now do \`make distclean' in ${srcdir},
3804 and then run $0 again." >&5
3805$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3806 as a build directory right now; it has been configured in its own
3807 right. To configure in another directory as well, you MUST
3808 use GNU make. If you do not have GNU make, then you must
3809 now do \`make distclean' in ${srcdir},
3810 and then run $0 again." >&2;}
3811fi
3812
3813#### Given the configuration name, set machfile and opsysfile to the
3814#### names of the m/*.h and s/*.h files we should use.
3815
3816### Canonicalize the configuration name.
3817
067d23c9
KY
3818# Make sure we can run config.sub.
3819$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 3820 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
3821
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3823$as_echo_n "checking build system type... " >&6; }
d6974efa 3824if ${ac_cv_build+:} false; then :
067d23c9
KY
3825 $as_echo_n "(cached) " >&6
3826else
3827 ac_build_alias=$build_alias
3828test "x$ac_build_alias" = x &&
3829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3830test "x$ac_build_alias" = x &&
2018939f 3831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 3832ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 3833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
3834
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3837$as_echo "$ac_cv_build" >&6; }
3838case $ac_cv_build in
3839*-*-*) ;;
d6974efa 3840*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
3841esac
3842build=$ac_cv_build
3843ac_save_IFS=$IFS; IFS='-'
3844set x $ac_cv_build
3845shift
3846build_cpu=$1
3847build_vendor=$2
3848shift; shift
3849# Remember, the first character of IFS is used to create $*,
3850# except with old shells:
3851build_os=$*
3852IFS=$ac_save_IFS
3853case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3854
3855
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3857$as_echo_n "checking host system type... " >&6; }
d6974efa 3858if ${ac_cv_host+:} false; then :
067d23c9
KY
3859 $as_echo_n "(cached) " >&6
3860else
3861 if test "x$host_alias" = x; then
3862 ac_cv_host=$ac_cv_build
3863else
3864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 3865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
3866fi
3867
3868fi
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3870$as_echo "$ac_cv_host" >&6; }
3871case $ac_cv_host in
3872*-*-*) ;;
d6974efa 3873*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
3874esac
3875host=$ac_cv_host
3876ac_save_IFS=$IFS; IFS='-'
3877set x $ac_cv_host
3878shift
3879host_cpu=$1
3880host_vendor=$2
3881shift; shift
3882# Remember, the first character of IFS is used to create $*,
3883# except with old shells:
3884host_os=$*
3885IFS=$ac_save_IFS
3886case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3887
3888
3889canonical=$host
3890configuration=${host_alias-${build_alias-$host}}
3891
3892
3893
3894### If you add support for a new configuration, add code to this
3895### switch statement to recognize your configuration name and select
3896### the appropriate operating system and machine description files.
3897
3898### You would hope that you could choose an m/*.h file pretty much
3899### based on the machine portion of the configuration name, and an s/*.h
3900### file based on the operating system portion. However, it turns out
3901### that each m/*.h file is pretty manufacturer-specific - for
3902### example mips.h is MIPS
3903### So we basically have to have a special case for each
3904### configuration name.
3905###
3906### As far as handling version numbers on operating systems is
3907### concerned, make sure things will fail in a fixable way. If
3908### /etc/MACHINES doesn't say anything about version numbers, be
3909### prepared to handle anything reasonably. If version numbers
3910### matter, be sure /etc/MACHINES says something about it.
3911
3912machine='' opsys='' unported=no
3913case "${canonical}" in
3914
d6a003a8
AS
3915 ## GNU/Linux ports
3916 *-*-linux-gnu*)
3917 opsys=gnu-linux
3918 case ${canonical} in
3919 alpha*) machine=alpha ;;
3920 s390-*) machine=ibms390 ;;
3921 s390x-*) machine=ibms390x ;;
3922 powerpc*) machine=macppc ;;
3923 sparc*) machine=sparc ;;
3924 ia64*) machine=ia64 ;;
3925 m68k*) machine=m68k ;;
3926 x86_64*) machine=amdx86-64 ;;
3927 esac
3928 ;;
3929
067d23c9
KY
3930 ## FreeBSD ports
3931 *-*-freebsd* )
3932 opsys=freebsd
3933 case "${canonical}" in
3934 alpha*) machine=alpha ;;
3935 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3936 ia64-*) machine=ia64 ;;
3937 i[3456]86-*) machine=intel386 ;;
3938 powerpc-*) machine=macppc ;;
3939 sparc-*) machine=sparc ;;
3940 sparc64-*) machine=sparc ;;
3941 esac
3942 ;;
3943
3944 ## FreeBSD kernel + glibc based userland
3945 *-*-kfreebsd*gnu* )
3946 opsys=gnu-kfreebsd
3947 case "${canonical}" in
3948 alpha*) machine=alpha ;;
3949 amd64-*|x86_64-*) machine=amdx86-64 ;;
3950 ia64-*) machine=ia64 ;;
3951 i[3456]86-*) machine=intel386 ;;
3952 powerpc-*) machine=macppc ;;
3953 sparc-*) machine=sparc ;;
3954 sparc64-*) machine=sparc ;;
3955 esac
3956 ;;
3957
3958 ## NetBSD ports
3959 *-*-netbsd* )
3960 opsys=netbsd
3961 case "${canonical}" in
3962 alpha*) machine=alpha ;;
3963 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3964 i[3456]86-*) machine=intel386 ;;
3965 m68k-*) machine=m68k ;;
3966 powerpc-*) machine=macppc ;;
067d23c9
KY
3967 sparc*-) machine=sparc ;;
3968 vax-*) machine=vax ;;
3969 esac
3970 ;;
3971
3972 ## OpenBSD ports
3973 *-*-openbsd* )
3974 opsys=openbsd
3975 case "${canonical}" in
3976 alpha*) machine=alpha ;;
3977 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3978 i386-*) machine=intel386 ;;
3979 powerpc-*) machine=macppc ;;
3980 sparc*) machine=sparc ;;
3981 vax-*) machine=vax ;;
3982 esac
3983 ;;
3984
067d23c9
KY
3985 ## Apple Darwin / Mac OS X
3986 *-apple-darwin* )
3987 case "${canonical}" in
3988 i[3456]86-* ) machine=intel386 ;;
3989 powerpc-* ) machine=macppc ;;
3990 x86_64-* ) machine=amdx86-64 ;;
3991 * ) unported=yes ;;
3992 esac
3993 opsys=darwin
3994 # Define CPP as follows to make autoconf work correctly.
3995 CPP="${CC-cc} -E -no-cpp-precomp"
3996 # Use fink packages if available.
3997 if test -d /sw/include && test -d /sw/lib; then
3998 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3999 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4000 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4001 fi
4002 ;;
4003
4004 ## HP 9000 series 700 and 800, running HP/UX
4005 hppa*-hp-hpux10.2* )
d6a003a8 4006 opsys=hpux10-20
067d23c9
KY
4007 ;;
4008 hppa*-hp-hpux1[1-9]* )
d6a003a8 4009 opsys=hpux11
067d23c9
KY
4010 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4011 ;;
4012
125c3718
PE
4013 ia64*-hp-hpux1[1-9]* )
4014 machine=hp800 opsys=hpux11
4015 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4016 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4017 CANNOT_DUMP=yes
4018 ;;
4019
4020 hppa*-*-linux-gnu* )
4021 machine=hp800 opsys=gnu-linux
4022 ;;
4023
067d23c9 4024 ## IBM machines
067d23c9
KY
4025 rs6000-ibm-aix4.[23]* )
4026 machine=ibmrs6000 opsys=aix4-2
4027 ;;
4028 powerpc-ibm-aix4.[23]* )
4029 machine=ibmrs6000 opsys=aix4-2
4030 ;;
4031 rs6000-ibm-aix[56]* )
4032 machine=ibmrs6000 opsys=aix4-2
4033 ;;
4034 powerpc-ibm-aix[56]* )
4035 machine=ibmrs6000 opsys=aix4-2
4036 ;;
4037
067d23c9
KY
4038 ## Silicon Graphics machines
4039 ## Iris 4D
4040 mips-sgi-irix6.5 )
4041 machine=iris4d opsys=irix6-5
4042 # Without defining _LANGUAGE_C, things get masked out in the headers
4043 # so that, for instance, grepping for `free' in stdlib.h fails and
4044 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4045 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4046 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4047 ;;
4048
4049 ## Suns
067d23c9
KY
4050 *-sun-solaris* \
4051 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4052 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4053 case "${canonical}" in
4054 i[3456]86-*-* ) machine=intel386 ;;
4055 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4056 sparc* ) machine=sparc ;;
4057 * ) unported=yes ;;
4058 esac
4059 case "${canonical}" in
4060 *-sunos5.6* | *-solaris2.6* )
4061 opsys=sol2-6
4062 NON_GNU_CPP=/usr/ccs/lib/cpp
4063 RANLIB="ar -ts"
4064 ;;
4065 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4066 opsys=sol2-6
4067 emacs_check_sunpro_c=yes
4068 NON_GNU_CPP=/usr/ccs/lib/cpp
4069 ;;
4070 *-sunos5* | *-solaris* )
4071 opsys=sol2-10
4072 emacs_check_sunpro_c=yes
4073 NON_GNU_CPP=/usr/ccs/lib/cpp
4074 ;;
4075 esac
4076 ## Watch out for a compiler that we know will not work.
4077 case "${canonical}" in
4078 *-solaris* | *-sunos5* )
4079 if [ "x$CC" = x/usr/ucb/cc ]; then
4080 ## /usr/ucb/cc doesn't work;
4081 ## we should find some other compiler that does work.
4082 unset CC
4083 fi
4084 ;;
4085 *) ;;
4086 esac
4087 ;;
4088
067d23c9
KY
4089 ## Intel 386 machines where we don't care about the manufacturer.
4090 i[3456]86-*-* )
4091 machine=intel386
4092 case "${canonical}" in
4093 *-cygwin ) opsys=cygwin ;;
4094 *-darwin* ) opsys=darwin
4095 CPP="${CC-cc} -E -no-cpp-precomp"
4096 ;;
067d23c9
KY
4097 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4098 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4099 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4100 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4101 esac
4102 ;;
4103
067d23c9
KY
4104 * )
4105 unported=yes
4106 ;;
4107esac
4108
4109### If the code above didn't choose an operating system, just choose
4110### an operating system based on the configuration name. You really
4111### only want to use this when you have no idea what the right
4112### operating system is; if you know what operating systems a machine
4113### runs, it's cleaner to make it explicit in the case statement
4114### above.
4115if test x"${opsys}" = x; then
4116 case "${canonical}" in
4117 *-gnu* ) opsys=gnu ;;
4118 * )
4119 unported=yes
4120 ;;
4121 esac
4122fi
4123
4124
4125
4126if test $unported = yes; then
2018939f 4127 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4128Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4129fi
4130
d6a003a8
AS
4131if test -n "$machine"; then
4132 machfile="m/${machine}.h"
4133else
4134 machfile=
4135fi
067d23c9
KY
4136opsysfile="s/${opsys}.h"
4137
4138
4139#### Choose a compiler.
4140test -n "$CC" && cc_specified=yes
4141
4142# Save the value of CFLAGS that the user specified.
4143SPECIFIED_CFLAGS="$CFLAGS"
4144
4145ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4152set dummy ${ac_tool_prefix}gcc; ac_word=$2
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4155if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4156 $as_echo_n "(cached) " >&6
4157else
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173 done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178CC=$ac_cv_prog_CC
4179if test -n "$CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181$as_echo "$CC" >&6; }
4182else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185fi
4186
4187
4188fi
4189if test -z "$ac_cv_prog_CC"; then
4190 ac_ct_CC=$CC
4191 # Extract the first word of "gcc", so it can be a program name with args.
4192set dummy gcc; ac_word=$2
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4195if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4196 $as_echo_n "(cached) " >&6
4197else
4198 if test -n "$ac_ct_CC"; then
4199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_ac_ct_CC="gcc"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212done
4213 done
4214IFS=$as_save_IFS
4215
4216fi
4217fi
4218ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219if test -n "$ac_ct_CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221$as_echo "$ac_ct_CC" >&6; }
4222else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224$as_echo "no" >&6; }
4225fi
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231yes:)
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234ac_tool_warned=yes ;;
4235esac
4236 CC=$ac_ct_CC
4237 fi
4238else
4239 CC="$ac_cv_prog_CC"
4240fi
4241
4242if test -z "$CC"; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4245set dummy ${ac_tool_prefix}cc; ac_word=$2
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4248if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4249 $as_echo_n "(cached) " >&6
4250else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC="${ac_tool_prefix}cc"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265done
4266 done
4267IFS=$as_save_IFS
4268
4269fi
4270fi
4271CC=$ac_cv_prog_CC
4272if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274$as_echo "$CC" >&6; }
4275else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277$as_echo "no" >&6; }
4278fi
4279
4280
4281 fi
4282fi
4283if test -z "$CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285set dummy cc; ac_word=$2
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4288if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4289 $as_echo_n "(cached) " >&6
4290else
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293else
4294 ac_prog_rejected=no
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected=yes
4304 continue
4305 fi
4306 ac_cv_prog_CC="cc"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310done
4311 done
4312IFS=$as_save_IFS
4313
4314if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy $ac_cv_prog_CC
4317 shift
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set CC to just the basename; use the full file name.
4322 shift
4323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4324 fi
4325fi
4326fi
4327fi
4328CC=$ac_cv_prog_CC
4329if test -n "$CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331$as_echo "$CC" >&6; }
4332else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334$as_echo "no" >&6; }
4335fi
4336
4337
4338fi
4339if test -z "$CC"; then
4340 if test -n "$ac_tool_prefix"; then
4341 for ac_prog in cl.exe
4342 do
4343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4347if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4348 $as_echo_n "(cached) " >&6
4349else
4350 if test -n "$CC"; then
4351 ac_cv_prog_CC="$CC" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364done
4365 done
4366IFS=$as_save_IFS
4367
4368fi
4369fi
4370CC=$ac_cv_prog_CC
4371if test -n "$CC"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4373$as_echo "$CC" >&6; }
4374else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376$as_echo "no" >&6; }
4377fi
4378
4379
4380 test -n "$CC" && break
4381 done
4382fi
4383if test -z "$CC"; then
4384 ac_ct_CC=$CC
4385 for ac_prog in cl.exe
4386do
4387 # Extract the first word of "$ac_prog", so it can be a program name with args.
4388set dummy $ac_prog; ac_word=$2
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4391if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4392 $as_echo_n "(cached) " >&6
4393else
4394 if test -n "$ac_ct_CC"; then
4395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_ac_ct_CC="$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408done
4409 done
4410IFS=$as_save_IFS
4411
4412fi
4413fi
4414ac_ct_CC=$ac_cv_prog_ac_ct_CC
4415if test -n "$ac_ct_CC"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4417$as_echo "$ac_ct_CC" >&6; }
4418else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420$as_echo "no" >&6; }
4421fi
4422
4423
4424 test -n "$ac_ct_CC" && break
4425done
4426
4427 if test "x$ac_ct_CC" = x; then
4428 CC=""
4429 else
4430 case $cross_compiling:$ac_tool_warned in
4431yes:)
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434ac_tool_warned=yes ;;
4435esac
4436 CC=$ac_ct_CC
4437 fi
4438fi
4439
4440fi
4441
4442
4443test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4445as_fn_error $? "no acceptable C compiler found in \$PATH
d6974efa 4446See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4447
4448# Provide some information about the compiler.
4449$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4450set X $ac_compile
4451ac_compiler=$2
4452for ac_option in --version -v -V -qversion; do
4453 { { ac_try="$ac_compiler $ac_option >&5"
4454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
4458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459$as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4461 ac_status=$?
4462 if test -s conftest.err; then
4463 sed '10a\
4464... rest of stderr output deleted ...
4465 10q' conftest.err >conftest.er1
4466 cat conftest.er1 >&5
4467 fi
4468 rm -f conftest.er1 conftest.err
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }
4471done
4472
4473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474/* end confdefs.h. */
4475
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484ac_clean_files_save=$ac_clean_files
4485ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4486# Try to create an executable without -o first, disregard a.out.
4487# It will help us diagnose broken compilers, and finding out an intuition
4488# of exeext.
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4490$as_echo_n "checking whether the C compiler works... " >&6; }
4491ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4492
4493# The possible output files:
4494ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4495
4496ac_rmfiles=
4497for ac_file in $ac_files
4498do
4499 case $ac_file in
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4502 esac
4503done
4504rm -f $ac_rmfiles
4505
4506if { { ac_try="$ac_link_default"
4507case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510esac
4511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512$as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_link_default") 2>&5
4514 ac_status=$?
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; then :
4517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4518# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4519# in a Makefile. We should not override ac_cv_exeext if it was cached,
4520# so that the user can short-circuit this test for compilers unknown to
4521# Autoconf.
4522for ac_file in $ac_files ''
4523do
4524 test -f "$ac_file" || continue
4525 case $ac_file in
4526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4527 ;;
4528 [ab].out )
4529 # We found the default executable, but exeext='' is most
4530 # certainly right.
4531 break;;
4532 *.* )
4533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4534 then :; else
4535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4536 fi
4537 # We set ac_cv_exeext here because the later test for it is not
4538 # safe: cross compilers may not add the suffix if given an `-o'
4539 # argument, so we may need to know it at that point already.
4540 # Even if this section looks crufty: it has the advantage of
4541 # actually working.
4542 break;;
4543 * )
4544 break;;
4545 esac
4546done
4547test "$ac_cv_exeext" = no && ac_cv_exeext=
4548
4549else
4550 ac_file=''
4551fi
4552if test -z "$ac_file"; then :
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554$as_echo "no" >&6; }
4555$as_echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4560as_fn_error 77 "C compiler cannot create executables
d6974efa 4561See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4562else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564$as_echo "yes" >&6; }
4565fi
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4567$as_echo_n "checking for C compiler default output file name... " >&6; }
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4569$as_echo "$ac_file" >&6; }
4570ac_exeext=$ac_cv_exeext
4571
4572rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4573ac_clean_files=$ac_clean_files_save
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4575$as_echo_n "checking for suffix of executables... " >&6; }
4576if { { ac_try="$ac_link"
4577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582$as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_link") 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
4587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4588# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4589# work properly (i.e., refer to `conftest.exe'), while it won't with
4590# `rm'.
4591for ac_file in conftest.exe conftest conftest.*; do
4592 test -f "$ac_file" || continue
4593 case $ac_file in
4594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4596 break;;
4597 * ) break;;
4598 esac
4599done
4600else
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4603as_fn_error $? "cannot compute suffix of executables: cannot compile and link
d6974efa 4604See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4605fi
4606rm -f conftest conftest$ac_cv_exeext
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4608$as_echo "$ac_cv_exeext" >&6; }
4609
4610rm -f conftest.$ac_ext
4611EXEEXT=$ac_cv_exeext
4612ac_exeext=$EXEEXT
4613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614/* end confdefs.h. */
4615#include <stdio.h>
4616int
4617main ()
4618{
4619FILE *f = fopen ("conftest.out", "w");
4620 return ferror (f) || fclose (f) != 0;
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626ac_clean_files="$ac_clean_files conftest.out"
4627# Check that the compiler produces executables we can run. If not, either
4628# the compiler is broken, or we cross compile.
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4630$as_echo_n "checking whether we are cross compiling... " >&6; }
4631if test "$cross_compiling" != yes; then
4632 { { ac_try="$ac_link"
4633case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636esac
4637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638$as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_link") 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }
4643 if { ac_try='./conftest$ac_cv_exeext'
4644 { { case "(($ac_try" in
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4647esac
4648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649$as_echo "$ac_try_echo"; } >&5
4650 (eval "$ac_try") 2>&5
4651 ac_status=$?
4652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653 test $ac_status = 0; }; }; then
4654 cross_compiling=no
4655 else
4656 if test "$cross_compiling" = maybe; then
4657 cross_compiling=yes
4658 else
4659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4661as_fn_error $? "cannot run C compiled programs.
067d23c9 4662If you meant to cross compile, use \`--host'.
d6974efa 4663See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4664 fi
4665 fi
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4668$as_echo "$cross_compiling" >&6; }
4669
4670rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4671ac_clean_files=$ac_clean_files_save
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4673$as_echo_n "checking for suffix of object files... " >&6; }
d6974efa 4674if ${ac_cv_objext+:} false; then :
067d23c9
KY
4675 $as_echo_n "(cached) " >&6
4676else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679
4680int
4681main ()
4682{
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688rm -f conftest.o conftest.obj
4689if { { ac_try="$ac_compile"
4690case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693esac
4694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695$as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_compile") 2>&5
4697 ac_status=$?
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; }; then :
4700 for ac_file in conftest.o conftest.obj conftest.*; do
4701 test -f "$ac_file" || continue;
4702 case $ac_file in
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4705 break;;
4706 esac
4707done
4708else
4709 $as_echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
4712{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4714as_fn_error $? "cannot compute suffix of object files: cannot compile
d6974efa 4715See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4716fi
4717rm -f conftest.$ac_cv_objext conftest.$ac_ext
4718fi
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4720$as_echo "$ac_cv_objext" >&6; }
4721OBJEXT=$ac_cv_objext
4722ac_objext=$OBJEXT
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4724$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6974efa 4725if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
4726 $as_echo_n "(cached) " >&6
4727else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744else
4745 ac_compiler_gnu=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748ac_cv_c_compiler_gnu=$ac_compiler_gnu
4749
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4752$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4753if test $ac_compiler_gnu = yes; then
4754 GCC=yes
4755else
4756 GCC=
4757fi
4758ac_test_CFLAGS=${CFLAGS+set}
4759ac_save_CFLAGS=$CFLAGS
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4761$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6974efa 4762if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
4763 $as_echo_n "(cached) " >&6
4764else
4765 ac_save_c_werror_flag=$ac_c_werror_flag
4766 ac_c_werror_flag=yes
4767 ac_cv_prog_cc_g=no
4768 CFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_prog_cc_g=yes
4782else
4783 CFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786
4787int
4788main ()
4789{
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795if ac_fn_c_try_compile "$LINENO"; then :
4796
4797else
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4799 CFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_prog_cc_g=yes
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4822$as_echo "$ac_cv_prog_cc_g" >&6; }
4823if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837fi
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4839$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6974efa 4840if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
4841 $as_echo_n "(cached) " >&6
4842else
4843 ac_cv_prog_cc_c89=no
4844ac_save_CC=$CC
4845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h. */
4847#include <stdarg.h>
4848#include <stdio.h>
4849#include <sys/types.h>
4850#include <sys/stat.h>
4851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4852struct buf { int x; };
4853FILE * (*rcsopen) (struct buf *, struct stat *, int);
4854static char *e (p, i)
4855 char **p;
4856 int i;
4857{
4858 return p[i];
4859}
4860static char *f (char * (*g) (char **, int), char **p, ...)
4861{
4862 char *s;
4863 va_list v;
4864 va_start (v,p);
4865 s = g (p, va_arg (v,int));
4866 va_end (v);
4867 return s;
4868}
4869
4870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4871 function prototypes and stuff, but not '\xHH' hex character constants.
4872 These don't provoke an error unfortunately, instead are silently treated
4873 as 'x'. The following induces an error, until -std is added to get
4874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4875 array size at least. It's necessary to write '\x00'==0 to get something
4876 that's true only with -std. */
4877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4878
4879/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4880 inside strings and character constants. */
4881#define FOO(x) 'x'
4882int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4883
4884int test (int i, double x);
4885struct s1 {int (*f) (int a);};
4886struct s2 {int (*f) (double a);};
4887int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4888int argc;
4889char **argv;
4890int
4891main ()
4892{
4893return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4900do
4901 CC="$ac_save_CC $ac_arg"
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_c89=$ac_arg
4904fi
4905rm -f core conftest.err conftest.$ac_objext
4906 test "x$ac_cv_prog_cc_c89" != "xno" && break
4907done
743c80a7
PE
4908rm -f conftest.$ac_ext
4909CC=$ac_save_CC
4910
4911fi
4912# AC_CACHE_VAL
4913case "x$ac_cv_prog_cc_c89" in
4914 x)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4916$as_echo "none needed" >&6; } ;;
4917 xno)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919$as_echo "unsupported" >&6; } ;;
4920 *)
4921 CC="$CC $ac_cv_prog_cc_c89"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4923$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4924esac
4925if test "x$ac_cv_prog_cc_c89" != xno; then :
4926
4927fi
4928
4929ac_ext=c
4930ac_cpp='$CPP $CPPFLAGS'
4931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934DEPDIR="${am__leading_dot}deps"
4935
4936ac_config_commands="$ac_config_commands depfiles"
4937
4938
4939am_make=${MAKE-make}
4940cat > confinc << 'END'
4941am__doit:
4942 @echo this is the am__doit target
4943.PHONY: am__doit
4944END
4945# If we don't find an include directive, just comment out the code.
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4947$as_echo_n "checking for style of include used by $am_make... " >&6; }
4948am__include="#"
4949am__quote=
4950_am_result=none
4951# First try GNU make style include.
4952echo "include confinc" > confmf
4953# Ignore all kinds of additional output from `make'.
4954case `$am_make -s -f confmf 2> /dev/null` in #(
4955*the\ am__doit\ target*)
4956 am__include=include
4957 am__quote=
4958 _am_result=GNU
4959 ;;
4960esac
4961# Now try BSD make style include.
4962if test "$am__include" = "#"; then
4963 echo '.include "confinc"' > confmf
4964 case `$am_make -s -f confmf 2> /dev/null` in #(
4965 *the\ am__doit\ target*)
4966 am__include=.include
4967 am__quote="\""
4968 _am_result=BSD
4969 ;;
4970 esac
4971fi
4972
4973
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4975$as_echo "$_am_result" >&6; }
4976rm -f confinc confmf
4977
4978# Check whether --enable-dependency-tracking was given.
4979if test "${enable_dependency_tracking+set}" = set; then :
4980 enableval=$enable_dependency_tracking;
4981fi
4982
4983if test "x$enable_dependency_tracking" != xno; then
4984 am_depcomp="$ac_aux_dir/depcomp"
4985 AMDEPBACKSLASH='\'
4986fi
4987 if test "x$enable_dependency_tracking" != xno; then
4988 AMDEP_TRUE=
4989 AMDEP_FALSE='#'
4990else
4991 AMDEP_TRUE='#'
4992 AMDEP_FALSE=
4993fi
4994
4995
4996
4997depcc="$CC" am_compiler_list=
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5000$as_echo_n "checking dependency style of $depcc... " >&6; }
d6974efa 5001if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
5002 $as_echo_n "(cached) " >&6
5003else
5004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5005 # We make a subdir and do the tests there. Otherwise we can end up
5006 # making bogus files that we don't know about and never remove. For
5007 # instance it was reported that on HP-UX the gcc test will end up
5008 # making a dummy file named `D' -- because `-MD' means `put the output
5009 # in D'.
5010 mkdir conftest.dir
5011 # Copy depcomp to subdir because otherwise we won't find it if we're
5012 # using a relative directory.
5013 cp "$am_depcomp" conftest.dir
5014 cd conftest.dir
5015 # We will build objects and dependencies in a subdirectory because
5016 # it helps to detect inapplicable dependency modes. For instance
5017 # both Tru64's cc and ICC support -MD to output dependencies as a
5018 # side effect of compilation, but ICC will put the dependencies in
5019 # the current directory while Tru64 will put them in the object
5020 # directory.
5021 mkdir sub
5022
5023 am_cv_CC_dependencies_compiler_type=none
5024 if test "$am_compiler_list" = ""; then
5025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5026 fi
5027 am__universal=false
5028 case " $depcc " in #(
5029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5030 esac
5031
5032 for depmode in $am_compiler_list; do
5033 # Setup a source with many dependencies, because some compilers
5034 # like to wrap large dependency lists on column 80 (with \), and
5035 # we should not choose a depcomp mode which is confused by this.
5036 #
5037 # We need to recreate these files for each test, as the compiler may
5038 # overwrite some of them when testing with obscure command lines.
5039 # This happens at least with the AIX C compiler.
5040 : > sub/conftest.c
5041 for i in 1 2 3 4 5 6; do
5042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5044 # Solaris 8's {/usr,}/bin/sh.
5045 touch sub/conftst$i.h
5046 done
5047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5048
5049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5050 # mode. It turns out that the SunPro C++ compiler does not properly
5051 # handle `-M -o', and we need to detect this. Also, some Intel
5052 # versions had trouble with output in subdirs
5053 am__obj=sub/conftest.${OBJEXT-o}
5054 am__minus_obj="-o $am__obj"
5055 case $depmode in
5056 gcc)
5057 # This depmode causes a compiler race in universal mode.
5058 test "$am__universal" = false || continue
5059 ;;
5060 nosideeffect)
5061 # after this tag, mechanisms are not by side-effect, so they'll
5062 # only be used when explicitly requested
5063 if test "x$enable_dependency_tracking" = xyes; then
5064 continue
5065 else
5066 break
5067 fi
5068 ;;
5069 msvisualcpp | msvcmsys)
5070 # This compiler won't grok `-c -o', but also, the minuso test has
5071 # not run yet. These depmodes are late enough in the game, and
5072 # so weak that their functioning should not be impacted.
5073 am__obj=conftest.${OBJEXT-o}
5074 am__minus_obj=
5075 ;;
5076 none) break ;;
5077 esac
5078 if depmode=$depmode \
5079 source=sub/conftest.c object=$am__obj \
5080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5082 >/dev/null 2>conftest.err &&
5083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5087 # icc doesn't choke on unknown options, it will just issue warnings
5088 # or remarks (even with -Werror). So we grep stderr for any message
5089 # that says an option was ignored or not supported.
5090 # When given -MP, icc 7.0 and 7.1 complain thusly:
5091 # icc: Command line warning: ignoring option '-M'; no argument required
5092 # The diagnosis changed in icc 8.0:
5093 # icc: Command line remark: option '-MP' not supported
5094 if (grep 'ignoring option' conftest.err ||
5095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5096 am_cv_CC_dependencies_compiler_type=$depmode
5097 break
5098 fi
5099 fi
5100 done
5101
5102 cd ..
5103 rm -rf conftest.dir
5104else
5105 am_cv_CC_dependencies_compiler_type=none
5106fi
5107
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5110$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5111CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5112
5113 if
5114 test "x$enable_dependency_tracking" != xno \
5115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5116 am__fastdepCC_TRUE=
5117 am__fastdepCC_FALSE='#'
5118else
5119 am__fastdepCC_TRUE='#'
5120 am__fastdepCC_FALSE=
5121fi
5122
5123
5124if test "x$CC" != xcc; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5126$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5127else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5129$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5130fi
5131set dummy $CC; ac_cc=`$as_echo "$2" |
5132 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
d6974efa 5133if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5134 $as_echo_n "(cached) " >&6
5135else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h. */
5138
5139int
5140main ()
5141{
5142
5143 ;
5144 return 0;
5145}
5146_ACEOF
5147# Make sure it works both with $CC and with simple cc.
5148# We do the test twice because some compilers refuse to overwrite an
5149# existing .o file with -o, though they will create one.
5150ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5151rm -f conftest2.*
5152if { { case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157$as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_try") 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; } &&
5162 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165esac
5166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167$as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_try") 2>&5
5169 ac_status=$?
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; };
5172then
5173 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5174 if test "x$CC" != xcc; then
5175 # Test first that cc exists at all.
5176 if { ac_try='cc -c conftest.$ac_ext >&5'
5177 { { case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180esac
5181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182$as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }; }; then
5187 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5188 rm -f conftest2.*
5189 if { { case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192esac
5193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194$as_echo "$ac_try_echo"; } >&5
5195 (eval "$ac_try") 2>&5
5196 ac_status=$?
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; } &&
5199 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202esac
5203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5204$as_echo "$ac_try_echo"; } >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5208 test $ac_status = 0; };
5209 then
5210 # cc works too.
5211 :
5212 else
5213 # cc exists but doesn't like -o.
5214 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5215 fi
5216 fi
5217 fi
5218else
5219 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5220fi
5221rm -f core conftest*
5222
5223fi
5224if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226$as_echo "yes" >&6; }
5227else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229$as_echo "no" >&6; }
5230
5231$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5232
5233fi
5234
5235# FIXME: we rely on the cache variable name because
5236# there is no other way.
5237set dummy $CC
5238am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5239eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5240if test "$am_t" != yes; then
5241 # Losing compiler, so override with the script.
5242 # FIXME: It is wrong to rewrite CC.
5243 # But if we don't then we get into trouble of one sort or another.
5244 # A longer-term fix would be to have automake use am__CC in this case,
5245 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5246 CC="$am_aux_dir/compile $CC"
5247fi
5248
5249
5250
5251# Initialize gnulib right after verifying that the C compiler works.
5252if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5254set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5257if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5258 $as_echo_n "(cached) " >&6
5259else
5260 if test -n "$RANLIB"; then
5261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274done
5275 done
5276IFS=$as_save_IFS
5277
5278fi
5279fi
5280RANLIB=$ac_cv_prog_RANLIB
5281if test -n "$RANLIB"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5283$as_echo "$RANLIB" >&6; }
5284else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286$as_echo "no" >&6; }
5287fi
5288
5289
5290fi
5291if test -z "$ac_cv_prog_RANLIB"; then
5292 ac_ct_RANLIB=$RANLIB
5293 # Extract the first word of "ranlib", so it can be a program name with args.
5294set dummy ranlib; ac_word=$2
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5297if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5298 $as_echo_n "(cached) " >&6
5299else
5300 if test -n "$ac_ct_RANLIB"; then
5301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_ac_ct_RANLIB="ranlib"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314done
5315 done
5316IFS=$as_save_IFS
067d23c9
KY
5317
5318fi
743c80a7
PE
5319fi
5320ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5321if test -n "$ac_ct_RANLIB"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5323$as_echo "$ac_ct_RANLIB" >&6; }
5324else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327fi
067d23c9 5328
743c80a7
PE
5329 if test "x$ac_ct_RANLIB" = x; then
5330 RANLIB=":"
5331 else
5332 case $cross_compiling:$ac_tool_warned in
5333yes:)
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336ac_tool_warned=yes ;;
5337esac
5338 RANLIB=$ac_ct_RANLIB
5339 fi
5340else
5341 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5342fi
5343
743c80a7 5344
067d23c9
KY
5345ac_ext=c
5346ac_cpp='$CPP $CPPFLAGS'
5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351$as_echo_n "checking how to run the C preprocessor... " >&6; }
5352# On Suns, sometimes $CPP names a directory.
5353if test -n "$CPP" && test -d "$CPP"; then
5354 CPP=
5355fi
5356if test -z "$CPP"; then
d6974efa 5357 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5358 $as_echo_n "(cached) " >&6
5359else
5360 # Double quotes because CPP needs to be expanded
5361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5362 do
5363 ac_preproc_ok=false
5364for ac_c_preproc_warn_flag in '' yes
5365do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379 Syntax error
5380_ACEOF
5381if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383else
5384 # Broken: fails on valid input.
5385continue
5386fi
2018939f 5387rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5388
5389 # OK, works on sane cases. Now check whether nonexistent headers
5390 # can be detected and how.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#include <ac_nonexistent.h>
5394_ACEOF
5395if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: success on invalid input.
5397continue
5398else
5399 # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
2018939f 5403rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5407rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5408if $ac_preproc_ok; then :
5409 break
5410fi
5411
5412 done
5413 ac_cv_prog_CPP=$CPP
5414
5415fi
5416 CPP=$ac_cv_prog_CPP
5417else
5418 ac_cv_prog_CPP=$CPP
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421$as_echo "$CPP" >&6; }
5422ac_preproc_ok=false
5423for ac_c_preproc_warn_flag in '' yes
5424do
5425 # Use a header file that comes with gcc, so configuring glibc
5426 # with a fresh cross-compiler works.
5427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428 # <limits.h> exists even on freestanding compilers.
5429 # On the NeXT, cc -E runs the code through the compiler's parser,
5430 # not just through cpp. "Syntax error" is here to catch this case.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433#ifdef __STDC__
5434# include <limits.h>
5435#else
5436# include <assert.h>
5437#endif
5438 Syntax error
5439_ACEOF
5440if ac_fn_c_try_cpp "$LINENO"; then :
5441
5442else
5443 # Broken: fails on valid input.
5444continue
5445fi
2018939f 5446rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5447
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452#include <ac_nonexistent.h>
5453_ACEOF
5454if ac_fn_c_try_cpp "$LINENO"; then :
5455 # Broken: success on invalid input.
5456continue
5457else
5458 # Passes both tests.
5459ac_preproc_ok=:
5460break
5461fi
2018939f 5462rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5463
5464done
5465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5466rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5467if $ac_preproc_ok; then :
5468
5469else
5470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5472as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 5473See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d6974efa 5485if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5486 $as_echo_n "(cached) " >&6
5487else
5488 if test -z "$GREP"; then
5489 ac_path_GREP_found=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_prog in grep ggrep; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5500# Check for GNU ac_path_GREP and select it if it is found.
5501 # Check for GNU $ac_path_GREP
5502case `"$ac_path_GREP" --version 2>&1` in
5503*GNU*)
5504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5505*)
5506 ac_count=0
5507 $as_echo_n 0123456789 >"conftest.in"
5508 while :
5509 do
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'GREP' >> "conftest.nl"
5514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516 as_fn_arith $ac_count + 1 && ac_count=$as_val
5517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_GREP="$ac_path_GREP"
5520 ac_path_GREP_max=$ac_count
5521 fi
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5524 done
5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526esac
5527
5528 $ac_path_GREP_found && break 3
5529 done
5530 done
5531 done
5532IFS=$as_save_IFS
5533 if test -z "$ac_cv_path_GREP"; then
2018939f 5534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5535 fi
5536else
5537 ac_cv_path_GREP=$GREP
5538fi
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5542$as_echo "$ac_cv_path_GREP" >&6; }
5543 GREP="$ac_cv_path_GREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5547$as_echo_n "checking for egrep... " >&6; }
d6974efa 5548if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5549 $as_echo_n "(cached) " >&6
5550else
5551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5552 then ac_cv_path_EGREP="$GREP -E"
5553 else
5554 if test -z "$EGREP"; then
5555 ac_path_EGREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in egrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5566# Check for GNU ac_path_EGREP and select it if it is found.
5567 # Check for GNU $ac_path_EGREP
5568case `"$ac_path_EGREP" --version 2>&1` in
5569*GNU*)
5570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5571*)
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5575 do
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo 'EGREP' >> "conftest.nl"
5580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_EGREP="$ac_path_EGREP"
5586 ac_path_EGREP_max=$ac_count
5587 fi
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592esac
5593
5594 $ac_path_EGREP_found && break 3
5595 done
5596 done
5597 done
5598IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_EGREP"; then
2018939f 5600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5601 fi
5602else
5603 ac_cv_path_EGREP=$EGREP
5604fi
5605
5606 fi
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5609$as_echo "$ac_cv_path_EGREP" >&6; }
5610 EGREP="$ac_cv_path_EGREP"
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5614$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 5615if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5616 $as_echo_n "(cached) " >&6
5617else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620#include <stdlib.h>
5621#include <stdarg.h>
5622#include <string.h>
5623#include <float.h>
5624
5625int
5626main ()
5627{
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633if ac_fn_c_try_compile "$LINENO"; then :
5634 ac_cv_header_stdc=yes
5635else
5636 ac_cv_header_stdc=no
5637fi
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h. */
5644#include <string.h>
5645
5646_ACEOF
5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "memchr" >/dev/null 2>&1; then :
5649
5650else
5651 ac_cv_header_stdc=no
5652fi
5653rm -f conftest*
5654
5655fi
5656
5657if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h. */
5661#include <stdlib.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "free" >/dev/null 2>&1; then :
5666
5667else
5668 ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676 if test "$cross_compiling" = yes; then :
5677 :
5678else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681#include <ctype.h>
5682#include <stdlib.h>
5683#if ((' ' & 0x0FF) == 0x020)
5684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686#else
5687# define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692#endif
5693
5694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695int
5696main ()
5697{
5698 int i;
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5702 return 2;
5703 return 0;
5704}
5705_ACEOF
5706if ac_fn_c_try_run "$LINENO"; then :
5707
5708else
5709 ac_cv_header_stdc=no
5710fi
5711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
5713fi
5714
5715fi
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5718$as_echo "$ac_cv_header_stdc" >&6; }
5719if test $ac_cv_header_stdc = yes; then
5720
5721$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5722
5723fi
5724
5725# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5727 inttypes.h stdint.h unistd.h
5728do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5731"
2018939f 5732if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
5733 cat >>confdefs.h <<_ACEOF
5734#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735_ACEOF
5736
5737fi
5738
5739done
5740
5741
5742
1fd182f0
PE
5743
5744
067d23c9 5745 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d6974efa 5746if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
5747 MINIX=yes
5748else
5749 MINIX=
5750fi
5751
5752
5753 if test "$MINIX" = yes; then
5754
5755$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5756
5757
5758$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5759
5760
5761$as_echo "#define _MINIX 1" >>confdefs.h
5762
5763 fi
5764
1fd182f0
PE
5765 case "$host_os" in
5766 hpux*)
5767
5768$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5769
5770 ;;
5771 esac
5772
067d23c9
KY
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5775$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d6974efa 5776if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
5777 $as_echo_n "(cached) " >&6
5778else
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */
5781
1fd182f0
PE
5782# define __EXTENSIONS__ 1
5783 $ac_includes_default
067d23c9
KY
5784int
5785main ()
5786{
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_safe_to_define___extensions__=yes
5794else
5795 ac_cv_safe_to_define___extensions__=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5800$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5801 test $ac_cv_safe_to_define___extensions__ = yes &&
5802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5803
5804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5805
5806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5807
5808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5809
5810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5811
5812
5813
1fd182f0
PE
5814
5815
5816
5817
5818
5819
5820
5821 # Code from module arg-nonnull:
5822 # Code from module c++defs:
f737437b 5823 # Code from module dtoastr:
1fd182f0
PE
5824 # Code from module extensions:
5825
e275c824
PE
5826 # Code from module getopt-gnu:
5827 # Code from module getopt-posix:
5828 # Code from module gettext-h:
1fd182f0
PE
5829 # Code from module include_next:
5830 # Code from module intprops:
5831 # Code from module mktime:
5832 # Code from module multiarch:
16c3e636 5833 # Code from module stdbool:
1fd182f0 5834 # Code from module stddef:
16c3e636 5835 # Code from module strftime:
1fd182f0
PE
5836 # Code from module time:
5837 # Code from module time_r:
e275c824 5838 # Code from module unistd:
1fd182f0
PE
5839 # Code from module warn-on-use:
5840
5841
5842# On Suns, sometimes $CPP names a directory.
5843if test -n "$CPP" && test -d "$CPP"; then
5844 CPP=
5845fi
5846
5847## If not using gcc, and on Solaris, and no CPP specified, see if
5848## using a Sun compiler, which needs -Xs to prevent whitespace.
5849if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5850 test x"$CPP" = x; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5852$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
d6974efa 5853 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
5854 $as_echo_n "(cached) " >&6
5855else
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h. */
5858
5859int
5860main ()
5861{
5862#ifndef __SUNPRO_C
5863fail;
5864#endif
5865
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_link "$LINENO"; then :
5871 emacs_cv_sunpro_c=yes
5872else
5873 emacs_cv_sunpro_c=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877fi
5878
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5880$as_echo "$emacs_cv_sunpro_c" >&6; }
5881
5882 if test x"$emacs_cv_sunpro_c" = xyes; then
5883 NON_GNU_CPP="$CC -E -Xs"
5884 fi
5885fi
5886
5887#### Some systems specify a CPP to use unless we are using GCC.
5888#### Now that we know whether we are using GCC, we can decide whether
5889#### to use that one.
5890if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5891then
5892 CPP="$NON_GNU_CPP"
5893fi
5894
5895#### Some systems specify a CC to use unless we are using GCC.
5896#### Now that we know whether we are using GCC, we can decide whether
5897#### to use that one.
5898if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5899 test x$cc_specified != xyes
5900then
5901 CC="$NON_GNU_CC"
5902fi
5903
5904if test x$GCC = xyes; then
5905 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5906else
5907 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5908fi
5909
067d23c9
KY
5910### Use -Wno-pointer-sign if the compiler supports it
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5912$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5913SAVE_CFLAGS="$CFLAGS"
5914CFLAGS="$CFLAGS -Wno-pointer-sign"
5915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h. */
5917
5918int
5919main ()
5920{
5921
5922 ;
5923 return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"; then :
5927 has_option=yes
5928else
5929 has_option=no
5930fi
5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932if test $has_option = yes; then
5933 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5934fi
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5936$as_echo "$has_option" >&6; }
5937CFLAGS="$SAVE_CFLAGS"
5938unset has_option
5939unset SAVE_CFLAGS
5940
5941### Use -Wdeclaration-after-statement if the compiler supports it
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5943$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5944SAVE_CFLAGS="$CFLAGS"
5945CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h. */
5948
5949int
5950main ()
5951{
5952
5953 ;
5954 return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"; then :
5958 has_option=yes
5959else
5960 has_option=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963if test $has_option = yes; then
5964 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5967$as_echo "$has_option" >&6; }
5968CFLAGS="$SAVE_CFLAGS"
5969unset has_option
5970unset SAVE_CFLAGS
5971
5972### Use -Wold-style-definition if the compiler supports it
5973# This can be removed when conversion to standard C is finished.
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5975$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5976SAVE_CFLAGS="$CFLAGS"
5977CFLAGS="$CFLAGS -Wold-style-definition"
5978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h. */
5980
5981int
5982main ()
5983{
5984
5985 ;
5986 return 0;
5987}
5988_ACEOF
5989if ac_fn_c_try_compile "$LINENO"; then :
5990 has_option=yes
5991else
5992 has_option=no
5993fi
5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995if test $has_option = yes; then
5996 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5999$as_echo "$has_option" >&6; }
6000CFLAGS="$SAVE_CFLAGS"
6001unset has_option
6002unset SAVE_CFLAGS
6003
6004### Use -Wimplicit-function-declaration if the compiler supports it
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6006$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6007SAVE_CFLAGS="$CFLAGS"
6008CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h. */
6011
6012int
6013main ()
6014{
6015
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021 has_option=yes
6022else
6023 has_option=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026if test $has_option = yes; then
6027 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6030$as_echo "$has_option" >&6; }
6031CFLAGS="$SAVE_CFLAGS"
6032unset has_option
6033unset SAVE_CFLAGS
6034
6035
6036
6037
6038#### Some other nice autoconf tests.
6039
6040ac_ext=c
6041ac_cpp='$CPP $CPPFLAGS'
6042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6046$as_echo_n "checking how to run the C preprocessor... " >&6; }
6047# On Suns, sometimes $CPP names a directory.
6048if test -n "$CPP" && test -d "$CPP"; then
6049 CPP=
6050fi
6051if test -z "$CPP"; then
d6974efa 6052 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6053 $as_echo_n "(cached) " >&6
6054else
6055 # Double quotes because CPP needs to be expanded
6056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6057 do
6058 ac_preproc_ok=false
6059for ac_c_preproc_warn_flag in '' yes
6060do
6061 # Use a header file that comes with gcc, so configuring glibc
6062 # with a fresh cross-compiler works.
6063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064 # <limits.h> exists even on freestanding compilers.
6065 # On the NeXT, cc -E runs the code through the compiler's parser,
6066 # not just through cpp. "Syntax error" is here to catch this case.
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h. */
6069#ifdef __STDC__
6070# include <limits.h>
6071#else
6072# include <assert.h>
6073#endif
6074 Syntax error
6075_ACEOF
6076if ac_fn_c_try_cpp "$LINENO"; then :
6077
6078else
6079 # Broken: fails on valid input.
6080continue
6081fi
2018939f 6082rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6083
6084 # OK, works on sane cases. Now check whether nonexistent headers
6085 # can be detected and how.
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h. */
6088#include <ac_nonexistent.h>
6089_ACEOF
6090if ac_fn_c_try_cpp "$LINENO"; then :
6091 # Broken: success on invalid input.
6092continue
6093else
6094 # Passes both tests.
6095ac_preproc_ok=:
6096break
6097fi
2018939f 6098rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6099
6100done
6101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6102rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6103if $ac_preproc_ok; then :
6104 break
6105fi
6106
6107 done
6108 ac_cv_prog_CPP=$CPP
6109
6110fi
6111 CPP=$ac_cv_prog_CPP
6112else
6113 ac_cv_prog_CPP=$CPP
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6116$as_echo "$CPP" >&6; }
6117ac_preproc_ok=false
6118for ac_c_preproc_warn_flag in '' yes
6119do
6120 # Use a header file that comes with gcc, so configuring glibc
6121 # with a fresh cross-compiler works.
6122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123 # <limits.h> exists even on freestanding compilers.
6124 # On the NeXT, cc -E runs the code through the compiler's parser,
6125 # not just through cpp. "Syntax error" is here to catch this case.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h. */
6128#ifdef __STDC__
6129# include <limits.h>
6130#else
6131# include <assert.h>
6132#endif
6133 Syntax error
6134_ACEOF
6135if ac_fn_c_try_cpp "$LINENO"; then :
6136
6137else
6138 # Broken: fails on valid input.
6139continue
6140fi
2018939f 6141rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6142
6143 # OK, works on sane cases. Now check whether nonexistent headers
6144 # can be detected and how.
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h. */
6147#include <ac_nonexistent.h>
6148_ACEOF
6149if ac_fn_c_try_cpp "$LINENO"; then :
6150 # Broken: success on invalid input.
6151continue
6152else
6153 # Passes both tests.
6154ac_preproc_ok=:
6155break
6156fi
2018939f 6157rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6158
6159done
6160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6161rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6162if $ac_preproc_ok; then :
6163
6164else
6165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 6167as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 6168See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6169fi
6170
6171ac_ext=c
6172ac_cpp='$CPP $CPPFLAGS'
6173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
067d23c9
KY
6177
6178if test "x$RANLIB" = x; then
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6181set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6184if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6185 $as_echo_n "(cached) " >&6
6186else
6187 if test -n "$RANLIB"; then
6188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201done
6202 done
6203IFS=$as_save_IFS
6204
6205fi
6206fi
6207RANLIB=$ac_cv_prog_RANLIB
6208if test -n "$RANLIB"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6210$as_echo "$RANLIB" >&6; }
6211else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213$as_echo "no" >&6; }
6214fi
6215
6216
6217fi
6218if test -z "$ac_cv_prog_RANLIB"; then
6219 ac_ct_RANLIB=$RANLIB
6220 # Extract the first word of "ranlib", so it can be a program name with args.
6221set dummy ranlib; ac_word=$2
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6224if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6225 $as_echo_n "(cached) " >&6
6226else
6227 if test -n "$ac_ct_RANLIB"; then
6228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6229else
6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231for as_dir in $PATH
6232do
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_RANLIB="ranlib"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6240 fi
6241done
6242 done
6243IFS=$as_save_IFS
6244
6245fi
6246fi
6247ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6248if test -n "$ac_ct_RANLIB"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6250$as_echo "$ac_ct_RANLIB" >&6; }
6251else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253$as_echo "no" >&6; }
6254fi
6255
6256 if test "x$ac_ct_RANLIB" = x; then
6257 RANLIB=":"
6258 else
6259 case $cross_compiling:$ac_tool_warned in
6260yes:)
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263ac_tool_warned=yes ;;
6264esac
6265 RANLIB=$ac_ct_RANLIB
6266 fi
6267else
6268 RANLIB="$ac_cv_prog_RANLIB"
6269fi
6270
6271fi
6272
6273## Although we're running on an amd64 kernel, we're actually compiling for
6274## the x86 architecture. The user should probably have provided an
6275## explicit --build to `configure', but if everything else than the kernel
6276## is running in i386 mode, we can help them out.
6277if test "$machine" = "amdx86-64"; then
6278 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
d6974efa 6279if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6280
6281fi
6282
6283 if test "$ac_cv_have_decl_i386" = "yes"; then
6284 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6285 machine=intel386
6286 machfile="m/${machine}.h"
6287 fi
6288fi
6289
6290# Extract the first word of "install-info", so it can be a program name with args.
6291set dummy install-info; ac_word=$2
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6294if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6295 $as_echo_n "(cached) " >&6
6296else
6297 case $INSTALL_INFO in
6298 [\\/]* | ?:[\\/]*)
6299 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6300 ;;
6301 *)
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313done
6314 done
6315IFS=$as_save_IFS
6316
6317 ;;
6318esac
6319fi
6320INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6321if test -n "$INSTALL_INFO"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6323$as_echo "$INSTALL_INFO" >&6; }
6324else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329
6330# Extract the first word of "install-info", so it can be a program name with args.
6331set dummy install-info; ac_word=$2
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6334if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6335 $as_echo_n "(cached) " >&6
6336else
6337 case $INSTALL_INFO in
6338 [\\/]* | ?:[\\/]*)
6339 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6340 ;;
6341 *)
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in /usr/sbin
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354 done
6355IFS=$as_save_IFS
6356
6357 ;;
6358esac
6359fi
6360INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6361if test -n "$INSTALL_INFO"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6363$as_echo "$INSTALL_INFO" >&6; }
6364else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369
6370# Extract the first word of "install-info", so it can be a program name with args.
6371set dummy install-info; ac_word=$2
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6374if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6375 $as_echo_n "(cached) " >&6
6376else
6377 case $INSTALL_INFO in
6378 [\\/]* | ?:[\\/]*)
6379 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6380 ;;
6381 *)
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in /sbin
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393done
6394 done
6395IFS=$as_save_IFS
6396
6397 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6398 ;;
6399esac
6400fi
6401INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6402if test -n "$INSTALL_INFO"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6404$as_echo "$INSTALL_INFO" >&6; }
6405else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407$as_echo "no" >&6; }
6408fi
6409
6410
6411# Extract the first word of "gzip", so it can be a program name with args.
6412set dummy gzip; ac_word=$2
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6415if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6416 $as_echo_n "(cached) " >&6
6417else
6418 case $GZIP_PROG in
6419 [\\/]* | ?:[\\/]*)
6420 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6421 ;;
6422 *)
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434done
6435 done
6436IFS=$as_save_IFS
6437
6438 ;;
6439esac
6440fi
6441GZIP_PROG=$ac_cv_path_GZIP_PROG
6442if test -n "$GZIP_PROG"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6444$as_echo "$GZIP_PROG" >&6; }
6445else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450
6451
6452
6453## Need makeinfo >= 4.6 (?) to build the manuals.
6454# Extract the first word of "makeinfo", so it can be a program name with args.
6455set dummy makeinfo; ac_word=$2
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6458if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6459 $as_echo_n "(cached) " >&6
6460else
6461 case $MAKEINFO in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477done
6478 done
6479IFS=$as_save_IFS
6480
6481 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6482 ;;
6483esac
6484fi
6485MAKEINFO=$ac_cv_path_MAKEINFO
6486if test -n "$MAKEINFO"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6488$as_echo "$MAKEINFO" >&6; }
6489else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
6492fi
6493
6494
6495if test "$MAKEINFO" != "no" && \
6496 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
6497 MAKEINFO=no
6498fi
6499
6500## Makeinfo is unusual. For a released Emacs, the manuals are
6501## pre-built, and not deleted by the normal clean rules. makeinfo is
6502## therefore in the category of "special tools" not normally required, which
6503## configure does not have to check for (eg autoconf itself).
6504## In a Bazaar checkout on the other hand, the manuals are not included.
6505## So makeinfo is a requirement to build from Bazaar, and configure
6506## should test for it as it does for any other build requirement.
6507## We use the presence of $srcdir/info/emacs to distinguish a release,
6508## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6509HAVE_MAKEINFO=yes
6510
067d23c9 6511if test "$MAKEINFO" = "no"; then
96f129d5 6512 MAKEINFO=makeinfo
067d23c9 6513 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6514 HAVE_MAKEINFO=no
067d23c9 6515 elif test ! -e $srcdir/info/emacs; then
2018939f 6516 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6517source tree does not seem to have pre-built manuals in the \`info' directory.
6518Either install a suitable version of makeinfo, or re-run configure
6519with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6520 fi
6521fi
6522
6523
96f129d5 6524
067d23c9
KY
6525if test x$GCC = xyes; then
6526 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6527 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6528else
6529 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6530 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6531fi
6532
6533
6534late_LDFLAGS=$LDFLAGS
6535if test x$GCC = xyes; then
6536 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6537else
6538 LDFLAGS="$LDFLAGS -znocombreloc"
6539fi
6540
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6542$as_echo_n "checking for -znocombreloc... " >&6; }
6543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h. */
6545
6546int
6547main ()
6548{
6549
6550 ;
6551 return 0;
6552}
6553_ACEOF
6554if ac_fn_c_try_link "$LINENO"; then :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556$as_echo "yes" >&6; }
6557else
6558 LDFLAGS=$late_LDFLAGS
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560$as_echo "no" >&6; }
6561fi
6562rm -f core conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564
6565
6566# The value of CPP is a quoted variable reference, so we need to do this
6567# to get its actual value...
6568CPP=`eval "echo $CPP"`
6569
6570
125c3718 6571test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6572case "$opsys" in
125c3718
PE
6573 your-opsys-here) CANNOT_DUMP=yes ;;
6574esac
6575
6576test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6577
6578$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6579
125c3718 6580
067d23c9
KY
6581
6582
6583
6584UNEXEC_OBJ=unexelf.o
6585case "$opsys" in
6586 # MSDOS uses unexcoff.o
6587 # MSWindows uses unexw32.o
6588 aix4-2)
6589 UNEXEC_OBJ=unexaix.o
6590 ;;
6591 cygwin)
6592 UNEXEC_OBJ=unexcw.o
6593 ;;
6594 darwin)
6595 UNEXEC_OBJ=unexmacosx.o
6596 ;;
6597 hpux10-20 | hpux11)
6598 UNEXEC_OBJ=unexhp9k800.o
6599 ;;
6600 sol2-10)
6601 # Use the Solaris dldump() function, called from unexsol.c, to dump
6602 # emacs, instead of the generic ELF dump code found in unexelf.c.
6603 # The resulting binary has a complete symbol table, and is better
6604 # for debugging and other observability tools (debuggers, pstack, etc).
6605 #
6606 # If you encounter a problem using dldump(), please consider sending
6607 # a message to the OpenSolaris tools-linking mailing list:
6608 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6609 #
6610 # It is likely that dldump() works with older Solaris too, but this has
6611 # not been tested, so for now this change is for Solaris 10 or newer.
6612 UNEXEC_OBJ=unexsol.o
6613 ;;
6614esac
6615
6616LD_SWITCH_SYSTEM=
6617case "$opsys" in
6618 freebsd)
6619 ## Let `ld' find image libs and similar things in /usr/local/lib.
6620 ## The system compiler, GCC, has apparently been modified to not
6621 ## look there, contrary to what a stock GCC would do.
6622 LD_SWITCH_SYSTEM=-L/usr/local/lib
6623 ;;
6624
6625 gnu-linux)
6626 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6627 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6628 ;;
6629
6630 netbsd)
6631 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6632 ;;
6633
6634 openbsd)
6635 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6636 ## otherwise Emacs dumps core on elf systems.
6637 LD_SWITCH_SYSTEM="-Z"
6638 ;;
6639esac
6640
6641
6642ac_link="$ac_link $LD_SWITCH_SYSTEM"
6643
6644## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6645## which has not been defined yet. When this was handled with cpp,
6646## it was expanded to null when configure sourced the s/*.h file.
6647## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6648## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6649## (or somesuch), but because it is supposed to go at the _front_
6650## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6651## Compare with the gnu-linux case below, which added to the end
6652## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6653## LD_SWITCH_SYSTEM_TEMACS.
6654case "$opsys" in
6655 netbsd|openbsd)
6656 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6657 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6658esac
6659
6660
6661C_SWITCH_MACHINE=
6662if test "$machine" = "alpha"; then
6663 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
d6974efa 6664if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6665
6666fi
6667
6668 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6669 ## With ELF, make sure that all common symbols get allocated to in the
6670 ## data section. Otherwise, the dump of temacs may miss variables in
6671 ## the shared library that have been initialized. For example, with
6672 ## GNU libc, __malloc_initialized would normally be resolved to the
6673 ## shared library's .bss section, which is fatal.
6674 if test "x$GCC" = "xyes"; then
6675 C_SWITCH_MACHINE="-fno-common"
6676 else
2018939f 6677 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6678 fi
6679 else
6680 UNEXEC_OBJ=unexalpha.o
6681 fi
6682fi
6683
6684
6685
6686
6687C_SWITCH_SYSTEM=
6688## Some programs in src produce warnings saying certain subprograms
6689## are too complex and need a MAXMEM value greater than 2000 for
6690## additional optimization. --nils@exp-math.uni-essen.de
6691test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6692 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6693## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6694## It is redundant in glibc2, since we define _GNU_SOURCE.
6695
6696
6697
6698LIBS_SYSTEM=
6699case "$opsys" in
6700 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6701 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6702
6703 freebsd) LIBS_SYSTEM="-lutil" ;;
6704
6705 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6706
6707 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6708
6709 ## Motif needs -lgen.
6710 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6711esac
6712
6713
6714
6715### Make sure subsequent tests use flags consistent with the build flags.
6716
6717if test x"${OVERRIDE_CPPFLAGS}" != x; then
6718 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6719else
6720 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6721fi
6722
6723
6724
6725# Check whether --enable-largefile was given.
6726if test "${enable_largefile+set}" = set; then :
6727 enableval=$enable_largefile;
6728fi
6729
6730if test "$enable_largefile" != no; then
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6733$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d6974efa 6734if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
6735 $as_echo_n "(cached) " >&6
6736else
6737 ac_cv_sys_largefile_CC=no
6738 if test "$GCC" != yes; then
6739 ac_save_CC=$CC
6740 while :; do
6741 # IRIX 6.2 and later do not support large files by default,
6742 # so use the C compiler's -n32 option if that helps.
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h. */
6745#include <sys/types.h>
6746 /* Check that off_t can represent 2**63 - 1 correctly.
6747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6748 since some C++ compilers masquerading as C compilers
6749 incorrectly reject 9223372036854775807. */
6750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6752 && LARGE_OFF_T % 2147483647 == 1)
6753 ? 1 : -1];
6754int
6755main ()
6756{
6757
6758 ;
6759 return 0;
6760}
6761_ACEOF
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 break
6764fi
6765rm -f core conftest.err conftest.$ac_objext
6766 CC="$CC -n32"
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 ac_cv_sys_largefile_CC=' -n32'; break
6769fi
6770rm -f core conftest.err conftest.$ac_objext
6771 break
6772 done
6773 CC=$ac_save_CC
6774 rm -f conftest.$ac_ext
6775 fi
6776fi
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6778$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6779 if test "$ac_cv_sys_largefile_CC" != no; then
6780 CC=$CC$ac_cv_sys_largefile_CC
6781 fi
6782
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6784$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d6974efa 6785if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
6786 $as_echo_n "(cached) " >&6
6787else
6788 while :; do
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h. */
6791#include <sys/types.h>
6792 /* Check that off_t can represent 2**63 - 1 correctly.
6793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6794 since some C++ compilers masquerading as C compilers
6795 incorrectly reject 9223372036854775807. */
6796#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6798 && LARGE_OFF_T % 2147483647 == 1)
6799 ? 1 : -1];
6800int
6801main ()
6802{
6803
6804 ;
6805 return 0;
6806}
6807_ACEOF
6808if ac_fn_c_try_compile "$LINENO"; then :
6809 ac_cv_sys_file_offset_bits=no; break
6810fi
6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h. */
6814#define _FILE_OFFSET_BITS 64
6815#include <sys/types.h>
6816 /* Check that off_t can represent 2**63 - 1 correctly.
6817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6818 since some C++ compilers masquerading as C compilers
6819 incorrectly reject 9223372036854775807. */
6820#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6822 && LARGE_OFF_T % 2147483647 == 1)
6823 ? 1 : -1];
6824int
6825main ()
6826{
6827
6828 ;
6829 return 0;
6830}
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"; then :
6833 ac_cv_sys_file_offset_bits=64; break
6834fi
6835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 ac_cv_sys_file_offset_bits=unknown
6837 break
6838done
6839fi
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6841$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6842case $ac_cv_sys_file_offset_bits in #(
6843 no | unknown) ;;
6844 *)
6845cat >>confdefs.h <<_ACEOF
6846#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6847_ACEOF
6848;;
6849esac
6850rm -rf conftest*
6851 if test $ac_cv_sys_file_offset_bits = unknown; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6853$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d6974efa 6854if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
6855 $as_echo_n "(cached) " >&6
6856else
6857 while :; do
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h. */
6860#include <sys/types.h>
6861 /* Check that off_t can represent 2**63 - 1 correctly.
6862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6863 since some C++ compilers masquerading as C compilers
6864 incorrectly reject 9223372036854775807. */
6865#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6867 && LARGE_OFF_T % 2147483647 == 1)
6868 ? 1 : -1];
6869int
6870main ()
6871{
6872
6873 ;
6874 return 0;
6875}
6876_ACEOF
6877if ac_fn_c_try_compile "$LINENO"; then :
6878 ac_cv_sys_large_files=no; break
6879fi
6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882/* end confdefs.h. */
6883#define _LARGE_FILES 1
6884#include <sys/types.h>
6885 /* Check that off_t can represent 2**63 - 1 correctly.
6886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6887 since some C++ compilers masquerading as C compilers
6888 incorrectly reject 9223372036854775807. */
6889#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6891 && LARGE_OFF_T % 2147483647 == 1)
6892 ? 1 : -1];
6893int
6894main ()
6895{
6896
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901if ac_fn_c_try_compile "$LINENO"; then :
6902 ac_cv_sys_large_files=1; break
6903fi
6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 ac_cv_sys_large_files=unknown
6906 break
6907done
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6910$as_echo "$ac_cv_sys_large_files" >&6; }
6911case $ac_cv_sys_large_files in #(
6912 no | unknown) ;;
6913 *)
6914cat >>confdefs.h <<_ACEOF
6915#define _LARGE_FILES $ac_cv_sys_large_files
6916_ACEOF
6917;;
6918esac
6919rm -rf conftest*
6920 fi
6921fi
6922
6923
6924
6925## If user specified a crt-dir, use that unconditionally.
6926if test "X$CRT_DIR" = "X"; then
6927
6928 case "$canonical" in
6929 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6930 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6931 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6932 ## For anything else (eg /usr/lib32), it is up the user to specify
6933 ## the location (bug#5655).
6934 ## Test for crtn.o, not just the directory, because sometimes the
6935 ## directory exists but does not have the relevant files (bug#1287).
6936 ## FIXME better to test for binary compatibility somehow.
6937 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6938 ;;
6939
6940 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6941 esac
6942
6943 case "$opsys" in
6944 hpux10-20) CRT_DIR=/lib ;;
6945 esac
6946
6947 ## Default is /usr/lib.
6948 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6949
6950else
6951
6952 ## Some platforms don't use any of these files, so it is not
6953 ## appropriate to put this test outside the if block.
6954 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 6955 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
6956
6957fi
6958
6959
6960
6961LIB_MATH=-lm
6962LIB_STANDARD=
6963START_FILES=
6964
6965case $opsys in
6966 cygwin )
6967 LIB_MATH=
6968 START_FILES='pre-crt0.o'
6969 ;;
6970 darwin )
6971 ## Adding -lm confuses the dynamic linker, so omit it.
6972 LIB_MATH=
6973 START_FILES='pre-crt0.o'
6974 ;;
6975 freebsd )
6976 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6977 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6978 ;;
6979 gnu-linux | gnu-kfreebsd )
6980 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6981 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6982 ;;
6983 hpux10-20 | hpux11 )
6984 LIB_STANDARD=-lc
6985 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6986 ;;
6987 netbsd | openbsd )
6988 if test -f $CRT_DIR/crti.o; then
6989 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6990 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6991 else
6992 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6993 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6994 fi
6995 ;;
6996esac
6997
6998
6999
7000
7001
7002
7003
7004if test "${with_sound}" != "no"; then
7005 # Sound support for GNU/Linux and the free BSDs.
7006 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7007do :
7008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7010if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7011 cat >>confdefs.h <<_ACEOF
7012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013_ACEOF
7014 have_sound_header=yes
7015fi
7016
7017done
7018
7019 # Emulation library used on NetBSD.
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7021$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
d6974efa 7022if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7023 $as_echo_n "(cached) " >&6
7024else
7025 ac_check_lib_save_LIBS=$LIBS
7026LIBS="-lossaudio $LIBS"
7027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h. */
7029
7030/* Override any GCC internal prototype to avoid an error.
7031 Use char because int might match the return type of a GCC
7032 builtin and then its argument prototype would still apply. */
7033#ifdef __cplusplus
7034extern "C"
7035#endif
7036char _oss_ioctl ();
7037int
7038main ()
7039{
7040return _oss_ioctl ();
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045if ac_fn_c_try_link "$LINENO"; then :
7046 ac_cv_lib_ossaudio__oss_ioctl=yes
7047else
7048 ac_cv_lib_ossaudio__oss_ioctl=no
7049fi
7050rm -f core conftest.err conftest.$ac_objext \
7051 conftest$ac_exeext conftest.$ac_ext
7052LIBS=$ac_check_lib_save_LIBS
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7055$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
d6974efa 7056if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7057 LIBSOUND=-lossaudio
7058else
7059 LIBSOUND=
7060fi
7061
7062
7063
7064 ALSA_REQUIRED=1.0.0
7065 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7066
7067 succeeded=no
7068
7069 # Extract the first word of "pkg-config", so it can be a program name with args.
7070set dummy pkg-config; ac_word=$2
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 7073if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7074 $as_echo_n "(cached) " >&6
7075else
7076 case $PKG_CONFIG in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7079 ;;
7080 *)
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093 done
7094IFS=$as_save_IFS
7095
7096 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7097 ;;
7098esac
7099fi
7100PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7101if test -n "$PKG_CONFIG"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7103$as_echo "$PKG_CONFIG" >&6; }
7104else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109
7110
7111 if test "$PKG_CONFIG" = "no" ; then
7112 HAVE_ALSA=no
7113 else
7114 PKG_CONFIG_MIN_VERSION=0.9.0
7115 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7117$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7118
7119 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7121$as_echo "yes" >&6; }
7122 succeeded=yes
7123
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7125$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7126 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7128$as_echo "$ALSA_CFLAGS" >&6; }
7129
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7131$as_echo_n "checking ALSA_LIBS... " >&6; }
7132 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7134$as_echo "$ALSA_LIBS" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138 ALSA_CFLAGS=""
7139 ALSA_LIBS=""
7140 ## If we have a custom action on failure, don't print errors, but
7141 ## do set a variable so people can do so.
7142 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7143
7144 fi
7145
7146
7147
7148 else
7149 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7150 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7151 fi
7152 fi
7153
7154 if test $succeeded = yes; then
7155 HAVE_ALSA=yes
7156 else
7157 HAVE_ALSA=no
7158 fi
7159
7160 if test $HAVE_ALSA = yes; then
7161 SAVE_CFLAGS="$CFLAGS"
7162 SAVE_LDFLAGS="$LDFLAGS"
7163 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7164 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h. */
7167#include <asoundlib.h>
7168int
7169main ()
7170{
7171snd_lib_error_set_handler (0);
7172 ;
7173 return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_compile "$LINENO"; then :
7177 emacs_alsa_normal=yes
7178else
7179 emacs_alsa_normal=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 if test "$emacs_alsa_normal" != yes; then
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184/* end confdefs.h. */
7185#include <alsa/asoundlib.h>
7186int
7187main ()
7188{
7189snd_lib_error_set_handler (0);
7190 ;
7191 return 0;
7192}
7193_ACEOF
7194if ac_fn_c_try_compile "$LINENO"; then :
7195 emacs_alsa_subdir=yes
7196else
7197 emacs_alsa_subdir=no
7198fi
7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test "$emacs_alsa_subdir" != yes; then
2018939f 7201 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7202 fi
7203 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7204 fi
7205
7206 CFLAGS="$SAVE_CFLAGS"
7207 LDFLAGS="$SAVE_LDFLAGS"
7208 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7209 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7210
7211$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7212
7213 fi
7214
7215 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7216 case "$opsys" in
7217 gnu-linux|freebsd|netbsd)
7218
7219$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7220
7221 ;;
7222 esac
7223 fi
7224
7225
7226fi
7227
7228for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7229 linux/version.h sys/systeminfo.h limits.h \
7230 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7231 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7232 sys/utsname.h pwd.h utmp.h dirent.h util.h
7233do :
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7236if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7237 cat >>confdefs.h <<_ACEOF
7238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239_ACEOF
7240
7241fi
7242
7243done
7244
7245
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7247$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h. */
7250#include <sys/personality.h>
7251int
7252main ()
7253{
7254personality (PER_LINUX32)
7255 ;
7256 return 0;
7257}
7258_ACEOF
7259if ac_fn_c_try_compile "$LINENO"; then :
7260 emacs_cv_personality_linux32=yes
7261else
7262 emacs_cv_personality_linux32=no
7263fi
7264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7266$as_echo "$emacs_cv_personality_linux32" >&6; }
7267
7268if test $emacs_cv_personality_linux32 = yes; then
7269
7270$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7271
7272fi
7273
7274for ac_header in term.h
7275do :
7276 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
d6974efa 7277if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7278 cat >>confdefs.h <<_ACEOF
7279#define HAVE_TERM_H 1
7280_ACEOF
7281
7282fi
7283
7284done
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7287$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 7288if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7289 $as_echo_n "(cached) " >&6
7290else
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h. */
7293#include <stdlib.h>
7294#include <stdarg.h>
7295#include <string.h>
7296#include <float.h>
7297
7298int
7299main ()
7300{
7301
7302 ;
7303 return 0;
7304}
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"; then :
7307 ac_cv_header_stdc=yes
7308else
7309 ac_cv_header_stdc=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312
7313if test $ac_cv_header_stdc = yes; then
7314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h. */
7317#include <string.h>
7318
7319_ACEOF
7320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "memchr" >/dev/null 2>&1; then :
7322
7323else
7324 ac_cv_header_stdc=no
7325fi
7326rm -f conftest*
7327
7328fi
7329
7330if test $ac_cv_header_stdc = yes; then
7331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h. */
7334#include <stdlib.h>
7335
7336_ACEOF
7337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7338 $EGREP "free" >/dev/null 2>&1; then :
7339
7340else
7341 ac_cv_header_stdc=no
7342fi
7343rm -f conftest*
7344
7345fi
7346
7347if test $ac_cv_header_stdc = yes; then
7348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7349 if test "$cross_compiling" = yes; then :
7350 :
7351else
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h. */
7354#include <ctype.h>
7355#include <stdlib.h>
7356#if ((' ' & 0x0FF) == 0x020)
7357# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7358# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7359#else
7360# define ISLOWER(c) \
7361 (('a' <= (c) && (c) <= 'i') \
7362 || ('j' <= (c) && (c) <= 'r') \
7363 || ('s' <= (c) && (c) <= 'z'))
7364# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7365#endif
7366
7367#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7368int
7369main ()
7370{
7371 int i;
7372 for (i = 0; i < 256; i++)
7373 if (XOR (islower (i), ISLOWER (i))
7374 || toupper (i) != TOUPPER (i))
7375 return 2;
7376 return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_run "$LINENO"; then :
7380
7381else
7382 ac_cv_header_stdc=no
7383fi
7384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385 conftest.$ac_objext conftest.beam conftest.$ac_ext
7386fi
7387
7388fi
7389fi
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7391$as_echo "$ac_cv_header_stdc" >&6; }
7392if test $ac_cv_header_stdc = yes; then
7393
7394$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7395
7396fi
7397
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7399$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
d6974efa 7400if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7401 $as_echo_n "(cached) " >&6
7402else
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h. */
7405#include <sys/types.h>
7406#include <sys/time.h>
7407#include <time.h>
7408
7409int
7410main ()
7411{
7412if ((struct tm *) 0)
7413return 0;
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"; then :
7419 ac_cv_header_time=yes
7420else
7421 ac_cv_header_time=no
7422fi
7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7426$as_echo "$ac_cv_header_time" >&6; }
7427if test $ac_cv_header_time = yes; then
7428
7429$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7430
7431fi
7432
7433ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
d6974efa 7434if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7435 ac_have_decl=1
7436else
7437 ac_have_decl=0
7438fi
7439
7440cat >>confdefs.h <<_ACEOF
7441#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7442_ACEOF
7443
7444if test $ac_cv_have_decl_sys_siglist != yes; then
7445 # For Tru64, at least:
7446 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
d6974efa 7447if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7448 ac_have_decl=1
7449else
7450 ac_have_decl=0
7451fi
7452
7453cat >>confdefs.h <<_ACEOF
7454#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7455_ACEOF
7456
7457 if test $ac_cv_have_decl___sys_siglist = yes; then
7458
7459$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7460
7461 fi
7462fi
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7464$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d6974efa 7465if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7466 $as_echo_n "(cached) " >&6
7467else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h. */
7470#include <sys/types.h>
7471#include <sys/wait.h>
7472#ifndef WEXITSTATUS
7473# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7474#endif
7475#ifndef WIFEXITED
7476# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7477#endif
7478
7479int
7480main ()
7481{
7482 int s;
7483 wait (&s);
7484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490 ac_cv_header_sys_wait_h=yes
7491else
7492 ac_cv_header_sys_wait_h=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7497$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7498if test $ac_cv_header_sys_wait_h = yes; then
7499
7500$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7501
7502fi
7503
7504
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7506$as_echo_n "checking for struct utimbuf... " >&6; }
d6974efa 7507if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7508 $as_echo_n "(cached) " >&6
7509else
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h. */
7512#ifdef TIME_WITH_SYS_TIME
7513#include <sys/time.h>
7514#include <time.h>
7515#else
7516#ifdef HAVE_SYS_TIME_H
7517#include <sys/time.h>
7518#else
7519#include <time.h>
7520#endif
7521#endif
7522#ifdef HAVE_UTIME_H
7523#include <utime.h>
7524#endif
7525int
7526main ()
7527{
7528static struct utimbuf x; x.actime = x.modtime;
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"; then :
7534 emacs_cv_struct_utimbuf=yes
7535else
7536 emacs_cv_struct_utimbuf=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7541$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7542if test $emacs_cv_struct_utimbuf = yes; then
7543
7544$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7545
7546fi
7547
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7549$as_echo_n "checking return type of signal handlers... " >&6; }
d6974efa 7550if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7551 $as_echo_n "(cached) " >&6
7552else
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554/* end confdefs.h. */
7555#include <sys/types.h>
7556#include <signal.h>
7557
7558int
7559main ()
7560{
7561return *(signal (0, 0)) (0) == 1;
7562 ;
7563 return 0;
7564}
7565_ACEOF
7566if ac_fn_c_try_compile "$LINENO"; then :
7567 ac_cv_type_signal=int
7568else
7569 ac_cv_type_signal=void
7570fi
7571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7574$as_echo "$ac_cv_type_signal" >&6; }
7575
7576cat >>confdefs.h <<_ACEOF
7577#define RETSIGTYPE $ac_cv_type_signal
7578_ACEOF
7579
7580
7581
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7583$as_echo_n "checking for speed_t... " >&6; }
d6974efa 7584if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7585 $as_echo_n "(cached) " >&6
7586else
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h. */
7589#include <termios.h>
7590int
7591main ()
7592{
7593speed_t x = 1;
7594 ;
7595 return 0;
7596}
7597_ACEOF
7598if ac_fn_c_try_compile "$LINENO"; then :
7599 emacs_cv_speed_t=yes
7600else
7601 emacs_cv_speed_t=no
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604fi
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7606$as_echo "$emacs_cv_speed_t" >&6; }
7607if test $emacs_cv_speed_t = yes; then
7608
7609$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7610
7611fi
7612
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7614$as_echo_n "checking for struct timeval... " >&6; }
d6974efa 7615if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7616 $as_echo_n "(cached) " >&6
7617else
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h. */
7620#ifdef TIME_WITH_SYS_TIME
7621#include <sys/time.h>
7622#include <time.h>
7623#else
7624#ifdef HAVE_SYS_TIME_H
7625#include <sys/time.h>
7626#else
7627#include <time.h>
7628#endif
7629#endif
7630int
7631main ()
7632{
7633static struct timeval x; x.tv_sec = x.tv_usec;
7634 ;
7635 return 0;
7636}
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"; then :
7639 emacs_cv_struct_timeval=yes
7640else
7641 emacs_cv_struct_timeval=no
7642fi
7643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7646$as_echo "$emacs_cv_struct_timeval" >&6; }
7647HAVE_TIMEVAL=$emacs_cv_struct_timeval
7648if test $emacs_cv_struct_timeval = yes; then
7649
7650$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7651
7652fi
7653
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7655$as_echo_n "checking for struct exception... " >&6; }
d6974efa 7656if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7657 $as_echo_n "(cached) " >&6
7658else
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660/* end confdefs.h. */
7661#include <math.h>
7662int
7663main ()
7664{
7665static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7666 ;
7667 return 0;
7668}
7669_ACEOF
7670if ac_fn_c_try_compile "$LINENO"; then :
7671 emacs_cv_struct_exception=yes
7672else
7673 emacs_cv_struct_exception=no
7674fi
7675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676fi
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7678$as_echo "$emacs_cv_struct_exception" >&6; }
7679HAVE_EXCEPTION=$emacs_cv_struct_exception
7680if test $emacs_cv_struct_exception != yes; then
7681
7682$as_echo "#define NO_MATHERR 1" >>confdefs.h
7683
7684fi
7685
7686for ac_header in sys/socket.h
7687do :
7688 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
d6974efa 7689if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7690 cat >>confdefs.h <<_ACEOF
7691#define HAVE_SYS_SOCKET_H 1
7692_ACEOF
7693
7694fi
7695
7696done
7697
7698for ac_header in net/if.h
7699do :
7700 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7701#if HAVE_SYS_SOCKET_H
7702#include <sys/socket.h>
7703#endif
7704"
d6974efa 7705if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7706 cat >>confdefs.h <<_ACEOF
7707#define HAVE_NET_IF_H 1
7708_ACEOF
7709
7710fi
7711
7712done
7713
7714
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7716$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6974efa 7717if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
7718 $as_echo_n "(cached) " >&6
7719else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h. */
7722#include <sys/types.h>
7723#include <time.h>
7724
7725int
7726main ()
7727{
7728struct tm tm;
7729 int *p = &tm.tm_sec;
7730 return !p;
7731 ;
7732 return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_compile "$LINENO"; then :
7736 ac_cv_struct_tm=time.h
7737else
7738 ac_cv_struct_tm=sys/time.h
7739fi
7740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7743$as_echo "$ac_cv_struct_tm" >&6; }
7744if test $ac_cv_struct_tm = sys/time.h; then
7745
7746$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7747
7748fi
7749
7750ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7751#include <$ac_cv_struct_tm>
7752
7753"
d6974efa 7754if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
7755
7756cat >>confdefs.h <<_ACEOF
7757#define HAVE_STRUCT_TM_TM_ZONE 1
7758_ACEOF
7759
7760
7761fi
7762
7763if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7764
7765$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7766
7767else
7768 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7769"
d6974efa 7770if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
7771 ac_have_decl=1
7772else
7773 ac_have_decl=0
7774fi
7775
7776cat >>confdefs.h <<_ACEOF
7777#define HAVE_DECL_TZNAME $ac_have_decl
7778_ACEOF
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7781$as_echo_n "checking for tzname... " >&6; }
d6974efa 7782if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
7783 $as_echo_n "(cached) " >&6
7784else
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787#include <time.h>
7788#if !HAVE_DECL_TZNAME
7789extern char *tzname[];
7790#endif
7791
7792int
7793main ()
7794{
7795return tzname[0][0];
7796 ;
7797 return 0;
7798}
7799_ACEOF
7800if ac_fn_c_try_link "$LINENO"; then :
7801 ac_cv_var_tzname=yes
7802else
7803 ac_cv_var_tzname=no
7804fi
7805rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807fi
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7809$as_echo "$ac_cv_var_tzname" >&6; }
7810 if test $ac_cv_var_tzname = yes; then
7811
7812$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7813
7814 fi
7815fi
7816
7817ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7818"
d6974efa 7819if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
7820
7821$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7822
7823fi
7824
7825ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7826#if HAVE_SYS_SOCKET_H
7827#include <sys/socket.h>
7828#endif
7829#if HAVE_NET_IF_H
7830#include <net/if.h>
7831#endif
7832"
d6974efa 7833if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
7834
7835cat >>confdefs.h <<_ACEOF
7836#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7837_ACEOF
7838
7839
7840fi
7841ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7842#if HAVE_SYS_SOCKET_H
7843#include <sys/socket.h>
7844#endif
7845#if HAVE_NET_IF_H
7846#include <net/if.h>
7847#endif
7848"
d6974efa 7849if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
7850
7851cat >>confdefs.h <<_ACEOF
7852#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7853_ACEOF
7854
7855
7856fi
7857ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7858#if HAVE_SYS_SOCKET_H
7859#include <sys/socket.h>
7860#endif
7861#if HAVE_NET_IF_H
7862#include <net/if.h>
7863#endif
7864"
d6974efa 7865if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
7866
7867cat >>confdefs.h <<_ACEOF
7868#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7869_ACEOF
7870
7871
7872fi
7873ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7874#if HAVE_SYS_SOCKET_H
7875#include <sys/socket.h>
7876#endif
7877#if HAVE_NET_IF_H
7878#include <net/if.h>
7879#endif
7880"
d6974efa 7881if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
7882
7883cat >>confdefs.h <<_ACEOF
7884#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7885_ACEOF
7886
7887
7888fi
7889ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7890#if HAVE_SYS_SOCKET_H
7891#include <sys/socket.h>
7892#endif
7893#if HAVE_NET_IF_H
7894#include <net/if.h>
7895#endif
7896"
d6974efa 7897if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
7898
7899cat >>confdefs.h <<_ACEOF
7900#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7901_ACEOF
7902
7903
7904fi
7905
7906
7907
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7909$as_echo_n "checking for function prototypes... " >&6; }
7910if test "$ac_cv_prog_cc_c89" != no; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7912$as_echo "yes" >&6; }
7913
7914$as_echo "#define PROTOTYPES 1" >>confdefs.h
7915
7916
7917$as_echo "#define __PROTOTYPES 1" >>confdefs.h
7918
7919else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7925$as_echo_n "checking for working volatile... " >&6; }
d6974efa 7926if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
7927 $as_echo_n "(cached) " >&6
7928else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931
7932int
7933main ()
7934{
7935
7936volatile int x;
7937int * volatile y = (int *) 0;
7938return !x && !y;
7939 ;
7940 return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_compile "$LINENO"; then :
7944 ac_cv_c_volatile=yes
7945else
7946 ac_cv_c_volatile=no
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7951$as_echo "$ac_cv_c_volatile" >&6; }
7952if test $ac_cv_c_volatile = no; then
7953
7954$as_echo "#define volatile /**/" >>confdefs.h
7955
7956fi
7957
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7959$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6974efa 7960if ${ac_cv_c_const+:} false; then :
067d23c9
KY
7961 $as_echo_n "(cached) " >&6
7962else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h. */
7965
7966int
7967main ()
7968{
7969/* FIXME: Include the comments suggested by Paul. */
7970#ifndef __cplusplus
7971 /* Ultrix mips cc rejects this. */
7972 typedef int charset[2];
7973 const charset cs;
7974 /* SunOS 4.1.1 cc rejects this. */
7975 char const *const *pcpcc;
7976 char **ppc;
7977 /* NEC SVR4.0.2 mips cc rejects this. */
7978 struct point {int x, y;};
7979 static struct point const zero = {0,0};
7980 /* AIX XL C 1.02.0.0 rejects this.
7981 It does not let you subtract one const X* pointer from another in
7982 an arm of an if-expression whose if-part is not a constant
7983 expression */
7984 const char *g = "string";
7985 pcpcc = &g + (g ? g-g : 0);
7986 /* HPUX 7.0 cc rejects these. */
7987 ++pcpcc;
7988 ppc = (char**) pcpcc;
7989 pcpcc = (char const *const *) ppc;
7990 { /* SCO 3.2v4 cc rejects this. */
7991 char *t;
7992 char const *s = 0 ? (char *) 0 : (char const *) 0;
7993
7994 *t++ = 0;
7995 if (s) return 0;
7996 }
7997 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7998 int x[] = {25, 17};
7999 const int *foo = &x[0];
8000 ++foo;
8001 }
8002 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8003 typedef const int *iptr;
8004 iptr p = 0;
8005 ++p;
8006 }
8007 { /* AIX XL C 1.02.0.0 rejects this saying
8008 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8009 struct s { int j; const int *ap[3]; };
8010 struct s *b; b->j = 5;
8011 }
8012 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8013 const int foo = 10;
8014 if (!foo) return 0;
8015 }
8016 return !cs[0] && !zero.x;
8017#endif
8018
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_compile "$LINENO"; then :
8024 ac_cv_c_const=yes
8025else
8026 ac_cv_c_const=no
8027fi
8028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8031$as_echo "$ac_cv_c_const" >&6; }
8032if test $ac_cv_c_const = no; then
8033
8034$as_echo "#define const /**/" >>confdefs.h
8035
8036fi
8037
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8039$as_echo_n "checking for void * support... " >&6; }
d6974efa 8040if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8041 $as_echo_n "(cached) " >&6
8042else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h. */
8045
8046int
8047main ()
8048{
8049void * foo;
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_compile "$LINENO"; then :
8055 emacs_cv_void_star=yes
8056else
8057 emacs_cv_void_star=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060fi
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8062$as_echo "$emacs_cv_void_star" >&6; }
8063if test $emacs_cv_void_star = yes; then
8064 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8065
8066else
8067 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8068
8069fi
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8072$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6974efa 8073if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8074 $as_echo_n "(cached) " >&6
8075else
8076 ac_cv_c_bigendian=unknown
8077 # See if we're dealing with a universal compiler.
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h. */
8080#ifndef __APPLE_CC__
8081 not a universal capable compiler
8082 #endif
8083 typedef int dummy;
8084
8085_ACEOF
8086if ac_fn_c_try_compile "$LINENO"; then :
8087
8088 # Check for potential -arch flags. It is not universal unless
8089 # there are at least two -arch flags with different values.
8090 ac_arch=
8091 ac_prev=
8092 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8093 if test -n "$ac_prev"; then
8094 case $ac_word in
8095 i?86 | x86_64 | ppc | ppc64)
8096 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8097 ac_arch=$ac_word
8098 else
8099 ac_cv_c_bigendian=universal
8100 break
8101 fi
8102 ;;
8103 esac
8104 ac_prev=
8105 elif test "x$ac_word" = "x-arch"; then
8106 ac_prev=arch
8107 fi
8108 done
8109fi
8110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 if test $ac_cv_c_bigendian = unknown; then
8112 # See if sys/param.h defines the BYTE_ORDER macro.
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h. */
8115#include <sys/types.h>
8116 #include <sys/param.h>
8117
8118int
8119main ()
8120{
8121#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8122 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8123 && LITTLE_ENDIAN)
8124 bogus endian macros
8125 #endif
8126
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132 # It does; now see whether it defined to BIG_ENDIAN or not.
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h. */
8135#include <sys/types.h>
8136 #include <sys/param.h>
8137
8138int
8139main ()
8140{
8141#if BYTE_ORDER != BIG_ENDIAN
8142 not big endian
8143 #endif
8144
8145 ;
8146 return 0;
8147}
8148_ACEOF
8149if ac_fn_c_try_compile "$LINENO"; then :
8150 ac_cv_c_bigendian=yes
8151else
8152 ac_cv_c_bigendian=no
8153fi
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 if test $ac_cv_c_bigendian = unknown; then
8159 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h. */
8162#include <limits.h>
8163
8164int
8165main ()
8166{
8167#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8168 bogus endian macros
8169 #endif
8170
8171 ;
8172 return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176 # It does; now see whether it defined to _BIG_ENDIAN or not.
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h. */
8179#include <limits.h>
8180
8181int
8182main ()
8183{
8184#ifndef _BIG_ENDIAN
8185 not big endian
8186 #endif
8187
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192if ac_fn_c_try_compile "$LINENO"; then :
8193 ac_cv_c_bigendian=yes
8194else
8195 ac_cv_c_bigendian=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 if test $ac_cv_c_bigendian = unknown; then
8202 # Compile a test program.
8203 if test "$cross_compiling" = yes; then :
8204 # Try to guess by grepping values from an object file.
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h. */
8207short int ascii_mm[] =
8208 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8209 short int ascii_ii[] =
8210 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8211 int use_ascii (int i) {
8212 return ascii_mm[i] + ascii_ii[i];
8213 }
8214 short int ebcdic_ii[] =
8215 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8216 short int ebcdic_mm[] =
8217 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8218 int use_ebcdic (int i) {
8219 return ebcdic_mm[i] + ebcdic_ii[i];
8220 }
8221 extern int foo;
8222
8223int
8224main ()
8225{
8226return use_ascii (foo) == use_ebcdic (foo);
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231if ac_fn_c_try_compile "$LINENO"; then :
8232 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8233 ac_cv_c_bigendian=yes
8234 fi
8235 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8236 if test "$ac_cv_c_bigendian" = unknown; then
8237 ac_cv_c_bigendian=no
8238 else
8239 # finding both strings is unlikely to happen, but who knows?
8240 ac_cv_c_bigendian=unknown
8241 fi
8242 fi
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h. */
8248$ac_includes_default
8249int
8250main ()
8251{
8252
8253 /* Are we little or big endian? From Harbison&Steele. */
8254 union
8255 {
8256 long int l;
8257 char c[sizeof (long int)];
8258 } u;
8259 u.l = 1;
8260 return u.c[sizeof (long int) - 1] == 1;
8261
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266if ac_fn_c_try_run "$LINENO"; then :
8267 ac_cv_c_bigendian=no
8268else
8269 ac_cv_c_bigendian=yes
8270fi
8271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8272 conftest.$ac_objext conftest.beam conftest.$ac_ext
8273fi
8274
8275 fi
8276fi
8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8278$as_echo "$ac_cv_c_bigendian" >&6; }
8279 case $ac_cv_c_bigendian in #(
8280 yes)
8281 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8282;; #(
8283 no)
8284 ;; #(
8285 universal)
8286
8287$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8288
8289 ;; #(
8290 *)
2018939f 8291 as_fn_error $? "unknown endianness
d6974efa 8292 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8293 esac
8294
8295
7cae64b4
PE
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8297$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
d6974efa 8298if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8299 $as_echo_n "(cached) " >&6
8300else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h. */
8303char __attribute__ ((__aligned__ (1 << 3))) c;
8304int
8305main ()
8306{
8307
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_compile "$LINENO"; then :
8313 emacs_cv_attribute_aligned=yes
8314else
8315 emacs_cv_attribute_aligned=no
8316fi
8317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318fi
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8320$as_echo "$emacs_cv_attribute_aligned" >&6; }
8321if test $emacs_cv_attribute_aligned = yes; then
8322
8323$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8324
8325fi
8326
067d23c9
KY
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8328$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8329set x ${MAKE-make}
8330ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 8331if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8332 $as_echo_n "(cached) " >&6
8333else
8334 cat >conftest.make <<\_ACEOF
8335SHELL = /bin/sh
8336all:
8337 @echo '@@@%%%=$(MAKE)=@@@%%%'
8338_ACEOF
2018939f 8339# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8340case `${MAKE-make} -f conftest.make 2>/dev/null` in
8341 *@@@%%%=?*=@@@%%%*)
8342 eval ac_cv_prog_make_${ac_make}_set=yes;;
8343 *)
8344 eval ac_cv_prog_make_${ac_make}_set=no;;
8345esac
8346rm -f conftest.make
8347fi
8348if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350$as_echo "yes" >&6; }
8351 SET_MAKE=
8352else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }
8355 SET_MAKE="MAKE=${MAKE-make}"
8356fi
8357
8358
8359DEPFLAGS=
8360MKDEPDIR=":"
8361deps_frag=deps.mk
8362if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8364$as_echo_n "checking whether we are using GNU Make... " >&6; }
8365 HAVE_GNU_MAKE=no
8366 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8367 if test "x$testval" != x; then
8368 HAVE_GNU_MAKE=yes
8369 else
8370 ac_enable_autodepend=no
8371 fi
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8373$as_echo "$HAVE_GNU_MAKE" >&6; }
8374 if test $HAVE_GNU_MAKE = yes; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8376$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8377 SAVE_CFLAGS="$CFLAGS"
8378 CFLAGS="$CFLAGS -MMD -MF deps.d"
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h. */
8381
8382int
8383main ()
8384{
8385
8386 ;
8387 return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_compile "$LINENO"; then :
8391
8392else
8393 ac_enable_autodepend=no
8394fi
8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 CFLAGS="$SAVE_CFLAGS"
8397 test -f deps.d || ac_enable_autodepend=no
8398 rm -rf deps.d
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8400$as_echo "$ac_enable_autodepend" >&6; }
8401 fi
8402 if test $ac_enable_autodepend = yes; then
8403 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8404 ## In parallel builds, another make might create depdir between
8405 ## the first test and mkdir, so stick another test on the end.
8406 ## Or use mkinstalldirs? mkdir -p is not portable.
8407 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8408 deps_frag=autodeps.mk
8409 fi
8410fi
8411deps_frag=$srcdir/src/$deps_frag
8412
8413
8414
8415
8416
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8418$as_echo_n "checking for long file names... " >&6; }
d6974efa 8419if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8420 $as_echo_n "(cached) " >&6
8421else
8422 ac_cv_sys_long_file_names=yes
8423# Test for long file names in all the places we know might matter:
8424# . the current directory, where building will happen
8425# $prefix/lib where we will be installing things
8426# $exec_prefix/lib likewise
8427# $TMPDIR if set, where it might want to write temporary files
8428# /tmp where it might want to write temporary files
8429# /var/tmp likewise
8430# /usr/tmp likewise
8431for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8432 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8433 # in the usual case where exec_prefix is '${prefix}'.
8434 case $ac_dir in #(
8435 . | /* | ?:[\\/]*) ;; #(
8436 *) continue;;
8437 esac
8438 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8439 ac_xdir=$ac_dir/cf$$
8440 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8441 ac_tf1=$ac_xdir/conftest9012345
8442 ac_tf2=$ac_xdir/conftest9012346
8443 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8444 ac_cv_sys_long_file_names=no
8445 rm -f -r "$ac_xdir" 2>/dev/null
8446 test $ac_cv_sys_long_file_names = no && break
8447done
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8450$as_echo "$ac_cv_sys_long_file_names" >&6; }
8451if test $ac_cv_sys_long_file_names = yes; then
8452
8453$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8454
8455fi
8456
8457
8458#### Choose a window system.
8459
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8461$as_echo_n "checking for X... " >&6; }
8462
8463
8464# Check whether --with-x was given.
8465if test "${with_x+set}" = set; then :
8466 withval=$with_x;
8467fi
8468
8469# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8470if test "x$with_x" = xno; then
8471 # The user explicitly disabled X.
8472 have_x=disabled
8473else
8474 case $x_includes,$x_libraries in #(
d6974efa
PE
8475 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8476 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8477 $as_echo_n "(cached) " >&6
8478else
8479 # One or both of the vars are not set, and there is no cached value.
8480ac_x_includes=no ac_x_libraries=no
8481rm -f -r conftest.dir
8482if mkdir conftest.dir; then
8483 cd conftest.dir
8484 cat >Imakefile <<'_ACEOF'
8485incroot:
8486 @echo incroot='${INCROOT}'
8487usrlibdir:
8488 @echo usrlibdir='${USRLIBDIR}'
8489libdir:
8490 @echo libdir='${LIBDIR}'
8491_ACEOF
8492 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8493 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8494 for ac_var in incroot usrlibdir libdir; do
8495 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8496 done
8497 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8498 for ac_extension in a so sl dylib la dll; do
8499 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8500 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8501 ac_im_usrlibdir=$ac_im_libdir; break
8502 fi
8503 done
8504 # Screen out bogus values from the imake configuration. They are
8505 # bogus both because they are the default anyway, and because
8506 # using them would break gcc on systems where it needs fixed includes.
8507 case $ac_im_incroot in
8508 /usr/include) ac_x_includes= ;;
8509 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8510 esac
8511 case $ac_im_usrlibdir in
8512 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8513 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8514 esac
8515 fi
8516 cd ..
8517 rm -f -r conftest.dir
8518fi
8519
8520# Standard set of common directories for X headers.
8521# Check X11 before X11Rn because it is often a symlink to the current release.
8522ac_x_header_dirs='
8523/usr/X11/include
8524/usr/X11R7/include
8525/usr/X11R6/include
8526/usr/X11R5/include
8527/usr/X11R4/include
8528
8529/usr/include/X11
8530/usr/include/X11R7
8531/usr/include/X11R6
8532/usr/include/X11R5
8533/usr/include/X11R4
8534
8535/usr/local/X11/include
8536/usr/local/X11R7/include
8537/usr/local/X11R6/include
8538/usr/local/X11R5/include
8539/usr/local/X11R4/include
8540
8541/usr/local/include/X11
8542/usr/local/include/X11R7
8543/usr/local/include/X11R6
8544/usr/local/include/X11R5
8545/usr/local/include/X11R4
8546
8547/usr/X386/include
8548/usr/x386/include
8549/usr/XFree86/include/X11
8550
8551/usr/include
8552/usr/local/include
8553/usr/unsupported/include
8554/usr/athena/include
8555/usr/local/x11r5/include
8556/usr/lpp/Xamples/include
8557
8558/usr/openwin/include
8559/usr/openwin/share/include'
8560
8561if test "$ac_x_includes" = no; then
8562 # Guess where to find include files, by looking for Xlib.h.
8563 # First, try using that file with no special directory specified.
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h. */
8566#include <X11/Xlib.h>
8567_ACEOF
8568if ac_fn_c_try_cpp "$LINENO"; then :
8569 # We can compile using X headers with no special include directory.
8570ac_x_includes=
8571else
8572 for ac_dir in $ac_x_header_dirs; do
8573 if test -r "$ac_dir/X11/Xlib.h"; then
8574 ac_x_includes=$ac_dir
8575 break
8576 fi
8577done
8578fi
2018939f 8579rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8580fi # $ac_x_includes = no
8581
8582if test "$ac_x_libraries" = no; then
8583 # Check for the libraries.
8584 # See if we find them without any special options.
8585 # Don't add to $LIBS permanently.
8586 ac_save_LIBS=$LIBS
8587 LIBS="-lX11 $LIBS"
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589/* end confdefs.h. */
8590#include <X11/Xlib.h>
8591int
8592main ()
8593{
8594XrmInitialize ()
8595 ;
8596 return 0;
8597}
8598_ACEOF
8599if ac_fn_c_try_link "$LINENO"; then :
8600 LIBS=$ac_save_LIBS
8601# We can link X programs with no special library path.
8602ac_x_libraries=
8603else
8604 LIBS=$ac_save_LIBS
8605for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8606do
8607 # Don't even attempt the hair of trying to link an X program!
8608 for ac_extension in a so sl dylib la dll; do
8609 if test -r "$ac_dir/libX11.$ac_extension"; then
8610 ac_x_libraries=$ac_dir
8611 break 2
8612 fi
8613 done
8614done
8615fi
8616rm -f core conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618fi # $ac_x_libraries = no
8619
8620case $ac_x_includes,$ac_x_libraries in #(
8621 no,* | *,no | *\'*)
8622 # Didn't find X, or a directory has "'" in its name.
8623 ac_cv_have_x="have_x=no";; #(
8624 *)
8625 # Record where we found X for the cache.
8626 ac_cv_have_x="have_x=yes\
8627 ac_x_includes='$ac_x_includes'\
8628 ac_x_libraries='$ac_x_libraries'"
8629esac
8630fi
8631;; #(
8632 *) have_x=yes;;
8633 esac
8634 eval "$ac_cv_have_x"
8635fi # $with_x != no
8636
8637if test "$have_x" != yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8639$as_echo "$have_x" >&6; }
8640 no_x=yes
8641else
8642 # If each of the values was on the command line, it overrides each guess.
8643 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8644 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8645 # Update the cache value to reflect the command line values.
8646 ac_cv_have_x="have_x=yes\
8647 ac_x_includes='$x_includes'\
8648 ac_x_libraries='$x_libraries'"
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8650$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8651fi
8652
8653if test "$no_x" = yes; then
8654 window_system=none
8655else
8656 window_system=x11
8657fi
8658
8659## Workaround for bug in autoconf <= 2.62.
8660## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8661## No need to do anything special for these standard directories.
8662if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8663
8664 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8665
8666fi
8667
8668LD_SWITCH_X_SITE_AUX=
8669LD_SWITCH_X_SITE_AUX_RPATH=
8670if test "${x_libraries}" != NONE; then
8671 if test -n "${x_libraries}"; then
8672 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8673 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8674 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8675 fi
8676 x_default_search_path=""
8677 x_search_path=${x_libraries}
8678 if test -z "${x_search_path}"; then
8679 x_search_path=/usr/lib
8680 fi
8681 for x_library in `echo ${x_search_path}: | \
8682 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8683 x_search_path="\
8684${x_library}/X11/%L/%T/%N%C%S:\
8685${x_library}/X11/%l/%T/%N%C%S:\
8686${x_library}/X11/%T/%N%C%S:\
8687${x_library}/X11/%L/%T/%N%S:\
8688${x_library}/X11/%l/%T/%N%S:\
8689${x_library}/X11/%T/%N%S"
8690 if test x"${x_default_search_path}" = x; then
8691 x_default_search_path=${x_search_path}
8692 else
8693 x_default_search_path="${x_search_path}:${x_default_search_path}"
8694 fi
8695 done
8696fi
8697
8698
8699
8700if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8701 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8702fi
8703
8704if test x"${x_includes}" = x; then
8705 bitmapdir=/usr/include/X11/bitmaps
8706else
8707 # accumulate include directories that have X11 bitmap subdirectories
8708 bmd_acc="dummyval"
8709 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8710 if test -d "${bmd}/X11/bitmaps"; then
8711 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8712 fi
8713 if test -d "${bmd}/bitmaps"; then
8714 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8715 fi
8716 done
8717 if test ${bmd_acc} != "dummyval"; then
8718 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8719 fi
8720fi
8721
8722HAVE_NS=no
8723NS_IMPL_COCOA=no
8724NS_IMPL_GNUSTEP=no
8725tmp_CPPFLAGS="$CPPFLAGS"
8726tmp_CFLAGS="$CFLAGS"
8727CPPFLAGS="$CPPFLAGS -x objective-c"
8728CFLAGS="$CFLAGS -x objective-c"
8729TEMACS_LDFLAGS2="\${LDFLAGS}"
8730if test "${with_ns}" != no; then
8731 if test "${opsys}" = darwin; then
8732 NS_IMPL_COCOA=yes
8733 ns_appdir=`pwd`/nextstep/Emacs.app
8734 ns_appbindir=${ns_appdir}/Contents/MacOS/
8735 ns_appresdir=${ns_appdir}/Contents/Resources
8736 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8737 elif test -f $GNUSTEP_CONFIG_FILE; then
8738 NS_IMPL_GNUSTEP=yes
8739 ns_appdir=`pwd`/nextstep/Emacs.app
8740 ns_appbindir=${ns_appdir}/
8741 ns_appresdir=${ns_appdir}/Resources
8742 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8743 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8744 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8745 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8746 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8747 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8748 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8749 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8750 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8751 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8752 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8753 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8754 LIB_STANDARD=
8755 START_FILES=
8756 TEMACS_LDFLAGS2=
8757 fi
8758 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
d6974efa 8759if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
8760 HAVE_NS=yes
8761else
2018939f 8762 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
8763 files are missing or cannot be compiled." "$LINENO" 5
8764fi
8765
8766
8767 NS_HAVE_NSINTEGER=yes
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769/* end confdefs.h. */
8770#include <Foundation/NSObjCRuntime.h>
8771int
8772main ()
8773{
8774NSInteger i;
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_compile "$LINENO"; then :
8780 ns_have_nsinteger=yes
8781else
8782 ns_have_nsinteger=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 if test $ns_have_nsinteger = no; then
8786 NS_HAVE_NSINTEGER=no
8787 fi
8788fi
8789
8790
8791ns_frag=/dev/null
8792NS_OBJ=
8793NS_SUPPORT=
8794if test "${HAVE_NS}" = yes; then
8795 window_system=nextstep
8796 with_xft=no
8797 # set up packaging dirs
8798 exec_prefix=${ns_appbindir}
8799 libexecdir=${ns_appbindir}/libexec
8800 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8801 prefix=${ns_appresdir}
8802 fi
8803 ns_frag=$srcdir/src/ns.mk
8804 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8805 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8806fi
8807CFLAGS="$tmp_CFLAGS"
8808CPPFLAGS="$tmp_CPPFLAGS"
8809
8810
8811
8812
8813
8814case "${window_system}" in
8815 x11 )
8816 HAVE_X_WINDOWS=yes
8817 HAVE_X11=yes
8818 case "${with_x_toolkit}" in
8819 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8820 motif ) USE_X_TOOLKIT=MOTIF ;;
8821 gtk ) with_gtk=yes
8822 USE_X_TOOLKIT=none ;;
8823 gtk3 ) with_gtk3=yes
8824 USE_X_TOOLKIT=none ;;
8825 no ) USE_X_TOOLKIT=none ;;
8826 * ) USE_X_TOOLKIT=maybe ;;
8827 esac
8828 ;;
8829 nextstep | none )
8830 HAVE_X_WINDOWS=no
8831 HAVE_X11=no
8832 USE_X_TOOLKIT=none
8833 ;;
8834esac
8835
8836if test "$window_system" = none && test "X$with_x" != "Xno"; then
8837 # Extract the first word of "X", so it can be a program name with args.
8838set dummy X; ac_word=$2
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 8841if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
8842 $as_echo_n "(cached) " >&6
8843else
8844 if test -n "$HAVE_XSERVER"; then
8845 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8846else
8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_prog_HAVE_XSERVER="true"
8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858done
8859 done
8860IFS=$as_save_IFS
8861
8862 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8863fi
8864fi
8865HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8866if test -n "$HAVE_XSERVER"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8868$as_echo "$HAVE_XSERVER" >&6; }
8869else
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
8872fi
8873
8874
8875 if test "$HAVE_XSERVER" = true ||
8876 test -n "$DISPLAY" ||
8877 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 8878 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
8879were found. You should install the relevant development files for X
8880and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8881sure you have development files for image handling, i.e.
8882tiff, gif, jpeg, png and xpm.
8883If you are sure you want Emacs compiled without X window support, pass
8884 --without-x
8885to configure." "$LINENO" 5
8886 fi
8887fi
8888
8889### If we're using X11, we should use the X menu package.
8890HAVE_MENUS=no
8891case ${HAVE_X11} in
8892 yes ) HAVE_MENUS=yes ;;
8893esac
8894
8895# Do the opsystem or machine files prohibit the use of the GNU malloc?
8896# Assume not, until told otherwise.
8897GNU_MALLOC=yes
8898doug_lea_malloc=yes
8899ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
d6974efa 8900if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
8901
8902else
8903 doug_lea_malloc=no
8904fi
8905
8906ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
d6974efa 8907if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
8908
8909else
8910 doug_lea_malloc=no
8911fi
8912
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8914$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
d6974efa 8915if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
8916 $as_echo_n "(cached) " >&6
8917else
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h. */
8920extern void (* __after_morecore_hook)();
8921int
8922main ()
8923{
8924__after_morecore_hook = 0
8925 ;
8926 return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930 emacs_cv_var___after_morecore_hook=yes
8931else
8932 emacs_cv_var___after_morecore_hook=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936fi
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8938$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8939if test $emacs_cv_var___after_morecore_hook = no; then
8940 doug_lea_malloc=no
8941fi
8942
8943
8944system_malloc=no
8945case "$opsys" in
8946 ## darwin ld insists on the use of malloc routines in the System framework.
8947 darwin|sol2-10) system_malloc=yes ;;
8948esac
8949
8950if test "${system_malloc}" = "yes"; then
8951
8952$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8953
8954 GNU_MALLOC=no
8955 GNU_MALLOC_reason="
8956 (The GNU allocators don't work with this system configuration.)"
8957 GMALLOC_OBJ=
8958 VMLIMIT_OBJ=
8959else
8960 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8961 VMLIMIT_OBJ=vm-limit.o
8962fi
8963
8964
8965
8966if test "$doug_lea_malloc" = "yes" ; then
8967 if test "$GNU_MALLOC" = yes ; then
8968 GNU_MALLOC_reason="
8969 (Using Doug Lea's new malloc from the GNU C Library.)"
8970 fi
8971
8972$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8973
8974
8975 ## Use mmap directly for allocating larger buffers.
8976 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8977 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8978 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8979 case "$opsys" in
8980 gnu*) REL_ALLOC=no ;;
8981 esac
8982fi
8983
8984if test x"${REL_ALLOC}" = x; then
8985 REL_ALLOC=${GNU_MALLOC}
8986fi
8987
8988use_mmap_for_buffers=no
8989case "$opsys" in
8990 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8991esac
8992
8993
8994
8995
8996 for ac_header in $ac_header_list
8997do :
8998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8999ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9000"
2018939f 9001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
9002 cat >>confdefs.h <<_ACEOF
9003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9004_ACEOF
9005
9006fi
9007
9008done
9009
9010
9011
9012
9013
9014
9015
9016
9017for ac_func in getpagesize
9018do :
9019 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d6974efa 9020if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9021 cat >>confdefs.h <<_ACEOF
9022#define HAVE_GETPAGESIZE 1
9023_ACEOF
9024
9025fi
9026done
9027
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9029$as_echo_n "checking for working mmap... " >&6; }
d6974efa 9030if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9031 $as_echo_n "(cached) " >&6
9032else
9033 if test "$cross_compiling" = yes; then :
9034 ac_cv_func_mmap_fixed_mapped=no
9035else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h. */
9038$ac_includes_default
9039/* malloc might have been renamed as rpl_malloc. */
9040#undef malloc
9041
9042/* Thanks to Mike Haertel and Jim Avera for this test.
9043 Here is a matrix of mmap possibilities:
9044 mmap private not fixed
9045 mmap private fixed at somewhere currently unmapped
9046 mmap private fixed at somewhere already mapped
9047 mmap shared not fixed
9048 mmap shared fixed at somewhere currently unmapped
9049 mmap shared fixed at somewhere already mapped
9050 For private mappings, we should verify that changes cannot be read()
9051 back from the file, nor mmap's back from the file at a different
9052 address. (There have been systems where private was not correctly
9053 implemented like the infamous i386 svr4.0, and systems where the
9054 VM page cache was not coherent with the file system buffer cache
9055 like early versions of FreeBSD and possibly contemporary NetBSD.)
9056 For shared mappings, we should conversely verify that changes get
9057 propagated back to all the places they're supposed to be.
9058
9059 Grep wants private fixed already mapped.
9060 The main things grep needs to know about mmap are:
9061 * does it exist and is it safe to write into the mmap'd area
9062 * how to use it (BSD variants) */
9063
9064#include <fcntl.h>
9065#include <sys/mman.h>
9066
9067#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9068char *malloc ();
9069#endif
9070
9071/* This mess was copied from the GNU getpagesize.h. */
9072#ifndef HAVE_GETPAGESIZE
9073# ifdef _SC_PAGESIZE
9074# define getpagesize() sysconf(_SC_PAGESIZE)
9075# else /* no _SC_PAGESIZE */
9076# ifdef HAVE_SYS_PARAM_H
9077# include <sys/param.h>
9078# ifdef EXEC_PAGESIZE
9079# define getpagesize() EXEC_PAGESIZE
9080# else /* no EXEC_PAGESIZE */
9081# ifdef NBPG
9082# define getpagesize() NBPG * CLSIZE
9083# ifndef CLSIZE
9084# define CLSIZE 1
9085# endif /* no CLSIZE */
9086# else /* no NBPG */
9087# ifdef NBPC
9088# define getpagesize() NBPC
9089# else /* no NBPC */
9090# ifdef PAGESIZE
9091# define getpagesize() PAGESIZE
9092# endif /* PAGESIZE */
9093# endif /* no NBPC */
9094# endif /* no NBPG */
9095# endif /* no EXEC_PAGESIZE */
9096# else /* no HAVE_SYS_PARAM_H */
9097# define getpagesize() 8192 /* punt totally */
9098# endif /* no HAVE_SYS_PARAM_H */
9099# endif /* no _SC_PAGESIZE */
9100
9101#endif /* no HAVE_GETPAGESIZE */
9102
9103int
9104main ()
9105{
9106 char *data, *data2, *data3;
2018939f 9107 const char *cdata2;
067d23c9
KY
9108 int i, pagesize;
9109 int fd, fd2;
9110
9111 pagesize = getpagesize ();
9112
9113 /* First, make a file with some known garbage in it. */
9114 data = (char *) malloc (pagesize);
9115 if (!data)
9116 return 1;
9117 for (i = 0; i < pagesize; ++i)
9118 *(data + i) = rand ();
9119 umask (0);
9120 fd = creat ("conftest.mmap", 0600);
9121 if (fd < 0)
9122 return 2;
9123 if (write (fd, data, pagesize) != pagesize)
9124 return 3;
9125 close (fd);
9126
9127 /* Next, check that the tail of a page is zero-filled. File must have
9128 non-zero length, otherwise we risk SIGBUS for entire page. */
9129 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9130 if (fd2 < 0)
9131 return 4;
2018939f
AS
9132 cdata2 = "";
9133 if (write (fd2, cdata2, 1) != 1)
067d23c9 9134 return 5;
2018939f 9135 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9136 if (data2 == MAP_FAILED)
9137 return 6;
9138 for (i = 0; i < pagesize; ++i)
9139 if (*(data2 + i))
9140 return 7;
9141 close (fd2);
9142 if (munmap (data2, pagesize))
9143 return 8;
9144
9145 /* Next, try to mmap the file at a fixed address which already has
9146 something else allocated at it. If we can, also make sure that
9147 we see the same garbage. */
9148 fd = open ("conftest.mmap", O_RDWR);
9149 if (fd < 0)
9150 return 9;
9151 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9152 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9153 return 10;
9154 for (i = 0; i < pagesize; ++i)
9155 if (*(data + i) != *(data2 + i))
9156 return 11;
9157
9158 /* Finally, make sure that changes to the mapped area do not
9159 percolate back to the file as seen by read(). (This is a bug on
9160 some variants of i386 svr4.0.) */
9161 for (i = 0; i < pagesize; ++i)
9162 *(data2 + i) = *(data2 + i) + 1;
9163 data3 = (char *) malloc (pagesize);
9164 if (!data3)
9165 return 12;
9166 if (read (fd, data3, pagesize) != pagesize)
9167 return 13;
9168 for (i = 0; i < pagesize; ++i)
9169 if (*(data + i) != *(data3 + i))
9170 return 14;
9171 close (fd);
9172 return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_run "$LINENO"; then :
9176 ac_cv_func_mmap_fixed_mapped=yes
9177else
9178 ac_cv_func_mmap_fixed_mapped=no
9179fi
9180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9181 conftest.$ac_objext conftest.beam conftest.$ac_ext
9182fi
9183
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9186$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9187if test $ac_cv_func_mmap_fixed_mapped = yes; then
9188
9189$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9190
9191fi
9192rm -f conftest.mmap conftest.txt
9193
9194if test $use_mmap_for_buffers = yes; then
9195
9196$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9197
9198 REL_ALLOC=no
9199fi
9200
9201LIBS="$LIBS_SYSTEM $LIBS"
9202
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9204$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
d6974efa 9205if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9206 $as_echo_n "(cached) " >&6
9207else
9208 ac_check_lib_save_LIBS=$LIBS
9209LIBS="-ldnet $LIBS"
9210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h. */
9212
9213/* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
9216#ifdef __cplusplus
9217extern "C"
9218#endif
9219char dnet_ntoa ();
9220int
9221main ()
9222{
9223return dnet_ntoa ();
9224 ;
9225 return 0;
9226}
9227_ACEOF
9228if ac_fn_c_try_link "$LINENO"; then :
9229 ac_cv_lib_dnet_dnet_ntoa=yes
9230else
9231 ac_cv_lib_dnet_dnet_ntoa=no
9232fi
9233rm -f core conftest.err conftest.$ac_objext \
9234 conftest$ac_exeext conftest.$ac_ext
9235LIBS=$ac_check_lib_save_LIBS
9236fi
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9238$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d6974efa 9239if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9240 cat >>confdefs.h <<_ACEOF
9241#define HAVE_LIBDNET 1
9242_ACEOF
9243
9244 LIBS="-ldnet $LIBS"
9245
9246fi
9247
9248
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9250$as_echo_n "checking for main in -lXbsd... " >&6; }
d6974efa 9251if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9252 $as_echo_n "(cached) " >&6
9253else
9254 ac_check_lib_save_LIBS=$LIBS
9255LIBS="-lXbsd $LIBS"
9256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* end confdefs.h. */
9258
9259
9260int
9261main ()
9262{
9263return main ();
9264 ;
9265 return 0;
9266}
9267_ACEOF
9268if ac_fn_c_try_link "$LINENO"; then :
9269 ac_cv_lib_Xbsd_main=yes
9270else
9271 ac_cv_lib_Xbsd_main=no
9272fi
9273rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275LIBS=$ac_check_lib_save_LIBS
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9278$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
d6974efa 9279if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9280 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9281fi
9282
9283
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9285$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
d6974efa 9286if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9287 $as_echo_n "(cached) " >&6
9288else
9289 ac_check_lib_save_LIBS=$LIBS
9290LIBS="-lpthreads $LIBS"
9291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h. */
9293
9294/* Override any GCC internal prototype to avoid an error.
9295 Use char because int might match the return type of a GCC
9296 builtin and then its argument prototype would still apply. */
9297#ifdef __cplusplus
9298extern "C"
9299#endif
9300char cma_open ();
9301int
9302main ()
9303{
9304return cma_open ();
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309if ac_fn_c_try_link "$LINENO"; then :
9310 ac_cv_lib_pthreads_cma_open=yes
9311else
9312 ac_cv_lib_pthreads_cma_open=no
9313fi
9314rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316LIBS=$ac_check_lib_save_LIBS
9317fi
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9319$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
d6974efa 9320if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9321 cat >>confdefs.h <<_ACEOF
9322#define HAVE_LIBPTHREADS 1
9323_ACEOF
9324
9325 LIBS="-lpthreads $LIBS"
9326
9327fi
9328
9329
9330## Note: when using cpp in s/aix4.2.h, this definition depended on
9331## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9332## the system file was sourced. Hence the value of LIBS_SYSTEM
9333## added to LIBS in configure would never contain the pthreads part,
9334## but the value used in Makefiles might. FIXME?
9335##
9336## -lpthreads seems to be necessary for Xlib in X11R6, and should
9337## be harmless on older versions of X where it happens to exist.
9338test "$opsys" = "aix4-2" && \
9339 test $ac_cv_lib_pthreads_cma_open = yes && \
9340 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9341
9342
9343case ${host_os} in
9344aix*)
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9346$as_echo_n "checking for -bbigtoc option... " >&6; }
d6974efa 9347if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9348 $as_echo_n "(cached) " >&6
9349else
9350
9351 case $GCC in
9352 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9353 *) gdb_cv_bigtoc=-bbigtoc ;;
9354 esac
9355
9356 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h. */
9359
9360int
9361main ()
9362{
9363int i;
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_link "$LINENO"; then :
9369
9370else
9371 gdb_cv_bigtoc=
9372fi
9373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375
9376fi
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9378$as_echo "$gdb_cv_bigtoc" >&6; }
9379 ;;
9380esac
9381
9382# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9383# used for the tests that follow. We set them back to REAL_CFLAGS and
9384# REAL_CPPFLAGS later on.
9385
9386REAL_CFLAGS="$CFLAGS"
9387REAL_CPPFLAGS="$CPPFLAGS"
9388
9389if test "${HAVE_X11}" = "yes"; then
9390 DEFS="$C_SWITCH_X_SITE $DEFS"
9391 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9392 LIBS="-lX11 $LIBS"
9393 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9394 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9395
9396 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9397 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9398 # but it's more convenient here to set LD_RUN_PATH
9399 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9400 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9401 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9402 export LD_RUN_PATH
9403 fi
9404
9405 if test "${opsys}" = "gnu-linux"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9407$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h. */
9410
9411int
9412main ()
9413{
9414XOpenDisplay ("foo");
9415 ;
9416 return 0;
9417}
9418_ACEOF
9419if ac_fn_c_try_link "$LINENO"; then :
9420 xlinux_first_failure=no
9421else
9422 xlinux_first_failure=yes
9423fi
9424rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426 if test "${xlinux_first_failure}" = "yes"; then
9427 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9428 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9429 OLD_CPPFLAGS="$CPPFLAGS"
9430 OLD_LIBS="$LIBS"
9431 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9432 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9433 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9434 LIBS="$LIBS -b i486-linuxaout"
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h. */
9437
9438int
9439main ()
9440{
9441XOpenDisplay ("foo");
9442 ;
9443 return 0;
9444}
9445_ACEOF
9446if ac_fn_c_try_link "$LINENO"; then :
9447 xlinux_second_failure=no
9448else
9449 xlinux_second_failure=yes
9450fi
9451rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
9453 if test "${xlinux_second_failure}" = "yes"; then
9454 # If we get the same failure with -b, there is no use adding -b.
9455 # So take it out. This plays safe.
9456 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9457 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9458 CPPFLAGS="$OLD_CPPFLAGS"
9459 LIBS="$OLD_LIBS"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461$as_echo "no" >&6; }
9462 else
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9464$as_echo "yes" >&6; }
9465 fi
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468$as_echo "no" >&6; }
9469 fi
9470 fi
9471
9472 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9473 # header files included from there.
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9475$as_echo_n "checking for Xkb... " >&6; }
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h. */
9478#include <X11/Xlib.h>
9479#include <X11/XKBlib.h>
9480int
9481main ()
9482{
9483XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9484 ;
9485 return 0;
9486}
9487_ACEOF
9488if ac_fn_c_try_link "$LINENO"; then :
9489 emacs_xkb=yes
9490else
9491 emacs_xkb=no
9492fi
9493rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9496$as_echo "$emacs_xkb" >&6; }
9497 if test $emacs_xkb = yes; then
9498
9499$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9500
9501 fi
9502
9503 for ac_func in XrmSetDatabase XScreenResourceString \
9504XScreenNumberOfScreen XSetWMProtocols
9505do :
9506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9507ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9508if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9509 cat >>confdefs.h <<_ACEOF
9510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9511_ACEOF
9512
9513fi
9514done
9515
9516fi
9517
9518if test "${window_system}" = "x11"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9520$as_echo_n "checking X11 version 6... " >&6; }
d6974efa 9521 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9522 $as_echo_n "(cached) " >&6
9523else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525/* end confdefs.h. */
9526#include <X11/Xlib.h>
9527int
9528main ()
9529{
9530#if XlibSpecificationRelease < 6
9531fail;
9532#endif
9533
9534 ;
9535 return 0;
9536}
9537_ACEOF
9538if ac_fn_c_try_link "$LINENO"; then :
9539 emacs_cv_x11_version_6=yes
9540else
9541 emacs_cv_x11_version_6=no
9542fi
9543rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9545fi
9546
9547 if test $emacs_cv_x11_version_6 = yes; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9549$as_echo "6 or newer" >&6; }
9550
9551$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9552
9553
9554$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9555
9556 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9557 ## XIM support.
9558 case "$opsys" in
9559 sol2-*) : ;;
9560 *)
9561$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9562
9563 ;;
9564 esac
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9567$as_echo "before 6" >&6; }
9568 fi
9569fi
9570
9571
9572### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9573HAVE_RSVG=no
9574if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9575 if test "${with_rsvg}" != "no"; then
9576 RSVG_REQUIRED=2.11.0
9577 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9578
9579
9580 succeeded=no
9581
9582 # Extract the first word of "pkg-config", so it can be a program name with args.
9583set dummy pkg-config; ac_word=$2
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9586if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9587 $as_echo_n "(cached) " >&6
9588else
9589 case $PKG_CONFIG in
9590 [\\/]* | ?:[\\/]*)
9591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9592 ;;
9593 *)
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $PATH
9596do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9604 fi
9605done
9606 done
9607IFS=$as_save_IFS
9608
9609 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9610 ;;
9611esac
9612fi
9613PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9614if test -n "$PKG_CONFIG"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9616$as_echo "$PKG_CONFIG" >&6; }
9617else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620fi
9621
9622
9623
9624 if test "$PKG_CONFIG" = "no" ; then
9625 :
9626 else
9627 PKG_CONFIG_MIN_VERSION=0.9.0
9628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9630$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9631
9632 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9634$as_echo "yes" >&6; }
9635 succeeded=yes
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9638$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9639 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9641$as_echo "$RSVG_CFLAGS" >&6; }
9642
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9644$as_echo_n "checking RSVG_LIBS... " >&6; }
9645 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9647$as_echo "$RSVG_LIBS" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650$as_echo "no" >&6; }
9651 RSVG_CFLAGS=""
9652 RSVG_LIBS=""
9653 ## If we have a custom action on failure, don't print errors, but
9654 ## do set a variable so people can do so.
9655 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9656
9657 fi
9658
9659
9660
9661 else
9662 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9663 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9664 fi
9665 fi
9666
9667 if test $succeeded = yes; then
9668 HAVE_RSVG=yes
9669 else
9670 :
9671 fi
9672
9673
9674
9675
9676 if test $HAVE_RSVG = yes; then
9677
9678$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9679
9680 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9681 LIBS="$RSVG_LIBS $LIBS"
9682 fi
9683 fi
9684fi
9685
9686HAVE_IMAGEMAGICK=no
9687if test "${HAVE_X11}" = "yes"; then
9688 if test "${with_imagemagick}" != "no"; then
9689 IMAGEMAGICK_MODULE="Wand"
9690
9691 succeeded=no
9692
9693 # Extract the first word of "pkg-config", so it can be a program name with args.
9694set dummy pkg-config; ac_word=$2
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9697if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9698 $as_echo_n "(cached) " >&6
9699else
9700 case $PKG_CONFIG in
9701 [\\/]* | ?:[\\/]*)
9702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9703 ;;
9704 *)
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9715 fi
9716done
9717 done
9718IFS=$as_save_IFS
9719
9720 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9721 ;;
9722esac
9723fi
9724PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9725if test -n "$PKG_CONFIG"; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9727$as_echo "$PKG_CONFIG" >&6; }
9728else
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730$as_echo "no" >&6; }
9731fi
9732
9733
9734
9735 if test "$PKG_CONFIG" = "no" ; then
9736 :
9737 else
9738 PKG_CONFIG_MIN_VERSION=0.9.0
9739 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9741$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9742
9743 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9745$as_echo "yes" >&6; }
9746 succeeded=yes
9747
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9749$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9750 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9752$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9753
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9755$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9756 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9758$as_echo "$IMAGEMAGICK_LIBS" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761$as_echo "no" >&6; }
9762 IMAGEMAGICK_CFLAGS=""
9763 IMAGEMAGICK_LIBS=""
9764 ## If we have a custom action on failure, don't print errors, but
9765 ## do set a variable so people can do so.
9766 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9767
9768 fi
9769
9770
9771
9772 else
9773 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9774 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9775 fi
9776 fi
9777
9778 if test $succeeded = yes; then
9779 HAVE_IMAGEMAGICK=yes
9780 else
9781 :
9782 fi
9783
9784
9785
9786
9787 if test $HAVE_IMAGEMAGICK = yes; then
9788
9789$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9790
9791 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9792 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9793 for ac_func in MagickExportImagePixels
9794do :
9795 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
d6974efa 9796if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
9797 cat >>confdefs.h <<_ACEOF
9798#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9799_ACEOF
9800
9801fi
9802done
9803
9804 fi
9805 fi
9806fi
9807
9808
9809HAVE_GTK=no
9810if test "${with_gtk3}" = "yes"; then
9811 GLIB_REQUIRED=2.6
9812 GTK_REQUIRED=2.90
9813 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9814
9815
9816 succeeded=no
9817
9818 # Extract the first word of "pkg-config", so it can be a program name with args.
9819set dummy pkg-config; ac_word=$2
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9822if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9823 $as_echo_n "(cached) " >&6
9824else
9825 case $PKG_CONFIG in
9826 [\\/]* | ?:[\\/]*)
9827 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9828 ;;
9829 *)
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831for as_dir in $PATH
9832do
9833 IFS=$as_save_IFS
9834 test -z "$as_dir" && as_dir=.
9835 for ac_exec_ext in '' $ac_executable_extensions; do
9836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9837 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9839 break 2
9840 fi
9841done
9842 done
9843IFS=$as_save_IFS
9844
9845 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9846 ;;
9847esac
9848fi
9849PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9850if test -n "$PKG_CONFIG"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9852$as_echo "$PKG_CONFIG" >&6; }
9853else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855$as_echo "no" >&6; }
9856fi
9857
9858
9859
9860 if test "$PKG_CONFIG" = "no" ; then
9861 pkg_check_gtk=no
9862 else
9863 PKG_CONFIG_MIN_VERSION=0.9.0
9864 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9866$as_echo_n "checking for $GTK_MODULES... " >&6; }
9867
9868 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9870$as_echo "yes" >&6; }
9871 succeeded=yes
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9874$as_echo_n "checking GTK_CFLAGS... " >&6; }
9875 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9877$as_echo "$GTK_CFLAGS" >&6; }
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9880$as_echo_n "checking GTK_LIBS... " >&6; }
9881 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9883$as_echo "$GTK_LIBS" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
9887 GTK_CFLAGS=""
9888 GTK_LIBS=""
9889 ## If we have a custom action on failure, don't print errors, but
9890 ## do set a variable so people can do so.
9891 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9892
9893 fi
9894
9895
9896
9897 else
9898 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9899 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9900 fi
9901 fi
9902
9903 if test $succeeded = yes; then
9904 pkg_check_gtk=yes
9905 else
9906 pkg_check_gtk=no
9907 fi
9908
9909 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 9910 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
9911 fi
9912fi
9913
9914if test "$pkg_check_gtk" != "yes"; then
9915 HAVE_GTK=no
9916if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9917 GLIB_REQUIRED=2.6
9918 GTK_REQUIRED=2.6
9919 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9920
9921
9922 succeeded=no
9923
9924 # Extract the first word of "pkg-config", so it can be a program name with args.
9925set dummy pkg-config; ac_word=$2
9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9928if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9929 $as_echo_n "(cached) " >&6
9930else
9931 case $PKG_CONFIG in
9932 [\\/]* | ?:[\\/]*)
9933 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9934 ;;
9935 *)
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9946 fi
9947done
9948 done
9949IFS=$as_save_IFS
9950
9951 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9952 ;;
9953esac
9954fi
9955PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9956if test -n "$PKG_CONFIG"; then
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9958$as_echo "$PKG_CONFIG" >&6; }
9959else
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961$as_echo "no" >&6; }
9962fi
9963
9964
9965
9966 if test "$PKG_CONFIG" = "no" ; then
9967 pkg_check_gtk=no
9968 else
9969 PKG_CONFIG_MIN_VERSION=0.9.0
9970 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9972$as_echo_n "checking for $GTK_MODULES... " >&6; }
9973
9974 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9976$as_echo "yes" >&6; }
9977 succeeded=yes
9978
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9980$as_echo_n "checking GTK_CFLAGS... " >&6; }
9981 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9983$as_echo "$GTK_CFLAGS" >&6; }
9984
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9986$as_echo_n "checking GTK_LIBS... " >&6; }
9987 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9989$as_echo "$GTK_LIBS" >&6; }
9990 else
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992$as_echo "no" >&6; }
9993 GTK_CFLAGS=""
9994 GTK_LIBS=""
9995 ## If we have a custom action on failure, don't print errors, but
9996 ## do set a variable so people can do so.
9997 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9998
9999 fi
10000
10001
10002
10003 else
10004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10006 fi
10007 fi
10008
10009 if test $succeeded = yes; then
10010 pkg_check_gtk=yes
10011 else
10012 pkg_check_gtk=no
10013 fi
10014
10015 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10016 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10017 fi
10018fi
10019fi
10020
10021GTK_OBJ=
10022if test x"$pkg_check_gtk" = xyes; then
10023
10024
10025
10026 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10027 CFLAGS="$CFLAGS $GTK_CFLAGS"
10028 LIBS="$GTK_LIBS $LIBS"
10029 GTK_COMPILES=no
10030 for ac_func in gtk_main
10031do :
10032 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
d6974efa 10033if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10034 cat >>confdefs.h <<_ACEOF
10035#define HAVE_GTK_MAIN 1
10036_ACEOF
10037 GTK_COMPILES=yes
10038fi
10039done
10040
10041 if test "${GTK_COMPILES}" != "yes"; then
10042 if test "$USE_X_TOOLKIT" != "maybe"; then
d6974efa 10043 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10044 fi
10045 else
10046 HAVE_GTK=yes
10047
10048$as_echo "#define USE_GTK 1" >>confdefs.h
10049
10050 GTK_OBJ=gtkutil.o
10051 USE_X_TOOLKIT=none
10052 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10053 :
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10056 closing open displays. This is no problem if you just use
10057 one display, but if you use more than one and close one of them
10058 Emacs may crash." >&5
10059$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10060 closing open displays. This is no problem if you just use
10061 one display, but if you use more than one and close one of them
10062 Emacs may crash." >&2;}
10063 sleep 3
10064 fi
10065 fi
10066
10067fi
10068
10069
10070
10071if test "${HAVE_GTK}" = "yes"; then
10072
10073 if test "$with_toolkit_scroll_bars" != no; then
10074 with_toolkit_scroll_bars=yes
10075 fi
10076
10077 HAVE_GTK_FILE_SELECTION=no
10078 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10079#include <gtk/gtk.h>
10080"
d6974efa 10081if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10082 HAVE_GTK_FILE_SELECTION=yes
10083else
10084 HAVE_GTK_FILE_SELECTION=no
10085fi
10086
10087 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10088 for ac_func in gtk_file_selection_new
10089do :
10090 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
d6974efa 10091if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10092 cat >>confdefs.h <<_ACEOF
10093#define HAVE_GTK_FILE_SELECTION_NEW 1
10094_ACEOF
10095
10096fi
10097done
10098
10099 fi
10100
10101 HAVE_GTK_AND_PTHREAD=no
10102 for ac_header in pthread.h
10103do :
10104 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
d6974efa 10105if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10106 cat >>confdefs.h <<_ACEOF
10107#define HAVE_PTHREAD_H 1
10108_ACEOF
10109
10110fi
10111
10112done
10113
10114 if test "$ac_cv_header_pthread_h"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10116$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
d6974efa 10117if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10118 $as_echo_n "(cached) " >&6
10119else
10120 ac_check_lib_save_LIBS=$LIBS
10121LIBS="-lpthread $LIBS"
10122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h. */
10124
10125/* Override any GCC internal prototype to avoid an error.
10126 Use char because int might match the return type of a GCC
10127 builtin and then its argument prototype would still apply. */
10128#ifdef __cplusplus
10129extern "C"
10130#endif
10131char pthread_self ();
10132int
10133main ()
10134{
10135return pthread_self ();
10136 ;
10137 return 0;
10138}
10139_ACEOF
10140if ac_fn_c_try_link "$LINENO"; then :
10141 ac_cv_lib_pthread_pthread_self=yes
10142else
10143 ac_cv_lib_pthread_pthread_self=no
10144fi
10145rm -f core conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147LIBS=$ac_check_lib_save_LIBS
10148fi
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10150$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
d6974efa 10151if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10152 HAVE_GTK_AND_PTHREAD=yes
10153fi
10154
10155 fi
10156 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10157 case "${canonical}" in
10158 *-hpux*) ;;
10159 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10160 esac
10161
10162$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10163
10164 fi
10165
10166 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10167 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10168 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10169 gtk_orientable_set_orientation
10170do :
10171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 10173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10174 cat >>confdefs.h <<_ACEOF
10175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10176_ACEOF
10177
10178fi
10179done
10180
10181
10182fi
10183
10184HAVE_DBUS=no
10185DBUS_OBJ=
10186if test "${with_dbus}" = "yes"; then
10187
10188 succeeded=no
10189
10190 # Extract the first word of "pkg-config", so it can be a program name with args.
10191set dummy pkg-config; ac_word=$2
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10194if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10195 $as_echo_n "(cached) " >&6
10196else
10197 case $PKG_CONFIG in
10198 [\\/]* | ?:[\\/]*)
10199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10200 ;;
10201 *)
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203for as_dir in $PATH
10204do
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10212 fi
10213done
10214 done
10215IFS=$as_save_IFS
10216
10217 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10218 ;;
10219esac
10220fi
10221PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10222if test -n "$PKG_CONFIG"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10224$as_echo "$PKG_CONFIG" >&6; }
10225else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227$as_echo "no" >&6; }
10228fi
10229
10230
10231
10232 if test "$PKG_CONFIG" = "no" ; then
10233 HAVE_DBUS=no
10234 else
10235 PKG_CONFIG_MIN_VERSION=0.9.0
10236 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10238$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10239
10240 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10242$as_echo "yes" >&6; }
10243 succeeded=yes
10244
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10246$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10247 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10249$as_echo "$DBUS_CFLAGS" >&6; }
10250
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10252$as_echo_n "checking DBUS_LIBS... " >&6; }
10253 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10255$as_echo "$DBUS_LIBS" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258$as_echo "no" >&6; }
10259 DBUS_CFLAGS=""
10260 DBUS_LIBS=""
10261 ## If we have a custom action on failure, don't print errors, but
10262 ## do set a variable so people can do so.
10263 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10264
10265 fi
10266
10267
10268
10269 else
10270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10272 fi
10273 fi
10274
10275 if test $succeeded = yes; then
10276 HAVE_DBUS=yes
10277 else
10278 HAVE_DBUS=no
10279 fi
10280
10281 if test "$HAVE_DBUS" = yes; then
10282 LIBS="$LIBS $DBUS_LIBS"
10283
10284$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10285
10286 for ac_func in dbus_watch_get_unix_fd
10287do :
10288 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
d6974efa 10289if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10290 cat >>confdefs.h <<_ACEOF
10291#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10292_ACEOF
10293
10294fi
10295done
10296
10297 DBUS_OBJ=dbusbind.o
10298 fi
10299fi
10300
10301
10302HAVE_GCONF=no
10303if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10304
10305 succeeded=no
10306
10307 # Extract the first word of "pkg-config", so it can be a program name with args.
10308set dummy pkg-config; ac_word=$2
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10311if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10312 $as_echo_n "(cached) " >&6
10313else
10314 case $PKG_CONFIG in
10315 [\\/]* | ?:[\\/]*)
10316 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10317 ;;
10318 *)
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10329 fi
10330done
10331 done
10332IFS=$as_save_IFS
10333
10334 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10335 ;;
10336esac
10337fi
10338PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10339if test -n "$PKG_CONFIG"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10341$as_echo "$PKG_CONFIG" >&6; }
10342else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
10345fi
10346
10347
10348
10349 if test "$PKG_CONFIG" = "no" ; then
10350 HAVE_GCONF=no
10351 else
10352 PKG_CONFIG_MIN_VERSION=0.9.0
10353 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10355$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10356
10357 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359$as_echo "yes" >&6; }
10360 succeeded=yes
10361
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10363$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10364 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10366$as_echo "$GCONF_CFLAGS" >&6; }
10367
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10369$as_echo_n "checking GCONF_LIBS... " >&6; }
10370 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10372$as_echo "$GCONF_LIBS" >&6; }
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
10376 GCONF_CFLAGS=""
10377 GCONF_LIBS=""
10378 ## If we have a custom action on failure, don't print errors, but
10379 ## do set a variable so people can do so.
10380 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10381
10382 fi
10383
10384
10385
10386 else
10387 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10388 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10389 fi
10390 fi
10391
10392 if test $succeeded = yes; then
10393 HAVE_GCONF=yes
10394 else
10395 HAVE_GCONF=no
10396 fi
10397
10398 if test "$HAVE_GCONF" = yes; then
10399
10400$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10401
10402 for ac_func in g_type_init
10403do :
10404 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
d6974efa 10405if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10406 cat >>confdefs.h <<_ACEOF
10407#define HAVE_G_TYPE_INIT 1
10408_ACEOF
10409
10410fi
10411done
10412
10413 fi
10414fi
10415
10416HAVE_LIBSELINUX=no
10417LIBSELINUX_LIBS=
10418if test "${with_selinux}" = "yes"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10420$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
d6974efa 10421if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10422 $as_echo_n "(cached) " >&6
10423else
10424 ac_check_lib_save_LIBS=$LIBS
10425LIBS="-lselinux $LIBS"
10426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h. */
10428
10429/* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432#ifdef __cplusplus
10433extern "C"
10434#endif
10435char lgetfilecon ();
10436int
10437main ()
10438{
10439return lgetfilecon ();
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444if ac_fn_c_try_link "$LINENO"; then :
10445 ac_cv_lib_selinux_lgetfilecon=yes
10446else
10447 ac_cv_lib_selinux_lgetfilecon=no
10448fi
10449rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451LIBS=$ac_check_lib_save_LIBS
10452fi
10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10454$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
d6974efa 10455if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10456 HAVE_LIBSELINUX=yes
10457else
10458 HAVE_LIBSELINUX=no
10459fi
10460
10461 if test "$HAVE_LIBSELINUX" = yes; then
10462
10463$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10464
10465 LIBSELINUX_LIBS=-lselinux
10466 fi
10467fi
10468
10469
10470HAVE_GNUTLS=no
10471if test "${with_gnutls}" = "yes" ; then
10472
10473 succeeded=no
10474
10475 # Extract the first word of "pkg-config", so it can be a program name with args.
10476set dummy pkg-config; ac_word=$2
10477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10478$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10479if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10480 $as_echo_n "(cached) " >&6
10481else
10482 case $PKG_CONFIG in
10483 [\\/]* | ?:[\\/]*)
10484 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10485 ;;
10486 *)
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488for as_dir in $PATH
10489do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10494 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10497 fi
10498done
10499 done
10500IFS=$as_save_IFS
10501
10502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10503 ;;
10504esac
10505fi
10506PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10507if test -n "$PKG_CONFIG"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10509$as_echo "$PKG_CONFIG" >&6; }
10510else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512$as_echo "no" >&6; }
10513fi
10514
10515
10516
10517 if test "$PKG_CONFIG" = "no" ; then
10518 HAVE_GNUTLS=no
10519 else
10520 PKG_CONFIG_MIN_VERSION=0.9.0
10521 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10523$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10524
10525 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10527$as_echo "yes" >&6; }
10528 succeeded=yes
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10531$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10532 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10534$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10537$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10538 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10540$as_echo "$LIBGNUTLS_LIBS" >&6; }
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543$as_echo "no" >&6; }
10544 LIBGNUTLS_CFLAGS=""
10545 LIBGNUTLS_LIBS=""
10546 ## If we have a custom action on failure, don't print errors, but
10547 ## do set a variable so people can do so.
10548 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10549
10550 fi
10551
10552
10553
10554 else
10555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10557 fi
10558 fi
10559
10560 if test $succeeded = yes; then
10561 HAVE_GNUTLS=yes
10562 else
10563 HAVE_GNUTLS=no
10564 fi
10565
10566 if test "${HAVE_GNUTLS}" = "yes"; then
10567
10568$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10569
10570 fi
10571fi
10572
10573
10574
10575HAVE_XAW3D=no
10576LUCID_LIBW=
10577if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10578 if test "$with_xaw3d" != no; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10580$as_echo_n "checking for xaw3d... " >&6; }
d6974efa 10581 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10582 $as_echo_n "(cached) " >&6
10583else
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h. */
10586
10587#include <X11/Intrinsic.h>
10588#include <X11/Xaw3d/Simple.h>
10589int
10590main ()
10591{
10592
10593 ;
10594 return 0;
10595}
10596_ACEOF
10597if ac_fn_c_try_link "$LINENO"; then :
10598 emacs_cv_xaw3d=yes
10599else
10600 emacs_cv_xaw3d=no
10601fi
10602rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604fi
10605
10606 else
10607 emacs_cv_xaw3d=no
10608 fi
10609 if test $emacs_cv_xaw3d = yes; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10611$as_echo "yes; using Lucid toolkit" >&6; }
10612 USE_X_TOOLKIT=LUCID
10613 HAVE_XAW3D=yes
10614 LUCID_LIBW=-lXaw3d
10615
10616$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10617
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10622$as_echo_n "checking for libXaw... " >&6; }
d6974efa 10623 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10624 $as_echo_n "(cached) " >&6
10625else
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h. */
10628
10629#include <X11/Intrinsic.h>
10630#include <X11/Xaw/Simple.h>
10631int
10632main ()
10633{
10634
10635 ;
10636 return 0;
10637}
10638_ACEOF
10639if ac_fn_c_try_link "$LINENO"; then :
10640 emacs_cv_xaw=yes
10641else
10642 emacs_cv_xaw=no
10643fi
10644rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646fi
10647
10648 if test $emacs_cv_xaw = yes; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10650$as_echo "yes; using Lucid toolkit" >&6; }
10651 USE_X_TOOLKIT=LUCID
10652 LUCID_LIBW=-lXaw
10653 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
2018939f 10654 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10657$as_echo "no; do not use toolkit by default" >&6; }
10658 USE_X_TOOLKIT=none
10659 fi
10660 fi
10661fi
10662
10663X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10664
10665LIBXTR6=
10666if test "${USE_X_TOOLKIT}" != "none"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10668$as_echo_n "checking X11 toolkit version... " >&6; }
d6974efa 10669 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
10670 $as_echo_n "(cached) " >&6
10671else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673/* end confdefs.h. */
10674#include <X11/Intrinsic.h>
10675int
10676main ()
10677{
10678#if XtSpecificationRelease < 6
10679fail;
10680#endif
10681
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_link "$LINENO"; then :
10687 emacs_cv_x11_toolkit_version_6=yes
10688else
10689 emacs_cv_x11_toolkit_version_6=no
10690fi
10691rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693fi
10694
10695 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10696 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10698$as_echo "6 or newer" >&6; }
10699
10700$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10701
10702 LIBXTR6="-lSM -lICE"
10703 case "$opsys" in
10704 ## Use libw.a along with X11R6 Xt.
10705 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10706 esac
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10709$as_echo "before 6" >&6; }
10710 fi
10711
10712 OLDLIBS="$LIBS"
10713 if test x$HAVE_X11XTR6 = xyes; then
10714 LIBS="-lXt -lSM -lICE $LIBS"
10715 else
10716 LIBS="-lXt $LIBS"
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10719$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
d6974efa 10720if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
10721 $as_echo_n "(cached) " >&6
10722else
10723 ac_check_lib_save_LIBS=$LIBS
10724LIBS="-lXmu $LIBS"
10725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726/* end confdefs.h. */
10727
10728/* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731#ifdef __cplusplus
10732extern "C"
10733#endif
10734char XmuConvertStandardSelection ();
10735int
10736main ()
10737{
10738return XmuConvertStandardSelection ();
10739 ;
10740 return 0;
10741}
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"; then :
10744 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10745else
10746 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10747fi
10748rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750LIBS=$ac_check_lib_save_LIBS
10751fi
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10753$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
d6974efa 10754if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
10755 cat >>confdefs.h <<_ACEOF
10756#define HAVE_LIBXMU 1
10757_ACEOF
10758
10759 LIBS="-lXmu $LIBS"
10760
10761fi
10762
10763 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10764fi
10765
10766
10767LIBXMU=-lXmu
d6a003a8
AS
10768case $opsys in
10769 ## These systems don't supply Xmu.
067d23c9
KY
10770 hpux* | aix4-2 )
10771 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10772 ;;
10773esac
10774
10775
10776# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10777if test "${HAVE_X11}" = "yes"; then
10778 if test "${USE_X_TOOLKIT}" != "none"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10780$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
d6974efa 10781if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
10782 $as_echo_n "(cached) " >&6
10783else
10784 ac_check_lib_save_LIBS=$LIBS
10785LIBS="-lXext $LIBS"
10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787/* end confdefs.h. */
10788
10789/* Override any GCC internal prototype to avoid an error.
10790 Use char because int might match the return type of a GCC
10791 builtin and then its argument prototype would still apply. */
10792#ifdef __cplusplus
10793extern "C"
10794#endif
10795char XShapeQueryExtension ();
10796int
10797main ()
10798{
10799return XShapeQueryExtension ();
10800 ;
10801 return 0;
10802}
10803_ACEOF
10804if ac_fn_c_try_link "$LINENO"; then :
10805 ac_cv_lib_Xext_XShapeQueryExtension=yes
10806else
10807 ac_cv_lib_Xext_XShapeQueryExtension=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811LIBS=$ac_check_lib_save_LIBS
10812fi
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10814$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
d6974efa 10815if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
10816 cat >>confdefs.h <<_ACEOF
10817#define HAVE_LIBXEXT 1
10818_ACEOF
10819
10820 LIBS="-lXext $LIBS"
10821
10822fi
10823
10824 fi
10825fi
10826
10827LIBXP=
10828if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10830$as_echo_n "checking for Motif version 2.1... " >&6; }
d6974efa 10831if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
10832 $as_echo_n "(cached) " >&6
10833else
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835/* end confdefs.h. */
10836#include <Xm/Xm.h>
10837int
10838main ()
10839{
10840#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10841int x = 5;
10842#else
10843Motif version prior to 2.1.
10844#endif
10845 ;
10846 return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_compile "$LINENO"; then :
10850 emacs_cv_motif_version_2_1=yes
10851else
10852 emacs_cv_motif_version_2_1=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10857$as_echo "$emacs_cv_motif_version_2_1" >&6; }
10858 if test $emacs_cv_motif_version_2_1 = yes; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10860$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
d6974efa 10861if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
10862 $as_echo_n "(cached) " >&6
10863else
10864 ac_check_lib_save_LIBS=$LIBS
10865LIBS="-lXp $LIBS"
10866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h. */
10868
10869/* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10872#ifdef __cplusplus
10873extern "C"
10874#endif
10875char XpCreateContext ();
10876int
10877main ()
10878{
10879return XpCreateContext ();
10880 ;
10881 return 0;
10882}
10883_ACEOF
10884if ac_fn_c_try_link "$LINENO"; then :
10885 ac_cv_lib_Xp_XpCreateContext=yes
10886else
10887 ac_cv_lib_Xp_XpCreateContext=no
10888fi
10889rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891LIBS=$ac_check_lib_save_LIBS
10892fi
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10894$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
d6974efa 10895if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
10896 LIBXP=-lXp
10897fi
10898
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10901$as_echo_n "checking for LessTif where some systems put it... " >&6; }
d6974efa 10902if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
10903 $as_echo_n "(cached) " >&6
10904else
10905 # We put this in CFLAGS temporarily to precede other -I options
10906 # that might be in CFLAGS temporarily.
10907 # We put this in CPPFLAGS where it precedes the other -I options.
10908 OLD_CPPFLAGS=$CPPFLAGS
10909 OLD_CFLAGS=$CFLAGS
10910 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10911 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913/* end confdefs.h. */
10914#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10915int
10916main ()
10917{
10918int x = 5;
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923if ac_fn_c_try_compile "$LINENO"; then :
10924 emacs_cv_lesstif=yes
10925else
10926 emacs_cv_lesstif=no
10927fi
10928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10929fi
10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10931$as_echo "$emacs_cv_lesstif" >&6; }
10932 if test $emacs_cv_lesstif = yes; then
10933 # Make sure this -I option remains in CPPFLAGS after it is set
10934 # back to REAL_CPPFLAGS.
10935 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10936 # have those other -I options anyway. Ultimately, having this
10937 # directory ultimately in CPPFLAGS will be enough.
10938 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10939 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10940 else
10941 CFLAGS=$OLD_CFLAGS
10942 CPPFLAGS=$OLD_CPPFLAGS
10943 fi
10944 fi
10945fi
10946
10947
10948USE_TOOLKIT_SCROLL_BARS=no
10949if test "${with_toolkit_scroll_bars}" != "no"; then
10950 if test "${USE_X_TOOLKIT}" != "none"; then
10951 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10952 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10953
10954 HAVE_XAW3D=no
10955 USE_TOOLKIT_SCROLL_BARS=yes
10956 elif test "${HAVE_XAW3D}" = "yes"; then
10957 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10958
10959 USE_TOOLKIT_SCROLL_BARS=yes
10960 fi
10961 elif test "${HAVE_GTK}" = "yes"; then
10962 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10963
10964 USE_TOOLKIT_SCROLL_BARS=yes
10965 elif test "${HAVE_NS}" = "yes"; then
10966 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10967
10968 USE_TOOLKIT_SCROLL_BARS=yes
10969 fi
10970fi
10971
10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973/* end confdefs.h. */
10974
10975 #include <X11/Xlib.h>
10976 #include <X11/Xresource.h>
10977int
10978main ()
10979{
10980XIMProc callback;
10981 ;
10982 return 0;
10983}
10984_ACEOF
10985if ac_fn_c_try_compile "$LINENO"; then :
10986 HAVE_XIM=yes
10987
10988$as_echo "#define HAVE_XIM 1" >>confdefs.h
10989
10990else
10991 HAVE_XIM=no
10992fi
10993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994
10995
10996if test "${with_xim}" != "no"; then
10997
10998$as_echo "#define USE_XIM 1" >>confdefs.h
10999
11000fi
11001
11002
11003if test "${HAVE_XIM}" != "no"; then
11004 late_CFLAGS=$CFLAGS
11005 if test "$GCC" = yes; then
11006 CFLAGS="$CFLAGS --pedantic-errors"
11007 fi
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h. */
11010
11011#include <X11/Xlib.h>
11012#include <X11/Xresource.h>
11013int
11014main ()
11015{
11016Display *display;
11017XrmDatabase db;
11018char *res_name;
11019char *res_class;
11020XIMProc callback;
11021XPointer *client_data;
11022#ifndef __GNUC__
11023/* If we're not using GCC, it's probably not XFree86, and this is
11024 probably right, but we can't use something like --pedantic-errors. */
11025extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11026 char*, XIMProc, XPointer*);
11027#endif
11028(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11029 client_data);
11030 ;
11031 return 0;
11032}
11033_ACEOF
11034if ac_fn_c_try_compile "$LINENO"; then :
11035 emacs_cv_arg6_star=yes
11036fi
11037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11038 if test "$emacs_cv_arg6_star" = yes; then
11039 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11040
11041 else
11042 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11043
11044 fi
11045 CFLAGS=$late_CFLAGS
11046fi
11047
11048### Start of font-backend (under any platform) section.
11049# (nothing here yet -- this is a placeholder)
11050### End of font-backend (under any platform) section.
11051
11052### Start of font-backend (under X11) section.
11053if test "${HAVE_X11}" = "yes"; then
11054
11055 succeeded=no
11056
11057 # Extract the first word of "pkg-config", so it can be a program name with args.
11058set dummy pkg-config; ac_word=$2
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11061if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11062 $as_echo_n "(cached) " >&6
11063else
11064 case $PKG_CONFIG in
11065 [\\/]* | ?:[\\/]*)
11066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11067 ;;
11068 *)
11069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070for as_dir in $PATH
11071do
11072 IFS=$as_save_IFS
11073 test -z "$as_dir" && as_dir=.
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 break 2
11079 fi
11080done
11081 done
11082IFS=$as_save_IFS
11083
11084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11085 ;;
11086esac
11087fi
11088PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11089if test -n "$PKG_CONFIG"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11091$as_echo "$PKG_CONFIG" >&6; }
11092else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
11095fi
11096
11097
11098
11099 if test "$PKG_CONFIG" = "no" ; then
11100 HAVE_FC=no
11101 else
11102 PKG_CONFIG_MIN_VERSION=0.9.0
11103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11105$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11106
11107 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109$as_echo "yes" >&6; }
11110 succeeded=yes
11111
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11113$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11114 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11116$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11117
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11119$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11120 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11122$as_echo "$FONTCONFIG_LIBS" >&6; }
11123 else
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126 FONTCONFIG_CFLAGS=""
11127 FONTCONFIG_LIBS=""
11128 ## If we have a custom action on failure, don't print errors, but
11129 ## do set a variable so people can do so.
11130 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11131
11132 fi
11133
11134
11135
11136 else
11137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11139 fi
11140 fi
11141
11142 if test $succeeded = yes; then
11143 HAVE_FC=yes
11144 else
11145 HAVE_FC=no
11146 fi
11147
11148
11149 ## Use -lXft if available, unless `--with-xft=no'.
11150 HAVE_XFT=maybe
11151 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11152 with_xft="no";
11153 fi
11154 if test "x${with_xft}" != "xno"; then
11155
11156
11157 succeeded=no
11158
11159 # Extract the first word of "pkg-config", so it can be a program name with args.
11160set dummy pkg-config; ac_word=$2
11161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11162$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11163if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11164 $as_echo_n "(cached) " >&6
11165else
11166 case $PKG_CONFIG in
11167 [\\/]* | ?:[\\/]*)
11168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11169 ;;
11170 *)
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172for as_dir in $PATH
11173do
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11181 fi
11182done
11183 done
11184IFS=$as_save_IFS
11185
11186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11187 ;;
11188esac
11189fi
11190PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11191if test -n "$PKG_CONFIG"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11193$as_echo "$PKG_CONFIG" >&6; }
11194else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196$as_echo "no" >&6; }
11197fi
11198
11199
11200
11201 if test "$PKG_CONFIG" = "no" ; then
11202 HAVE_XFT=no
11203 else
11204 PKG_CONFIG_MIN_VERSION=0.9.0
11205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11207$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11208
11209 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211$as_echo "yes" >&6; }
11212 succeeded=yes
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11215$as_echo_n "checking XFT_CFLAGS... " >&6; }
11216 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11218$as_echo "$XFT_CFLAGS" >&6; }
11219
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11221$as_echo_n "checking XFT_LIBS... " >&6; }
11222 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11224$as_echo "$XFT_LIBS" >&6; }
11225 else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228 XFT_CFLAGS=""
11229 XFT_LIBS=""
11230 ## If we have a custom action on failure, don't print errors, but
11231 ## do set a variable so people can do so.
11232 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11233
11234 fi
11235
11236
11237
11238 else
11239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11241 fi
11242 fi
11243
11244 if test $succeeded = yes; then
11245 :
11246 else
11247 HAVE_XFT=no
11248 fi
11249
11250 ## Because xftfont.c uses XRenderQueryExtension, we also
11251 ## need to link to -lXrender.
11252 HAVE_XRENDER=no
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11254$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
d6974efa 11255if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11256 $as_echo_n "(cached) " >&6
11257else
11258 ac_check_lib_save_LIBS=$LIBS
11259LIBS="-lXrender $LIBS"
11260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261/* end confdefs.h. */
11262
11263/* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11266#ifdef __cplusplus
11267extern "C"
11268#endif
11269char XRenderQueryExtension ();
11270int
11271main ()
11272{
11273return XRenderQueryExtension ();
11274 ;
11275 return 0;
11276}
11277_ACEOF
11278if ac_fn_c_try_link "$LINENO"; then :
11279 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11280else
11281 ac_cv_lib_Xrender_XRenderQueryExtension=no
11282fi
11283rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285LIBS=$ac_check_lib_save_LIBS
11286fi
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11288$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
d6974efa 11289if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11290 HAVE_XRENDER=yes
11291fi
11292
11293 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11294 OLD_CPPFLAGS="$CPPFLAGS"
11295 OLD_CFLAGS="$CFLAGS"
11296 OLD_LIBS="$LIBS"
11297 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11298 CFLAGS="$CFLAGS $XFT_CFLAGS"
11299 XFT_LIBS="-lXrender $XFT_LIBS"
11300 LIBS="$XFT_LIBS $LIBS"
11301 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
d6974efa 11302if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11304$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
d6974efa 11305if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11306 $as_echo_n "(cached) " >&6
11307else
11308 ac_check_lib_save_LIBS=$LIBS
11309LIBS="-lXft $XFT_LIBS $LIBS"
11310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311/* end confdefs.h. */
11312
11313/* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316#ifdef __cplusplus
11317extern "C"
11318#endif
11319char XftFontOpen ();
11320int
11321main ()
11322{
11323return XftFontOpen ();
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328if ac_fn_c_try_link "$LINENO"; then :
11329 ac_cv_lib_Xft_XftFontOpen=yes
11330else
11331 ac_cv_lib_Xft_XftFontOpen=no
11332fi
11333rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335LIBS=$ac_check_lib_save_LIBS
11336fi
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11338$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
d6974efa 11339if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11340 HAVE_XFT=yes
11341fi
11342
11343fi
11344
11345
11346
11347 if test "${HAVE_XFT}" = "yes"; then
11348
11349$as_echo "#define HAVE_XFT 1" >>confdefs.h
11350
11351
11352 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11353 else
11354 CPPFLAGS="$OLD_CPPFLAGS"
11355 CFLAGS="$OLD_CFLAGS"
11356 LIBS="$OLD_LIBS"
11357 fi # "${HAVE_XFT}" = "yes"
11358 fi # "$HAVE_XFT" != no
11359 fi # "x${with_xft}" != "xno"
11360
11361 if test "$HAVE_XFT" != "yes"; then
11362 HAVE_XFT=no
11363 fi
11364
067d23c9
KY
11365 ## We used to allow building with FreeType and without Xft.
11366 ## However, the ftx font backend driver is not in good shape.
9ba41eb9 11367 HAVE_FREETYPE=$HAVE_XFT
067d23c9
KY
11368
11369 HAVE_LIBOTF=no
11370 if test "${HAVE_FREETYPE}" = "yes"; then
11371
11372$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11373
11374 if test "${with_libotf}" != "no"; then
11375
11376 succeeded=no
11377
11378 # Extract the first word of "pkg-config", so it can be a program name with args.
11379set dummy pkg-config; ac_word=$2
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11381$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11382if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11383 $as_echo_n "(cached) " >&6
11384else
11385 case $PKG_CONFIG in
11386 [\\/]* | ?:[\\/]*)
11387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11388 ;;
11389 *)
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391for as_dir in $PATH
11392do
11393 IFS=$as_save_IFS
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11397 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399 break 2
11400 fi
11401done
11402 done
11403IFS=$as_save_IFS
11404
11405 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11406 ;;
11407esac
11408fi
11409PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11410if test -n "$PKG_CONFIG"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11412$as_echo "$PKG_CONFIG" >&6; }
11413else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
11416fi
11417
11418
11419
11420 if test "$PKG_CONFIG" = "no" ; then
11421 HAVE_LIBOTF=no
11422 else
11423 PKG_CONFIG_MIN_VERSION=0.9.0
11424 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11426$as_echo_n "checking for libotf... " >&6; }
11427
11428 if $PKG_CONFIG --exists "libotf" 2>&5; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430$as_echo "yes" >&6; }
11431 succeeded=yes
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11434$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11435 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11437$as_echo "$LIBOTF_CFLAGS" >&6; }
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11440$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11441 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11443$as_echo "$LIBOTF_LIBS" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446$as_echo "no" >&6; }
11447 LIBOTF_CFLAGS=""
11448 LIBOTF_LIBS=""
11449 ## If we have a custom action on failure, don't print errors, but
11450 ## do set a variable so people can do so.
11451 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11452
11453 fi
11454
11455
11456
11457 else
11458 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11459 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11460 fi
11461 fi
11462
11463 if test $succeeded = yes; then
11464 HAVE_LIBOTF=yes
11465 else
11466 HAVE_LIBOTF=no
11467 fi
11468
11469 if test "$HAVE_LIBOTF" = "yes"; then
11470
11471$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11472
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11474$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
d6974efa 11475if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11476 $as_echo_n "(cached) " >&6
11477else
11478 ac_check_lib_save_LIBS=$LIBS
11479LIBS="-lotf $LIBS"
11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h. */
11482
11483/* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486#ifdef __cplusplus
11487extern "C"
11488#endif
11489char OTF_get_variation_glyphs ();
11490int
11491main ()
11492{
11493return OTF_get_variation_glyphs ();
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11500else
11501 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11502fi
11503rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505LIBS=$ac_check_lib_save_LIBS
11506fi
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11508$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
d6974efa 11509if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11510 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11511else
11512 HAVE_OTF_GET_VARIATION_GLYPHS=no
11513fi
11514
11515 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11516
11517$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11518
11519 fi
11520 fi
11521 fi
11522 fi
11523
11524 HAVE_M17N_FLT=no
11525 if test "${HAVE_LIBOTF}" = yes; then
11526 if test "${with_m17n_flt}" != "no"; then
11527
11528 succeeded=no
11529
11530 # Extract the first word of "pkg-config", so it can be a program name with args.
11531set dummy pkg-config; ac_word=$2
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11534if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11535 $as_echo_n "(cached) " >&6
11536else
11537 case $PKG_CONFIG in
11538 [\\/]* | ?:[\\/]*)
11539 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11540 ;;
11541 *)
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543for as_dir in $PATH
11544do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553done
11554 done
11555IFS=$as_save_IFS
11556
11557 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11558 ;;
11559esac
11560fi
11561PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11562if test -n "$PKG_CONFIG"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11564$as_echo "$PKG_CONFIG" >&6; }
11565else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567$as_echo "no" >&6; }
11568fi
11569
11570
11571
11572 if test "$PKG_CONFIG" = "no" ; then
11573 HAVE_M17N_FLT=no
11574 else
11575 PKG_CONFIG_MIN_VERSION=0.9.0
11576 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11578$as_echo_n "checking for m17n-flt... " >&6; }
11579
11580 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11582$as_echo "yes" >&6; }
11583 succeeded=yes
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11586$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11587 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11589$as_echo "$M17N_FLT_CFLAGS" >&6; }
11590
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11592$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11593 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11595$as_echo "$M17N_FLT_LIBS" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
11599 M17N_FLT_CFLAGS=""
11600 M17N_FLT_LIBS=""
11601 ## If we have a custom action on failure, don't print errors, but
11602 ## do set a variable so people can do so.
11603 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11604
11605 fi
11606
11607
11608
11609 else
11610 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11611 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11612 fi
11613 fi
11614
11615 if test $succeeded = yes; then
11616 HAVE_M17N_FLT=yes
11617 else
11618 HAVE_M17N_FLT=no
11619 fi
11620
11621 if test "$HAVE_M17N_FLT" = "yes"; then
11622
11623$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11624
11625 fi
11626 fi
11627 fi
11628else
11629 HAVE_XFT=no
11630 HAVE_FREETYPE=no
11631 HAVE_LIBOTF=no
11632 HAVE_M17N_FLT=no
11633fi
11634
11635### End of font-backend (under X11) section.
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646### Use -lXpm if available, unless `--with-xpm=no'.
11647HAVE_XPM=no
11648LIBXPM=
11649if test "${HAVE_X11}" = "yes"; then
11650 if test "${with_xpm}" != "no"; then
11651 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
d6974efa 11652if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11654$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
d6974efa 11655if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11656 $as_echo_n "(cached) " >&6
11657else
11658 ac_check_lib_save_LIBS=$LIBS
11659LIBS="-lXpm -lX11 $LIBS"
11660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h. */
11662
11663/* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666#ifdef __cplusplus
11667extern "C"
11668#endif
11669char XpmReadFileToPixmap ();
11670int
11671main ()
11672{
11673return XpmReadFileToPixmap ();
11674 ;
11675 return 0;
11676}
11677_ACEOF
11678if ac_fn_c_try_link "$LINENO"; then :
11679 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11680else
11681 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11682fi
11683rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685LIBS=$ac_check_lib_save_LIBS
11686fi
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11688$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
d6974efa 11689if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
11690 HAVE_XPM=yes
11691fi
11692
11693fi
11694
11695
11696 if test "${HAVE_XPM}" = "yes"; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11698$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700/* end confdefs.h. */
11701#include "X11/xpm.h"
11702#ifndef XpmReturnAllocPixels
11703no_return_alloc_pixels
11704#endif
11705
11706_ACEOF
11707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11708 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11709 HAVE_XPM=no
11710else
11711 HAVE_XPM=yes
11712fi
11713rm -f conftest*
11714
11715
11716 if test "${HAVE_XPM}" = "yes"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11718$as_echo "yes" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
11722 fi
11723 fi
11724 fi
11725
11726 if test "${HAVE_XPM}" = "yes"; then
11727
11728$as_echo "#define HAVE_XPM 1" >>confdefs.h
11729
11730 LIBXPM=-lXpm
11731 fi
11732fi
11733
11734
11735### Use -ljpeg if available, unless `--with-jpeg=no'.
11736HAVE_JPEG=no
11737LIBJPEG=
11738if test "${HAVE_X11}" = "yes"; then
11739 if test "${with_jpeg}" != "no"; then
11740 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
d6974efa 11741if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11743$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
d6974efa 11744if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
11745 $as_echo_n "(cached) " >&6
11746else
11747 ac_check_lib_save_LIBS=$LIBS
11748LIBS="-ljpeg $LIBS"
11749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750/* end confdefs.h. */
11751
11752/* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11755#ifdef __cplusplus
11756extern "C"
11757#endif
11758char jpeg_destroy_compress ();
11759int
11760main ()
11761{
11762return jpeg_destroy_compress ();
11763 ;
11764 return 0;
11765}
11766_ACEOF
11767if ac_fn_c_try_link "$LINENO"; then :
11768 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11769else
11770 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11771fi
11772rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774LIBS=$ac_check_lib_save_LIBS
11775fi
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11777$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
d6974efa 11778if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
11779 HAVE_JPEG=yes
11780fi
11781
11782fi
11783
11784
11785 fi
11786
11787 if test "${HAVE_JPEG}" = "yes"; then
11788 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11789
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h. */
11792#include <jpeglib.h>
11793 version=JPEG_LIB_VERSION
11794
11795_ACEOF
11796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11797 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11798 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11799
11800else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11802$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11803 HAVE_JPEG=no
11804fi
11805rm -f conftest*
11806
11807 fi
11808 if test "${HAVE_JPEG}" = "yes"; then
11809 LIBJPEG=-ljpeg
11810 fi
11811fi
11812
11813
11814### Use -lpng if available, unless `--with-png=no'.
11815HAVE_PNG=no
11816LIBPNG=
11817if test "${HAVE_X11}" = "yes"; then
11818 if test "${with_png}" != "no"; then
11819 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11820 # in /usr/include/libpng.
11821 for ac_header in png.h libpng/png.h
11822do :
11823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11824ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 11825if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
11826 cat >>confdefs.h <<_ACEOF
11827#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828_ACEOF
11829
11830fi
11831
11832done
11833
11834 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11836$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
d6974efa 11837if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
11838 $as_echo_n "(cached) " >&6
11839else
11840 ac_check_lib_save_LIBS=$LIBS
11841LIBS="-lpng -lz -lm $LIBS"
11842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843/* end confdefs.h. */
11844
11845/* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848#ifdef __cplusplus
11849extern "C"
11850#endif
11851char png_get_channels ();
11852int
11853main ()
11854{
11855return png_get_channels ();
11856 ;
11857 return 0;
11858}
11859_ACEOF
11860if ac_fn_c_try_link "$LINENO"; then :
11861 ac_cv_lib_png_png_get_channels=yes
11862else
11863 ac_cv_lib_png_png_get_channels=no
11864fi
11865rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext conftest.$ac_ext
11867LIBS=$ac_check_lib_save_LIBS
11868fi
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11870$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
d6974efa 11871if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
11872 HAVE_PNG=yes
11873fi
11874
11875 fi
11876 fi
11877
11878 if test "${HAVE_PNG}" = "yes"; then
11879
11880$as_echo "#define HAVE_PNG 1" >>confdefs.h
11881
11882 LIBPNG="-lpng -lz -lm"
11883 fi
11884fi
11885
11886
11887### Use -ltiff if available, unless `--with-tiff=no'.
11888HAVE_TIFF=no
11889LIBTIFF=
11890if test "${HAVE_X11}" = "yes"; then
11891 if test "${with_tiff}" != "no"; then
11892 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
d6974efa 11893if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
11894 tifflibs="-lz -lm"
11895 # At least one tiff package requires the jpeg library.
11896 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11898$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
d6974efa 11899if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
11900 $as_echo_n "(cached) " >&6
11901else
11902 ac_check_lib_save_LIBS=$LIBS
11903LIBS="-ltiff $tifflibs $LIBS"
11904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905/* end confdefs.h. */
11906
11907/* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11910#ifdef __cplusplus
11911extern "C"
11912#endif
11913char TIFFGetVersion ();
11914int
11915main ()
11916{
11917return TIFFGetVersion ();
11918 ;
11919 return 0;
11920}
11921_ACEOF
11922if ac_fn_c_try_link "$LINENO"; then :
11923 ac_cv_lib_tiff_TIFFGetVersion=yes
11924else
11925 ac_cv_lib_tiff_TIFFGetVersion=no
11926fi
11927rm -f core conftest.err conftest.$ac_objext \
11928 conftest$ac_exeext conftest.$ac_ext
11929LIBS=$ac_check_lib_save_LIBS
11930fi
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11932$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
d6974efa 11933if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
11934 HAVE_TIFF=yes
11935fi
11936
11937fi
11938
11939
11940 fi
11941
11942 if test "${HAVE_TIFF}" = "yes"; then
11943
11944$as_echo "#define HAVE_TIFF 1" >>confdefs.h
11945
11946 LIBTIFF=-ltiff
11947 fi
11948fi
11949
11950
11951### Use -lgif or -lungif if available, unless `--with-gif=no'.
11952HAVE_GIF=no
11953LIBGIF=
11954if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11955 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
d6974efa 11956if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
11957 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11958# Earlier versions can crash Emacs.
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11960$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
d6974efa 11961if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
11962 $as_echo_n "(cached) " >&6
11963else
11964 ac_check_lib_save_LIBS=$LIBS
11965LIBS="-lgif $LIBS"
11966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h. */
11968
11969/* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11972#ifdef __cplusplus
11973extern "C"
11974#endif
11975char EGifPutExtensionLast ();
11976int
11977main ()
11978{
11979return EGifPutExtensionLast ();
11980 ;
11981 return 0;
11982}
11983_ACEOF
11984if ac_fn_c_try_link "$LINENO"; then :
11985 ac_cv_lib_gif_EGifPutExtensionLast=yes
11986else
11987 ac_cv_lib_gif_EGifPutExtensionLast=no
11988fi
11989rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991LIBS=$ac_check_lib_save_LIBS
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11994$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
d6974efa 11995if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
11996 HAVE_GIF=yes
11997else
11998 HAVE_GIF=maybe
11999fi
12000
12001fi
12002
12003
12004
12005 if test "$HAVE_GIF" = yes; then
12006 LIBGIF=-lgif
12007 elif test "$HAVE_GIF" = maybe; then
12008# If gif_lib.h but no libgif, try libungif.
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12010$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
d6974efa 12011if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12012 $as_echo_n "(cached) " >&6
12013else
12014 ac_check_lib_save_LIBS=$LIBS
12015LIBS="-lungif $LIBS"
12016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h. */
12018
12019/* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12022#ifdef __cplusplus
12023extern "C"
12024#endif
12025char EGifPutExtensionLast ();
12026int
12027main ()
12028{
12029return EGifPutExtensionLast ();
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034if ac_fn_c_try_link "$LINENO"; then :
12035 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12036else
12037 ac_cv_lib_ungif_EGifPutExtensionLast=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041LIBS=$ac_check_lib_save_LIBS
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12044$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
d6974efa 12045if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12046 HAVE_GIF=yes
12047else
12048 HAVE_GIF=no
12049fi
12050
12051 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12052 fi
12053
12054 if test "${HAVE_GIF}" = "yes"; then
12055
12056$as_echo "#define HAVE_GIF 1" >>confdefs.h
12057
12058 fi
12059fi
12060
12061
12062if test "${HAVE_X11}" = "yes"; then
12063 MISSING=""
12064 WITH_NO=""
12065 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12066 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12067 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12068 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12069 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12070 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12071 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12072 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12073 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12074 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12075
12076 if test "X${MISSING}" != X; then
2018939f 12077 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12078 $MISSING
12079Maybe some development libraries/packages are missing?
12080If you don't want to link with them give
12081 $WITH_NO
12082as options to configure" "$LINENO" 5
12083 fi
12084fi
12085
12086### Use -lgpm if available, unless `--with-gpm=no'.
12087HAVE_GPM=no
12088LIBGPM=
12089MOUSE_SUPPORT=
12090if test "${with_gpm}" != "no"; then
12091 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
d6974efa 12092if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12094$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
d6974efa 12095if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12096 $as_echo_n "(cached) " >&6
12097else
12098 ac_check_lib_save_LIBS=$LIBS
12099LIBS="-lgpm $LIBS"
12100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h. */
12102
12103/* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12106#ifdef __cplusplus
12107extern "C"
12108#endif
12109char Gpm_Open ();
12110int
12111main ()
12112{
12113return Gpm_Open ();
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118if ac_fn_c_try_link "$LINENO"; then :
12119 ac_cv_lib_gpm_Gpm_Open=yes
12120else
12121 ac_cv_lib_gpm_Gpm_Open=no
12122fi
12123rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125LIBS=$ac_check_lib_save_LIBS
12126fi
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12128$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
d6974efa 12129if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12130 HAVE_GPM=yes
12131fi
12132
12133fi
12134
12135
12136
12137 if test "${HAVE_GPM}" = "yes"; then
12138
12139$as_echo "#define HAVE_GPM 1" >>confdefs.h
12140
12141 LIBGPM=-lgpm
12142 ## May be reset below.
12143 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12144 fi
12145fi
12146
12147
12148ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
d6974efa 12149if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12150
12151$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12152
12153fi
12154
12155
12156
12157C_SWITCH_X_SYSTEM=
12158### Use NeXTstep API to implement GUI.
12159if test "${HAVE_NS}" = "yes"; then
12160
12161$as_echo "#define HAVE_NS 1" >>confdefs.h
12162
12163 if test "${NS_IMPL_COCOA}" = "yes"; then
12164
12165$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12166
12167 GNU_OBJC_CFLAGS=
12168 fi
12169 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12170
12171$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12172
12173 # See also .m.o rule in Makefile.in */
12174 # FIXME: are all these flags really needed? Document here why. */
12175 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12176 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12177 fi
12178 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12179
12180$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12181
12182 fi
12183 # We also have mouse menus.
12184 HAVE_MENUS=yes
12185 OTHER_FILES=ns-app
12186fi
12187
12188
12189### Use session management (-lSM -lICE) if available
12190HAVE_X_SM=no
12191LIBXSM=
12192if test "${HAVE_X11}" = "yes"; then
12193 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
d6974efa 12194if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12196$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
d6974efa 12197if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12198 $as_echo_n "(cached) " >&6
12199else
12200 ac_check_lib_save_LIBS=$LIBS
12201LIBS="-lSM -lICE $LIBS"
12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h. */
12204
12205/* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208#ifdef __cplusplus
12209extern "C"
12210#endif
12211char SmcOpenConnection ();
12212int
12213main ()
12214{
12215return SmcOpenConnection ();
12216 ;
12217 return 0;
12218}
12219_ACEOF
12220if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_SM_SmcOpenConnection=yes
12222else
12223 ac_cv_lib_SM_SmcOpenConnection=no
12224fi
12225rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227LIBS=$ac_check_lib_save_LIBS
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12230$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
d6974efa 12231if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12232 HAVE_X_SM=yes
12233fi
12234
12235fi
12236
12237
12238
12239 if test "${HAVE_X_SM}" = "yes"; then
12240
12241$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12242
12243 LIBXSM="-lSM -lICE"
12244 case "$LIBS" in
12245 *-lSM*) ;;
12246 *) LIBS="$LIBXSM $LIBS" ;;
12247 esac
12248 fi
12249fi
12250
12251
12252### Use libxml (-lxml2) if available
12253if test "${with_xml2}" != "no"; then
12254 ### I'm not sure what the version number should be, so I just guessed.
12255
12256 succeeded=no
12257
12258 # Extract the first word of "pkg-config", so it can be a program name with args.
12259set dummy pkg-config; ac_word=$2
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12262if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12263 $as_echo_n "(cached) " >&6
12264else
12265 case $PKG_CONFIG in
12266 [\\/]* | ?:[\\/]*)
12267 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12268 ;;
12269 *)
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12280 fi
12281done
12282 done
12283IFS=$as_save_IFS
12284
12285 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12286 ;;
12287esac
12288fi
12289PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12290if test -n "$PKG_CONFIG"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12292$as_echo "$PKG_CONFIG" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298
12299
12300 if test "$PKG_CONFIG" = "no" ; then
12301 HAVE_LIBXML2=no
12302 else
12303 PKG_CONFIG_MIN_VERSION=0.9.0
12304 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12306$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12307
dab73760 12308 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310$as_echo "yes" >&6; }
12311 succeeded=yes
12312
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12314$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12315 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12317$as_echo "$LIBXML2_CFLAGS" >&6; }
12318
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12320$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12321 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12323$as_echo "$LIBXML2_LIBS" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326$as_echo "no" >&6; }
12327 LIBXML2_CFLAGS=""
12328 LIBXML2_LIBS=""
12329 ## If we have a custom action on failure, don't print errors, but
12330 ## do set a variable so people can do so.
dab73760 12331 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12332
12333 fi
12334
12335
12336
12337 else
12338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12340 fi
12341 fi
12342
12343 if test $succeeded = yes; then
12344 HAVE_LIBXML2=yes
12345 else
12346 HAVE_LIBXML2=no
12347 fi
12348
12349 if test "${HAVE_LIBXML2}" = "yes"; then
12350 LIBS="$LIBXML2_LIBS $LIBS"
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12352$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
d6974efa 12353if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12354 $as_echo_n "(cached) " >&6
12355else
12356 ac_check_lib_save_LIBS=$LIBS
12357LIBS="-lxml2 $LIBS"
12358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h. */
12360
12361/* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
12364#ifdef __cplusplus
12365extern "C"
12366#endif
12367char htmlReadMemory ();
12368int
12369main ()
12370{
12371return htmlReadMemory ();
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376if ac_fn_c_try_link "$LINENO"; then :
12377 ac_cv_lib_xml2_htmlReadMemory=yes
12378else
12379 ac_cv_lib_xml2_htmlReadMemory=no
12380fi
12381rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383LIBS=$ac_check_lib_save_LIBS
12384fi
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12386$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
d6974efa 12387if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12388 HAVE_LIBXML2=yes
12389else
12390 HAVE_LIBXML2=no
12391fi
12392
12393 if test "${HAVE_LIBXML2}" = "yes"; then
12394
12395$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12396
12397 else
12398 LIBXML2_LIBS=""
12399 LIBXML2_CFLAGS=""
12400 fi
12401 fi
12402fi
12403
12404
12405
12406# If netdb.h doesn't declare h_errno, we must declare it by hand.
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12408$as_echo_n "checking whether netdb declares h_errno... " >&6; }
d6974efa 12409if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12410 $as_echo_n "(cached) " >&6
12411else
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413/* end confdefs.h. */
12414#include <netdb.h>
12415int
12416main ()
12417{
12418return h_errno;
12419 ;
12420 return 0;
12421}
12422_ACEOF
12423if ac_fn_c_try_link "$LINENO"; then :
12424 emacs_cv_netdb_declares_h_errno=yes
12425else
12426 emacs_cv_netdb_declares_h_errno=no
12427fi
12428rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12430fi
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12432$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12433if test $emacs_cv_netdb_declares_h_errno = yes; then
12434
12435$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12436
12437fi
12438
d6974efa
PE
12439ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12440if test "x$ac_cv_type_size_t" = xyes; then :
12441
12442else
12443
12444cat >>confdefs.h <<_ACEOF
12445#define size_t unsigned int
12446_ACEOF
12447
12448fi
12449
067d23c9
KY
12450# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12451# for constant arguments. Useless!
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12453$as_echo_n "checking for working alloca.h... " >&6; }
d6974efa 12454if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12455 $as_echo_n "(cached) " >&6
12456else
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h. */
12459#include <alloca.h>
12460int
12461main ()
12462{
12463char *p = (char *) alloca (2 * sizeof (int));
12464 if (p) return 0;
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469if ac_fn_c_try_link "$LINENO"; then :
12470 ac_cv_working_alloca_h=yes
12471else
12472 ac_cv_working_alloca_h=no
12473fi
12474rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
12476fi
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12478$as_echo "$ac_cv_working_alloca_h" >&6; }
12479if test $ac_cv_working_alloca_h = yes; then
12480
12481$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12482
12483fi
12484
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12486$as_echo_n "checking for alloca... " >&6; }
d6974efa 12487if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12488 $as_echo_n "(cached) " >&6
12489else
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491/* end confdefs.h. */
12492#ifdef __GNUC__
12493# define alloca __builtin_alloca
12494#else
12495# ifdef _MSC_VER
12496# include <malloc.h>
12497# define alloca _alloca
12498# else
12499# ifdef HAVE_ALLOCA_H
12500# include <alloca.h>
12501# else
12502# ifdef _AIX
12503 #pragma alloca
12504# else
12505# ifndef alloca /* predefined by HP cc +Olibcalls */
d6974efa 12506void *alloca (size_t);
067d23c9
KY
12507# endif
12508# endif
12509# endif
12510# endif
12511#endif
12512
12513int
12514main ()
12515{
12516char *p = (char *) alloca (1);
12517 if (p) return 0;
12518 ;
12519 return 0;
12520}
12521_ACEOF
12522if ac_fn_c_try_link "$LINENO"; then :
12523 ac_cv_func_alloca_works=yes
12524else
12525 ac_cv_func_alloca_works=no
12526fi
12527rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12529fi
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12531$as_echo "$ac_cv_func_alloca_works" >&6; }
12532
12533if test $ac_cv_func_alloca_works = yes; then
12534
12535$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12536
12537else
12538 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12539# that cause trouble. Some versions do not even contain alloca or
12540# contain a buggy version. If you still want to use their alloca,
12541# use ar to extract alloca.o from them instead of compiling alloca.c.
12542
12543ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12544
12545$as_echo "#define C_ALLOCA 1" >>confdefs.h
12546
12547
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12549$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d6974efa 12550if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12551 $as_echo_n "(cached) " >&6
12552else
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554/* end confdefs.h. */
12555#if defined CRAY && ! defined CRAY2
12556webecray
12557#else
12558wenotbecray
12559#endif
12560
12561_ACEOF
12562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12563 $EGREP "webecray" >/dev/null 2>&1; then :
12564 ac_cv_os_cray=yes
12565else
12566 ac_cv_os_cray=no
12567fi
12568rm -f conftest*
12569
12570fi
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12572$as_echo "$ac_cv_os_cray" >&6; }
12573if test $ac_cv_os_cray = yes; then
12574 for ac_func in _getb67 GETB67 getb67; do
12575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12576ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12577if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12578
12579cat >>confdefs.h <<_ACEOF
12580#define CRAY_STACKSEG_END $ac_func
12581_ACEOF
12582
12583 break
12584fi
12585
12586 done
12587fi
12588
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12590$as_echo_n "checking stack direction for C alloca... " >&6; }
d6974efa 12591if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12592 $as_echo_n "(cached) " >&6
12593else
12594 if test "$cross_compiling" = yes; then :
12595 ac_cv_c_stack_direction=0
12596else
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h. */
12599$ac_includes_default
12600int
12601find_stack_direction ()
12602{
12603 static char *addr = 0;
12604 auto char dummy;
12605 if (addr == 0)
12606 {
12607 addr = &dummy;
12608 return find_stack_direction ();
12609 }
12610 else
12611 return (&dummy > addr) ? 1 : -1;
12612}
12613
12614int
12615main ()
12616{
12617 return find_stack_direction () < 0;
12618}
12619_ACEOF
12620if ac_fn_c_try_run "$LINENO"; then :
12621 ac_cv_c_stack_direction=1
12622else
12623 ac_cv_c_stack_direction=-1
12624fi
12625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12626 conftest.$ac_objext conftest.beam conftest.$ac_ext
12627fi
12628
12629fi
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12631$as_echo "$ac_cv_c_stack_direction" >&6; }
12632cat >>confdefs.h <<_ACEOF
12633#define STACK_DIRECTION $ac_cv_c_stack_direction
12634_ACEOF
12635
12636
12637fi
12638
12639
12640if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12641 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12642fi
12643
12644# fmod, logb, and frexp are found in -lm on most systems.
12645# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12647$as_echo_n "checking for sqrt in -lm... " >&6; }
d6974efa 12648if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12649 $as_echo_n "(cached) " >&6
12650else
12651 ac_check_lib_save_LIBS=$LIBS
12652LIBS="-lm $LIBS"
12653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654/* end confdefs.h. */
12655
12656/* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12659#ifdef __cplusplus
12660extern "C"
12661#endif
12662char sqrt ();
12663int
12664main ()
12665{
12666return sqrt ();
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671if ac_fn_c_try_link "$LINENO"; then :
12672 ac_cv_lib_m_sqrt=yes
12673else
12674 ac_cv_lib_m_sqrt=no
12675fi
12676rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678LIBS=$ac_check_lib_save_LIBS
12679fi
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12681$as_echo "$ac_cv_lib_m_sqrt" >&6; }
d6974efa 12682if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
12683 cat >>confdefs.h <<_ACEOF
12684#define HAVE_LIBM 1
12685_ACEOF
12686
12687 LIBS="-lm $LIBS"
12688
12689fi
12690
12691
12692# Check for mail-locking functions in a "mail" library. Probably this should
12693# have the same check as for liblockfile below.
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12695$as_echo_n "checking for maillock in -lmail... " >&6; }
d6974efa 12696if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
12697 $as_echo_n "(cached) " >&6
12698else
12699 ac_check_lib_save_LIBS=$LIBS
12700LIBS="-lmail $LIBS"
12701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702/* end confdefs.h. */
12703
12704/* Override any GCC internal prototype to avoid an error.
12705 Use char because int might match the return type of a GCC
12706 builtin and then its argument prototype would still apply. */
12707#ifdef __cplusplus
12708extern "C"
12709#endif
12710char maillock ();
12711int
12712main ()
12713{
12714return maillock ();
12715 ;
12716 return 0;
12717}
12718_ACEOF
12719if ac_fn_c_try_link "$LINENO"; then :
12720 ac_cv_lib_mail_maillock=yes
12721else
12722 ac_cv_lib_mail_maillock=no
12723fi
12724rm -f core conftest.err conftest.$ac_objext \
12725 conftest$ac_exeext conftest.$ac_ext
12726LIBS=$ac_check_lib_save_LIBS
12727fi
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12729$as_echo "$ac_cv_lib_mail_maillock" >&6; }
d6974efa 12730if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
12731 have_mail=yes
12732else
12733 have_mail=no
12734fi
12735
12736if test $have_mail = yes; then
12737 LIBS_MAIL=-lmail
12738 LIBS="$LIBS_MAIL $LIBS"
12739
12740$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12741
12742else
12743 LIBS_MAIL=
12744fi
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12746$as_echo_n "checking for maillock in -llockfile... " >&6; }
d6974efa 12747if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
12748 $as_echo_n "(cached) " >&6
12749else
12750 ac_check_lib_save_LIBS=$LIBS
12751LIBS="-llockfile $LIBS"
12752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h. */
12754
12755/* Override any GCC internal prototype to avoid an error.
12756 Use char because int might match the return type of a GCC
12757 builtin and then its argument prototype would still apply. */
12758#ifdef __cplusplus
12759extern "C"
12760#endif
12761char maillock ();
12762int
12763main ()
12764{
12765return maillock ();
12766 ;
12767 return 0;
12768}
12769_ACEOF
12770if ac_fn_c_try_link "$LINENO"; then :
12771 ac_cv_lib_lockfile_maillock=yes
12772else
12773 ac_cv_lib_lockfile_maillock=no
12774fi
12775rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777LIBS=$ac_check_lib_save_LIBS
12778fi
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12780$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
d6974efa 12781if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
12782 have_lockfile=yes
12783else
12784 have_lockfile=no
12785fi
12786
12787if test $have_lockfile = yes; then
12788 LIBS_MAIL=-llockfile
12789 LIBS="$LIBS_MAIL $LIBS"
12790
12791$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12792
12793else
12794# If we have the shared liblockfile, assume we must use it for mail
12795# locking (e.g. Debian). If we couldn't link against liblockfile
12796# (no liblockfile.a installed), ensure that we don't need to.
12797 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12798set dummy liblockfile.so; ac_word=$2
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12801if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
12802 $as_echo_n "(cached) " >&6
12803else
12804 if test -n "$liblockfile"; then
12805 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12806else
12807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12809for as_dir in $as_dummy
12810do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_prog_liblockfile="yes"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819done
12820 done
12821IFS=$as_save_IFS
12822
12823 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12824fi
12825fi
12826liblockfile=$ac_cv_prog_liblockfile
12827if test -n "$liblockfile"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12829$as_echo "$liblockfile" >&6; }
12830else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
12833fi
12834
12835
12836 if test $ac_cv_prog_liblockfile = yes; then
2018939f 12837 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
12838This probably means that movemail could lose mail.
12839There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12840 fi
12841fi
12842for ac_func in touchlock
12843do :
12844 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
d6974efa 12845if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
12846 cat >>confdefs.h <<_ACEOF
12847#define HAVE_TOUCHLOCK 1
12848_ACEOF
12849
12850fi
12851done
12852
12853for ac_header in maillock.h
12854do :
12855 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
d6974efa 12856if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
12857 cat >>confdefs.h <<_ACEOF
12858#define HAVE_MAILLOCK_H 1
12859_ACEOF
12860
12861fi
12862
12863done
12864
12865
12866
12867## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12868## interlock access to the mail spool. The alternative is a lock file named
12869## /usr/spool/mail/$USER.lock.
12870mail_lock=no
12871case "$opsys" in
12872 aix4-2) mail_lock="lockf" ;;
12873
12874 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12875
12876 ## On GNU/Linux systems, both methods are used by various mail programs.
12877 ## I assume most people are using newer mailers that have heard of flock.
12878 ## Change this if you need to.
12879 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12880 ## configure gets the right answers, and that means *NOT* using flock.
12881 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12882 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12883 ## Debian maintainer hasn't provided a clean fix for Emacs.
12884 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12885 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12886 ## correct logic. -- fx
12887 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12888 ## liblockfile is a Free Software replacement for libmail, used on
12889 ## Debian systems and elsewhere. -rfr.
12890 gnu-*)
12891 mail_lock="flock"
12892 if test $have_mail = yes || test $have_lockfile = yes; then
12893 test $ac_cv_header_maillock_h = yes && mail_lock=no
12894 fi
12895 ;;
12896esac
12897
12898BLESSMAIL_TARGET=
12899case "$mail_lock" in
12900 flock)
12901$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12902 ;;
12903
12904 lockf)
12905$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12906 ;;
12907
12908 *) BLESSMAIL_TARGET="need-blessmail" ;;
12909esac
12910
12911
12912
12913for ac_func in gethostname getdomainname dup2 \
12914rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12915random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 12916strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
12917utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12918__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12919sendto recvfrom getsockopt setsockopt getsockname getpeername \
12920gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12921memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12922cfmakeraw cfsetspeed isnan copysign __executable_start
12923do :
12924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12925ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12926if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12927 cat >>confdefs.h <<_ACEOF
12928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929_ACEOF
12930
12931fi
12932done
12933
12934
2018939f
AS
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12936$as_echo_n "checking for __builtin_unwind_init... " >&6; }
d6974efa 12937if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
12938 $as_echo_n "(cached) " >&6
12939else
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h. */
12942
12943int
12944main ()
12945{
12946__builtin_unwind_init ();
12947 ;
12948 return 0;
12949}
12950_ACEOF
12951if ac_fn_c_try_link "$LINENO"; then :
12952 emacs_cv_func___builtin_unwind_init=yes
12953else
12954 emacs_cv_func___builtin_unwind_init=no
12955fi
12956rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958fi
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12960$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12961if test $emacs_cv_func___builtin_unwind_init = yes; then
12962
12963$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12964
12965fi
12966
067d23c9
KY
12967for ac_header in sys/un.h
12968do :
12969 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
d6974efa 12970if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
12971 cat >>confdefs.h <<_ACEOF
12972#define HAVE_SYS_UN_H 1
12973_ACEOF
12974
12975fi
12976
12977done
12978
12979
1fd182f0 12980ac_have_func=no # yes means we've found a way to get the load average.
067d23c9
KY
12981
12982# Make sure getloadavg.c is where it belongs, at configure-time.
12983test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
2018939f 12984 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
067d23c9
KY
12985
12986ac_save_LIBS=$LIBS
12987
12988# Check for getloadavg, but be sure not to touch the cache variable.
12989(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
d6974efa 12990if test "x$ac_cv_func_getloadavg" = xyes; then :
067d23c9
KY
12991 exit 0
12992else
12993 exit 1
12994fi
12995) && ac_have_func=yes
12996
12997# On HPUX9, an unprivileged user can get load averages through this function.
12998for ac_func in pstat_getdynamic
12999do :
13000 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
d6974efa 13001if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
067d23c9
KY
13002 cat >>confdefs.h <<_ACEOF
13003#define HAVE_PSTAT_GETDYNAMIC 1
13004_ACEOF
13005
13006fi
13007done
13008
13009
13010# Solaris has libkstat which does not require root.
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13012$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
d6974efa 13013if ${ac_cv_lib_kstat_kstat_open+:} false; then :
067d23c9
KY
13014 $as_echo_n "(cached) " >&6
13015else
13016 ac_check_lib_save_LIBS=$LIBS
13017LIBS="-lkstat $LIBS"
13018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019/* end confdefs.h. */
13020
13021/* Override any GCC internal prototype to avoid an error.
13022 Use char because int might match the return type of a GCC
13023 builtin and then its argument prototype would still apply. */
13024#ifdef __cplusplus
13025extern "C"
13026#endif
13027char kstat_open ();
13028int
13029main ()
13030{
13031return kstat_open ();
13032 ;
13033 return 0;
13034}
13035_ACEOF
13036if ac_fn_c_try_link "$LINENO"; then :
13037 ac_cv_lib_kstat_kstat_open=yes
13038else
13039 ac_cv_lib_kstat_kstat_open=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043LIBS=$ac_check_lib_save_LIBS
13044fi
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13046$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
d6974efa 13047if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
067d23c9
KY
13048 cat >>confdefs.h <<_ACEOF
13049#define HAVE_LIBKSTAT 1
13050_ACEOF
13051
13052 LIBS="-lkstat $LIBS"
13053
13054fi
13055
13056test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13057
13058# Some systems with -lutil have (and need) -lkvm as well, some do not.
13059# On Solaris, -lkvm requires nlist from -lelf, so check that first
13060# to get the right answer into the cache.
13061# For kstat on solaris, we need libelf to force the definition of SVR4 below.
13062if test $ac_have_func = no; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13064$as_echo_n "checking for elf_begin in -lelf... " >&6; }
d6974efa 13065if ${ac_cv_lib_elf_elf_begin+:} false; then :
067d23c9
KY
13066 $as_echo_n "(cached) " >&6
13067else
13068 ac_check_lib_save_LIBS=$LIBS
13069LIBS="-lelf $LIBS"
13070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071/* end confdefs.h. */
13072
13073/* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076#ifdef __cplusplus
13077extern "C"
13078#endif
13079char elf_begin ();
13080int
13081main ()
13082{
13083return elf_begin ();
13084 ;
13085 return 0;
13086}
13087_ACEOF
13088if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_lib_elf_elf_begin=yes
13090else
13091 ac_cv_lib_elf_elf_begin=no
13092fi
13093rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095LIBS=$ac_check_lib_save_LIBS
13096fi
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13098$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
d6974efa 13099if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
067d23c9
KY
13100 LIBS="-lelf $LIBS"
13101fi
13102
13103fi
13104if test $ac_have_func = no; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13106$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
d6974efa 13107if ${ac_cv_lib_kvm_kvm_open+:} false; then :
067d23c9
KY
13108 $as_echo_n "(cached) " >&6
13109else
13110 ac_check_lib_save_LIBS=$LIBS
13111LIBS="-lkvm $LIBS"
13112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h. */
13114
13115/* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118#ifdef __cplusplus
13119extern "C"
13120#endif
13121char kvm_open ();
13122int
13123main ()
13124{
13125return kvm_open ();
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_kvm_kvm_open=yes
13132else
13133 ac_cv_lib_kvm_kvm_open=no
13134fi
13135rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137LIBS=$ac_check_lib_save_LIBS
13138fi
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13140$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
d6974efa 13141if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
067d23c9
KY
13142 LIBS="-lkvm $LIBS"
13143fi
13144
13145 # Check for the 4.4BSD definition of getloadavg.
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13147$as_echo_n "checking for getloadavg in -lutil... " >&6; }
d6974efa 13148if ${ac_cv_lib_util_getloadavg+:} false; then :
067d23c9
KY
13149 $as_echo_n "(cached) " >&6
13150else
13151 ac_check_lib_save_LIBS=$LIBS
13152LIBS="-lutil $LIBS"
13153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154/* end confdefs.h. */
13155
13156/* Override any GCC internal prototype to avoid an error.
13157 Use char because int might match the return type of a GCC
13158 builtin and then its argument prototype would still apply. */
13159#ifdef __cplusplus
13160extern "C"
13161#endif
13162char getloadavg ();
13163int
13164main ()
13165{
13166return getloadavg ();
13167 ;
13168 return 0;
13169}
13170_ACEOF
13171if ac_fn_c_try_link "$LINENO"; then :
13172 ac_cv_lib_util_getloadavg=yes
13173else
13174 ac_cv_lib_util_getloadavg=no
13175fi
13176rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178LIBS=$ac_check_lib_save_LIBS
13179fi
13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13181$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
d6974efa 13182if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
067d23c9
KY
13183 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13184fi
13185
13186fi
13187
13188if test $ac_have_func = no; then
13189 # There is a commonly available library for RS/6000 AIX.
13190 # Since it is not a standard part of AIX, it might be installed locally.
13191 ac_getloadavg_LIBS=$LIBS
13192 LIBS="-L/usr/local/lib $LIBS"
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13194$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
d6974efa 13195if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
067d23c9
KY
13196 $as_echo_n "(cached) " >&6
13197else
13198 ac_check_lib_save_LIBS=$LIBS
13199LIBS="-lgetloadavg $LIBS"
13200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h. */
13202
13203/* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13206#ifdef __cplusplus
13207extern "C"
13208#endif
13209char getloadavg ();
13210int
13211main ()
13212{
13213return getloadavg ();
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218if ac_fn_c_try_link "$LINENO"; then :
13219 ac_cv_lib_getloadavg_getloadavg=yes
13220else
13221 ac_cv_lib_getloadavg_getloadavg=no
13222fi
13223rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225LIBS=$ac_check_lib_save_LIBS
13226fi
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13228$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
d6974efa 13229if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
067d23c9
KY
13230 LIBS="-lgetloadavg $LIBS"
13231else
13232 LIBS=$ac_getloadavg_LIBS
13233fi
13234
13235fi
13236
13237# Make sure it is really in the library, if we think we found it,
13238# otherwise set up the replacement function.
13239for ac_func in getloadavg
13240do :
13241 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
d6974efa 13242if test "x$ac_cv_func_getloadavg" = xyes; then :
067d23c9
KY
13243 cat >>confdefs.h <<_ACEOF
13244#define HAVE_GETLOADAVG 1
13245_ACEOF
13246
13247else
13248 case " $LIBOBJS " in
13249 *" getloadavg.$ac_objext "* ) ;;
13250 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13251 ;;
13252esac
13253
13254
13255$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13256
13257# Figure out what our getloadavg.c needs.
13258ac_have_func=no
13259ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
d6974efa 13260if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
067d23c9
KY
13261 ac_have_func=yes
13262
13263$as_echo "#define DGUX 1" >>confdefs.h
13264
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13266$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
d6974efa 13267if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
067d23c9
KY
13268 $as_echo_n "(cached) " >&6
13269else
13270 ac_check_lib_save_LIBS=$LIBS
13271LIBS="-ldgc $LIBS"
13272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273/* end confdefs.h. */
13274
13275/* Override any GCC internal prototype to avoid an error.
13276 Use char because int might match the return type of a GCC
13277 builtin and then its argument prototype would still apply. */
13278#ifdef __cplusplus
13279extern "C"
13280#endif
13281char dg_sys_info ();
13282int
13283main ()
13284{
13285return dg_sys_info ();
13286 ;
13287 return 0;
13288}
13289_ACEOF
13290if ac_fn_c_try_link "$LINENO"; then :
13291 ac_cv_lib_dgc_dg_sys_info=yes
13292else
13293 ac_cv_lib_dgc_dg_sys_info=no
13294fi
13295rm -f core conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13297LIBS=$ac_check_lib_save_LIBS
13298fi
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13300$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
d6974efa 13301if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
067d23c9
KY
13302 cat >>confdefs.h <<_ACEOF
13303#define HAVE_LIBDGC 1
13304_ACEOF
13305
13306 LIBS="-ldgc $LIBS"
13307
13308fi
13309
13310fi
13311
13312
13313
13314ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
d6974efa 13315if test "x$ac_cv_header_locale_h" = xyes; then :
067d23c9
KY
13316
13317fi
13318
13319
13320for ac_func in setlocale
13321do :
13322 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
d6974efa 13323if test "x$ac_cv_func_setlocale" = xyes; then :
067d23c9
KY
13324 cat >>confdefs.h <<_ACEOF
13325#define HAVE_SETLOCALE 1
13326_ACEOF
13327
13328fi
13329done
13330
13331
13332# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13333# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13334# Irix 4.0.5F has the header but not the library.
d6974efa
PE
13335if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13336 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
067d23c9
KY
13337 ac_have_func=yes
13338
13339$as_echo "#define SVR4 1" >>confdefs.h
13340
13341fi
13342
13343if test $ac_have_func = no; then
13344 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
d6974efa 13345if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
067d23c9
KY
13346 ac_have_func=yes
13347
13348$as_echo "#define UMAX 1" >>confdefs.h
13349
13350
13351$as_echo "#define UMAX4_3 1" >>confdefs.h
13352
13353fi
13354
13355
13356fi
13357
13358if test $ac_have_func = no; then
13359 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
d6974efa 13360if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
067d23c9
KY
13361 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13362
13363fi
13364
13365
13366fi
13367
13368if test $ac_have_func = no; then
13369 for ac_header in mach/mach.h
13370do :
13371 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
d6974efa 13372if test "x$ac_cv_header_mach_mach_h" = xyes; then :
067d23c9
KY
13373 cat >>confdefs.h <<_ACEOF
13374#define HAVE_MACH_MACH_H 1
13375_ACEOF
13376
13377fi
13378
13379done
13380
13381fi
13382
13383for ac_header in nlist.h
13384do :
13385 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
d6974efa 13386if test "x$ac_cv_header_nlist_h" = xyes; then :
067d23c9
KY
13387 cat >>confdefs.h <<_ACEOF
13388#define HAVE_NLIST_H 1
13389_ACEOF
13390 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13391"
d6974efa 13392if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
067d23c9
KY
13393
13394cat >>confdefs.h <<_ACEOF
13395#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13396_ACEOF
13397
13398
13399$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13400
13401fi
13402
13403
13404fi
13405
13406done
13407
13408fi
13409done
13410
13411
13412# Some definitions of getloadavg require that the program be installed setgid.
13413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13414$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
d6974efa 13415if ${ac_cv_func_getloadavg_setgid+:} false; then :
067d23c9
KY
13416 $as_echo_n "(cached) " >&6
13417else
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419/* end confdefs.h. */
13420#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13421#ifdef LDAV_PRIVILEGED
13422Yowza Am I SETGID yet
13423#endif
13424_ACEOF
13425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13426 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13427 ac_cv_func_getloadavg_setgid=yes
13428else
13429 ac_cv_func_getloadavg_setgid=no
13430fi
13431rm -f conftest*
13432
13433fi
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13435$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13436if test $ac_cv_func_getloadavg_setgid = yes; then
13437 NEED_SETGID=true
13438
13439$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13440
13441else
13442 NEED_SETGID=false
13443fi
13444
13445if test $ac_cv_func_getloadavg_setgid = yes; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13447$as_echo_n "checking group of /dev/kmem... " >&6; }
d6974efa 13448if ${ac_cv_group_kmem+:} false; then :
067d23c9
KY
13449 $as_echo_n "(cached) " >&6
13450else
13451 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13452 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13453 # If we got an error (system does not support symlinks), try without -L.
13454 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13455 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13456 | sed -ne 's/[ ][ ]*/ /g;
13457 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13458 / /s/.* //;p;'`
13459
13460fi
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13462$as_echo "$ac_cv_group_kmem" >&6; }
13463 KMEM_GROUP=$ac_cv_group_kmem
13464fi
13465if test "x$ac_save_LIBS" = x; then
13466 GETLOADAVG_LIBS=$LIBS
13467else
13468 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13469fi
13470LIBS=$ac_save_LIBS
13471
13472
13473
13474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13475$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
d6974efa 13476if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13477 $as_echo_n "(cached) " >&6
13478else
13479 while :; do
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481/* end confdefs.h. */
13482#include <sys/types.h> /* for off_t */
13483 #include <stdio.h>
13484int
13485main ()
13486{
13487int (*fp) (FILE *, off_t, int) = fseeko;
13488 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13489 ;
13490 return 0;
13491}
13492_ACEOF
13493if ac_fn_c_try_link "$LINENO"; then :
13494 ac_cv_sys_largefile_source=no; break
13495fi
13496rm -f core conftest.err conftest.$ac_objext \
13497 conftest$ac_exeext conftest.$ac_ext
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499/* end confdefs.h. */
13500#define _LARGEFILE_SOURCE 1
13501#include <sys/types.h> /* for off_t */
13502 #include <stdio.h>
13503int
13504main ()
13505{
13506int (*fp) (FILE *, off_t, int) = fseeko;
13507 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13508 ;
13509 return 0;
13510}
13511_ACEOF
13512if ac_fn_c_try_link "$LINENO"; then :
13513 ac_cv_sys_largefile_source=1; break
13514fi
1fd182f0
PE
13515rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 ac_cv_sys_largefile_source=unknown
13518 break
13519done
13520fi
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13522$as_echo "$ac_cv_sys_largefile_source" >&6; }
13523case $ac_cv_sys_largefile_source in #(
13524 no | unknown) ;;
13525 *)
13526cat >>confdefs.h <<_ACEOF
13527#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13528_ACEOF
13529;;
13530esac
13531rm -rf conftest*
13532
13533# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13534# in glibc 2.1.3, but that breaks too many other things.
13535# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13536if test $ac_cv_sys_largefile_source != unknown; then
13537
13538$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13539
13540fi
13541
13542
1fd182f0
PE
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13544$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
d6974efa 13545if ${ac_cv_func_getpgrp_void+:} false; then :
1fd182f0
PE
13546 $as_echo_n "(cached) " >&6
13547else
13548 # Use it with a single arg.
13549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h. */
13551$ac_includes_default
13552int
13553main ()
13554{
13555getpgrp (0);
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560if ac_fn_c_try_compile "$LINENO"; then :
13561 ac_cv_func_getpgrp_void=no
13562else
13563 ac_cv_func_getpgrp_void=yes
13564fi
13565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566
13567fi
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13569$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13570if test $ac_cv_func_getpgrp_void = yes; then
13571
13572$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13573
13574fi
13575
13576
13577# Configure gnulib.
13578
13579
13580
13581
b06b1098
PE
13582
13583
13584
d6974efa
PE
13585
13586
13587
1fd182f0
PE
13588 LIBC_FATAL_STDERR_=1
13589 export LIBC_FATAL_STDERR_
13590
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13593$as_echo_n "checking whether strtold conforms to C99... " >&6; }
d6974efa 13594if ${gl_cv_func_c99_strtold+:} false; then :
1fd182f0
PE
13595 $as_echo_n "(cached) " >&6
13596else
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598/* end confdefs.h. */
13599/* On HP-UX before 11.23, strtold returns a struct instead of
13600 long double. Reject implementations like that, by requiring
13601 compatibility with the C99 prototype. */
13602 #include <stdlib.h>
13603 static long double (*p) (char const *, char **) = strtold;
13604 static long double
13605 test (char const *nptr, char **endptr)
13606 {
13607 long double r;
13608 r = strtold (nptr, endptr);
13609 return r;
13610 }
13611int
13612main ()
13613{
13614return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13615 ;
13616 return 0;
13617}
13618_ACEOF
13619if ac_fn_c_try_link "$LINENO"; then :
13620 gl_cv_func_c99_strtold=yes
13621else
13622 gl_cv_func_c99_strtold=no
13623fi
13624rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626fi
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13628$as_echo "$gl_cv_func_c99_strtold" >&6; }
13629 if test $gl_cv_func_c99_strtold = yes; then
13630
13631$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13632
13633 fi
13634
13635
e275c824
PE
13636 GNULIB_CHOWN=0;
13637 GNULIB_CLOSE=0;
13638 GNULIB_DUP2=0;
13639 GNULIB_DUP3=0;
13640 GNULIB_ENVIRON=0;
13641 GNULIB_EUIDACCESS=0;
13642 GNULIB_FACCESSAT=0;
13643 GNULIB_FCHDIR=0;
13644 GNULIB_FCHOWNAT=0;
13645 GNULIB_FSYNC=0;
13646 GNULIB_FTRUNCATE=0;
13647 GNULIB_GETCWD=0;
13648 GNULIB_GETDOMAINNAME=0;
13649 GNULIB_GETDTABLESIZE=0;
13650 GNULIB_GETGROUPS=0;
13651 GNULIB_GETHOSTNAME=0;
13652 GNULIB_GETLOGIN=0;
13653 GNULIB_GETLOGIN_R=0;
13654 GNULIB_GETPAGESIZE=0;
13655 GNULIB_GETUSERSHELL=0;
13656 GNULIB_LCHOWN=0;
13657 GNULIB_LINK=0;
13658 GNULIB_LINKAT=0;
13659 GNULIB_LSEEK=0;
13660 GNULIB_PIPE=0;
13661 GNULIB_PIPE2=0;
13662 GNULIB_PREAD=0;
13663 GNULIB_PWRITE=0;
13664 GNULIB_READLINK=0;
13665 GNULIB_READLINKAT=0;
13666 GNULIB_RMDIR=0;
13667 GNULIB_SLEEP=0;
13668 GNULIB_SYMLINK=0;
13669 GNULIB_SYMLINKAT=0;
13670 GNULIB_TTYNAME_R=0;
13671 GNULIB_UNISTD_H_GETOPT=0;
13672 GNULIB_UNISTD_H_SIGPIPE=0;
13673 GNULIB_UNLINK=0;
13674 GNULIB_UNLINKAT=0;
13675 GNULIB_USLEEP=0;
13676 GNULIB_WRITE=0;
13677 HAVE_CHOWN=1;
13678 HAVE_DUP2=1;
13679 HAVE_DUP3=1;
13680 HAVE_EUIDACCESS=1;
13681 HAVE_FACCESSAT=1;
13682 HAVE_FCHDIR=1;
13683 HAVE_FCHOWNAT=1;
13684 HAVE_FSYNC=1;
13685 HAVE_FTRUNCATE=1;
13686 HAVE_GETDTABLESIZE=1;
13687 HAVE_GETGROUPS=1;
13688 HAVE_GETHOSTNAME=1;
13689 HAVE_GETLOGIN=1;
13690 HAVE_GETPAGESIZE=1;
13691 HAVE_LCHOWN=1;
13692 HAVE_LINK=1;
13693 HAVE_LINKAT=1;
13694 HAVE_PIPE=1;
13695 HAVE_PIPE2=1;
13696 HAVE_PREAD=1;
13697 HAVE_PWRITE=1;
13698 HAVE_READLINK=1;
13699 HAVE_READLINKAT=1;
13700 HAVE_SLEEP=1;
13701 HAVE_SYMLINK=1;
13702 HAVE_SYMLINKAT=1;
13703 HAVE_UNLINKAT=1;
13704 HAVE_USLEEP=1;
13705 HAVE_DECL_ENVIRON=1;
13706 HAVE_DECL_FCHDIR=1;
13707 HAVE_DECL_GETDOMAINNAME=1;
13708 HAVE_DECL_GETLOGIN_R=1;
13709 HAVE_DECL_GETPAGESIZE=1;
13710 HAVE_DECL_GETUSERSHELL=1;
13711 HAVE_DECL_TTYNAME_R=1;
13712 HAVE_OS_H=0;
13713 HAVE_SYS_PARAM_H=0;
13714 REPLACE_CHOWN=0;
13715 REPLACE_CLOSE=0;
13716 REPLACE_DUP=0;
13717 REPLACE_DUP2=0;
13718 REPLACE_FCHOWNAT=0;
13719 REPLACE_GETCWD=0;
13720 REPLACE_GETDOMAINNAME=0;
13721 REPLACE_GETLOGIN_R=0;
13722 REPLACE_GETGROUPS=0;
13723 REPLACE_GETPAGESIZE=0;
13724 REPLACE_LCHOWN=0;
13725 REPLACE_LINK=0;
13726 REPLACE_LINKAT=0;
13727 REPLACE_LSEEK=0;
13728 REPLACE_PREAD=0;
13729 REPLACE_PWRITE=0;
13730 REPLACE_READLINK=0;
13731 REPLACE_RMDIR=0;
13732 REPLACE_SLEEP=0;
13733 REPLACE_SYMLINK=0;
13734 REPLACE_TTYNAME_R=0;
13735 REPLACE_UNLINK=0;
13736 REPLACE_UNLINKAT=0;
13737 REPLACE_USLEEP=0;
13738 REPLACE_WRITE=0;
13739 UNISTD_H_HAVE_WINSOCK2_H=0;
13740 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
1fd182f0
PE
13741
13742
13743
13744
e275c824
PE
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13746$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
d6974efa 13747if ${gl_cv_have_include_next+:} false; then :
e275c824
PE
13748 $as_echo_n "(cached) " >&6
13749else
13750 rm -rf conftestd1a conftestd1b conftestd2
13751 mkdir conftestd1a conftestd1b conftestd2
13752 cat <<EOF > conftestd1a/conftest.h
13753#define DEFINED_IN_CONFTESTD1
13754#include_next <conftest.h>
13755#ifdef DEFINED_IN_CONFTESTD2
13756int foo;
13757#else
13758#error "include_next doesn't work"
13759#endif
13760EOF
13761 cat <<EOF > conftestd1b/conftest.h
13762#define DEFINED_IN_CONFTESTD1
13763#include <stdio.h>
13764#include_next <conftest.h>
13765#ifdef DEFINED_IN_CONFTESTD2
13766int foo;
13767#else
13768#error "include_next doesn't work"
13769#endif
13770EOF
13771 cat <<EOF > conftestd2/conftest.h
13772#ifndef DEFINED_IN_CONFTESTD1
13773#error "include_next test doesn't work"
13774#endif
13775#define DEFINED_IN_CONFTESTD2
13776EOF
13777 gl_save_CPPFLAGS="$CPPFLAGS"
13778 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780/* end confdefs.h. */
13781#include <conftest.h>
1fd182f0 13782_ACEOF
e275c824
PE
13783if ac_fn_c_try_compile "$LINENO"; then :
13784 gl_cv_have_include_next=yes
13785else
13786 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13788/* end confdefs.h. */
e275c824 13789#include <conftest.h>
1fd182f0
PE
13790_ACEOF
13791if ac_fn_c_try_compile "$LINENO"; then :
e275c824
PE
13792 gl_cv_have_include_next=buggy
13793else
13794 gl_cv_have_include_next=no
1fd182f0
PE
13795fi
13796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 13797
e275c824
PE
13798fi
13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800 CPPFLAGS="$gl_save_CPPFLAGS"
13801 rm -rf conftestd1a conftestd1b conftestd2
1fd182f0 13802
e275c824
PE
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13805$as_echo "$gl_cv_have_include_next" >&6; }
13806 PRAGMA_SYSTEM_HEADER=
13807 if test $gl_cv_have_include_next = yes; then
13808 INCLUDE_NEXT=include_next
13809 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13810 if test -n "$GCC"; then
13811 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13812 fi
1fd182f0 13813 else
e275c824
PE
13814 if test $gl_cv_have_include_next = buggy; then
13815 INCLUDE_NEXT=include
13816 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13817 else
13818 INCLUDE_NEXT=include
13819 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13820 fi
1fd182f0
PE
13821 fi
13822
13823
e275c824
PE
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13826$as_echo_n "checking whether system header files limit the line length... " >&6; }
d6974efa 13827if ${gl_cv_pragma_columns+:} false; then :
1fd182f0
PE
13828 $as_echo_n "(cached) " >&6
13829else
e275c824 13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13831/* end confdefs.h. */
1fd182f0 13832
e275c824
PE
13833#ifdef __TANDEM
13834choke me
13835#endif
13836
13837_ACEOF
13838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13839 $EGREP "choke me" >/dev/null 2>&1; then :
13840 gl_cv_pragma_columns=yes
13841else
13842 gl_cv_pragma_columns=no
13843fi
13844rm -f conftest*
13845
13846
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13849$as_echo "$gl_cv_pragma_columns" >&6; }
13850 if test $gl_cv_pragma_columns = yes; then
13851 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13852 else
13853 PRAGMA_COLUMNS=
13854 fi
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
b06b1098
PE
13869
13870
13871
e275c824
PE
13872 if test $gl_cv_have_include_next = yes; then
13873 gl_cv_next_getopt_h='<'getopt.h'>'
13874 else
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13876$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
d6974efa 13877if ${gl_cv_next_getopt_h+:} false; then :
e275c824
PE
13878 $as_echo_n "(cached) " >&6
13879else
13880
b06b1098
PE
13881 if test $ac_cv_header_getopt_h = yes; then
13882
13883
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
13885/* end confdefs.h. */
13886#include <getopt.h>
13887
13888_ACEOF
b06b1098
PE
13889 case "$host_os" in
13890 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13891 *) gl_absname_cpp="$ac_cpp" ;;
13892 esac
13893 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13894 sed -n '\#/getopt.h#{
13895 s#.*"\(.*/getopt.h\)".*#\1#
13896 s#^/[^/]#//&#
13897 p
13898 q
13899 }'`'"'
e275c824 13900 else
b06b1098
PE
13901 gl_cv_next_getopt_h='<'getopt.h'>'
13902 fi
13903
e275c824
PE
13904
13905fi
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13907$as_echo "$gl_cv_next_getopt_h" >&6; }
13908 fi
13909 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13910
13911 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13913 gl_next_as_first_directive='<'getopt.h'>'
13914 else
13915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13916 gl_next_as_first_directive=$gl_cv_next_getopt_h
13917 fi
13918 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13919
13920
13921
13922
13923 if test $ac_cv_header_getopt_h = yes; then
13924 HAVE_GETOPT_H=1
13925 else
13926 HAVE_GETOPT_H=0
13927 fi
13928
13929
13930 gl_replace_getopt=
13931
13932 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13933 for ac_header in getopt.h
13934do :
13935 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
d6974efa 13936if test "x$ac_cv_header_getopt_h" = xyes; then :
e275c824
PE
13937 cat >>confdefs.h <<_ACEOF
13938#define HAVE_GETOPT_H 1
13939_ACEOF
13940
13941else
13942 gl_replace_getopt=yes
13943fi
13944
13945done
13946
13947 fi
13948
13949 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13950 for ac_func in getopt_long_only
13951do :
13952 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
d6974efa 13953if test "x$ac_cv_func_getopt_long_only" = xyes; then :
e275c824
PE
13954 cat >>confdefs.h <<_ACEOF
13955#define HAVE_GETOPT_LONG_ONLY 1
13956_ACEOF
13957
13958else
13959 gl_replace_getopt=yes
13960fi
13961done
13962
13963 fi
13964
d6974efa
PE
13965 if test -z "$gl_replace_getopt"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13967$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13968if ${gl_cv_func_getopt_posix+:} false; then :
13969 $as_echo_n "(cached) " >&6
e275c824 13970else
e275c824 13971
d6974efa
PE
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973/* end confdefs.h. */
13974#include <unistd.h>
13975int
13976main ()
13977{
13978int *p = &optreset; return optreset;
13979 ;
13980 return 0;
13981}
e275c824 13982_ACEOF
d6974efa
PE
13983if ac_fn_c_try_compile "$LINENO"; then :
13984 gl_optind_min=1
e275c824 13985else
d6974efa
PE
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987/* end confdefs.h. */
13988#include <getopt.h>
13989int
13990main ()
13991{
13992return !getopt_clip;
13993 ;
13994 return 0;
13995}
13996_ACEOF
13997if ac_fn_c_try_compile "$LINENO"; then :
13998 gl_optind_min=1
e275c824 13999else
d6974efa 14000 gl_optind_min=0
e275c824 14001fi
d6974efa 14002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14003fi
d6974efa 14004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14005
d6974efa
PE
14006 gl_save_CPPFLAGS=$CPPFLAGS
14007 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14008 if test "$cross_compiling" = yes; then :
e275c824
PE
14009 case "$host_os" in
14010 mingw*) gl_cv_func_getopt_posix="guessing no";;
14011 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14012 *) gl_cv_func_getopt_posix="guessing yes";;
14013 esac
14014
14015else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017/* end confdefs.h. */
14018
14019#include <unistd.h>
14020#include <stdlib.h>
14021#include <string.h>
14022
e275c824
PE
14023int
14024main ()
14025{
14026 {
14027 int argc = 0;
14028 char *argv[10];
14029 int c;
14030
14031 argv[argc++] = "program";
14032 argv[argc++] = "-a";
14033 argv[argc++] = "foo";
14034 argv[argc++] = "bar";
14035 argv[argc] = NULL;
14036 optind = OPTIND_MIN;
14037 opterr = 0;
14038
14039 c = getopt (argc, argv, "ab");
14040 if (!(c == 'a'))
14041 return 1;
14042 c = getopt (argc, argv, "ab");
14043 if (!(c == -1))
14044 return 2;
14045 if (!(optind == 2))
14046 return 3;
14047 }
14048 /* Some internal state exists at this point. */
14049 {
14050 int argc = 0;
14051 char *argv[10];
14052 int c;
14053
14054 argv[argc++] = "program";
14055 argv[argc++] = "donald";
14056 argv[argc++] = "-p";
14057 argv[argc++] = "billy";
14058 argv[argc++] = "duck";
14059 argv[argc++] = "-a";
14060 argv[argc++] = "bar";
14061 argv[argc] = NULL;
14062 optind = OPTIND_MIN;
14063 opterr = 0;
14064
14065 c = getopt (argc, argv, "+abp:q:");
14066 if (!(c == -1))
14067 return 4;
14068 if (!(strcmp (argv[0], "program") == 0))
14069 return 5;
14070 if (!(strcmp (argv[1], "donald") == 0))
14071 return 6;
14072 if (!(strcmp (argv[2], "-p") == 0))
14073 return 7;
14074 if (!(strcmp (argv[3], "billy") == 0))
14075 return 8;
14076 if (!(strcmp (argv[4], "duck") == 0))
14077 return 9;
14078 if (!(strcmp (argv[5], "-a") == 0))
14079 return 10;
14080 if (!(strcmp (argv[6], "bar") == 0))
14081 return 11;
14082 if (!(optind == 1))
14083 return 12;
14084 }
14085 /* Detect MacOS 10.5, AIX 7.1 bug. */
14086 {
14087 char *argv[3] = { "program", "-ab", NULL };
14088 optind = OPTIND_MIN;
14089 opterr = 0;
14090 if (getopt (2, argv, "ab:") != 'a')
14091 return 13;
14092 if (getopt (2, argv, "ab:") != '?')
14093 return 14;
14094 if (optopt != 'b')
14095 return 15;
14096 if (optind != 2)
14097 return 16;
14098 }
14099
14100 return 0;
14101}
14102
14103_ACEOF
14104if ac_fn_c_try_run "$LINENO"; then :
14105 gl_cv_func_getopt_posix=yes
14106else
14107 gl_cv_func_getopt_posix=no
14108fi
14109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14110 conftest.$ac_objext conftest.beam conftest.$ac_ext
14111fi
14112
d6974efa 14113 CPPFLAGS=$gl_save_CPPFLAGS
e275c824
PE
14114
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14117$as_echo "$gl_cv_func_getopt_posix" >&6; }
14118 case "$gl_cv_func_getopt_posix" in
14119 *no) gl_replace_getopt=yes ;;
14120 esac
14121 fi
14122
14123 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14125$as_echo_n "checking for working GNU getopt function... " >&6; }
d6974efa 14126if ${gl_cv_func_getopt_gnu+:} false; then :
e275c824
PE
14127 $as_echo_n "(cached) " >&6
14128else
14129 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14130 # optstring is necessary for programs like m4 that have POSIX-mandated
14131 # semantics for supporting options interspersed with files.
14132 # Also, since getopt_long is a GNU extension, we require optind=0.
14133 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14134 # so take care to revert to the correct (non-)export state.
14135 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14136 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14137 xx) gl_had_POSIXLY_CORRECT=exported ;;
14138 x) gl_had_POSIXLY_CORRECT=yes ;;
14139 *) gl_had_POSIXLY_CORRECT= ;;
14140 esac
14141 POSIXLY_CORRECT=1
14142 export POSIXLY_CORRECT
14143 if test "$cross_compiling" = yes; then :
14144 case $host_os:$ac_cv_have_decl_optreset in
14145 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14146 *:yes) gl_cv_func_getopt_gnu=no;;
14147 *) gl_cv_func_getopt_gnu=yes;;
14148 esac
14149
14150else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152/* end confdefs.h. */
14153#include <getopt.h>
14154 #include <stddef.h>
14155 #include <string.h>
14156
14157int
14158main ()
14159{
14160
14161 int result = 0;
14162 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14163 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14164 OSF/1 5.1, Solaris 10. */
14165 {
14166 char *myargv[3];
14167 myargv[0] = "conftest";
14168 myargv[1] = "-+";
14169 myargv[2] = 0;
14170 opterr = 0;
14171 if (getopt (2, myargv, "+a") != '?')
14172 result |= 1;
14173 }
14174 /* This code succeeds on glibc 2.8, mingw,
14175 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14176 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14177 {
14178 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14179
14180 optind = 1;
14181 if (getopt (4, argv, "p::") != 'p')
14182 result |= 2;
14183 else if (optarg != NULL)
14184 result |= 4;
14185 else if (getopt (4, argv, "p::") != -1)
14186 result |= 6;
14187 else if (optind != 2)
14188 result |= 8;
14189 }
14190 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14191 {
14192 char *argv[] = { "program", "foo", "-p", NULL };
14193 optind = 0;
14194 if (getopt (3, argv, "-p") != 1)
14195 result |= 16;
14196 else if (getopt (3, argv, "-p") != 'p')
14197 result |= 32;
14198 }
14199 /* This code fails on glibc 2.11. */
14200 {
14201 char *argv[] = { "program", "-b", "-a", NULL };
14202 optind = opterr = 0;
14203 if (getopt (3, argv, "+:a:b") != 'b')
14204 result |= 64;
14205 else if (getopt (3, argv, "+:a:b") != ':')
14206 result |= 64;
14207 }
14208 return result;
14209
14210 ;
14211 return 0;
14212}
14213_ACEOF
14214if ac_fn_c_try_run "$LINENO"; then :
14215 gl_cv_func_getopt_gnu=yes
14216else
14217 gl_cv_func_getopt_gnu=no
14218fi
14219rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14220 conftest.$ac_objext conftest.beam conftest.$ac_ext
14221fi
14222
14223 case $gl_had_POSIXLY_CORRECT in
14224 exported) ;;
14225 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14226 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14227 esac
14228
14229fi
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14231$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14232 if test "$gl_cv_func_getopt_gnu" = "no"; then
14233 gl_replace_getopt=yes
14234 fi
14235 fi
14236
14237ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d6974efa 14238if test "x$ac_cv_have_decl_getenv" = xyes; then :
e275c824
PE
14239 ac_have_decl=1
14240else
14241 ac_have_decl=0
14242fi
14243
14244cat >>confdefs.h <<_ACEOF
14245#define HAVE_DECL_GETENV $ac_have_decl
14246_ACEOF
14247
14248
14249
14250
14251
14252
14253 if test -n "$gl_replace_getopt"; then :
14254
14255
14256
14257 GETOPT_H=getopt.h
14258
14259$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14260
14261
14262
14263 GNULIB_UNISTD_H_GETOPT=1
14264
14265
14266
14267
14268
14269
14270
14271
14272 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14283
14284
14285
14286
14287
14288
14289fi
14290
14291
14292
14293 GNULIB_MKTIME=0;
14294 GNULIB_NANOSLEEP=0;
14295 GNULIB_STRPTIME=0;
14296 GNULIB_TIMEGM=0;
14297 GNULIB_TIME_R=0;
14298 HAVE_DECL_LOCALTIME_R=1;
14299 HAVE_NANOSLEEP=1;
14300 HAVE_STRPTIME=1;
14301 HAVE_TIMEGM=1;
14302 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14303 REPLACE_MKTIME=GNULIB_PORTCHECK;
14304 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14305 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14306
14307
14308
14309
14310 for ac_func in $ac_func_list
14311do :
14312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14313ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14314if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14315 cat >>confdefs.h <<_ACEOF
14316#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14317_ACEOF
14318
14319fi
14320done
14321
14322
14323
14324
14325 gl_cv_c_multiarch=no
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h. */
14328#ifndef __APPLE_CC__
14329 not a universal capable compiler
14330 #endif
14331 typedef int dummy;
14332
14333_ACEOF
14334if ac_fn_c_try_compile "$LINENO"; then :
14335
14336 arch=
14337 prev=
14338 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14339 if test -n "$prev"; then
14340 case $word in
14341 i?86 | x86_64 | ppc | ppc64)
14342 if test -z "$arch" || test "$arch" = "$word"; then
14343 arch="$word"
14344 else
14345 gl_cv_c_multiarch=yes
14346 fi
14347 ;;
14348 esac
14349 prev=
14350 else
14351 if test "x$word" = "x-arch"; then
14352 prev=arch
14353 fi
14354 fi
14355 done
14356
14357fi
14358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 if test $gl_cv_c_multiarch = yes; then
e275c824
PE
14360 APPLE_UNIVERSAL_BUILD=1
14361 else
14362 APPLE_UNIVERSAL_BUILD=0
14363 fi
14364
14365
14366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14367$as_echo_n "checking for inline... " >&6; }
d6974efa 14368if ${ac_cv_c_inline+:} false; then :
e275c824
PE
14369 $as_echo_n "(cached) " >&6
14370else
14371 ac_cv_c_inline=no
14372for ac_kw in inline __inline__ __inline; do
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374/* end confdefs.h. */
14375#ifndef __cplusplus
14376typedef int foo_t;
14377static $ac_kw foo_t static_foo () {return 0; }
14378$ac_kw foo_t foo () {return 0; }
14379#endif
14380
14381_ACEOF
1fd182f0
PE
14382if ac_fn_c_try_compile "$LINENO"; then :
14383 ac_cv_c_inline=$ac_kw
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 test "$ac_cv_c_inline" != no && break
14387done
14388
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14391$as_echo "$ac_cv_c_inline" >&6; }
14392
14393case $ac_cv_c_inline in
14394 inline | yes) ;;
14395 *)
14396 case $ac_cv_c_inline in
14397 no) ac_val=;;
14398 *) ac_val=$ac_cv_c_inline;;
14399 esac
14400 cat >>confdefs.h <<_ACEOF
14401#ifndef __cplusplus
14402#define inline $ac_val
14403#endif
14404_ACEOF
14405 ;;
14406esac
14407
16c3e636
PE
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14409$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14410if ${ac_cv_header_stdbool_h+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412else
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414/* end confdefs.h. */
14415
14416 #include <stdbool.h>
14417 #ifndef bool
14418 "error: bool is not defined"
14419 #endif
14420 #ifndef false
14421 "error: false is not defined"
14422 #endif
14423 #if false
14424 "error: false is not 0"
14425 #endif
14426 #ifndef true
14427 "error: true is not defined"
14428 #endif
14429 #if true != 1
14430 "error: true is not 1"
14431 #endif
14432 #ifndef __bool_true_false_are_defined
14433 "error: __bool_true_false_are_defined is not defined"
14434 #endif
14435
14436 struct s { _Bool s: 1; _Bool t; } s;
14437
14438 char a[true == 1 ? 1 : -1];
14439 char b[false == 0 ? 1 : -1];
14440 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14441 char d[(bool) 0.5 == true ? 1 : -1];
14442 /* See body of main program for 'e'. */
14443 char f[(_Bool) 0.0 == false ? 1 : -1];
14444 char g[true];
14445 char h[sizeof (_Bool)];
14446 char i[sizeof s.t];
14447 enum { j = false, k = true, l = false * true, m = true * 256 };
14448 /* The following fails for
14449 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14450 _Bool n[m];
14451 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14452 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14453 /* Catch a bug in an HP-UX C compiler. See
14454 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14455 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14456 */
14457 _Bool q = true;
14458 _Bool *pq = &q;
14459
14460int
14461main ()
14462{
14463
14464 bool e = &s;
14465 *pq |= q;
14466 *pq |= ! q;
14467 /* Refer to every declared value, to avoid compiler optimizations. */
14468 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14469 + !m + !n + !o + !p + !q + !pq);
14470
14471 ;
14472 return 0;
14473}
14474_ACEOF
14475if ac_fn_c_try_compile "$LINENO"; then :
14476 ac_cv_header_stdbool_h=yes
14477else
14478 ac_cv_header_stdbool_h=no
14479fi
14480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481fi
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14483$as_echo "$ac_cv_header_stdbool_h" >&6; }
14484 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14485if test "x$ac_cv_type__Bool" = xyes; then :
14486
14487cat >>confdefs.h <<_ACEOF
14488#define HAVE__BOOL 1
14489_ACEOF
14490
14491
14492fi
14493
14494 if test $ac_cv_header_stdbool_h = yes; then
14495
14496$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14497
14498 fi
1fd182f0
PE
14499
14500 REPLACE_NULL=0;
14501 HAVE_WCHAR_T=1;
14502 STDDEF_H='';
14503
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14506$as_echo_n "checking for wchar_t... " >&6; }
d6974efa 14507if ${gt_cv_c_wchar_t+:} false; then :
1fd182f0
PE
14508 $as_echo_n "(cached) " >&6
14509else
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511/* end confdefs.h. */
14512#include <stddef.h>
14513 wchar_t foo = (wchar_t)'\0';
14514int
14515main ()
14516{
14517
14518 ;
14519 return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_compile "$LINENO"; then :
14523 gt_cv_c_wchar_t=yes
14524else
14525 gt_cv_c_wchar_t=no
14526fi
14527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528fi
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14530$as_echo "$gt_cv_c_wchar_t" >&6; }
14531 if test $gt_cv_c_wchar_t = yes; then
14532
14533$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14534
14535 fi
14536
16c3e636
PE
14537
14538 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14539"
14540if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14541
14542$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14543
14544fi
14545
14546
14547
14548
1fd182f0
PE
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14550$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
d6974efa 14551if ${ac_cv_c_restrict+:} false; then :
1fd182f0
PE
14552 $as_echo_n "(cached) " >&6
14553else
14554 ac_cv_c_restrict=no
14555 # The order here caters to the fact that C++ does not require restrict.
14556 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h. */
14559typedef int * int_ptr;
14560 int foo (int_ptr $ac_kw ip) {
14561 return ip[0];
14562 }
14563int
14564main ()
14565{
14566int s[1];
14567 int * $ac_kw t = s;
14568 t[0] = 0;
14569 return foo(t)
14570 ;
14571 return 0;
14572}
14573_ACEOF
14574if ac_fn_c_try_compile "$LINENO"; then :
14575 ac_cv_c_restrict=$ac_kw
14576fi
14577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 test "$ac_cv_c_restrict" != no && break
14579 done
14580
14581fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14583$as_echo "$ac_cv_c_restrict" >&6; }
14584
14585 case $ac_cv_c_restrict in
14586 restrict) ;;
14587 no) $as_echo "#define restrict /**/" >>confdefs.h
14588 ;;
14589 *) cat >>confdefs.h <<_ACEOF
14590#define restrict $ac_cv_c_restrict
14591_ACEOF
14592 ;;
14593 esac
14594
14595
14596
14597
14598
1fd182f0
PE
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14600$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
d6974efa 14601if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
1fd182f0
PE
14602 $as_echo_n "(cached) " >&6
14603else
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605/* end confdefs.h. */
14606#include <time.h>
14607
14608int
14609main ()
14610{
14611static struct timespec x; x.tv_sec = x.tv_nsec;
14612 ;
14613 return 0;
14614}
14615_ACEOF
14616if ac_fn_c_try_compile "$LINENO"; then :
14617 gl_cv_sys_struct_timespec_in_time_h=yes
14618else
14619 gl_cv_sys_struct_timespec_in_time_h=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622fi
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14624$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14625
14626 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14627 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14628 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14629 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14630 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14631 else
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14633$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
d6974efa 14634if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
1fd182f0
PE
14635 $as_echo_n "(cached) " >&6
14636else
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638/* end confdefs.h. */
14639#include <sys/time.h>
14640
14641int
14642main ()
14643{
14644static struct timespec x; x.tv_sec = x.tv_nsec;
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649if ac_fn_c_try_compile "$LINENO"; then :
14650 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14651else
14652 gl_cv_sys_struct_timespec_in_sys_time_h=no
14653fi
14654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655fi
14656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14657$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14658 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14659 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14660 else
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14662$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
d6974efa 14663if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
1fd182f0
PE
14664 $as_echo_n "(cached) " >&6
14665else
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h. */
14668#include <pthread.h>
14669
14670int
14671main ()
14672{
14673static struct timespec x; x.tv_sec = x.tv_nsec;
14674 ;
14675 return 0;
14676}
14677_ACEOF
14678if ac_fn_c_try_compile "$LINENO"; then :
14679 gl_cv_sys_struct_timespec_in_pthread_h=yes
14680else
14681 gl_cv_sys_struct_timespec_in_pthread_h=no
14682fi
14683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684fi
14685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14686$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14687 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14688 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14689 fi
14690 fi
14691 fi
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
b06b1098
PE
14705
14706
1fd182f0
PE
14707 if test $gl_cv_have_include_next = yes; then
14708 gl_cv_next_time_h='<'time.h'>'
14709 else
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14711$as_echo_n "checking absolute name of <time.h>... " >&6; }
d6974efa 14712if ${gl_cv_next_time_h+:} false; then :
1fd182f0
PE
14713 $as_echo_n "(cached) " >&6
14714else
14715
b06b1098 14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
14717/* end confdefs.h. */
14718#include <time.h>
14719
14720_ACEOF
b06b1098
PE
14721 case "$host_os" in
14722 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14723 *) gl_absname_cpp="$ac_cpp" ;;
14724 esac
14725 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14726 sed -n '\#/time.h#{
14727 s#.*"\(.*/time.h\)".*#\1#
14728 s#^/[^/]#//&#
14729 p
14730 q
14731 }'`'"'
14732
1fd182f0
PE
14733
14734fi
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14736$as_echo "$gl_cv_next_time_h" >&6; }
14737 fi
14738 NEXT_TIME_H=$gl_cv_next_time_h
14739
14740 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14742 gl_next_as_first_directive='<'time.h'>'
14743 else
14744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14745 gl_next_as_first_directive=$gl_cv_next_time_h
14746 fi
14747 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14748
14749
14750
14751
14752
b06b1098 14753
1fd182f0 14754ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
d6974efa 14755if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
1fd182f0
PE
14756 ac_have_decl=1
14757else
14758 ac_have_decl=0
14759fi
14760
14761cat >>confdefs.h <<_ACEOF
14762#define HAVE_DECL_LOCALTIME_R $ac_have_decl
14763_ACEOF
14764
14765
14766
14767
14768 if false; then
14769 GL_COND_LIBTOOL_TRUE=
14770 GL_COND_LIBTOOL_FALSE='#'
14771else
14772 GL_COND_LIBTOOL_TRUE='#'
14773 GL_COND_LIBTOOL_FALSE=
14774fi
14775
14776 gl_cond_libtool=false
14777 gl_libdeps=
14778 gl_ltlibdeps=
14779 gl_m4_base='m4'
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789 gl_source_base='lib'
14790 # Code from module arg-nonnull:
14791 # Code from module c++defs:
f737437b 14792 # Code from module dtoastr:
1fd182f0 14793
f737437b 14794 # Code from module extensions:
e275c824
PE
14795 # Code from module getopt-gnu:
14796
14797
14798
14799
14800
14801
e275c824
PE
14802 # Code from module getopt-posix:
14803
14804
14805
14806
14807
14808 if test -n "$gl_replace_getopt"; then :
14809
14810
14811
14812 GETOPT_H=getopt.h
14813
14814$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14815
14816
14817
14818 GNULIB_UNISTD_H_GETOPT=1
14819
14820
14821
14822
14823
14824
14825
14826
14827 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14838
14839
14840
14841
14842
14843
14844fi
14845
14846
14847 # Code from module gettext-h:
14848
14849
1fd182f0
PE
14850 # Code from module include_next:
14851 # Code from module intprops:
14852 # Code from module mktime:
14853
14854
14855
14856
14857
14858if test $APPLE_UNIVERSAL_BUILD = 1; then
14859 # A universal build on Apple MacOS X platforms.
14860 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14861 # But we need a configuration result that is valid in both modes.
14862 ac_cv_func_working_mktime=no
14863fi
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14865$as_echo_n "checking for working mktime... " >&6; }
d6974efa 14866if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
14867 $as_echo_n "(cached) " >&6
14868else
14869 if test "$cross_compiling" = yes; then :
14870 ac_cv_func_working_mktime=no
14871else
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873/* end confdefs.h. */
14874/* Test program from Paul Eggert and Tony Leneis. */
14875#include <limits.h>
14876#include <stdlib.h>
14877#include <time.h>
14878
14879#ifdef HAVE_UNISTD_H
14880# include <unistd.h>
14881#endif
14882
14883#ifndef HAVE_ALARM
14884# define alarm(X) /* empty */
14885#endif
14886
14887/* Work around redefinition to rpl_putenv by other config tests. */
14888#undef putenv
14889
14890static time_t time_t_max;
14891static time_t time_t_min;
14892
14893/* Values we'll use to set the TZ environment variable. */
14894static char *tz_strings[] = {
14895 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14896 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14897};
14898#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14899
14900/* Return 0 if mktime fails to convert a date in the spring-forward gap.
14901 Based on a problem report from Andreas Jaeger. */
14902static int
14903spring_forward_gap ()
14904{
14905 /* glibc (up to about 1998-10-07) failed this test. */
14906 struct tm tm;
14907
14908 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14909 instead of "TZ=America/Vancouver" in order to detect the bug even
14910 on systems that don't support the Olson extension, or don't have the
14911 full zoneinfo tables installed. */
14912 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14913
14914 tm.tm_year = 98;
14915 tm.tm_mon = 3;
14916 tm.tm_mday = 5;
14917 tm.tm_hour = 2;
14918 tm.tm_min = 0;
14919 tm.tm_sec = 0;
14920 tm.tm_isdst = -1;
14921 return mktime (&tm) != (time_t) -1;
14922}
14923
14924static int
14925mktime_test1 (time_t now)
14926{
14927 struct tm *lt;
14928 return ! (lt = localtime (&now)) || mktime (lt) == now;
14929}
14930
14931static int
14932mktime_test (time_t now)
14933{
14934 return (mktime_test1 (now)
14935 && mktime_test1 ((time_t) (time_t_max - now))
14936 && mktime_test1 ((time_t) (time_t_min + now)));
14937}
14938
14939static int
14940irix_6_4_bug ()
14941{
14942 /* Based on code from Ariel Faigon. */
14943 struct tm tm;
14944 tm.tm_year = 96;
14945 tm.tm_mon = 3;
14946 tm.tm_mday = 0;
14947 tm.tm_hour = 0;
14948 tm.tm_min = 0;
14949 tm.tm_sec = 0;
14950 tm.tm_isdst = -1;
14951 mktime (&tm);
14952 return tm.tm_mon == 2 && tm.tm_mday == 31;
14953}
14954
14955static int
14956bigtime_test (int j)
14957{
14958 struct tm tm;
14959 time_t now;
14960 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14961 now = mktime (&tm);
14962 if (now != (time_t) -1)
14963 {
14964 struct tm *lt = localtime (&now);
14965 if (! (lt
14966 && lt->tm_year == tm.tm_year
14967 && lt->tm_mon == tm.tm_mon
14968 && lt->tm_mday == tm.tm_mday
14969 && lt->tm_hour == tm.tm_hour
14970 && lt->tm_min == tm.tm_min
14971 && lt->tm_sec == tm.tm_sec
14972 && lt->tm_yday == tm.tm_yday
14973 && lt->tm_wday == tm.tm_wday
14974 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14975 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14976 return 0;
14977 }
14978 return 1;
14979}
14980
14981static int
14982year_2050_test ()
14983{
14984 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14985 ignoring leap seconds. */
14986 unsigned long int answer = 2527315200UL;
14987
14988 struct tm tm;
14989 time_t t;
14990 tm.tm_year = 2050 - 1900;
14991 tm.tm_mon = 2 - 1;
14992 tm.tm_mday = 1;
14993 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14994 tm.tm_isdst = -1;
14995
14996 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14997 instead of "TZ=America/Vancouver" in order to detect the bug even
14998 on systems that don't support the Olson extension, or don't have the
14999 full zoneinfo tables installed. */
15000 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15001
15002 t = mktime (&tm);
15003
15004 /* Check that the result is either a failure, or close enough
15005 to the correct answer that we can assume the discrepancy is
15006 due to leap seconds. */
15007 return (t == (time_t) -1
15008 || (0 < t && answer - 120 <= t && t <= answer + 120));
15009}
15010
15011int
15012main ()
15013{
15014 int result = 0;
15015 time_t t, delta;
15016 int i, j;
3de84ad9
PE
15017 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15018 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
15019
15020 /* This test makes some buggy mktime implementations loop.
15021 Give up after 60 seconds; a mktime slower than that
15022 isn't worth using anyway. */
15023 alarm (60);
15024
3de84ad9
PE
15025 time_t_max = (! time_t_signed
15026 ? (time_t) -1
15027 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15028 * 2 + 1));
15029 time_t_min = (! time_t_signed
15030 ? (time_t) 0
15031 : time_t_signed_magnitude
15032 ? ~ (time_t) 0
15033 : ~ time_t_max);
1fd182f0
PE
15034
15035 delta = time_t_max / 997; /* a suitable prime number */
15036 for (i = 0; i < N_STRINGS; i++)
15037 {
15038 if (tz_strings[i])
15039 putenv (tz_strings[i]);
15040
15041 for (t = 0; t <= time_t_max - delta; t += delta)
15042 if (! mktime_test (t))
15043 result |= 1;
15044 if (! (mktime_test ((time_t) 1)
15045 && mktime_test ((time_t) (60 * 60))
15046 && mktime_test ((time_t) (60 * 60 * 24))))
15047 result |= 2;
15048
15049 for (j = 1; ; j <<= 1)
15050 if (! bigtime_test (j))
15051 result |= 4;
15052 else if (INT_MAX / 2 < j)
15053 break;
15054 if (! bigtime_test (INT_MAX))
15055 result |= 8;
15056 }
15057 if (! irix_6_4_bug ())
15058 result |= 16;
15059 if (! spring_forward_gap ())
15060 result |= 32;
15061 if (! year_2050_test ())
15062 result |= 64;
15063 return result;
15064}
15065_ACEOF
15066if ac_fn_c_try_run "$LINENO"; then :
15067 ac_cv_func_working_mktime=yes
15068else
15069 ac_cv_func_working_mktime=no
15070fi
15071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15072 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 15073fi
067d23c9 15074
1fd182f0
PE
15075fi
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15077$as_echo "$ac_cv_func_working_mktime" >&6; }
15078if test $ac_cv_func_working_mktime = no; then
067d23c9 15079
067d23c9 15080
067d23c9
KY
15081
15082
067d23c9 15083
067d23c9
KY
15084
15085
15086
1fd182f0 15087 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 15088
1fd182f0 15089fi
067d23c9 15090
1fd182f0
PE
15091 if test $ac_cv_func_working_mktime = no; then
15092 REPLACE_MKTIME=1
067d23c9
KY
15093
15094
15095
1fd182f0
PE
15096 else
15097 REPLACE_MKTIME=0
15098 fi
067d23c9
KY
15099
15100
15101
067d23c9 15102
1fd182f0 15103 GNULIB_MKTIME=1
067d23c9
KY
15104
15105
15106
1fd182f0 15107 # Code from module multiarch:
067d23c9 15108
16c3e636
PE
15109 # Code from module stdbool:
15110
15111
15112
15113 # Define two additional variables used in the Makefile substitution.
15114
15115 if test "$ac_cv_header_stdbool_h" = yes; then
15116 STDBOOL_H=''
15117 else
15118 STDBOOL_H='stdbool.h'
15119 fi
15120
15121
15122 if test "$ac_cv_type__Bool" = yes; then
15123 HAVE__BOOL=1
15124 else
15125 HAVE__BOOL=0
15126 fi
15127
15128
1fd182f0 15129 # Code from module stddef:
067d23c9 15130
067d23c9 15131
067d23c9 15132
1fd182f0
PE
15133 if test $gt_cv_c_wchar_t = no; then
15134 HAVE_WCHAR_T=0
15135 STDDEF_H=stddef.h
067d23c9 15136 fi
1fd182f0
PE
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15138$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
d6974efa 15139if ${gl_cv_decl_null_works+:} false; then :
067d23c9 15140 $as_echo_n "(cached) " >&6
067d23c9
KY
15141else
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143/* end confdefs.h. */
1fd182f0
PE
15144#include <stddef.h>
15145 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15146
067d23c9
KY
15147int
15148main ()
15149{
15150
067d23c9
KY
15151 ;
15152 return 0;
15153}
15154_ACEOF
1fd182f0
PE
15155if ac_fn_c_try_compile "$LINENO"; then :
15156 gl_cv_decl_null_works=yes
067d23c9 15157else
1fd182f0 15158 gl_cv_decl_null_works=no
067d23c9 15159fi
1fd182f0 15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 15161fi
1fd182f0
PE
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15163$as_echo "$gl_cv_decl_null_works" >&6; }
15164 if test $gl_cv_decl_null_works = no; then
15165 REPLACE_NULL=1
15166 STDDEF_H=stddef.h
15167 fi
15168 if test -n "$STDDEF_H"; then
15169
15170
15171
15172
15173
15174
b06b1098
PE
15175
15176
1fd182f0
PE
15177 if test $gl_cv_have_include_next = yes; then
15178 gl_cv_next_stddef_h='<'stddef.h'>'
15179 else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15181$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
d6974efa 15182if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
15183 $as_echo_n "(cached) " >&6
15184else
15185
b06b1098 15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
15187/* end confdefs.h. */
15188#include <stddef.h>
15189
15190_ACEOF
b06b1098
PE
15191 case "$host_os" in
15192 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15193 *) gl_absname_cpp="$ac_cpp" ;;
15194 esac
15195 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15196 sed -n '\#/stddef.h#{
15197 s#.*"\(.*/stddef.h\)".*#\1#
15198 s#^/[^/]#//&#
15199 p
15200 q
15201 }'`'"'
15202
067d23c9
KY
15203
15204fi
1fd182f0
PE
15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15206$as_echo "$gl_cv_next_stddef_h" >&6; }
15207 fi
15208 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15209
15210 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15212 gl_next_as_first_directive='<'stddef.h'>'
15213 else
15214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15215 gl_next_as_first_directive=$gl_cv_next_stddef_h
15216 fi
15217 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15218
15219
15220
b06b1098 15221
067d23c9
KY
15222 fi
15223
16c3e636
PE
15224 # Code from module strftime:
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15236
15237
15238 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15239
15240
15241
15242
15243
15244
15245
15246$as_echo "#define my_strftime nstrftime" >>confdefs.h
15247
15248
15249
1fd182f0 15250 # Code from module time:
067d23c9
KY
15251
15252
067d23c9 15253
1fd182f0 15254 # Code from module time_r:
067d23c9 15255
067d23c9 15256
067d23c9
KY
15257
15258
15259
067d23c9 15260
067d23c9 15261
1fd182f0
PE
15262 if test $ac_cv_have_decl_localtime_r = no; then
15263 HAVE_DECL_LOCALTIME_R=0
15264 fi
067d23c9
KY
15265
15266
1fd182f0
PE
15267 if test $ac_cv_func_localtime_r = yes; then
15268 HAVE_LOCALTIME_R=1
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15270$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
d6974efa 15271if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
15272 $as_echo_n "(cached) " >&6
15273else
1fd182f0 15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 15275/* end confdefs.h. */
1fd182f0 15276#include <time.h>
067d23c9
KY
15277int
15278main ()
15279{
1fd182f0
PE
15280/* We don't need to append 'restrict's to the argument types,
15281 even though the POSIX signature has the 'restrict's,
15282 since C99 says they can't affect type compatibility. */
15283 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15284 if (ptr) return 0;
15285 /* Check the return type is a pointer.
15286 On HP-UX 10 it is 'int'. */
15287 *localtime_r (0, 0);
067d23c9
KY
15288 ;
15289 return 0;
15290}
1fd182f0 15291
067d23c9
KY
15292_ACEOF
15293if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 15294 gl_cv_time_r_posix=yes
067d23c9 15295else
1fd182f0 15296 gl_cv_time_r_posix=no
067d23c9
KY
15297fi
15298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299
15300fi
1fd182f0
PE
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15302$as_echo "$gl_cv_time_r_posix" >&6; }
15303 if test $gl_cv_time_r_posix = yes; then
15304 REPLACE_LOCALTIME_R=0
15305 else
15306 REPLACE_LOCALTIME_R=1
15307 fi
15308 else
15309 HAVE_LOCALTIME_R=0
15310 fi
15311 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 15312
067d23c9
KY
15313
15314
743c80a7 15315
a451f14b
PE
15316
15317
15318
a451f14b 15319
1fd182f0 15320 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 15321
a451f14b 15322
1fd182f0 15323 :
a451f14b
PE
15324
15325 fi
15326
15327
743c80a7
PE
15328
15329
1fd182f0 15330 GNULIB_TIME_R=1
743c80a7
PE
15331
15332
15333
b06b1098 15334 # Code from module unistd:
a451f14b
PE
15335
15336
15337
e275c824
PE
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348 if test $gl_cv_have_include_next = yes; then
15349 gl_cv_next_unistd_h='<'unistd.h'>'
15350 else
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15352$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
d6974efa 15353if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
15354 $as_echo_n "(cached) " >&6
15355else
15356
b06b1098
PE
15357 if test $ac_cv_header_unistd_h = yes; then
15358
15359
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
15361/* end confdefs.h. */
15362#include <unistd.h>
15363
15364_ACEOF
b06b1098
PE
15365 case "$host_os" in
15366 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15367 *) gl_absname_cpp="$ac_cpp" ;;
15368 esac
15369 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15370 sed -n '\#/unistd.h#{
15371 s#.*"\(.*/unistd.h\)".*#\1#
15372 s#^/[^/]#//&#
15373 p
15374 q
15375 }'`'"'
e275c824 15376 else
b06b1098
PE
15377 gl_cv_next_unistd_h='<'unistd.h'>'
15378 fi
15379
e275c824
PE
15380
15381fi
15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15383$as_echo "$gl_cv_next_unistd_h" >&6; }
15384 fi
15385 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15386
15387 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15389 gl_next_as_first_directive='<'unistd.h'>'
15390 else
15391 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15392 gl_next_as_first_directive=$gl_cv_next_unistd_h
15393 fi
15394 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15395
15396
15397
15398
e275c824
PE
15399 if test $ac_cv_header_unistd_h = yes; then
15400 HAVE_UNISTD_H=1
15401 else
15402 HAVE_UNISTD_H=0
15403 fi
15404
15405
15406
e275c824 15407
1fd182f0
PE
15408 # Code from module warn-on-use:
15409 # End of code from modules
a451f14b 15410
a451f14b 15411
743c80a7
PE
15412
15413
15414
15415
15416
15417
15418
15419 gltests_libdeps=
15420 gltests_ltlibdeps=
15421
15422
15423
15424
15425
a451f14b
PE
15426
15427
15428
15429
743c80a7
PE
15430 gl_source_base='tests'
15431 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
15432
15433 gl_module_indicator_condition=$gltests_WITNESS
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443 LIBGNU_LIBDEPS="$gl_libdeps"
15444
15445 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15446
15447
15448
067d23c9
KY
15449# UNIX98 PTYs.
15450for ac_func in grantpt
15451do :
15452 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
d6974efa 15453if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
15454 cat >>confdefs.h <<_ACEOF
15455#define HAVE_GRANTPT 1
15456_ACEOF
15457
15458fi
15459done
15460
15461
15462# PTY-related GNU extensions.
15463for ac_func in getpt
15464do :
15465 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
d6974efa 15466if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
15467 cat >>confdefs.h <<_ACEOF
15468#define HAVE_GETPT 1
15469_ACEOF
15470
15471fi
15472done
15473
15474
15475# Check this now, so that we will NOT find the above functions in ncurses.
15476# That is because we have not set up to link ncurses in lib-src.
15477# It's better to believe a function is not available
15478# than to expect to find it in ncurses.
15479# Also we need tputs and friends to be able to build at all.
15480have_tputs_et_al=true
15481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15482$as_echo_n "checking for library containing tputs... " >&6; }
d6974efa 15483if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15484 $as_echo_n "(cached) " >&6
15485else
15486 ac_func_search_save_LIBS=$LIBS
15487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488/* end confdefs.h. */
15489
15490/* Override any GCC internal prototype to avoid an error.
15491 Use char because int might match the return type of a GCC
15492 builtin and then its argument prototype would still apply. */
15493#ifdef __cplusplus
15494extern "C"
15495#endif
15496char tputs ();
15497int
15498main ()
15499{
15500return tputs ();
15501 ;
15502 return 0;
15503}
15504_ACEOF
15505for ac_lib in '' ncurses terminfo termcap; do
15506 if test -z "$ac_lib"; then
15507 ac_res="none required"
15508 else
15509 ac_res=-l$ac_lib
15510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15511 fi
15512 if ac_fn_c_try_link "$LINENO"; then :
15513 ac_cv_search_tputs=$ac_res
15514fi
15515rm -f core conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext
d6974efa 15517 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15518 break
15519fi
15520done
d6974efa 15521if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15522
15523else
15524 ac_cv_search_tputs=no
15525fi
15526rm conftest.$ac_ext
15527LIBS=$ac_func_search_save_LIBS
15528fi
15529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15530$as_echo "$ac_cv_search_tputs" >&6; }
15531ac_res=$ac_cv_search_tputs
15532if test "$ac_res" != no; then :
15533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15534
15535else
15536 have_tputs_et_al=false
15537fi
15538
15539if test "$have_tputs_et_al" != true; then
2018939f 15540 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
15541Maybe some development libraries/packages are missing? Try installing
15542libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15543fi
15544# Must define this when any termcap library is found.
15545
15546$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15547
15548## FIXME This was the cpp logic, but I am not sure it is right.
15549## The above test has not necessarily found libncurses.
15550HAVE_LIBNCURSES=yes
15551
15552## Use terminfo instead of termcap?
15553## Note only system files NOT using terminfo are:
15554## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15555## darwin|gnu without ncurses.
15556TERMINFO=no
15557LIBS_TERMCAP=
15558case "$opsys" in
15559 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15560 ## hpux10-20: Use the system provided termcap(3) library.
15561 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15562 ## is necessary. Otherwise Emacs dumps core when run -nw.
15563 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15564
15565 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15566 ## The ncurses library has been moved out of the System framework in
15567 ## Mac OS X 10.2. So if configure detects it, set the command-line
15568 ## option to use it.
15569 darwin|gnu*)
15570 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15571 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15572 TERMINFO=yes
15573 LIBS_TERMCAP="-lncurses"
15574 fi
15575 ;;
15576
15577 freebsd)
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15579$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
d6974efa 15580 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
15581 $as_echo_n "(cached) " >&6
15582else
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h. */
15585#include <osreldate.h>
15586int
15587main ()
15588{
15589#if __FreeBSD_version < 400000
15590fail;
15591#endif
15592
15593 ;
15594 return 0;
15595}
15596_ACEOF
15597if ac_fn_c_try_link "$LINENO"; then :
15598 emacs_cv_freebsd_terminfo=yes
15599else
15600 emacs_cv_freebsd_terminfo=no
15601fi
15602rm -f core conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15604fi
15605
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15608$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15609
15610 if test $emacs_cv_freebsd_terminfo = yes; then
15611 TERMINFO=yes
15612 LIBS_TERMCAP="-lncurses"
15613 else
15614 LIBS_TERMCAP="-ltermcap"
15615 fi
15616 ;;
15617
15618 netbsd)
15619 if test $ac_cv_search_tputs = -lterminfo; then
15620 TERMINFO=yes
15621 LIBS_TERMCAP="-lterminfo"
15622 else
15623 LIBS_TERMCAP="-ltermcap"
15624 fi
15625 ;;
15626
15627esac
15628
15629case "$opsys" in
15630 ## hpux: Make sure we get select from libc rather than from libcurses
15631 ## because libcurses on HPUX 10.10 has a broken version of select.
15632 ## We used to use -lc -lcurses, but this may be cleaner.
15633 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15634
15635 openbsd) LIBS_TERMCAP="-lncurses" ;;
15636
15637 ## Must use system termcap, if we use any termcap. It does special things.
15638 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15639esac
15640
15641TERMCAP_OBJ=tparam.o
15642if test $TERMINFO = yes; then
15643
15644$as_echo "#define TERMINFO 1" >>confdefs.h
15645
15646
15647 ## Default used to be -ltermcap. Add a case above if need something else.
15648 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15649
15650 TERMCAP_OBJ=terminfo.o
15651fi
15652
15653
15654
15655
15656# Do we have res_init, for detecting changes in /etc/resolv.conf?
15657resolv=no
15658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659/* end confdefs.h. */
15660#include <netinet/in.h>
15661#include <arpa/nameser.h>
15662#include <resolv.h>
15663int
15664main ()
15665{
15666return res_init();
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671if ac_fn_c_try_link "$LINENO"; then :
15672 have_res_init=yes
15673else
15674 have_res_init=no
15675fi
15676rm -f core conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678if test "$have_res_init" = no; then
15679 OLIBS="$LIBS"
15680 LIBS="$LIBS -lresolv"
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15682$as_echo_n "checking for res_init with -lresolv... " >&6; }
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684/* end confdefs.h. */
15685#include <netinet/in.h>
15686#include <arpa/nameser.h>
15687#include <resolv.h>
15688int
15689main ()
15690{
15691return res_init();
15692 ;
15693 return 0;
15694}
15695_ACEOF
15696if ac_fn_c_try_link "$LINENO"; then :
15697 have_res_init=yes
15698else
15699 have_res_init=no
15700fi
15701rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15704$as_echo "$have_res_init" >&6; }
15705 if test "$have_res_init" = yes ; then
15706 resolv=yes
15707 fi
15708 LIBS="$OLIBS"
15709fi
15710
15711if test "$have_res_init" = yes; then
15712
15713$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15714
15715fi
15716
15717# Do we need the Hesiod library to provide the support routines?
15718LIBHESIOD=
15719if test "$with_hesiod" != no ; then
15720 # Don't set $LIBS here -- see comments above. FIXME which comments?
15721 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
d6974efa 15722if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
15723
15724else
15725 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
d6974efa 15726if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
15727
15728else
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15730$as_echo_n "checking for res_send in -lresolv... " >&6; }
d6974efa 15731if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
15732 $as_echo_n "(cached) " >&6
15733else
15734 ac_check_lib_save_LIBS=$LIBS
15735LIBS="-lresolv $LIBS"
15736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737/* end confdefs.h. */
15738
15739/* Override any GCC internal prototype to avoid an error.
15740 Use char because int might match the return type of a GCC
15741 builtin and then its argument prototype would still apply. */
15742#ifdef __cplusplus
15743extern "C"
15744#endif
15745char res_send ();
15746int
15747main ()
15748{
15749return res_send ();
15750 ;
15751 return 0;
15752}
15753_ACEOF
15754if ac_fn_c_try_link "$LINENO"; then :
15755 ac_cv_lib_resolv_res_send=yes
15756else
15757 ac_cv_lib_resolv_res_send=no
15758fi
15759rm -f core conftest.err conftest.$ac_objext \
15760 conftest$ac_exeext conftest.$ac_ext
15761LIBS=$ac_check_lib_save_LIBS
15762fi
15763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15764$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
d6974efa 15765if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
15766 resolv=yes
15767else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15769$as_echo_n "checking for __res_send in -lresolv... " >&6; }
d6974efa 15770if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
15771 $as_echo_n "(cached) " >&6
15772else
15773 ac_check_lib_save_LIBS=$LIBS
15774LIBS="-lresolv $LIBS"
15775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776/* end confdefs.h. */
15777
15778/* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15781#ifdef __cplusplus
15782extern "C"
15783#endif
15784char __res_send ();
15785int
15786main ()
15787{
15788return __res_send ();
15789 ;
15790 return 0;
15791}
15792_ACEOF
15793if ac_fn_c_try_link "$LINENO"; then :
15794 ac_cv_lib_resolv___res_send=yes
15795else
15796 ac_cv_lib_resolv___res_send=no
15797fi
15798rm -f core conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15800LIBS=$ac_check_lib_save_LIBS
15801fi
15802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15803$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
d6974efa 15804if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
15805 resolv=yes
15806fi
15807
15808fi
15809
15810fi
15811
15812fi
15813
15814 if test "$resolv" = yes ; then
15815 RESOLVLIB=-lresolv
15816 else
15817 RESOLVLIB=
15818 fi
15819 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
d6974efa 15820if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
15821
15822else
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15824$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
d6974efa 15825if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
15826 $as_echo_n "(cached) " >&6
15827else
15828 ac_check_lib_save_LIBS=$LIBS
15829LIBS="-lhesiod $RESOLVLIB $LIBS"
15830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831/* end confdefs.h. */
15832
15833/* Override any GCC internal prototype to avoid an error.
15834 Use char because int might match the return type of a GCC
15835 builtin and then its argument prototype would still apply. */
15836#ifdef __cplusplus
15837extern "C"
15838#endif
15839char hes_getmailhost ();
15840int
15841main ()
15842{
15843return hes_getmailhost ();
15844 ;
15845 return 0;
15846}
15847_ACEOF
15848if ac_fn_c_try_link "$LINENO"; then :
15849 ac_cv_lib_hesiod_hes_getmailhost=yes
15850else
15851 ac_cv_lib_hesiod_hes_getmailhost=no
15852fi
15853rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855LIBS=$ac_check_lib_save_LIBS
15856fi
15857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15858$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
d6974efa 15859if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
15860 hesiod=yes
15861else
15862 :
15863fi
15864
15865fi
15866
15867
15868 if test x"$hesiod" = xyes; then
15869
15870$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15871
15872 LIBHESIOD=-lhesiod
15873 fi
15874fi
15875
15876
15877# Do we need libresolv (due to res_init or Hesiod)?
15878if test "$resolv" = yes ; then
15879
15880$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15881
15882 LIBRESOLV=-lresolv
15883else
15884 LIBRESOLV=
15885fi
15886
15887
15888# These tell us which Kerberos-related libraries to use.
15889COM_ERRLIB=
15890CRYPTOLIB=
15891KRB5LIB=
15892DESLIB=
15893KRB4LIB=
15894
15895if test "${with_kerberos}" != no; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15897$as_echo_n "checking for com_err in -lcom_err... " >&6; }
d6974efa 15898if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
15899 $as_echo_n "(cached) " >&6
15900else
15901 ac_check_lib_save_LIBS=$LIBS
15902LIBS="-lcom_err $LIBS"
15903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h. */
15905
15906/* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15909#ifdef __cplusplus
15910extern "C"
15911#endif
15912char com_err ();
15913int
15914main ()
15915{
15916return com_err ();
15917 ;
15918 return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"; then :
15922 ac_cv_lib_com_err_com_err=yes
15923else
15924 ac_cv_lib_com_err_com_err=no
15925fi
15926rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928LIBS=$ac_check_lib_save_LIBS
15929fi
15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15931$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
d6974efa 15932if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
15933 have_com_err=yes
15934else
15935 have_com_err=no
15936fi
15937
15938 if test $have_com_err = yes; then
15939 COM_ERRLIB=-lcom_err
15940 LIBS="$COM_ERRLIB $LIBS"
15941
15942$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15943
15944 fi
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15946$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
d6974efa 15947if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
15948 $as_echo_n "(cached) " >&6
15949else
15950 ac_check_lib_save_LIBS=$LIBS
15951LIBS="-lcrypto $LIBS"
15952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h. */
15954
15955/* Override any GCC internal prototype to avoid an error.
15956 Use char because int might match the return type of a GCC
15957 builtin and then its argument prototype would still apply. */
15958#ifdef __cplusplus
15959extern "C"
15960#endif
15961char mit_des_cbc_encrypt ();
15962int
15963main ()
15964{
15965return mit_des_cbc_encrypt ();
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970if ac_fn_c_try_link "$LINENO"; then :
15971 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15972else
15973 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15974fi
15975rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977LIBS=$ac_check_lib_save_LIBS
15978fi
15979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15980$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 15981if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
15982 have_crypto=yes
15983else
15984 have_crypto=no
15985fi
15986
15987 if test $have_crypto = yes; then
15988 CRYPTOLIB=-lcrypto
15989 LIBS="$CRYPTOLIB $LIBS"
15990
15991$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15992
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15995$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
d6974efa 15996if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
15997 $as_echo_n "(cached) " >&6
15998else
15999 ac_check_lib_save_LIBS=$LIBS
16000LIBS="-lk5crypto $LIBS"
16001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002/* end confdefs.h. */
16003
16004/* Override any GCC internal prototype to avoid an error.
16005 Use char because int might match the return type of a GCC
16006 builtin and then its argument prototype would still apply. */
16007#ifdef __cplusplus
16008extern "C"
16009#endif
16010char mit_des_cbc_encrypt ();
16011int
16012main ()
16013{
16014return mit_des_cbc_encrypt ();
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019if ac_fn_c_try_link "$LINENO"; then :
16020 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16021else
16022 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16023fi
16024rm -f core conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16026LIBS=$ac_check_lib_save_LIBS
16027fi
16028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16029$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 16030if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16031 have_k5crypto=yes
16032else
16033 have_k5crypto=no
16034fi
16035
16036 if test $have_k5crypto = yes; then
16037 CRYPTOLIB=-lk5crypto
16038 LIBS="$CRYPTOLIB $LIBS"
16039
16040$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16041
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16044$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
d6974efa 16045if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
16046 $as_echo_n "(cached) " >&6
16047else
16048 ac_check_lib_save_LIBS=$LIBS
16049LIBS="-lkrb5 $LIBS"
16050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051/* end confdefs.h. */
16052
16053/* Override any GCC internal prototype to avoid an error.
16054 Use char because int might match the return type of a GCC
16055 builtin and then its argument prototype would still apply. */
16056#ifdef __cplusplus
16057extern "C"
16058#endif
16059char krb5_init_context ();
16060int
16061main ()
16062{
16063return krb5_init_context ();
16064 ;
16065 return 0;
16066}
16067_ACEOF
16068if ac_fn_c_try_link "$LINENO"; then :
16069 ac_cv_lib_krb5_krb5_init_context=yes
16070else
16071 ac_cv_lib_krb5_krb5_init_context=no
16072fi
16073rm -f core conftest.err conftest.$ac_objext \
16074 conftest$ac_exeext conftest.$ac_ext
16075LIBS=$ac_check_lib_save_LIBS
16076fi
16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16078$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
d6974efa 16079if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
16080 have_krb5=yes
16081else
16082 have_krb5=no
16083fi
16084
16085 if test $have_krb5=yes; then
16086 KRB5LIB=-lkrb5
16087 LIBS="$KRB5LIB $LIBS"
16088
16089$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16090
16091 fi
16092 if test "${with_kerberos5}" = no; then
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16094$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
d6974efa 16095if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
16096 $as_echo_n "(cached) " >&6
16097else
16098 ac_check_lib_save_LIBS=$LIBS
16099LIBS="-ldes425 $LIBS"
16100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101/* end confdefs.h. */
16102
16103/* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16106#ifdef __cplusplus
16107extern "C"
16108#endif
16109char des_cbc_encrypt ();
16110int
16111main ()
16112{
16113return des_cbc_encrypt ();
16114 ;
16115 return 0;
16116}
16117_ACEOF
16118if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_des425_des_cbc_encrypt=yes
16120else
16121 ac_cv_lib_des425_des_cbc_encrypt=no
16122fi
16123rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125LIBS=$ac_check_lib_save_LIBS
16126fi
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16128$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
d6974efa 16129if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16130 have_des425=yes
16131else
16132 have_des425=no
16133fi
16134
16135 if test $have_des425 = yes; then
16136 DESLIB=-ldes425
16137 LIBS="$DESLIB $LIBS"
16138
16139$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16140
16141 else
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16143$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
d6974efa 16144if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
16145 $as_echo_n "(cached) " >&6
16146else
16147 ac_check_lib_save_LIBS=$LIBS
16148LIBS="-ldes $LIBS"
16149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150/* end confdefs.h. */
16151
16152/* Override any GCC internal prototype to avoid an error.
16153 Use char because int might match the return type of a GCC
16154 builtin and then its argument prototype would still apply. */
16155#ifdef __cplusplus
16156extern "C"
16157#endif
16158char des_cbc_encrypt ();
16159int
16160main ()
16161{
16162return des_cbc_encrypt ();
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167if ac_fn_c_try_link "$LINENO"; then :
16168 ac_cv_lib_des_des_cbc_encrypt=yes
16169else
16170 ac_cv_lib_des_des_cbc_encrypt=no
16171fi
16172rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174LIBS=$ac_check_lib_save_LIBS
16175fi
16176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16177$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
d6974efa 16178if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16179 have_des=yes
16180else
16181 have_des=no
16182fi
16183
16184 if test $have_des = yes; then
16185 DESLIB=-ldes
16186 LIBS="$DESLIB $LIBS"
16187
16188$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16189
16190 fi
16191 fi
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16193$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
d6974efa 16194if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
16195 $as_echo_n "(cached) " >&6
16196else
16197 ac_check_lib_save_LIBS=$LIBS
16198LIBS="-lkrb4 $LIBS"
16199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h. */
16201
16202/* Override any GCC internal prototype to avoid an error.
16203 Use char because int might match the return type of a GCC
16204 builtin and then its argument prototype would still apply. */
16205#ifdef __cplusplus
16206extern "C"
16207#endif
16208char krb_get_cred ();
16209int
16210main ()
16211{
16212return krb_get_cred ();
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217if ac_fn_c_try_link "$LINENO"; then :
16218 ac_cv_lib_krb4_krb_get_cred=yes
16219else
16220 ac_cv_lib_krb4_krb_get_cred=no
16221fi
16222rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224LIBS=$ac_check_lib_save_LIBS
16225fi
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16227$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
d6974efa 16228if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
16229 have_krb4=yes
16230else
16231 have_krb4=no
16232fi
16233
16234 if test $have_krb4 = yes; then
16235 KRB4LIB=-lkrb4
16236 LIBS="$KRB4LIB $LIBS"
16237
16238$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16239
16240 else
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16242$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
d6974efa 16243if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
16244 $as_echo_n "(cached) " >&6
16245else
16246 ac_check_lib_save_LIBS=$LIBS
16247LIBS="-lkrb $LIBS"
16248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h. */
16250
16251/* Override any GCC internal prototype to avoid an error.
16252 Use char because int might match the return type of a GCC
16253 builtin and then its argument prototype would still apply. */
16254#ifdef __cplusplus
16255extern "C"
16256#endif
16257char krb_get_cred ();
16258int
16259main ()
16260{
16261return krb_get_cred ();
16262 ;
16263 return 0;
16264}
16265_ACEOF
16266if ac_fn_c_try_link "$LINENO"; then :
16267 ac_cv_lib_krb_krb_get_cred=yes
16268else
16269 ac_cv_lib_krb_krb_get_cred=no
16270fi
16271rm -f core conftest.err conftest.$ac_objext \
16272 conftest$ac_exeext conftest.$ac_ext
16273LIBS=$ac_check_lib_save_LIBS
16274fi
16275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16276$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
d6974efa 16277if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
16278 have_krb=yes
16279else
16280 have_krb=no
16281fi
16282
16283 if test $have_krb = yes; then
16284 KRB4LIB=-lkrb
16285 LIBS="$KRB4LIB $LIBS"
16286
16287$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16288
16289 fi
16290 fi
16291 fi
16292
16293 if test "${with_kerberos5}" != no; then
16294 for ac_header in krb5.h
16295do :
16296 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
d6974efa 16297if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
16298 cat >>confdefs.h <<_ACEOF
16299#define HAVE_KRB5_H 1
16300_ACEOF
16301 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16302"
d6974efa 16303if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
16304
16305cat >>confdefs.h <<_ACEOF
16306#define HAVE_KRB5_ERROR_TEXT 1
16307_ACEOF
16308
16309
16310fi
16311ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16312"
d6974efa 16313if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
16314
16315cat >>confdefs.h <<_ACEOF
16316#define HAVE_KRB5_ERROR_E_TEXT 1
16317_ACEOF
16318
16319
16320fi
16321
16322fi
16323
16324done
16325
16326 else
16327 for ac_header in des.h
16328do :
16329 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
d6974efa 16330if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
16331 cat >>confdefs.h <<_ACEOF
16332#define HAVE_DES_H 1
16333_ACEOF
16334
16335else
16336 for ac_header in kerberosIV/des.h
16337do :
16338 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
d6974efa 16339if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
16340 cat >>confdefs.h <<_ACEOF
16341#define HAVE_KERBEROSIV_DES_H 1
16342_ACEOF
16343
16344else
16345 for ac_header in kerberos/des.h
16346do :
16347 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
d6974efa 16348if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
16349 cat >>confdefs.h <<_ACEOF
16350#define HAVE_KERBEROS_DES_H 1
16351_ACEOF
16352
16353fi
16354
16355done
16356
16357fi
16358
16359done
16360
16361fi
16362
16363done
16364
16365 for ac_header in krb.h
16366do :
16367 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
d6974efa 16368if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
16369 cat >>confdefs.h <<_ACEOF
16370#define HAVE_KRB_H 1
16371_ACEOF
16372
16373else
16374 for ac_header in kerberosIV/krb.h
16375do :
16376 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
d6974efa 16377if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
16378 cat >>confdefs.h <<_ACEOF
16379#define HAVE_KERBEROSIV_KRB_H 1
16380_ACEOF
16381
16382else
16383 for ac_header in kerberos/krb.h
16384do :
16385 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
d6974efa 16386if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
16387 cat >>confdefs.h <<_ACEOF
16388#define HAVE_KERBEROS_KRB_H 1
16389_ACEOF
16390
16391fi
16392
16393done
16394
16395fi
16396
16397done
16398
16399fi
16400
16401done
16402
16403 fi
16404 for ac_header in com_err.h
16405do :
16406 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
d6974efa 16407if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
16408 cat >>confdefs.h <<_ACEOF
16409#define HAVE_COM_ERR_H 1
16410_ACEOF
16411
16412fi
16413
16414done
16415
16416fi
16417
16418
16419
16420
16421
16422
16423
16424# Solaris requires -lintl if you want strerror (which calls dgettext)
16425# to return localized messages.
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16427$as_echo_n "checking for dgettext in -lintl... " >&6; }
d6974efa 16428if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
16429 $as_echo_n "(cached) " >&6
16430else
16431 ac_check_lib_save_LIBS=$LIBS
16432LIBS="-lintl $LIBS"
16433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434/* end confdefs.h. */
16435
16436/* Override any GCC internal prototype to avoid an error.
16437 Use char because int might match the return type of a GCC
16438 builtin and then its argument prototype would still apply. */
16439#ifdef __cplusplus
16440extern "C"
16441#endif
16442char dgettext ();
16443int
16444main ()
16445{
16446return dgettext ();
16447 ;
16448 return 0;
16449}
16450_ACEOF
16451if ac_fn_c_try_link "$LINENO"; then :
16452 ac_cv_lib_intl_dgettext=yes
16453else
16454 ac_cv_lib_intl_dgettext=no
16455fi
16456rm -f core conftest.err conftest.$ac_objext \
16457 conftest$ac_exeext conftest.$ac_ext
16458LIBS=$ac_check_lib_save_LIBS
16459fi
16460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16461$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
d6974efa 16462if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
16463 cat >>confdefs.h <<_ACEOF
16464#define HAVE_LIBINTL 1
16465_ACEOF
16466
16467 LIBS="-lintl $LIBS"
16468
16469fi
16470
16471
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16473$as_echo_n "checking whether localtime caches TZ... " >&6; }
d6974efa 16474if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
16475 $as_echo_n "(cached) " >&6
16476else
16477 if test x$ac_cv_func_tzset = xyes; then
16478if test "$cross_compiling" = yes; then :
16479 # If we have tzset, assume the worst when cross-compiling.
16480emacs_cv_localtime_cache=yes
16481else
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483/* end confdefs.h. */
16484#include <time.h>
16485char TZ_GMT0[] = "TZ=GMT0";
16486char TZ_PST8[] = "TZ=PST8";
16487main()
16488{
16489 time_t now = time ((time_t *) 0);
16490 int hour_GMT0, hour_unset;
16491 if (putenv (TZ_GMT0) != 0)
16492 exit (1);
16493 hour_GMT0 = localtime (&now)->tm_hour;
16494 unsetenv("TZ");
16495 hour_unset = localtime (&now)->tm_hour;
16496 if (putenv (TZ_PST8) != 0)
16497 exit (1);
16498 if (localtime (&now)->tm_hour == hour_GMT0)
16499 exit (1);
16500 unsetenv("TZ");
16501 if (localtime (&now)->tm_hour != hour_unset)
16502 exit (1);
16503 exit (0);
16504}
16505_ACEOF
16506if ac_fn_c_try_run "$LINENO"; then :
16507 emacs_cv_localtime_cache=no
16508else
16509 emacs_cv_localtime_cache=yes
16510fi
16511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16512 conftest.$ac_objext conftest.beam conftest.$ac_ext
16513fi
16514
16515else
16516 # If we lack tzset, report that localtime does not cache TZ,
16517 # since we can't invalidate the cache if we don't have tzset.
16518 emacs_cv_localtime_cache=no
16519fi
16520fi
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16522$as_echo "$emacs_cv_localtime_cache" >&6; }
16523if test $emacs_cv_localtime_cache = yes; then
16524
16525$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16526
16527fi
16528
16529if test "x$HAVE_TIMEVAL" = xyes; then
16530 for ac_func in gettimeofday
16531do :
16532 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
d6974efa 16533if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
16534 cat >>confdefs.h <<_ACEOF
16535#define HAVE_GETTIMEOFDAY 1
16536_ACEOF
16537
16538fi
16539done
16540
16541 if test $ac_cv_func_gettimeofday = yes; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16543$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
d6974efa 16544if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
16545 $as_echo_n "(cached) " >&6
16546else
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h. */
16549
16550#ifdef TIME_WITH_SYS_TIME
16551#include <sys/time.h>
16552#include <time.h>
16553#else
16554#ifdef HAVE_SYS_TIME_H
16555#include <sys/time.h>
16556#else
16557#include <time.h>
16558#endif
16559#endif
16560int
16561main ()
16562{
16563struct timeval time;
16564 gettimeofday (&time, 0);
16565 ;
16566 return 0;
16567}
16568_ACEOF
16569if ac_fn_c_try_compile "$LINENO"; then :
16570 emacs_cv_gettimeofday_two_arguments=yes
16571else
16572 emacs_cv_gettimeofday_two_arguments=no
16573fi
16574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575fi
16576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16577$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16578 if test $emacs_cv_gettimeofday_two_arguments = no; then
16579
16580$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16581
16582 fi
16583 fi
16584fi
16585
16586ok_so_far=yes
16587ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
d6974efa 16588if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
16589
16590else
16591 ok_so_far=no
16592fi
16593
16594if test $ok_so_far = yes; then
16595 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
d6974efa 16596if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
16597
16598else
16599 ok_so_far=no
16600fi
16601
16602
16603fi
16604if test $ok_so_far = yes; then
16605 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
d6974efa 16606if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
16607
16608else
16609 ok_so_far=no
16610fi
16611
16612
16613fi
16614if test $ok_so_far = yes; then
16615
16616$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16617
16618fi
16619
16620if test -f /usr/lpp/X11/bin/smt.exp; then
16621
16622$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16623
16624fi
16625
16626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16627$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16628if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16630$as_echo "yes" >&6; }
16631
16632$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16633
16634else
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636$as_echo "no" >&6; }
16637fi
16638
16639ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d6974efa 16640if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
16641
16642else
16643
16644cat >>confdefs.h <<_ACEOF
16645#define pid_t int
16646_ACEOF
16647
16648fi
16649
16650for ac_header in vfork.h
16651do :
16652 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
d6974efa 16653if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
16654 cat >>confdefs.h <<_ACEOF
16655#define HAVE_VFORK_H 1
16656_ACEOF
16657
16658fi
16659
16660done
16661
16662for ac_func in fork vfork
16663do :
16664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16665ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 16666if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
16667 cat >>confdefs.h <<_ACEOF
16668#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16669_ACEOF
16670
16671fi
16672done
16673
16674if test "x$ac_cv_func_fork" = xyes; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16676$as_echo_n "checking for working fork... " >&6; }
d6974efa 16677if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
16678 $as_echo_n "(cached) " >&6
16679else
16680 if test "$cross_compiling" = yes; then :
16681 ac_cv_func_fork_works=cross
16682else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684/* end confdefs.h. */
16685$ac_includes_default
16686int
16687main ()
16688{
16689
16690 /* By Ruediger Kuhlmann. */
16691 return fork () < 0;
16692
16693 ;
16694 return 0;
16695}
16696_ACEOF
16697if ac_fn_c_try_run "$LINENO"; then :
16698 ac_cv_func_fork_works=yes
16699else
16700 ac_cv_func_fork_works=no
16701fi
16702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16703 conftest.$ac_objext conftest.beam conftest.$ac_ext
16704fi
16705
16706fi
16707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16708$as_echo "$ac_cv_func_fork_works" >&6; }
16709
16710else
16711 ac_cv_func_fork_works=$ac_cv_func_fork
16712fi
16713if test "x$ac_cv_func_fork_works" = xcross; then
16714 case $host in
16715 *-*-amigaos* | *-*-msdosdjgpp*)
16716 # Override, as these systems have only a dummy fork() stub
16717 ac_cv_func_fork_works=no
16718 ;;
16719 *)
16720 ac_cv_func_fork_works=yes
16721 ;;
16722 esac
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16724$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16725fi
16726ac_cv_func_vfork_works=$ac_cv_func_vfork
16727if test "x$ac_cv_func_vfork" = xyes; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16729$as_echo_n "checking for working vfork... " >&6; }
d6974efa 16730if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
16731 $as_echo_n "(cached) " >&6
16732else
16733 if test "$cross_compiling" = yes; then :
16734 ac_cv_func_vfork_works=cross
16735else
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737/* end confdefs.h. */
16738/* Thanks to Paul Eggert for this test. */
16739$ac_includes_default
16740#include <sys/wait.h>
16741#ifdef HAVE_VFORK_H
16742# include <vfork.h>
16743#endif
16744/* On some sparc systems, changes by the child to local and incoming
16745 argument registers are propagated back to the parent. The compiler
16746 is told about this with #include <vfork.h>, but some compilers
16747 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16748 static variable whose address is put into a register that is
16749 clobbered by the vfork. */
16750static void
16751#ifdef __cplusplus
16752sparc_address_test (int arg)
16753# else
16754sparc_address_test (arg) int arg;
16755#endif
16756{
16757 static pid_t child;
16758 if (!child) {
16759 child = vfork ();
16760 if (child < 0) {
16761 perror ("vfork");
16762 _exit(2);
16763 }
16764 if (!child) {
16765 arg = getpid();
16766 write(-1, "", 0);
16767 _exit (arg);
16768 }
16769 }
16770}
16771
16772int
16773main ()
16774{
16775 pid_t parent = getpid ();
16776 pid_t child;
16777
16778 sparc_address_test (0);
16779
16780 child = vfork ();
16781
16782 if (child == 0) {
16783 /* Here is another test for sparc vfork register problems. This
16784 test uses lots of local variables, at least as many local
16785 variables as main has allocated so far including compiler
16786 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16787 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16788 reuse the register of parent for one of the local variables,
16789 since it will think that parent can't possibly be used any more
16790 in this routine. Assigning to the local variable will thus
16791 munge parent in the parent process. */
16792 pid_t
16793 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16794 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16795 /* Convince the compiler that p..p7 are live; otherwise, it might
16796 use the same hardware register for all 8 local variables. */
16797 if (p != p1 || p != p2 || p != p3 || p != p4
16798 || p != p5 || p != p6 || p != p7)
16799 _exit(1);
16800
16801 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16802 from child file descriptors. If the child closes a descriptor
16803 before it execs or exits, this munges the parent's descriptor
16804 as well. Test for this by closing stdout in the child. */
16805 _exit(close(fileno(stdout)) != 0);
16806 } else {
16807 int status;
16808 struct stat st;
16809
16810 while (wait(&status) != child)
16811 ;
16812 return (
16813 /* Was there some problem with vforking? */
16814 child < 0
16815
16816 /* Did the child fail? (This shouldn't happen.) */
16817 || status
16818
16819 /* Did the vfork/compiler bug occur? */
16820 || parent != getpid()
16821
16822 /* Did the file descriptor bug occur? */
16823 || fstat(fileno(stdout), &st) != 0
16824 );
16825 }
16826}
16827_ACEOF
16828if ac_fn_c_try_run "$LINENO"; then :
16829 ac_cv_func_vfork_works=yes
16830else
16831 ac_cv_func_vfork_works=no
16832fi
16833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16834 conftest.$ac_objext conftest.beam conftest.$ac_ext
16835fi
16836
16837fi
16838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16839$as_echo "$ac_cv_func_vfork_works" >&6; }
16840
16841fi;
16842if test "x$ac_cv_func_fork_works" = xcross; then
16843 ac_cv_func_vfork_works=$ac_cv_func_vfork
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16845$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16846fi
16847
16848if test "x$ac_cv_func_vfork_works" = xyes; then
16849
16850$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16851
16852else
16853
16854$as_echo "#define vfork fork" >>confdefs.h
16855
16856fi
16857if test "x$ac_cv_func_fork_works" = xyes; then
16858
16859$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16860
16861fi
16862
16863
16864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16865$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6974efa 16866if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
16867 $as_echo_n "(cached) " >&6
16868else
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870/* end confdefs.h. */
16871#include <langinfo.h>
16872int
16873main ()
16874{
16875char* cs = nl_langinfo(CODESET);
16876 ;
16877 return 0;
16878}
16879_ACEOF
16880if ac_fn_c_try_link "$LINENO"; then :
16881 emacs_cv_langinfo_codeset=yes
16882else
16883 emacs_cv_langinfo_codeset=no
16884fi
16885rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887
16888fi
16889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16890$as_echo "$emacs_cv_langinfo_codeset" >&6; }
16891if test $emacs_cv_langinfo_codeset = yes; then
16892
16893$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16894
16895fi
16896
16897ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d6974efa 16898if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
16899
16900cat >>confdefs.h <<_ACEOF
16901#define HAVE_SIZE_T 1
16902_ACEOF
16903
16904
16905fi
16906
16907
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16909$as_echo_n "checking for mbstate_t... " >&6; }
d6974efa 16910if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
16911 $as_echo_n "(cached) " >&6
16912else
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914/* end confdefs.h. */
16915$ac_includes_default
16916# include <wchar.h>
16917int
16918main ()
16919{
16920mbstate_t x; return sizeof x;
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925if ac_fn_c_try_compile "$LINENO"; then :
16926 ac_cv_type_mbstate_t=yes
16927else
16928 ac_cv_type_mbstate_t=no
16929fi
16930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16931fi
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16933$as_echo "$ac_cv_type_mbstate_t" >&6; }
16934 if test $ac_cv_type_mbstate_t = yes; then
16935
16936$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16937
16938 else
16939
16940$as_echo "#define mbstate_t int" >>confdefs.h
16941
16942 fi
16943
067d23c9
KY
16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16945$as_echo_n "checking for C restricted array declarations... " >&6; }
d6974efa 16946if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
16947 $as_echo_n "(cached) " >&6
16948else
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950/* end confdefs.h. */
16951void fred (int x[__restrict]);
16952int
16953main ()
16954{
16955
16956 ;
16957 return 0;
16958}
16959_ACEOF
16960if ac_fn_c_try_compile "$LINENO"; then :
16961 emacs_cv_c_restrict_arr=yes
16962else
16963 emacs_cv_c_restrict_arr=no
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966fi
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16968$as_echo "$emacs_cv_c_restrict_arr" >&6; }
16969if test "$emacs_cv_c_restrict_arr" = yes; then
16970
16971$as_echo "#define __restrict_arr __restrict" >>confdefs.h
16972
16973fi
16974
16975
16976
16977# Set up the CFLAGS for real compilation, so we can substitute it.
16978CFLAGS="$REAL_CFLAGS"
16979CPPFLAGS="$REAL_CPPFLAGS"
16980
16981## Hack to detect a buggy GCC version.
16982if test "x$GCC" = xyes \
16983 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16984 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16985 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 16986 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
16987fi
16988
16fab143 16989version=$PACKAGE_VERSION
067d23c9
KY
16990
16991### Specify what sort of things we'll be editing into Makefile and config.h.
16992### Use configuration here uncanonicalized to avoid exceeding size limits.
16993
16994
16995## Unused?
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17017## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17018## end of LIBX_BASE, but nothing ever set it.
17019
17020
17021
17022
17023## Used in lwlib/Makefile.in.
17024
d6a003a8
AS
17025if test -n "${machfile}"; then
17026 M_FILE="\$(srcdir)/${machfile}"
17027else
17028 M_FILE=
17029fi
17030S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042cat >>confdefs.h <<_ACEOF
17043#define EMACS_CONFIGURATION "${canonical}"
17044_ACEOF
17045
17046
17047cat >>confdefs.h <<_ACEOF
17048#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17049_ACEOF
17050
d6a003a8 17051if test -n "$machfile"; then
067d23c9
KY
17052
17053cat >>confdefs.h <<_ACEOF
17054#define config_machfile "${machfile}"
17055_ACEOF
17056
d6a003a8 17057fi
067d23c9
KY
17058
17059cat >>confdefs.h <<_ACEOF
17060#define config_opsysfile "${opsysfile}"
17061_ACEOF
17062
17063
17064XMENU_OBJ=
17065XOBJ=
17066FONT_OBJ=
17067if test "${HAVE_X_WINDOWS}" = "yes" ; then
17068
17069$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17070
17071 XMENU_OBJ=xmenu.o
17072 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17073 FONT_OBJ=xfont.o
17074 if test "$HAVE_XFT" = "yes"; then
17075 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17076 elif test "$HAVE_FREETYPE" = "yes"; then
17077 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17078 fi
17079
17080fi
17081
17082
17083
17084
17085WIDGET_OBJ=
17086MOTIF_LIBW=
17087if test "${USE_X_TOOLKIT}" != "none" ; then
17088 WIDGET_OBJ=widget.o
17089
17090$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17091
17092 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17093
17094$as_echo "#define USE_LUCID 1" >>confdefs.h
17095
17096 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17097
17098$as_echo "#define USE_MOTIF 1" >>confdefs.h
17099
17100 MOTIF_LIBW=-lXm
17101 case "$opsys" in
17102 gnu-linux)
17103 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17104 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17105 ;;
17106
17107 unixware)
17108 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17109 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17110 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17111 ;;
17112
17113 aix4-2)
17114 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17115 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17116 ;;
17117 esac
17118 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17119 fi
17120fi
17121
17122
17123TOOLKIT_LIBW=
17124case "$USE_X_TOOLKIT" in
17125 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17126 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17127 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17128esac
17129
17130
17131if test "$USE_X_TOOLKIT" = "none"; then
17132 LIBXT_OTHER="\$(LIBXSM)"
17133 OLDXMENU_TARGET="really-oldXMenu"
17134else
17135 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17136 OLDXMENU_TARGET="really-lwlib"
17137fi
17138
17139
17140## The X Menu stuff is present in the X10 distribution, but missing
17141## from X11. If we have X10, just use the installed library;
17142## otherwise, use our own copy.
17143if test "${HAVE_X11}" = "yes" ; then
17144
17145$as_echo "#define HAVE_X11 1" >>confdefs.h
17146
17147
17148 if test "$USE_X_TOOLKIT" = "none"; then
17149 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17150 else
17151 OLDXMENU="\${lwlibdir}/liblw.a"
17152 fi
17153 LIBXMENU="\$(OLDXMENU)"
17154 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17155 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17156else
17157 ## For a syntactically valid Makefile; not actually used for anything.
17158 ## See comments in src/Makefile.in.
17159 OLDXMENU=nothing
17160 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17161 if test "${HAVE_X_WINDOWS}" = "yes"; then
17162 LIBXMENU="-lXMenu"
17163 else
17164 LIBXMENU=
17165 fi
17166 LIBX_OTHER=
17167 OLDXMENU_DEPS=
17168fi
17169
17170if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17171 OLDXMENU_TARGET=
17172 OLDXMENU=nothing
17173 LIBXMENU=
17174 OLDXMENU_DEPS=
17175fi
17176
17177
17178
17179
17180
17181
17182
17183if test "${HAVE_MENUS}" = "yes" ; then
17184
17185$as_echo "#define HAVE_MENUS 1" >>confdefs.h
17186
17187fi
17188
17189if test "${GNU_MALLOC}" = "yes" ; then
17190
17191$as_echo "#define GNU_MALLOC 1" >>confdefs.h
17192
17193fi
17194
17195RALLOC_OBJ=
17196if test "${REL_ALLOC}" = "yes" ; then
17197
17198$as_echo "#define REL_ALLOC 1" >>confdefs.h
17199
17200
17201 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17202fi
17203
17204
17205if test "$opsys" = "cygwin"; then
17206 CYGWIN_OBJ="sheap.o"
17207 ## Cygwin differs because of its unexec().
17208 PRE_ALLOC_OBJ=
17209 POST_ALLOC_OBJ=lastfile.o
17210else
17211 CYGWIN_OBJ=
17212 PRE_ALLOC_OBJ=lastfile.o
17213 POST_ALLOC_OBJ=
17214fi
17215
17216
17217
17218
17219
17220case "$opsys" in
17221 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17222
17223 darwin)
17224 ## The -headerpad option tells ld (see man page) to leave room at the
17225 ## end of the header for adding load commands. Needed for dumping.
17226 ## 0x690 is the total size of 30 segment load commands (at 56
17227 ## each); under Cocoa 31 commands are required.
17228 if test "$HAVE_NS" = "yes"; then
17229 libs_nsgui="-framework AppKit"
17230 headerpad_extra=6C8
17231 else
17232 libs_nsgui=
17233 headerpad_extra=690
17234 fi
17235 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17236
17237 ## This is here because src/Makefile.in did some extra fiddling around
17238 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17239 ## #ifndef LD_SWITCH_SYSTEM
17240 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17241 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17242 ## not using gcc, darwin system not on an alpha (ie darwin, since
17243 ## darwin + alpha does not occur).
17244 ## Because this was done in src/Makefile.in, the resulting part of
17245 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17246 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17247 ## rather than LD_SWITCH_SYSTEM.
17248 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17249 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17250 ;;
17251
17252 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17253 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17254 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17255 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17256 ## had different values in configure (in ac_link) and src/Makefile.in.
17257 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17258 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17259
17260 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17261esac
17262
17263if test "$NS_IMPL_GNUSTEP" = "yes"; then
17264 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17265fi
17266
17267
17268
17269
17270LD_FIRSTFLAG=
17271ORDINARY_LINK=
17272case "$opsys" in
17273 ## gnu: GNU needs its own crt0.
17274 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17275
17276 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17277 ## library search parth, i.e. it won't search /usr/lib for libc and
17278 ## friends. Using -nostartfiles instead avoids this problem, and
17279 ## will also work on earlier NetBSD releases.
17280 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17281
17282 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17283 ## MkLinux/LinuxPPC needs this.
17284 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17285 gnu-*)
17286 case "$machine" in
17287 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17288 esac
17289 ;;
17290esac
17291
17292
17293if test "x$ORDINARY_LINK" = "xyes"; then
17294
17295 LD_FIRSTFLAG=""
17296
17297$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17298
17299
17300## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17301## freebsd, gnu-* not on macppc|ibms390x.
17302elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17303
17304 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17305 ## places that are difficult to figure out at make time. Fortunately,
17306 ## these same versions allow you to pass arbitrary flags on to the
17307 ## linker, so there is no reason not to use it as a linker.
17308 ##
17309 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17310 ## searching for libraries in its internal directories, so we have to
17311 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17312 LD_FIRSTFLAG="-nostdlib"
17313fi
17314
17315## FIXME? What setting of EDIT_LDFLAGS should this have?
17316test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17317
17318
17319
17320
17321## FIXME? The logic here is not precisely the same as that above.
17322## There is no check here for a pre-defined LD_FIRSTFLAG.
17323## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17324LIB_GCC=
17325if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17326
17327 case "$opsys" in
17328 freebsd|netbsd|openbsd) LIB_GCC= ;;
17329
17330 gnu-*)
17331 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17332 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
17333 case $host_cpu in
17334 arm*)
067d23c9 17335 LIB_GCC="-lgcc_s"
d6a003a8
AS
17336 ;;
17337 *)
067d23c9
KY
17338 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17339 ## immediately undefine it again and redefine it to empty.
17340 ## Was the C_SWITCH_X_SITE part really necessary?
17341## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17342 LIB_GCC=
d6a003a8
AS
17343 ;;
17344 esac
067d23c9
KY
17345 ;;
17346
17347 ## Ask GCC where to find libgcc.a.
17348 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17349 esac
17350fi
17351
17352
17353TOOLTIP_SUPPORT=
17354WINDOW_SUPPORT=
17355## If we're using X11/GNUstep, define some consequences.
17356if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17357
17358$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17359
17360
17361$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17362
17363 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17364 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17365
17366 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17367 test "$HAVE_X_WINDOWS" = "yes" && \
17368 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17369
17370fi
17371
17372
17373
17374
17375
17376
17377
17378#### Report on what we decided to do.
17379#### Report GTK as a toolkit, even if it doesn't use Xt.
17380#### It makes printing result more understandable as using GTK sets
17381#### toolkit_scroll_bars to yes by default.
17382if test "${HAVE_GTK}" = "yes"; then
17383 USE_X_TOOLKIT=GTK
17384fi
17385
2b7f50d8
AS
17386and_machfile=
17387if test -n "$machfile"; then
17388 and_machfile=" and \`${machfile}'"
17389fi
17390
067d23c9
KY
17391echo "
17392Configured for \`${canonical}'.
17393
17394 Where should the build process find the source code? ${srcdir}
17395 What operating system and machine description files should Emacs use?
2b7f50d8 17396 \`${opsysfile}'${and_machfile}
067d23c9
KY
17397 What compiler should emacs be built with? ${CC} ${CFLAGS}
17398 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17399 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17400 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17401 What window system should Emacs use? ${window_system}
17402 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17403
17404if test -n "${x_includes}"; then
17405echo " Where do we find X Windows header files? ${x_includes}"
17406else
17407echo " Where do we find X Windows header files? Standard dirs"
17408fi
17409if test -n "${x_libraries}"; then
17410echo " Where do we find X Windows libraries? ${x_libraries}"
17411else
17412echo " Where do we find X Windows libraries? Standard dirs"
17413fi
17414
17415echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17416echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17417echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17418echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17419echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17420echo " Does Emacs use -lpng? ${HAVE_PNG}"
17421echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17422echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17423
17424echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17425echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17426echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17427echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17428echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17429echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17430
17431echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17432echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17433echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17434echo " Does Emacs use -lxft? ${HAVE_XFT}"
17435
17436echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17437echo
17438
17439if test $USE_XASSERTS = yes; then
17440 echo " Compiling with asserts turned on."
17441 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17442fi
17443
17444echo
17445
17446if test "$HAVE_NS" = "yes"; then
17447 echo
17448 echo "You must run \"make install\" in order to test the built application.
17449The installed application will go to nextstep/Emacs.app and can be
17450run or moved from there."
17451 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17452 echo "The application will be fully self-contained."
17453 else
17454 echo "The lisp resources for the application will be installed under ${prefix}.
17455You may need to run \"make install\" with sudo. The application will fail
17456to run if these resources are not installed."
17457 fi
17458 echo
17459fi
17460
17461
17462# Remove any trailing slashes in these variables.
17463test "${prefix}" != NONE &&
17464 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17465test "${exec_prefix}" != NONE &&
17466 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17467
193770ee 17468ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
067d23c9
KY
17469
17470ac_config_commands="$ac_config_commands default"
17471
17472cat >confcache <<\_ACEOF
17473# This file is a shell script that caches the results of configure
17474# tests run on this system so they can be shared between configure
17475# scripts and configure runs, see configure's option --config-cache.
17476# It is not useful on other systems. If it contains results you don't
17477# want to keep, you may remove or edit it.
17478#
17479# config.status only pays attention to the cache file if you give it
17480# the --recheck option to rerun configure.
17481#
17482# `ac_cv_env_foo' variables (set or unset) will be overridden when
17483# loading this file, other *unset* `ac_cv_foo' will be assigned the
17484# following values.
17485
17486_ACEOF
17487
17488# The following way of writing the cache mishandles newlines in values,
17489# but we know of no workaround that is simple, portable, and efficient.
17490# So, we kill variables containing newlines.
17491# Ultrix sh set writes to stderr and can't be redirected directly,
17492# and sets the high bit in the cache file unless we assign to the vars.
17493(
17494 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17495 eval ac_val=\$$ac_var
17496 case $ac_val in #(
17497 *${as_nl}*)
17498 case $ac_var in #(
17499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17500$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17501 esac
17502 case $ac_var in #(
17503 _ | IFS | as_nl) ;; #(
17504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17505 *) { eval $ac_var=; unset $ac_var;} ;;
17506 esac ;;
17507 esac
17508 done
17509
17510 (set) 2>&1 |
17511 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17512 *${as_nl}ac_space=\ *)
17513 # `set' does not quote correctly, so add quotes: double-quote
17514 # substitution turns \\\\ into \\, and sed turns \\ into \.
17515 sed -n \
17516 "s/'/'\\\\''/g;
17517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17518 ;; #(
17519 *)
17520 # `set' quotes correctly as required by POSIX, so do not add quotes.
17521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17522 ;;
17523 esac |
17524 sort
17525) |
17526 sed '
17527 /^ac_cv_env_/b end
17528 t clear
17529 :clear
17530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17531 t end
17532 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17533 :end' >>confcache
17534if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17535 if test -w "$cache_file"; then
d6974efa 17536 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17538$as_echo "$as_me: updating cache $cache_file" >&6;}
d6974efa
PE
17539 if test ! -f "$cache_file" || test -h "$cache_file"; then
17540 cat confcache >"$cache_file"
17541 else
17542 case $cache_file in #(
17543 */* | ?:*)
17544 mv -f confcache "$cache_file"$$ &&
17545 mv -f "$cache_file"$$ "$cache_file" ;; #(
17546 *)
17547 mv -f confcache "$cache_file" ;;
17548 esac
17549 fi
17550 fi
067d23c9
KY
17551 else
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17553$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17554 fi
17555fi
17556rm -f confcache
17557
17558test "x$prefix" = xNONE && prefix=$ac_default_prefix
17559# Let make expand exec_prefix.
17560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17561
17562DEFS=-DHAVE_CONFIG_H
17563
17564ac_libobjs=
17565ac_ltlibobjs=
2018939f 17566U=
067d23c9
KY
17567for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17568 # 1. Remove the extension, and $U if already installed.
17569 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17570 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17571 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17572 # will be set to the directory where LIBOBJS objects are built.
17573 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17574 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17575done
17576LIBOBJS=$ac_libobjs
17577
17578LTLIBOBJS=$ac_ltlibobjs
17579
17580
743c80a7
PE
17581 if test -n "$EXEEXT"; then
17582 am__EXEEXT_TRUE=
17583 am__EXEEXT_FALSE='#'
17584else
17585 am__EXEEXT_TRUE='#'
17586 am__EXEEXT_FALSE=
17587fi
17588
17589if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17590 as_fn_error $? "conditional \"AMDEP\" was never defined.
17591Usually this means the macro was only invoked conditionally." "$LINENO" 5
17592fi
17593if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17594 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17595Usually this means the macro was only invoked conditionally." "$LINENO" 5
17596fi
17597
17598if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17599 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17600Usually this means the macro was only invoked conditionally." "$LINENO" 5
17601fi
17602
17603 gl_libobjs=
17604 gl_ltlibobjs=
17605 if test -n "$gl_LIBOBJS"; then
17606 # Remove the extension.
17607 sed_drop_objext='s/\.o$//;s/\.obj$//'
17608 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17609 gl_libobjs="$gl_libobjs $i.$ac_objext"
17610 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17611 done
17612 fi
17613 gl_LIBOBJS=$gl_libobjs
17614
17615 gl_LTLIBOBJS=$gl_ltlibobjs
17616
17617
17618
17619 gltests_libobjs=
17620 gltests_ltlibobjs=
17621 if test -n "$gltests_LIBOBJS"; then
17622 # Remove the extension.
17623 sed_drop_objext='s/\.o$//;s/\.obj$//'
17624 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17625 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17626 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17627 done
17628 fi
17629 gltests_LIBOBJS=$gltests_libobjs
17630
17631 gltests_LTLIBOBJS=$gltests_ltlibobjs
17632
067d23c9
KY
17633
17634
d6974efa 17635: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
17636ac_write_fail=0
17637ac_clean_files_save=$ac_clean_files
17638ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17640$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17641as_write_fail=0
17642cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17643#! $SHELL
17644# Generated by $as_me.
17645# Run this file to recreate the current configuration.
17646# Compiler output produced by configure, useful for debugging
17647# configure, is in config.log if it exists.
17648
17649debug=false
17650ac_cs_recheck=false
17651ac_cs_silent=false
17652
17653SHELL=\${CONFIG_SHELL-$SHELL}
17654export SHELL
17655_ASEOF
17656cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17657## -------------------- ##
17658## M4sh Initialization. ##
17659## -------------------- ##
17660
17661# Be more Bourne compatible
17662DUALCASE=1; export DUALCASE # for MKS sh
17663if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17664 emulate sh
17665 NULLCMD=:
17666 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17667 # is contrary to our usage. Disable this feature.
17668 alias -g '${1+"$@"}'='"$@"'
17669 setopt NO_GLOB_SUBST
17670else
17671 case `(set -o) 2>/dev/null` in #(
17672 *posix*) :
17673 set -o posix ;; #(
17674 *) :
17675 ;;
17676esac
17677fi
17678
17679
17680as_nl='
17681'
17682export as_nl
17683# Printing a long string crashes Solaris 7 /usr/bin/printf.
17684as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17685as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17686as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17687# Prefer a ksh shell builtin over an external printf program on Solaris,
17688# but without wasting forks for bash or zsh.
17689if test -z "$BASH_VERSION$ZSH_VERSION" \
17690 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17691 as_echo='print -r --'
17692 as_echo_n='print -rn --'
17693elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17694 as_echo='printf %s\n'
17695 as_echo_n='printf %s'
17696else
17697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17698 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17699 as_echo_n='/usr/ucb/echo -n'
17700 else
17701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17702 as_echo_n_body='eval
17703 arg=$1;
17704 case $arg in #(
17705 *"$as_nl"*)
17706 expr "X$arg" : "X\\(.*\\)$as_nl";
17707 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17708 esac;
17709 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17710 '
17711 export as_echo_n_body
17712 as_echo_n='sh -c $as_echo_n_body as_echo'
17713 fi
17714 export as_echo_body
17715 as_echo='sh -c $as_echo_body as_echo'
17716fi
17717
17718# The user is always right.
17719if test "${PATH_SEPARATOR+set}" != set; then
17720 PATH_SEPARATOR=:
17721 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17722 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17723 PATH_SEPARATOR=';'
17724 }
17725fi
17726
17727
17728# IFS
17729# We need space, tab and new line, in precisely that order. Quoting is
17730# there to prevent editors from complaining about space-tab.
17731# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17732# splitting by setting IFS to empty value.)
17733IFS=" "" $as_nl"
17734
17735# Find who we are. Look in the path if we contain no directory separator.
d6974efa 17736as_myself=
067d23c9
KY
17737case $0 in #((
17738 *[\\/]* ) as_myself=$0 ;;
17739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17740for as_dir in $PATH
17741do
17742 IFS=$as_save_IFS
17743 test -z "$as_dir" && as_dir=.
17744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17745 done
17746IFS=$as_save_IFS
17747
17748 ;;
17749esac
17750# We did not find ourselves, most probably we were run as `sh COMMAND'
17751# in which case we are not to be found in the path.
17752if test "x$as_myself" = x; then
17753 as_myself=$0
17754fi
17755if test ! -f "$as_myself"; then
17756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17757 exit 1
17758fi
17759
17760# Unset variables that we do not need and which cause bugs (e.g. in
17761# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17762# suppresses any "Segmentation fault" message there. '((' could
17763# trigger a bug in pdksh 5.2.14.
17764for as_var in BASH_ENV ENV MAIL MAILPATH
17765do eval test x\${$as_var+set} = xset \
17766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17767done
17768PS1='$ '
17769PS2='> '
17770PS4='+ '
17771
17772# NLS nuisances.
17773LC_ALL=C
17774export LC_ALL
17775LANGUAGE=C
17776export LANGUAGE
17777
17778# CDPATH.
17779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17780
17781
2018939f
AS
17782# as_fn_error STATUS ERROR [LINENO LOG_FD]
17783# ----------------------------------------
067d23c9
KY
17784# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17785# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 17786# script with STATUS, using 1 if that was 0.
067d23c9
KY
17787as_fn_error ()
17788{
2018939f
AS
17789 as_status=$1; test $as_status -eq 0 && as_status=1
17790 if test "$4"; then
17791 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 17793 fi
2018939f 17794 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
17795 as_fn_exit $as_status
17796} # as_fn_error
17797
17798
17799# as_fn_set_status STATUS
17800# -----------------------
17801# Set $? to STATUS, without forking.
17802as_fn_set_status ()
17803{
17804 return $1
17805} # as_fn_set_status
17806
17807# as_fn_exit STATUS
17808# -----------------
17809# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17810as_fn_exit ()
17811{
17812 set +e
17813 as_fn_set_status $1
17814 exit $1
17815} # as_fn_exit
17816
17817# as_fn_unset VAR
17818# ---------------
17819# Portably unset VAR.
17820as_fn_unset ()
17821{
17822 { eval $1=; unset $1;}
17823}
17824as_unset=as_fn_unset
17825# as_fn_append VAR VALUE
17826# ----------------------
17827# Append the text in VALUE to the end of the definition contained in VAR. Take
17828# advantage of any shell optimizations that allow amortized linear growth over
17829# repeated appends, instead of the typical quadratic growth present in naive
17830# implementations.
17831if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17832 eval 'as_fn_append ()
17833 {
17834 eval $1+=\$2
17835 }'
17836else
17837 as_fn_append ()
17838 {
17839 eval $1=\$$1\$2
17840 }
17841fi # as_fn_append
17842
17843# as_fn_arith ARG...
17844# ------------------
17845# Perform arithmetic evaluation on the ARGs, and store the result in the
17846# global $as_val. Take advantage of shells that can avoid forks. The arguments
17847# must be portable across $(()) and expr.
17848if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17849 eval 'as_fn_arith ()
17850 {
17851 as_val=$(( $* ))
17852 }'
17853else
17854 as_fn_arith ()
17855 {
17856 as_val=`expr "$@" || test $? -eq 1`
17857 }
17858fi # as_fn_arith
17859
17860
17861if expr a : '\(a\)' >/dev/null 2>&1 &&
17862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17863 as_expr=expr
17864else
17865 as_expr=false
17866fi
17867
17868if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17869 as_basename=basename
17870else
17871 as_basename=false
17872fi
17873
17874if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17875 as_dirname=dirname
17876else
17877 as_dirname=false
17878fi
17879
17880as_me=`$as_basename -- "$0" ||
17881$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17882 X"$0" : 'X\(//\)$' \| \
17883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17884$as_echo X/"$0" |
17885 sed '/^.*\/\([^/][^/]*\)\/*$/{
17886 s//\1/
17887 q
17888 }
17889 /^X\/\(\/\/\)$/{
17890 s//\1/
17891 q
17892 }
17893 /^X\/\(\/\).*/{
17894 s//\1/
17895 q
17896 }
17897 s/.*/./; q'`
17898
17899# Avoid depending upon Character Ranges.
17900as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17901as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17902as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17903as_cr_digits='0123456789'
17904as_cr_alnum=$as_cr_Letters$as_cr_digits
17905
17906ECHO_C= ECHO_N= ECHO_T=
17907case `echo -n x` in #(((((
17908-n*)
17909 case `echo 'xy\c'` in
17910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17911 xy) ECHO_C='\c';;
17912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17913 ECHO_T=' ';;
17914 esac;;
17915*)
17916 ECHO_N='-n';;
17917esac
17918
17919rm -f conf$$ conf$$.exe conf$$.file
17920if test -d conf$$.dir; then
17921 rm -f conf$$.dir/conf$$.file
17922else
17923 rm -f conf$$.dir
17924 mkdir conf$$.dir 2>/dev/null
17925fi
17926if (echo >conf$$.file) 2>/dev/null; then
17927 if ln -s conf$$.file conf$$ 2>/dev/null; then
17928 as_ln_s='ln -s'
17929 # ... but there are two gotchas:
17930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17932 # In both cases, we have to default to `cp -p'.
17933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17934 as_ln_s='cp -p'
17935 elif ln conf$$.file conf$$ 2>/dev/null; then
17936 as_ln_s=ln
17937 else
17938 as_ln_s='cp -p'
17939 fi
17940else
17941 as_ln_s='cp -p'
17942fi
17943rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17944rmdir conf$$.dir 2>/dev/null
17945
17946
17947# as_fn_mkdir_p
17948# -------------
17949# Create "$as_dir" as a directory, including parents if necessary.
17950as_fn_mkdir_p ()
17951{
17952
17953 case $as_dir in #(
17954 -*) as_dir=./$as_dir;;
17955 esac
17956 test -d "$as_dir" || eval $as_mkdir_p || {
17957 as_dirs=
17958 while :; do
17959 case $as_dir in #(
17960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17961 *) as_qdir=$as_dir;;
17962 esac
17963 as_dirs="'$as_qdir' $as_dirs"
17964 as_dir=`$as_dirname -- "$as_dir" ||
17965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17966 X"$as_dir" : 'X\(//\)[^/]' \| \
17967 X"$as_dir" : 'X\(//\)$' \| \
17968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17969$as_echo X"$as_dir" |
17970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17971 s//\1/
17972 q
17973 }
17974 /^X\(\/\/\)[^/].*/{
17975 s//\1/
17976 q
17977 }
17978 /^X\(\/\/\)$/{
17979 s//\1/
17980 q
17981 }
17982 /^X\(\/\).*/{
17983 s//\1/
17984 q
17985 }
17986 s/.*/./; q'`
17987 test -d "$as_dir" && break
17988 done
17989 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 17990 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
17991
17992
17993} # as_fn_mkdir_p
17994if mkdir -p . 2>/dev/null; then
17995 as_mkdir_p='mkdir -p "$as_dir"'
17996else
17997 test -d ./-p && rmdir ./-p
17998 as_mkdir_p=false
17999fi
18000
18001if test -x / >/dev/null 2>&1; then
18002 as_test_x='test -x'
18003else
18004 if ls -dL / >/dev/null 2>&1; then
18005 as_ls_L_option=L
18006 else
18007 as_ls_L_option=
18008 fi
18009 as_test_x='
18010 eval sh -c '\''
18011 if test -d "$1"; then
18012 test -d "$1/.";
18013 else
18014 case $1 in #(
18015 -*)set "./$1";;
18016 esac;
18017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18018 ???[sx]*):;;*)false;;esac;fi
18019 '\'' sh
18020 '
18021fi
18022as_executable_p=$as_test_x
18023
18024# Sed expression to map a string onto a valid CPP name.
18025as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18026
18027# Sed expression to map a string onto a valid variable name.
18028as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18029
18030
18031exec 6>&1
18032## ----------------------------------- ##
18033## Main body of $CONFIG_STATUS script. ##
18034## ----------------------------------- ##
18035_ASEOF
18036test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18037
18038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18039# Save the log message, to keep $0 and so on meaningful, and to
18040# report actual input values of CONFIG_FILES etc. instead of their
18041# values after options handling.
18042ac_log="
18043This file was extended by emacs $as_me 24.0.50, which was
d6974efa 18044generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
18045
18046 CONFIG_FILES = $CONFIG_FILES
18047 CONFIG_HEADERS = $CONFIG_HEADERS
18048 CONFIG_LINKS = $CONFIG_LINKS
18049 CONFIG_COMMANDS = $CONFIG_COMMANDS
18050 $ $0 $@
18051
18052on `(hostname || uname -n) 2>/dev/null | sed 1q`
18053"
18054
18055_ACEOF
18056
18057case $ac_config_files in *"
18058"*) set x $ac_config_files; shift; ac_config_files=$*;;
18059esac
18060
18061case $ac_config_headers in *"
18062"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18063esac
18064
18065
18066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18067# Files that config.status was made for.
18068config_files="$ac_config_files"
18069config_headers="$ac_config_headers"
18070config_commands="$ac_config_commands"
18071
18072_ACEOF
18073
18074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18075ac_cs_usage="\
18076\`$as_me' instantiates files and other configuration actions
18077from templates according to the current configuration. Unless the files
18078and actions are specified as TAGs, all are instantiated by default.
18079
18080Usage: $0 [OPTION]... [TAG]...
18081
18082 -h, --help print this help, then exit
18083 -V, --version print version number and configuration settings, then exit
18084 --config print configuration, then exit
18085 -q, --quiet, --silent
18086 do not print progress messages
18087 -d, --debug don't remove temporary files
18088 --recheck update $as_me by reconfiguring in the same conditions
18089 --file=FILE[:TEMPLATE]
18090 instantiate the configuration file FILE
18091 --header=FILE[:TEMPLATE]
18092 instantiate the configuration header FILE
18093
18094Configuration files:
18095$config_files
18096
18097Configuration headers:
18098$config_headers
18099
18100Configuration commands:
18101$config_commands
18102
18103Report bugs to the package provider."
18104
18105_ACEOF
18106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18107ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18108ac_cs_version="\\
18109emacs config.status 24.0.50
d6974efa 18110configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
18111 with options \\"\$ac_cs_config\\"
18112
2018939f 18113Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
18114This config.status script is free software; the Free Software Foundation
18115gives unlimited permission to copy, distribute and modify it."
18116
18117ac_pwd='$ac_pwd'
18118srcdir='$srcdir'
18119INSTALL='$INSTALL'
743c80a7
PE
18120MKDIR_P='$MKDIR_P'
18121AWK='$AWK'
067d23c9
KY
18122test -n "\$AWK" || AWK=awk
18123_ACEOF
18124
18125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126# The default lists apply if the user does not specify any file.
18127ac_need_defaults=:
18128while test $# != 0
18129do
18130 case $1 in
2018939f 18131 --*=?*)
067d23c9
KY
18132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18133 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18134 ac_shift=:
18135 ;;
2018939f
AS
18136 --*=)
18137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18138 ac_optarg=
18139 ac_shift=:
18140 ;;
067d23c9
KY
18141 *)
18142 ac_option=$1
18143 ac_optarg=$2
18144 ac_shift=shift
18145 ;;
18146 esac
18147
18148 case $ac_option in
18149 # Handling of the options.
18150 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18151 ac_cs_recheck=: ;;
18152 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18153 $as_echo "$ac_cs_version"; exit ;;
18154 --config | --confi | --conf | --con | --co | --c )
18155 $as_echo "$ac_cs_config"; exit ;;
18156 --debug | --debu | --deb | --de | --d | -d )
18157 debug=: ;;
18158 --file | --fil | --fi | --f )
18159 $ac_shift
18160 case $ac_optarg in
18161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 18162 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
18163 esac
18164 as_fn_append CONFIG_FILES " '$ac_optarg'"
18165 ac_need_defaults=false;;
18166 --header | --heade | --head | --hea )
18167 $ac_shift
18168 case $ac_optarg in
18169 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18170 esac
18171 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18172 ac_need_defaults=false;;
18173 --he | --h)
18174 # Conflict between --help and --header
2018939f 18175 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
18176Try \`$0 --help' for more information.";;
18177 --help | --hel | -h )
18178 $as_echo "$ac_cs_usage"; exit ;;
18179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18180 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18181 ac_cs_silent=: ;;
18182
18183 # This is an error.
2018939f 18184 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
18185Try \`$0 --help' for more information." ;;
18186
18187 *) as_fn_append ac_config_targets " $1"
18188 ac_need_defaults=false ;;
18189
18190 esac
18191 shift
18192done
18193
18194ac_configure_extra_args=
18195
18196if $ac_cs_silent; then
18197 exec 6>/dev/null
18198 ac_configure_extra_args="$ac_configure_extra_args --silent"
18199fi
18200
18201_ACEOF
18202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18203if \$ac_cs_recheck; then
18204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18205 shift
18206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18207 CONFIG_SHELL='$SHELL'
18208 export CONFIG_SHELL
18209 exec "\$@"
18210fi
18211
18212_ACEOF
18213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18214exec 5>>config.log
18215{
18216 echo
18217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18218## Running $as_me. ##
18219_ASBOX
18220 $as_echo "$ac_log"
18221} >&5
18222
18223_ACEOF
18224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18225#
18226# INIT-COMMANDS
18227#
743c80a7 18228AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
18229GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18230
18231_ACEOF
18232
18233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18234
18235# Handling of arguments.
18236for ac_config_target in $ac_config_targets
18237do
18238 case $ac_config_target in
18239 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 18240 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 18241 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 18242 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
18243 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18244 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18245 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18246 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18247 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18248 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18249 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18250 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18251 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18252 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 18253 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
067d23c9
KY
18254 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18255
d6974efa 18256 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
18257 esac
18258done
18259
18260
18261# If the user did not use the arguments to specify the items to instantiate,
18262# then the envvar interface is used. Set only those that are not.
18263# We use the long form for the default assignment because of an extremely
18264# bizarre bug on SunOS 4.1.3.
18265if $ac_need_defaults; then
18266 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18267 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18268 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18269fi
18270
18271# Have a temporary directory for convenience. Make it in the build tree
18272# simply because there is no reason against having it here, and in addition,
18273# creating and moving files from /tmp can sometimes cause problems.
18274# Hook for its removal unless debugging.
18275# Note that there is a small window in which the directory will not be cleaned:
18276# after its creation but before its name has been assigned to `$tmp'.
18277$debug ||
18278{
d6974efa 18279 tmp= ac_tmp=
067d23c9 18280 trap 'exit_status=$?
d6974efa
PE
18281 : "${ac_tmp:=$tmp}"
18282 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
18283' 0
18284 trap 'as_fn_exit 1' 1 2 13 15
18285}
18286# Create a (secure) tmp directory for tmp files.
18287
18288{
18289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6974efa 18290 test -d "$tmp"
067d23c9
KY
18291} ||
18292{
18293 tmp=./conf$$-$RANDOM
18294 (umask 077 && mkdir "$tmp")
2018939f 18295} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
d6974efa 18296ac_tmp=$tmp
067d23c9
KY
18297
18298# Set up the scripts for CONFIG_FILES section.
18299# No need to generate them if there are no CONFIG_FILES.
18300# This happens for instance with `./config.status config.h'.
18301if test -n "$CONFIG_FILES"; then
18302
18303if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18304 ac_cs_awk_getline=:
18305 ac_cs_awk_pipe_init=
18306 ac_cs_awk_read_file='
18307 while ((getline aline < (F[key])) > 0)
18308 print(aline)
18309 close(F[key])'
18310 ac_cs_awk_pipe_fini=
18311else
18312 ac_cs_awk_getline=false
18313 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18314 ac_cs_awk_read_file='
18315 print "|#_!!_#|"
18316 print "cat " F[key] " &&"
18317 '$ac_cs_awk_pipe_init
18318 # The final `:' finishes the AND list.
18319 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18320fi
18321ac_cr=`echo X | tr X '\015'`
18322# On cygwin, bash can eat \r inside `` if the user requested igncr.
18323# But we know of no other shell where ac_cr would be empty at this
18324# point, so we can use a bashism as a fallback.
18325if test "x$ac_cr" = x; then
18326 eval ac_cr=\$\'\\r\'
18327fi
18328ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18329if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 18330 ac_cs_awk_cr='\\r'
067d23c9
KY
18331else
18332 ac_cs_awk_cr=$ac_cr
18333fi
18334
d6974efa 18335echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
18336_ACEOF
18337
18338# Create commands to substitute file output variables.
18339{
18340 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6974efa 18341 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
18342 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18343 echo "_ACAWK" &&
18344 echo "_ACEOF"
18345} >conf$$files.sh &&
18346. ./conf$$files.sh ||
2018939f 18347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18348rm -f conf$$files.sh
18349
18350{
18351 echo "cat >conf$$subs.awk <<_ACEOF" &&
18352 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18353 echo "_ACEOF"
18354} >conf$$subs.sh ||
2018939f
AS
18355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18356ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
18357ac_delim='%!_!# '
18358for ac_last_try in false false false false false :; do
18359 . ./conf$$subs.sh ||
2018939f 18360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18361
18362 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18363 if test $ac_delim_n = $ac_delim_num; then
18364 break
18365 elif $ac_last_try; then
2018939f 18366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18367 else
18368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18369 fi
18370done
18371rm -f conf$$subs.sh
18372
18373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6974efa 18374cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
18375_ACEOF
18376sed -n '
18377h
18378s/^/S["/; s/!.*/"]=/
18379p
18380g
18381s/^[^!]*!//
18382:repl
18383t repl
18384s/'"$ac_delim"'$//
18385t delim
18386:nl
18387h
18388s/\(.\{148\}\)..*/\1/
18389t more1
18390s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18391p
18392n
18393b repl
18394:more1
18395s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18396p
18397g
18398s/.\{148\}//
18399t nl
18400:delim
18401h
18402s/\(.\{148\}\)..*/\1/
18403t more2
18404s/["\\]/\\&/g; s/^/"/; s/$/"/
18405p
18406b
18407:more2
18408s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18409p
18410g
18411s/.\{148\}//
18412t delim
18413' <conf$$subs.awk | sed '
18414/^[^""]/{
18415 N
18416 s/\n//
18417}
18418' >>$CONFIG_STATUS || ac_write_fail=1
18419rm -f conf$$subs.awk
18420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18421_ACAWK
d6974efa 18422cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
18423 for (key in S) S_is_set[key] = 1
18424 FS = "\a"
18425 \$ac_cs_awk_pipe_init
18426}
18427{
18428 line = $ 0
18429 nfields = split(line, field, "@")
18430 substed = 0
18431 len = length(field[1])
18432 for (i = 2; i < nfields; i++) {
18433 key = field[i]
18434 keylen = length(key)
18435 if (S_is_set[key]) {
18436 value = S[key]
18437 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18438 len += length(value) + length(field[++i])
18439 substed = 1
18440 } else
18441 len += 1 + keylen
18442 }
18443 if (nfields == 3 && !substed) {
18444 key = field[2]
18445 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18446 \$ac_cs_awk_read_file
18447 next
18448 }
18449 }
18450 print line
18451}
18452\$ac_cs_awk_pipe_fini
18453_ACAWK
18454_ACEOF
18455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18456if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18458else
18459 cat
d6974efa 18460fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2018939f 18461 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
18462_ACEOF
18463
2018939f
AS
18464# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18465# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
18466# trailing colons and then remove the whole line if VPATH becomes empty
18467# (actually we leave an empty line to preserve line numbers).
18468if test "x$srcdir" = x.; then
2018939f
AS
18469 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18470h
18471s///
18472s/^/:/
18473s/[ ]*$/:/
18474s/:\$(srcdir):/:/g
18475s/:\${srcdir}:/:/g
18476s/:@srcdir@:/:/g
18477s/^:*//
067d23c9 18478s/:*$//
2018939f
AS
18479x
18480s/\(=[ ]*\).*/\1/
18481G
18482s/\n//
067d23c9
KY
18483s/^[^=]*=[ ]*$//
18484}'
18485fi
18486
18487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488fi # test -n "$CONFIG_FILES"
18489
18490# Set up the scripts for CONFIG_HEADERS section.
18491# No need to generate them if there are no CONFIG_HEADERS.
18492# This happens for instance with `./config.status Makefile'.
18493if test -n "$CONFIG_HEADERS"; then
d6974efa 18494cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
18495BEGIN {
18496_ACEOF
18497
18498# Transform confdefs.h into an awk script `defines.awk', embedded as
18499# here-document in config.status, that substitutes the proper values into
18500# config.h.in to produce config.h.
18501
18502# Create a delimiter string that does not exist in confdefs.h, to ease
18503# handling of long lines.
18504ac_delim='%!_!# '
18505for ac_last_try in false false :; do
d6974efa
PE
18506 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18507 if test -z "$ac_tt"; then
067d23c9
KY
18508 break
18509 elif $ac_last_try; then
2018939f 18510 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
18511 else
18512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18513 fi
18514done
18515
18516# For the awk script, D is an array of macro values keyed by name,
18517# likewise P contains macro parameters if any. Preserve backslash
18518# newline sequences.
18519
18520ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18521sed -n '
18522s/.\{148\}/&'"$ac_delim"'/g
18523t rset
18524:rset
18525s/^[ ]*#[ ]*define[ ][ ]*/ /
18526t def
18527d
18528:def
18529s/\\$//
18530t bsnl
18531s/["\\]/\\&/g
18532s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18533D["\1"]=" \3"/p
18534s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18535d
18536:bsnl
18537s/["\\]/\\&/g
18538s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18539D["\1"]=" \3\\\\\\n"\\/p
18540t cont
18541s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18542t cont
18543d
18544:cont
18545n
18546s/.\{148\}/&'"$ac_delim"'/g
18547t clear
18548:clear
18549s/\\$//
18550t bsnlc
18551s/["\\]/\\&/g; s/^/"/; s/$/"/p
18552d
18553:bsnlc
18554s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18555b cont
18556' <confdefs.h | sed '
18557s/'"$ac_delim"'/"\\\
18558"/g' >>$CONFIG_STATUS || ac_write_fail=1
18559
18560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18561 for (key in D) D_is_set[key] = 1
18562 FS = "\a"
18563}
18564/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18565 line = \$ 0
18566 split(line, arg, " ")
18567 if (arg[1] == "#") {
18568 defundef = arg[2]
18569 mac1 = arg[3]
18570 } else {
18571 defundef = substr(arg[1], 2)
18572 mac1 = arg[2]
18573 }
18574 split(mac1, mac2, "(") #)
18575 macro = mac2[1]
18576 prefix = substr(line, 1, index(line, defundef) - 1)
18577 if (D_is_set[macro]) {
18578 # Preserve the white space surrounding the "#".
18579 print prefix "define", macro P[macro] D[macro]
18580 next
18581 } else {
18582 # Replace #undef with comments. This is necessary, for example,
18583 # in the case of _POSIX_SOURCE, which is predefined and required
18584 # on some systems where configure will not decide to define it.
18585 if (defundef == "undef") {
18586 print "/*", prefix defundef, macro, "*/"
18587 next
18588 }
18589 }
18590}
18591{ print }
18592_ACAWK
18593_ACEOF
18594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 18595 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
18596fi # test -n "$CONFIG_HEADERS"
18597
18598
18599eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18600shift
18601for ac_tag
18602do
18603 case $ac_tag in
18604 :[FHLC]) ac_mode=$ac_tag; continue;;
18605 esac
18606 case $ac_mode$ac_tag in
18607 :[FHL]*:*);;
d6974efa 18608 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
18609 :[FH]-) ac_tag=-:-;;
18610 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18611 esac
18612 ac_save_IFS=$IFS
18613 IFS=:
18614 set x $ac_tag
18615 IFS=$ac_save_IFS
18616 shift
18617 ac_file=$1
18618 shift
18619
18620 case $ac_mode in
18621 :L) ac_source=$1;;
18622 :[FH])
18623 ac_file_inputs=
18624 for ac_f
18625 do
18626 case $ac_f in
d6974efa 18627 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
18628 *) # Look for the file first in the build tree, then in the source tree
18629 # (if the path is not absolute). The absolute path cannot be DOS-style,
18630 # because $ac_f cannot contain `:'.
18631 test -f "$ac_f" ||
18632 case $ac_f in
18633 [\\/$]*) false;;
18634 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18635 esac ||
d6974efa 18636 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
18637 esac
18638 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18639 as_fn_append ac_file_inputs " '$ac_f'"
18640 done
18641
18642 # Let's still pretend it is `configure' which instantiates (i.e., don't
18643 # use $as_me), people would be surprised to read:
18644 # /* config.h. Generated by config.status. */
18645 configure_input='Generated from '`
18646 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18647 `' by configure.'
18648 if test x"$ac_file" != x-; then
18649 configure_input="$ac_file. $configure_input"
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18651$as_echo "$as_me: creating $ac_file" >&6;}
18652 fi
18653 # Neutralize special characters interpreted by sed in replacement strings.
18654 case $configure_input in #(
18655 *\&* | *\|* | *\\* )
18656 ac_sed_conf_input=`$as_echo "$configure_input" |
18657 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18658 *) ac_sed_conf_input=$configure_input;;
18659 esac
18660
18661 case $ac_tag in
d6974efa
PE
18662 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
18664 esac
18665 ;;
18666 esac
18667
18668 ac_dir=`$as_dirname -- "$ac_file" ||
18669$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18670 X"$ac_file" : 'X\(//\)[^/]' \| \
18671 X"$ac_file" : 'X\(//\)$' \| \
18672 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18673$as_echo X"$ac_file" |
18674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18675 s//\1/
18676 q
18677 }
18678 /^X\(\/\/\)[^/].*/{
18679 s//\1/
18680 q
18681 }
18682 /^X\(\/\/\)$/{
18683 s//\1/
18684 q
18685 }
18686 /^X\(\/\).*/{
18687 s//\1/
18688 q
18689 }
18690 s/.*/./; q'`
18691 as_dir="$ac_dir"; as_fn_mkdir_p
18692 ac_builddir=.
18693
18694case "$ac_dir" in
18695.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18696*)
18697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18698 # A ".." for each directory in $ac_dir_suffix.
18699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18700 case $ac_top_builddir_sub in
18701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18703 esac ;;
18704esac
18705ac_abs_top_builddir=$ac_pwd
18706ac_abs_builddir=$ac_pwd$ac_dir_suffix
18707# for backward compatibility:
18708ac_top_builddir=$ac_top_build_prefix
18709
18710case $srcdir in
18711 .) # We are building in place.
18712 ac_srcdir=.
18713 ac_top_srcdir=$ac_top_builddir_sub
18714 ac_abs_top_srcdir=$ac_pwd ;;
18715 [\\/]* | ?:[\\/]* ) # Absolute name.
18716 ac_srcdir=$srcdir$ac_dir_suffix;
18717 ac_top_srcdir=$srcdir
18718 ac_abs_top_srcdir=$srcdir ;;
18719 *) # Relative name.
18720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18721 ac_top_srcdir=$ac_top_build_prefix$srcdir
18722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18723esac
18724ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18725
18726
18727 case $ac_mode in
18728 :F)
18729 #
18730 # CONFIG_FILE
18731 #
18732
18733 case $INSTALL in
18734 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18735 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18736 esac
743c80a7
PE
18737 ac_MKDIR_P=$MKDIR_P
18738 case $MKDIR_P in
18739 [\\/$]* | ?:[\\/]* ) ;;
18740 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18741 esac
067d23c9
KY
18742_ACEOF
18743
18744cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18745# If the template does not know about datarootdir, expand it.
18746# FIXME: This hack should be removed a few years after 2.60.
18747ac_datarootdir_hack=; ac_datarootdir_seen=
18748ac_sed_dataroot='
18749/datarootdir/ {
18750 p
18751 q
18752}
18753/@datadir@/p
18754/@docdir@/p
18755/@infodir@/p
18756/@localedir@/p
18757/@mandir@/p'
18758case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18759*datarootdir*) ac_datarootdir_seen=yes;;
18760*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18762$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18763_ACEOF
18764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18765 ac_datarootdir_hack='
18766 s&@datadir@&$datadir&g
18767 s&@docdir@&$docdir&g
18768 s&@infodir@&$infodir&g
18769 s&@localedir@&$localedir&g
18770 s&@mandir@&$mandir&g
18771 s&\\\${datarootdir}&$datarootdir&g' ;;
18772esac
18773_ACEOF
18774
18775# Neutralize VPATH when `$srcdir' = `.'.
18776# Shell code in configure.ac might set extrasub.
18777# FIXME: do we really want to maintain this feature?
18778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18779ac_sed_extra="$ac_vpsub
18780$extrasub
18781_ACEOF
18782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18783:t
18784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18785s|@configure_input@|$ac_sed_conf_input|;t t
18786s&@top_builddir@&$ac_top_builddir_sub&;t t
18787s&@top_build_prefix@&$ac_top_build_prefix&;t t
18788s&@srcdir@&$ac_srcdir&;t t
18789s&@abs_srcdir@&$ac_abs_srcdir&;t t
18790s&@top_srcdir@&$ac_top_srcdir&;t t
18791s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18792s&@builddir@&$ac_builddir&;t t
18793s&@abs_builddir@&$ac_abs_builddir&;t t
18794s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18795s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 18796s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
18797$ac_datarootdir_hack
18798"
18799eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18800if $ac_cs_awk_getline; then
d6974efa 18801 $AWK -f "$ac_tmp/subs.awk"
067d23c9 18802else
d6974efa
PE
18803 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18804fi \
18805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18806
18807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6974efa
PE
18808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18810 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 18812which seems to be undefined. Please make sure it is defined" >&5
067d23c9 18813$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 18814which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 18815
d6974efa 18816 rm -f "$ac_tmp/stdin"
067d23c9 18817 case $ac_file in
d6974efa
PE
18818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 18820 esac \
2018939f 18821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18822 ;;
18823 :H)
18824 #
18825 # CONFIG_HEADER
18826 #
18827 if test x"$ac_file" != x-; then
18828 {
18829 $as_echo "/* $configure_input */" \
d6974efa
PE
18830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18831 } >"$ac_tmp/config.h" \
2018939f 18832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d6974efa 18833 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18835$as_echo "$as_me: $ac_file is unchanged" >&6;}
18836 else
18837 rm -f "$ac_file"
d6974efa 18838 mv "$ac_tmp/config.h" "$ac_file" \
2018939f 18839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18840 fi
18841 else
18842 $as_echo "/* $configure_input */" \
d6974efa 18843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2018939f 18844 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 18845 fi
743c80a7
PE
18846# Compute "$ac_file"'s index in $config_headers.
18847_am_arg="$ac_file"
18848_am_stamp_count=1
18849for _am_header in $config_headers :; do
18850 case $_am_header in
18851 $_am_arg | $_am_arg:* )
18852 break ;;
18853 * )
18854 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18855 esac
18856done
18857echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18858$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18859 X"$_am_arg" : 'X\(//\)[^/]' \| \
18860 X"$_am_arg" : 'X\(//\)$' \| \
18861 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18862$as_echo X"$_am_arg" |
18863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18864 s//\1/
18865 q
18866 }
18867 /^X\(\/\/\)[^/].*/{
18868 s//\1/
18869 q
18870 }
18871 /^X\(\/\/\)$/{
18872 s//\1/
18873 q
18874 }
18875 /^X\(\/\).*/{
18876 s//\1/
18877 q
18878 }
18879 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
18880 ;;
18881
18882 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18883$as_echo "$as_me: executing $ac_file commands" >&6;}
18884 ;;
18885 esac
18886
18887
18888 case $ac_file$ac_mode in
743c80a7
PE
18889 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18890 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18891 # are listed without --file. Let's play safe and only enable the eval
18892 # if we detect the quoting.
18893 case $CONFIG_FILES in
18894 *\'*) eval set x "$CONFIG_FILES" ;;
18895 *) set x $CONFIG_FILES ;;
18896 esac
18897 shift
18898 for mf
18899 do
18900 # Strip MF so we end up with the name of the file.
18901 mf=`echo "$mf" | sed -e 's/:.*$//'`
18902 # Check whether this is an Automake generated Makefile or not.
18903 # We used to match only the files named `Makefile.in', but
18904 # some people rename them; so instead we look at the file content.
18905 # Grep'ing the first line is not enough: some people post-process
18906 # each Makefile.in and add a new line on top of each file to say so.
18907 # Grep'ing the whole file is not good either: AIX grep has a line
18908 # limit of 2048, but all sed's we know have understand at least 4000.
18909 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18910 dirpart=`$as_dirname -- "$mf" ||
18911$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18912 X"$mf" : 'X\(//\)[^/]' \| \
18913 X"$mf" : 'X\(//\)$' \| \
18914 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18915$as_echo X"$mf" |
18916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18917 s//\1/
18918 q
18919 }
18920 /^X\(\/\/\)[^/].*/{
18921 s//\1/
18922 q
18923 }
18924 /^X\(\/\/\)$/{
18925 s//\1/
18926 q
18927 }
18928 /^X\(\/\).*/{
18929 s//\1/
18930 q
18931 }
18932 s/.*/./; q'`
18933 else
18934 continue
18935 fi
18936 # Extract the definition of DEPDIR, am__include, and am__quote
18937 # from the Makefile without running `make'.
18938 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18939 test -z "$DEPDIR" && continue
18940 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18941 test -z "am__include" && continue
18942 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18943 # When using ansi2knr, U may be empty or an underscore; expand it
18944 U=`sed -n 's/^U = //p' < "$mf"`
18945 # Find all dependency output files, they are included files with
18946 # $(DEPDIR) in their names. We invoke sed twice because it is the
18947 # simplest approach to changing $(DEPDIR) to its actual value in the
18948 # expansion.
18949 for file in `sed -n "
18950 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18951 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18952 # Make sure the directory exists.
18953 test -f "$dirpart/$file" && continue
18954 fdir=`$as_dirname -- "$file" ||
18955$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18956 X"$file" : 'X\(//\)[^/]' \| \
18957 X"$file" : 'X\(//\)$' \| \
18958 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18959$as_echo X"$file" |
18960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18961 s//\1/
18962 q
18963 }
18964 /^X\(\/\/\)[^/].*/{
18965 s//\1/
18966 q
18967 }
18968 /^X\(\/\/\)$/{
18969 s//\1/
18970 q
18971 }
18972 /^X\(\/\).*/{
18973 s//\1/
18974 q
18975 }
18976 s/.*/./; q'`
18977 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18978 # echo "creating $dirpart/$file"
18979 echo '# dummy' > "$dirpart/$file"
18980 done
18981 done
18982}
18983 ;;
067d23c9
KY
18984 "default":C)
18985
18986### Make the necessary directories, if they don't exist.
18987for dir in etc lisp ; do
18988 test -d ${dir} || mkdir ${dir}
18989done
18990
18991echo creating src/epaths.h
18992${MAKE-make} epaths-force
18993
18994if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18995 echo creating src/.gdbinit
18996 echo source $srcdir/src/.gdbinit > src/.gdbinit
18997fi
18998
18999 ;;
19000
19001 esac
19002done # for ac_tag
19003
19004
19005as_fn_exit 0
19006_ACEOF
19007ac_clean_files=$ac_clean_files_save
19008
19009test $ac_write_fail = 0 ||
2018939f 19010 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
19011
19012
19013# configure is writing to config.log, and then calls config.status.
19014# config.status does its own redirection, appending to config.log.
19015# Unfortunately, on DOS this fails, as config.log is still kept open
19016# by configure, so config.status won't be able to write to it; its
19017# output is simply discarded. So we exec the FD to /dev/null,
19018# effectively closing config.log, so it can be properly (re)opened and
19019# appended to by config.status. When coming back to configure, we
19020# need to make the FD available again.
19021if test "$no_create" != yes; then
19022 ac_cs_success=:
19023 ac_config_status_args=
19024 test "$silent" = yes &&
19025 ac_config_status_args="$ac_config_status_args --quiet"
19026 exec 5>/dev/null
19027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19028 exec 5>>config.log
19029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19030 # would make configure fail if this is the last instruction.
2018939f 19031 $ac_cs_success || as_fn_exit 1
067d23c9
KY
19032fi
19033if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19035$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19036fi
19037