gnulib: import mktime and move-if-change fixes from gnulib
[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
685APPLE_UNIVERSAL_BUILD
686REPLACE_TIMEGM
687REPLACE_NANOSLEEP
688REPLACE_MKTIME
689REPLACE_LOCALTIME_R
690HAVE_TIMEGM
691HAVE_STRPTIME
692HAVE_NANOSLEEP
693HAVE_DECL_LOCALTIME_R
694GNULIB_TIME_R
695GNULIB_TIMEGM
696GNULIB_STRPTIME
697GNULIB_NANOSLEEP
698GNULIB_MKTIME
e275c824
PE
699LTLIBINTL
700LIBINTL
701GETOPT_H
702HAVE_GETOPT_H
703NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
704NEXT_GETOPT_H
705PRAGMA_COLUMNS
706PRAGMA_SYSTEM_HEADER
707INCLUDE_NEXT_AS_FIRST_DIRECTIVE
708INCLUDE_NEXT
709UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
710UNISTD_H_HAVE_WINSOCK2_H
711REPLACE_WRITE
712REPLACE_USLEEP
713REPLACE_UNLINKAT
714REPLACE_UNLINK
715REPLACE_TTYNAME_R
716REPLACE_SYMLINK
717REPLACE_SLEEP
718REPLACE_RMDIR
719REPLACE_READLINK
720REPLACE_PWRITE
721REPLACE_PREAD
722REPLACE_LSEEK
723REPLACE_LINKAT
724REPLACE_LINK
725REPLACE_LCHOWN
726REPLACE_GETPAGESIZE
727REPLACE_GETGROUPS
728REPLACE_GETLOGIN_R
729REPLACE_GETDOMAINNAME
730REPLACE_GETCWD
731REPLACE_FCHOWNAT
732REPLACE_DUP2
733REPLACE_DUP
734REPLACE_CLOSE
735REPLACE_CHOWN
736HAVE_SYS_PARAM_H
737HAVE_OS_H
738HAVE_DECL_TTYNAME_R
739HAVE_DECL_GETUSERSHELL
740HAVE_DECL_GETPAGESIZE
741HAVE_DECL_GETLOGIN_R
742HAVE_DECL_GETDOMAINNAME
743HAVE_DECL_FCHDIR
744HAVE_DECL_ENVIRON
745HAVE_USLEEP
746HAVE_UNLINKAT
747HAVE_SYMLINKAT
748HAVE_SYMLINK
749HAVE_SLEEP
750HAVE_READLINKAT
751HAVE_READLINK
752HAVE_PWRITE
753HAVE_PREAD
754HAVE_PIPE2
755HAVE_PIPE
756HAVE_LINKAT
757HAVE_LINK
758HAVE_LCHOWN
759HAVE_GETPAGESIZE
760HAVE_GETLOGIN
761HAVE_GETHOSTNAME
762HAVE_GETGROUPS
763HAVE_GETDTABLESIZE
764HAVE_FTRUNCATE
765HAVE_FSYNC
766HAVE_FCHOWNAT
767HAVE_FCHDIR
768HAVE_FACCESSAT
769HAVE_EUIDACCESS
770HAVE_DUP3
771HAVE_DUP2
772HAVE_CHOWN
773GNULIB_WRITE
774GNULIB_USLEEP
775GNULIB_UNLINKAT
776GNULIB_UNLINK
777GNULIB_UNISTD_H_SIGPIPE
778GNULIB_UNISTD_H_GETOPT
779GNULIB_TTYNAME_R
780GNULIB_SYMLINKAT
781GNULIB_SYMLINK
782GNULIB_SLEEP
783GNULIB_RMDIR
784GNULIB_READLINKAT
785GNULIB_READLINK
786GNULIB_PWRITE
787GNULIB_PREAD
788GNULIB_PIPE2
789GNULIB_PIPE
790GNULIB_LSEEK
791GNULIB_LINKAT
792GNULIB_LINK
793GNULIB_LCHOWN
794GNULIB_GETUSERSHELL
795GNULIB_GETPAGESIZE
796GNULIB_GETLOGIN_R
797GNULIB_GETLOGIN
798GNULIB_GETHOSTNAME
799GNULIB_GETGROUPS
800GNULIB_GETDTABLESIZE
801GNULIB_GETDOMAINNAME
802GNULIB_GETCWD
803GNULIB_FTRUNCATE
804GNULIB_FSYNC
805GNULIB_FCHOWNAT
806GNULIB_FCHDIR
807GNULIB_FACCESSAT
808GNULIB_EUIDACCESS
809GNULIB_ENVIRON
810GNULIB_DUP3
811GNULIB_DUP2
812GNULIB_CLOSE
813GNULIB_CHOWN
743c80a7
PE
814GL_COND_LIBTOOL_FALSE
815GL_COND_LIBTOOL_TRUE
067d23c9
KY
816GETLOADAVG_LIBS
817KMEM_GROUP
818NEED_SETGID
819LIBOBJS
820BLESSMAIL_TARGET
821LIBS_MAIL
822liblockfile
823ALLOCA
824LIBXML2_LIBS
825LIBXML2_CFLAGS
826LIBXSM
827LIBGPM
828LIBGIF
829LIBTIFF
830LIBPNG
831LIBJPEG
832LIBXPM
833FREETYPE_LIBS
834FREETYPE_CFLAGS
835M17N_FLT_LIBS
836M17N_FLT_CFLAGS
837LIBOTF_LIBS
838LIBOTF_CFLAGS
839XFT_LIBS
840XFT_CFLAGS
841FONTCONFIG_LIBS
842FONTCONFIG_CFLAGS
843LIBXMU
844LIBXTR6
845LIBGNUTLS_LIBS
846LIBGNUTLS_CFLAGS
847LIBSELINUX_LIBS
848GCONF_LIBS
849GCONF_CFLAGS
850DBUS_OBJ
851DBUS_LIBS
852DBUS_CFLAGS
853GTK_OBJ
854GTK_LIBS
855GTK_CFLAGS
856IMAGEMAGICK_LIBS
857IMAGEMAGICK_CFLAGS
858RSVG_LIBS
859RSVG_CFLAGS
860VMLIMIT_OBJ
861GMALLOC_OBJ
862HAVE_XSERVER
863LIB_STANDARD
864NS_SUPPORT
865NS_OBJ
866TEMACS_LDFLAGS2
867LD_SWITCH_X_SITE_AUX_RPATH
868LD_SWITCH_X_SITE_AUX
869XMKMF
870DEPFLAGS
871MKDEPDIR
067d23c9
KY
872CFLAGS_SOUND
873ALSA_LIBS
874ALSA_CFLAGS
875PKG_CONFIG
876LIBSOUND
877START_FILES
878LIB_MATH
879CRT_DIR
880LIBS_SYSTEM
881C_SWITCH_SYSTEM
882UNEXEC_OBJ
883C_SWITCH_MACHINE
884LD_SWITCH_SYSTEM
885CANNOT_DUMP
96f129d5 886HAVE_MAKEINFO
067d23c9
KY
887GZIP_PROG
888INSTALL_INFO
067d23c9
KY
889C_WARNINGS_SWITCH
890EGREP
891GREP
892CPP
743c80a7
PE
893RANLIB
894am__fastdepCC_FALSE
895am__fastdepCC_TRUE
896CCDEPMODE
897AMDEPBACKSLASH
898AMDEP_FALSE
899AMDEP_TRUE
900am__quote
901am__include
902DEPDIR
067d23c9
KY
903OBJEXT
904EXEEXT
905ac_ct_CC
906CPPFLAGS
907LDFLAGS
908CFLAGS
909CC
910host_os
911host_vendor
912host_cpu
913host
914build_os
915build_vendor
916build_cpu
917build
918PROFILING_CFLAGS
919MAINT
920GZIP_INFO
743c80a7
PE
921am__untar
922am__tar
923AMTAR
924am__leading_dot
925SET_MAKE
926AWK
927mkdir_p
928MKDIR_P
929INSTALL_STRIP_PROGRAM
930STRIP
931install_sh
932MAKEINFO
933AUTOHEADER
934AUTOMAKE
935AUTOCONF
936ACLOCAL
937VERSION
938PACKAGE
939CYGPATH_W
940am__isrc
941INSTALL_DATA
942INSTALL_SCRIPT
943INSTALL_PROGRAM
067d23c9
KY
944target_alias
945host_alias
946build_alias
947LIBS
948ECHO_T
949ECHO_N
950ECHO_C
951DEFS
952mandir
953localedir
954libdir
955psdir
956pdfdir
957dvidir
958htmldir
959infodir
960docdir
961oldincludedir
962includedir
963localstatedir
964sharedstatedir
965sysconfdir
966datadir
967datarootdir
968libexecdir
969sbindir
970bindir
971program_transform_name
972prefix
973exec_prefix
974PACKAGE_URL
975PACKAGE_BUGREPORT
976PACKAGE_STRING
977PACKAGE_VERSION
978PACKAGE_TARNAME
979PACKAGE_NAME
980PATH_SEPARATOR
981SHELL'
982ac_subst_files='deps_frag
983ns_frag'
984ac_user_opts='
985enable_option_checking
986with_pop
987with_kerberos
988with_kerberos5
989with_hesiod
990with_mmdf
991with_mail_unlink
992with_mailhost
993with_sound
994with_sync_input
995with_x_toolkit
996with_xpm
997with_jpeg
998with_tiff
999with_gif
1000with_png
1001with_rsvg
1002with_xml2
1003with_imagemagick
1004with_xft
1005with_libotf
1006with_m17n_flt
1007with_toolkit_scroll_bars
1008with_xaw3d
1009with_xim
1010with_ns
1011with_gpm
1012with_dbus
1013with_gconf
1014with_selinux
1015with_gnutls
1016with_makeinfo
1017with_compress_info
1018with_pkg_config_prog
1019with_crt_dir
4fc5868a 1020with_gameuser
067d23c9
KY
1021with_gnustep_conf
1022enable_ns_self_contained
1023enable_asserts
1024enable_maintainer_mode
1025enable_locallisppath
1026enable_checking
1027enable_use_lisp_union_type
1028enable_profiling
1029enable_autodepend
743c80a7 1030enable_dependency_tracking
067d23c9
KY
1031enable_largefile
1032with_x
1033'
1034 ac_precious_vars='build_alias
1035host_alias
1036target_alias
1037CC
1038CFLAGS
1039LDFLAGS
1040LIBS
1041CPPFLAGS
1042CPP
d6974efa
PE
1043CPPFLAGS
1044CPP
1045CPPFLAGS
067d23c9
KY
1046XMKMF'
1047
1048
1049# Initialize some variables set by options.
1050ac_init_help=
1051ac_init_version=false
1052ac_unrecognized_opts=
1053ac_unrecognized_sep=
1054# The variables have the same names as the options, with
1055# dashes changed to underlines.
1056cache_file=/dev/null
1057exec_prefix=NONE
1058no_create=
1059no_recursion=
1060prefix=NONE
1061program_prefix=NONE
1062program_suffix=NONE
1063program_transform_name=s,x,x,
1064silent=
1065site=
1066srcdir=
1067verbose=
1068x_includes=NONE
1069x_libraries=NONE
1070
1071# Installation directory options.
1072# These are left unexpanded so users can "make install exec_prefix=/foo"
1073# and all the variables that are supposed to be based on exec_prefix
1074# by default will actually change.
1075# Use braces instead of parens because sh, perl, etc. also accept them.
1076# (The list follows the same order as the GNU Coding Standards.)
1077bindir='${exec_prefix}/bin'
1078sbindir='${exec_prefix}/sbin'
1079libexecdir='${exec_prefix}/libexec'
1080datarootdir='${prefix}/share'
1081datadir='${datarootdir}'
1082sysconfdir='${prefix}/etc'
1083sharedstatedir='${prefix}/com'
1084localstatedir='${prefix}/var'
1085includedir='${prefix}/include'
1086oldincludedir='/usr/include'
1087docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1088infodir='${datarootdir}/info'
1089htmldir='${docdir}'
1090dvidir='${docdir}'
1091pdfdir='${docdir}'
1092psdir='${docdir}'
1093libdir='${exec_prefix}/lib'
1094localedir='${datarootdir}/locale'
1095mandir='${datarootdir}/man'
1096
1097ac_prev=
1098ac_dashdash=
1099for ac_option
1100do
1101 # If the previous option needs an argument, assign it.
1102 if test -n "$ac_prev"; then
1103 eval $ac_prev=\$ac_option
1104 ac_prev=
1105 continue
1106 fi
1107
1108 case $ac_option in
2018939f
AS
1109 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1110 *=) ac_optarg= ;;
1111 *) ac_optarg=yes ;;
067d23c9
KY
1112 esac
1113
1114 # Accept the important Cygnus configure options, so we can diagnose typos.
1115
1116 case $ac_dashdash$ac_option in
1117 --)
1118 ac_dashdash=yes ;;
1119
1120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1121 ac_prev=bindir ;;
1122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1123 bindir=$ac_optarg ;;
1124
1125 -build | --build | --buil | --bui | --bu)
1126 ac_prev=build_alias ;;
1127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1128 build_alias=$ac_optarg ;;
1129
1130 -cache-file | --cache-file | --cache-fil | --cache-fi \
1131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1132 ac_prev=cache_file ;;
1133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1135 cache_file=$ac_optarg ;;
1136
1137 --config-cache | -C)
1138 cache_file=config.cache ;;
1139
1140 -datadir | --datadir | --datadi | --datad)
1141 ac_prev=datadir ;;
1142 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1143 datadir=$ac_optarg ;;
1144
1145 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1146 | --dataroo | --dataro | --datar)
1147 ac_prev=datarootdir ;;
1148 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1149 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1150 datarootdir=$ac_optarg ;;
1151
1152 -disable-* | --disable-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1156 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"enable_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval enable_$ac_useropt=no ;;
1167
1168 -docdir | --docdir | --docdi | --doc | --do)
1169 ac_prev=docdir ;;
1170 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171 docdir=$ac_optarg ;;
1172
1173 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174 ac_prev=dvidir ;;
1175 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176 dvidir=$ac_optarg ;;
1177
1178 -enable-* | --enable-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1182 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"enable_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval enable_$ac_useropt=\$ac_optarg ;;
1193
1194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1196 | --exec | --exe | --ex)
1197 ac_prev=exec_prefix ;;
1198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1200 | --exec=* | --exe=* | --ex=*)
1201 exec_prefix=$ac_optarg ;;
1202
1203 -gas | --gas | --ga | --g)
1204 # Obsolete; use --with-gas.
1205 with_gas=yes ;;
1206
1207 -help | --help | --hel | --he | -h)
1208 ac_init_help=long ;;
1209 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1210 ac_init_help=recursive ;;
1211 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1212 ac_init_help=short ;;
1213
1214 -host | --host | --hos | --ho)
1215 ac_prev=host_alias ;;
1216 -host=* | --host=* | --hos=* | --ho=*)
1217 host_alias=$ac_optarg ;;
1218
1219 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1220 ac_prev=htmldir ;;
1221 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1222 | --ht=*)
1223 htmldir=$ac_optarg ;;
1224
1225 -includedir | --includedir | --includedi | --included | --include \
1226 | --includ | --inclu | --incl | --inc)
1227 ac_prev=includedir ;;
1228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1229 | --includ=* | --inclu=* | --incl=* | --inc=*)
1230 includedir=$ac_optarg ;;
1231
1232 -infodir | --infodir | --infodi | --infod | --info | --inf)
1233 ac_prev=infodir ;;
1234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1235 infodir=$ac_optarg ;;
1236
1237 -libdir | --libdir | --libdi | --libd)
1238 ac_prev=libdir ;;
1239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1240 libdir=$ac_optarg ;;
1241
1242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1243 | --libexe | --libex | --libe)
1244 ac_prev=libexecdir ;;
1245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1246 | --libexe=* | --libex=* | --libe=*)
1247 libexecdir=$ac_optarg ;;
1248
1249 -localedir | --localedir | --localedi | --localed | --locale)
1250 ac_prev=localedir ;;
1251 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1252 localedir=$ac_optarg ;;
1253
1254 -localstatedir | --localstatedir | --localstatedi | --localstated \
1255 | --localstate | --localstat | --localsta | --localst | --locals)
1256 ac_prev=localstatedir ;;
1257 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1258 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1259 localstatedir=$ac_optarg ;;
1260
1261 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1262 ac_prev=mandir ;;
1263 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1264 mandir=$ac_optarg ;;
1265
1266 -nfp | --nfp | --nf)
1267 # Obsolete; use --without-fp.
1268 with_fp=no ;;
1269
1270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1271 | --no-cr | --no-c | -n)
1272 no_create=yes ;;
1273
1274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 no_recursion=yes ;;
1277
1278 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1279 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1280 | --oldin | --oldi | --old | --ol | --o)
1281 ac_prev=oldincludedir ;;
1282 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1283 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1284 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1285 oldincludedir=$ac_optarg ;;
1286
1287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1288 ac_prev=prefix ;;
1289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1290 prefix=$ac_optarg ;;
1291
1292 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1293 | --program-pre | --program-pr | --program-p)
1294 ac_prev=program_prefix ;;
1295 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1296 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1297 program_prefix=$ac_optarg ;;
1298
1299 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1300 | --program-suf | --program-su | --program-s)
1301 ac_prev=program_suffix ;;
1302 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1303 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1304 program_suffix=$ac_optarg ;;
1305
1306 -program-transform-name | --program-transform-name \
1307 | --program-transform-nam | --program-transform-na \
1308 | --program-transform-n | --program-transform- \
1309 | --program-transform | --program-transfor \
1310 | --program-transfo | --program-transf \
1311 | --program-trans | --program-tran \
1312 | --progr-tra | --program-tr | --program-t)
1313 ac_prev=program_transform_name ;;
1314 -program-transform-name=* | --program-transform-name=* \
1315 | --program-transform-nam=* | --program-transform-na=* \
1316 | --program-transform-n=* | --program-transform-=* \
1317 | --program-transform=* | --program-transfor=* \
1318 | --program-transfo=* | --program-transf=* \
1319 | --program-trans=* | --program-tran=* \
1320 | --progr-tra=* | --program-tr=* | --program-t=*)
1321 program_transform_name=$ac_optarg ;;
1322
1323 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1324 ac_prev=pdfdir ;;
1325 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1326 pdfdir=$ac_optarg ;;
1327
1328 -psdir | --psdir | --psdi | --psd | --ps)
1329 ac_prev=psdir ;;
1330 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 psdir=$ac_optarg ;;
1332
1333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1334 | -silent | --silent | --silen | --sile | --sil)
1335 silent=yes ;;
1336
1337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1338 ac_prev=sbindir ;;
1339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1340 | --sbi=* | --sb=*)
1341 sbindir=$ac_optarg ;;
1342
1343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1345 | --sharedst | --shareds | --shared | --share | --shar \
1346 | --sha | --sh)
1347 ac_prev=sharedstatedir ;;
1348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1351 | --sha=* | --sh=*)
1352 sharedstatedir=$ac_optarg ;;
1353
1354 -site | --site | --sit)
1355 ac_prev=site ;;
1356 -site=* | --site=* | --sit=*)
1357 site=$ac_optarg ;;
1358
1359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1360 ac_prev=srcdir ;;
1361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1362 srcdir=$ac_optarg ;;
1363
1364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1365 | --syscon | --sysco | --sysc | --sys | --sy)
1366 ac_prev=sysconfdir ;;
1367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1369 sysconfdir=$ac_optarg ;;
1370
1371 -target | --target | --targe | --targ | --tar | --ta | --t)
1372 ac_prev=target_alias ;;
1373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1374 target_alias=$ac_optarg ;;
1375
1376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 verbose=yes ;;
1378
1379 -version | --version | --versio | --versi | --vers | -V)
1380 ac_init_version=: ;;
1381
1382 -with-* | --with-*)
1383 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1384 # Reject names that are not valid shell variable names.
1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1386 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1387 ac_useropt_orig=$ac_useropt
1388 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389 case $ac_user_opts in
1390 *"
1391"with_$ac_useropt"
1392"*) ;;
1393 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1394 ac_unrecognized_sep=', ';;
1395 esac
1396 eval with_$ac_useropt=\$ac_optarg ;;
1397
1398 -without-* | --without-*)
1399 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1402 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1403 ac_useropt_orig=$ac_useropt
1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1406 *"
1407"with_$ac_useropt"
1408"*) ;;
1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1410 ac_unrecognized_sep=', ';;
1411 esac
1412 eval with_$ac_useropt=no ;;
1413
1414 --x)
1415 # Obsolete; use --with-x.
1416 with_x=yes ;;
1417
1418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419 | --x-incl | --x-inc | --x-in | --x-i)
1420 ac_prev=x_includes ;;
1421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423 x_includes=$ac_optarg ;;
1424
1425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427 ac_prev=x_libraries ;;
1428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430 x_libraries=$ac_optarg ;;
1431
2018939f
AS
1432 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1433Try \`$0 --help' for more information"
067d23c9
KY
1434 ;;
1435
1436 *=*)
1437 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438 # Reject names that are not valid shell variable names.
1439 case $ac_envvar in #(
1440 '' | [0-9]* | *[!_$as_cr_alnum]* )
2018939f 1441 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1442 esac
1443 eval $ac_envvar=\$ac_optarg
1444 export $ac_envvar ;;
1445
1446 *)
1447 # FIXME: should be removed in autoconf 3.0.
1448 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6974efa 1451 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1452 ;;
1453
1454 esac
1455done
1456
1457if test -n "$ac_prev"; then
1458 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2018939f 1459 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1460fi
1461
1462if test -n "$ac_unrecognized_opts"; then
1463 case $enable_option_checking in
1464 no) ;;
2018939f 1465 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1466 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1467 esac
1468fi
1469
1470# Check all directory arguments for consistency.
1471for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472 datadir sysconfdir sharedstatedir localstatedir includedir \
1473 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474 libdir localedir mandir
1475do
1476 eval ac_val=\$$ac_var
1477 # Remove trailing slashes.
1478 case $ac_val in
1479 */ )
1480 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1481 eval $ac_var=\$ac_val;;
1482 esac
1483 # Be sure to have absolute directory names.
1484 case $ac_val in
1485 [\\/$]* | ?:[\\/]* ) continue;;
1486 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1487 esac
2018939f 1488 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1489done
1490
1491# There might be people who depend on the old broken behavior: `$host'
1492# used to hold the argument of --host etc.
1493# FIXME: To remove some day.
1494build=$build_alias
1495host=$host_alias
1496target=$target_alias
1497
1498# FIXME: To remove some day.
1499if test "x$host_alias" != x; then
1500 if test "x$build_alias" = x; then
1501 cross_compiling=maybe
2018939f
AS
1502 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1503 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1504 elif test "x$build_alias" != "x$host_alias"; then
1505 cross_compiling=yes
1506 fi
1507fi
1508
1509ac_tool_prefix=
1510test -n "$host_alias" && ac_tool_prefix=$host_alias-
1511
1512test "$silent" = yes && exec 6>/dev/null
1513
1514
1515ac_pwd=`pwd` && test -n "$ac_pwd" &&
1516ac_ls_di=`ls -di .` &&
1517ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018939f 1518 as_fn_error $? "working directory cannot be determined"
067d23c9 1519test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2018939f 1520 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1521
1522
1523# Find the source files, if location was not specified.
1524if test -z "$srcdir"; then
1525 ac_srcdir_defaulted=yes
1526 # Try the directory containing this script, then the parent directory.
1527 ac_confdir=`$as_dirname -- "$as_myself" ||
1528$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1529 X"$as_myself" : 'X\(//\)[^/]' \| \
1530 X"$as_myself" : 'X\(//\)$' \| \
1531 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1532$as_echo X"$as_myself" |
1533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1534 s//\1/
1535 q
1536 }
1537 /^X\(\/\/\)[^/].*/{
1538 s//\1/
1539 q
1540 }
1541 /^X\(\/\/\)$/{
1542 s//\1/
1543 q
1544 }
1545 /^X\(\/\).*/{
1546 s//\1/
1547 q
1548 }
1549 s/.*/./; q'`
1550 srcdir=$ac_confdir
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 srcdir=..
1553 fi
1554else
1555 ac_srcdir_defaulted=no
1556fi
1557if test ! -r "$srcdir/$ac_unique_file"; then
1558 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018939f 1559 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1560fi
1561ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1562ac_abs_confdir=`(
2018939f 1563 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1564 pwd)`
1565# When building in place, set srcdir=.
1566if test "$ac_abs_confdir" = "$ac_pwd"; then
1567 srcdir=.
1568fi
1569# Remove unnecessary trailing slashes from srcdir.
1570# Double slashes in file names in object file debugging info
1571# mess up M-x gdb in Emacs.
1572case $srcdir in
1573*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1574esac
1575for ac_var in $ac_precious_vars; do
1576 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1577 eval ac_env_${ac_var}_value=\$${ac_var}
1578 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1579 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1580done
1581
1582#
1583# Report the --help message.
1584#
1585if test "$ac_init_help" = "long"; then
1586 # Omit some internal or obsolete options to make the list less imposing.
1587 # This message is too long to be a string in the A/UX 3.1 sh.
1588 cat <<_ACEOF
1589\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1590
1591Usage: $0 [OPTION]... [VAR=VALUE]...
1592
1593To assign environment variables (e.g., CC, CFLAGS...), specify them as
1594VAR=VALUE. See below for descriptions of some of the useful variables.
1595
1596Defaults for the options are specified in brackets.
1597
1598Configuration:
1599 -h, --help display this help and exit
1600 --help=short display options specific to this package
1601 --help=recursive display the short help of all the included packages
1602 -V, --version display version information and exit
2018939f 1603 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1604 --cache-file=FILE cache test results in FILE [disabled]
1605 -C, --config-cache alias for \`--cache-file=config.cache'
1606 -n, --no-create do not create output files
1607 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1608
1609Installation directories:
1610 --prefix=PREFIX install architecture-independent files in PREFIX
1611 [$ac_default_prefix]
1612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1613 [PREFIX]
1614
1615By default, \`make install' will install all the files in
1616\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1617an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1618for instance \`--prefix=\$HOME'.
1619
1620For better control, use the options below.
1621
1622Fine tuning of the installation directories:
1623 --bindir=DIR user executables [EPREFIX/bin]
1624 --sbindir=DIR system admin executables [EPREFIX/sbin]
1625 --libexecdir=DIR program executables [EPREFIX/libexec]
1626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1629 --libdir=DIR object code libraries [EPREFIX/lib]
1630 --includedir=DIR C header files [PREFIX/include]
1631 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1632 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1633 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1634 --infodir=DIR info documentation [DATAROOTDIR/info]
1635 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1636 --mandir=DIR man documentation [DATAROOTDIR/man]
1637 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1638 --htmldir=DIR html documentation [DOCDIR]
1639 --dvidir=DIR dvi documentation [DOCDIR]
1640 --pdfdir=DIR pdf documentation [DOCDIR]
1641 --psdir=DIR ps documentation [DOCDIR]
1642_ACEOF
1643
1644 cat <<\_ACEOF
1645
1646Program names:
1647 --program-prefix=PREFIX prepend PREFIX to installed program names
1648 --program-suffix=SUFFIX append SUFFIX to installed program names
1649 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1650
1651X features:
1652 --x-includes=DIR X include files are in DIR
1653 --x-libraries=DIR X library files are in DIR
1654
1655System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658_ACEOF
1659fi
1660
1661if test -n "$ac_init_help"; then
1662 case $ac_init_help in
1663 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1664 esac
1665 cat <<\_ACEOF
1666
1667Optional Features:
1668 --disable-option-checking ignore unrecognized --enable/--with options
1669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1671 --disable-ns-self-contained
1672 disable self contained build under NeXTstep
1673 --enable-asserts compile code with asserts enabled
1674 --enable-maintainer-mode
1675 enable make rules and dependencies not useful (and
1676 sometimes confusing) to the casual installer
1677 --enable-locallisppath=PATH
1678 directories Emacs should search for lisp files
1679 specific to this site
1680 --enable-checking[=LIST]
1681 enable expensive run-time checks. With LIST, enable
1682 only specific categories of checks. Categories are:
1683 all,yes,no. Flags are: stringbytes, stringoverrun,
1684 stringfreelist, xmallocoverrun, conslist
1685 --enable-use-lisp-union-type
1686 use a union for the Lisp_Object data type. This is
1687 only useful for development for catching certain
1688 types of bugs.
1689 --enable-profiling build emacs with profiling support. This might not
1690 work on all platforms
1691 --enable-autodepend automatically generate dependencies to .h-files.
1692 Requires GNU Make and Gcc. Enabled if GNU Make and
1693 Gcc is found
743c80a7
PE
1694 --disable-dependency-tracking speeds up one-time build
1695 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1696 --disable-largefile omit support for large files
1697
1698Optional Packages:
1699 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1700 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1701 --without-pop don't support POP mail retrieval with movemail
1702 --with-kerberos support Kerberos-authenticated POP
1703 --with-kerberos5 support Kerberos version 5 authenticated POP
1704 --with-hesiod support Hesiod to get the POP server host
1705 --with-mmdf support MMDF mailboxes
1706 --with-mail-unlink unlink, rather than empty, mail spool after reading
1707 --with-mailhost=HOSTNAME
1708 string giving default POP mail host
1709 --without-sound don't compile with sound support
1710 --without-sync-input process async input synchronously
1711 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1712 lucid or athena, motif, no)
1713 --without-xpm don't compile with XPM image support
1714 --without-jpeg don't compile with JPEG image support
1715 --without-tiff don't compile with TIFF image support
1716 --without-gif don't compile with GIF image support
1717 --without-png don't compile with PNG image support
1718 --without-rsvg don't compile with SVG image support
1719 --without-xml2 don't compile with XML parsing support
1720 --without-imagemagick don't compile with ImageMagick image support
1721 --without-xft don't use XFT for anti aliased fonts
1722 --without-libotf don't use libotf for OpenType font support
1723 --without-m17n-flt don't use m17n-flt for text shaping
1724 --without-toolkit-scroll-bars
1725 don't use Motif or Xaw3d scroll bars
1726 --without-xaw3d don't use Xaw3d
1727 --without-xim don't use X11 XIM
1728 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1729 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1730 console
1731 --without-dbus don't compile with D-Bus support
1732 --without-gconf don't compile with GConf support
1733 --without-selinux don't compile with SELinux support
1734 --without-gnutls don't use -lgnutls for SSL/TLS support
1735 --without-makeinfo don't require makeinfo for building manuals
1736 --without-compress-info don't compress the installed Info pages
1737 --with-pkg-config-prog=PATH
1738 path to pkg-config for finding GTK and librsvg
1739 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1740 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1741 --with-gameuser=USER user for shared game score files
067d23c9
KY
1742 --with-gnustep-conf=PATH
1743 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1744 or /etc/GNUstep/GNUstep.conf
1745 --with-x use the X Window System
1746
1747Some influential environment variables:
1748 CC C compiler command
1749 CFLAGS C compiler flags
1750 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1751 nonstandard directory <lib dir>
1752 LIBS libraries to pass to the linker, e.g. -l<library>
1753 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1754 you have headers in a nonstandard directory <include dir>
1755 CPP C preprocessor
1756 XMKMF Path to xmkmf, Makefile generator for X Window System
1757
1758Use these variables to override the choices made by `configure' or to help
1759it to find libraries and programs with nonstandard names/locations.
1760
1761Report bugs to the package provider.
1762_ACEOF
1763ac_status=$?
1764fi
1765
1766if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771 continue
1772 ac_builddir=.
1773
1774case "$ac_dir" in
1775.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776*)
1777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1783 esac ;;
1784esac
1785ac_abs_top_builddir=$ac_pwd
1786ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787# for backward compatibility:
1788ac_top_builddir=$ac_top_build_prefix
1789
1790case $srcdir in
1791 .) # We are building in place.
1792 ac_srcdir=.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1799 *) # Relative name.
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803esac
1804ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1809 echo &&
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1812 echo &&
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1814 else
1815 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816 fi || ac_status=$?
1817 cd "$ac_pwd" || { ac_status=$?; break; }
1818 done
1819fi
1820
1821test -n "$ac_init_help" && exit $ac_status
1822if $ac_init_version; then
1823 cat <<\_ACEOF
1824emacs configure 24.0.50
d6974efa 1825generated by GNU Autoconf 2.68
067d23c9 1826
2018939f 1827Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1828This configure script is free software; the Free Software Foundation
1829gives unlimited permission to copy, distribute and modify it.
1830_ACEOF
1831 exit
1832fi
1833
1834## ------------------------ ##
1835## Autoconf initialization. ##
1836## ------------------------ ##
1837
1838# ac_fn_c_try_compile LINENO
1839# --------------------------
1840# Try to compile conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_compile ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext
1845 if { { ac_try="$ac_compile"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_compile") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest.$ac_objext; then :
1864 ac_retval=0
1865else
1866 $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870fi
d6974efa 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1872 as_fn_set_status $ac_retval
1873
1874} # ac_fn_c_try_compile
1875
067d23c9
KY
1876# ac_fn_c_try_cpp LINENO
1877# ----------------------
1878# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_c_try_cpp ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018939f 1897 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
1898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 }; then :
1901 ac_retval=0
1902else
1903 $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=1
1907fi
d6974efa 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1909 as_fn_set_status $ac_retval
1910
1911} # ac_fn_c_try_cpp
1912
1913# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914# -------------------------------------------------------
1915# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916# the include files in INCLUDES and setting the cache variable VAR
1917# accordingly.
1918ac_fn_c_check_header_mongrel ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d6974efa 1921 if eval \${$3+:} false; then :
067d23c9
KY
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
d6974efa 1924if eval \${$3+:} false; then :
067d23c9
KY
1925 $as_echo_n "(cached) " >&6
1926fi
1927eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929$as_echo "$ac_res" >&6; }
1930else
1931 # Is the header compilable?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933$as_echo_n "checking $2 usability... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937#include <$2>
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1941else
1942 ac_header_compiler=no
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946$as_echo "$ac_header_compiler" >&6; }
1947
1948# Is the header present?
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950$as_echo_n "checking $2 presence... " >&6; }
1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953#include <$2>
1954_ACEOF
1955if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1957else
1958 ac_header_preproc=no
1959fi
2018939f 1960rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962$as_echo "$ac_header_preproc" >&6; }
1963
1964# So? What about this header?
1965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 yes:no: )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 ;;
1972 no:yes:* )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ;;
1984esac
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
d6974efa 1987if eval \${$3+:} false; then :
067d23c9
KY
1988 $as_echo_n "(cached) " >&6
1989else
1990 eval "$3=\$ac_header_compiler"
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995fi
d6974efa 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1997
1998} # ac_fn_c_check_header_mongrel
1999
2000# ac_fn_c_try_run LINENO
2001# ----------------------
2002# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2003# that executables *can* be run.
2004ac_fn_c_try_run ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_link"
2008case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>&5
2015 ac_status=$?
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2018 { { case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2021esac
2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023$as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_try") 2>&5
2025 ac_status=$?
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; }; }; then :
2028 ac_retval=0
2029else
2030 $as_echo "$as_me: program exited with status $ac_status" >&5
2031 $as_echo "$as_me: failed program was:" >&5
2032sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=$ac_status
2035fi
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2038 as_fn_set_status $ac_retval
2039
2040} # ac_fn_c_try_run
2041
2042# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2043# -------------------------------------------------------
2044# Tests whether HEADER exists and can be compiled using the include files in
2045# INCLUDES, setting the cache variable VAR accordingly.
2046ac_fn_c_check_header_compile ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
d6974efa 2051if eval \${$3+:} false; then :
067d23c9
KY
2052 $as_echo_n "(cached) " >&6
2053else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057#include <$2>
2058_ACEOF
2059if ac_fn_c_try_compile "$LINENO"; then :
2060 eval "$3=yes"
2061else
2062 eval "$3=no"
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065fi
2066eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068$as_echo "$ac_res" >&6; }
d6974efa 2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2070
2071} # ac_fn_c_check_header_compile
2072
1fd182f0
PE
2073# ac_fn_c_try_link LINENO
2074# -----------------------
2075# Try to link conftest.$ac_ext, and return whether this succeeded.
2076ac_fn_c_try_link ()
2077{
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 rm -f conftest.$ac_objext conftest$ac_exeext
2080 if { { ac_try="$ac_link"
2081case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084esac
2085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086$as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_link") 2>conftest.err
2088 ac_status=$?
2089 if test -s conftest.err; then
2090 grep -v '^ *+' conftest.err >conftest.er1
2091 cat conftest.er1 >&5
2092 mv -f conftest.er1 conftest.err
2093 fi
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && {
2096 test -z "$ac_c_werror_flag" ||
2097 test ! -s conftest.err
2098 } && test -s conftest$ac_exeext && {
2099 test "$cross_compiling" = yes ||
2100 $as_test_x conftest$ac_exeext
2101 }; then :
2102 ac_retval=0
2103else
2104 $as_echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_retval=1
2108fi
2109 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2110 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2111 # interfere with the next link command; also delete a directory that is
2112 # left behind by Apple's compiler. We do this before executing the actions.
2113 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2115 as_fn_set_status $ac_retval
2116
2117} # ac_fn_c_try_link
2118
2018939f
AS
2119# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2120# ---------------------------------------------
2121# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2122# accordingly.
067d23c9
KY
2123ac_fn_c_check_decl ()
2124{
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018939f
AS
2126 as_decl_name=`echo $2|sed 's/ *(.*//'`
2127 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2129$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6974efa 2130if eval \${$3+:} false; then :
067d23c9
KY
2131 $as_echo_n "(cached) " >&6
2132else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$4
2136int
2137main ()
2138{
2018939f
AS
2139#ifndef $as_decl_name
2140#ifdef __cplusplus
2141 (void) $as_decl_use;
2142#else
2143 (void) $as_decl_name;
2144#endif
067d23c9
KY
2145#endif
2146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 eval "$3=yes"
2153else
2154 eval "$3=no"
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157fi
2158eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160$as_echo "$ac_res" >&6; }
d6974efa 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2162
2163} # ac_fn_c_check_decl
2164
2165# ac_fn_c_check_header_preproc LINENO HEADER VAR
2166# ----------------------------------------------
2167# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2168ac_fn_c_check_header_preproc ()
2169{
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172$as_echo_n "checking for $2... " >&6; }
d6974efa 2173if eval \${$3+:} false; then :
067d23c9
KY
2174 $as_echo_n "(cached) " >&6
2175else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_cpp "$LINENO"; then :
2181 eval "$3=yes"
2182else
2183 eval "$3=no"
2184fi
2018939f 2185rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2186fi
2187eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189$as_echo "$ac_res" >&6; }
d6974efa 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2191
2192} # ac_fn_c_check_header_preproc
2193
2194# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2195# ----------------------------------------------------
2196# Tries to find if the field MEMBER exists in type AGGR, after including
2197# INCLUDES, setting cache variable VAR accordingly.
2198ac_fn_c_check_member ()
2199{
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2202$as_echo_n "checking for $2.$3... " >&6; }
d6974efa 2203if eval \${$4+:} false; then :
067d23c9
KY
2204 $as_echo_n "(cached) " >&6
2205else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h. */
2208$5
2209int
2210main ()
2211{
2212static $2 ac_aggr;
2213if (ac_aggr.$3)
2214return 0;
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219if ac_fn_c_try_compile "$LINENO"; then :
2220 eval "$4=yes"
2221else
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$5
2225int
2226main ()
2227{
2228static $2 ac_aggr;
2229if (sizeof ac_aggr.$3)
2230return 0;
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$4=yes"
2237else
2238 eval "$4=no"
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244eval ac_res=\$$4
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246$as_echo "$ac_res" >&6; }
d6974efa 2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2248
2249} # ac_fn_c_check_member
2250
2251# ac_fn_c_check_func LINENO FUNC VAR
2252# ----------------------------------
2253# Tests whether FUNC exists, setting the cache variable VAR accordingly
2254ac_fn_c_check_func ()
2255{
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258$as_echo_n "checking for $2... " >&6; }
d6974efa 2259if eval \${$3+:} false; then :
067d23c9
KY
2260 $as_echo_n "(cached) " >&6
2261else
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263/* end confdefs.h. */
2264/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2266#define $2 innocuous_$2
2267
2268/* System header to define __stub macros and hopefully few prototypes,
2269 which can conflict with char $2 (); below.
2270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2271 <limits.h> exists even on freestanding compilers. */
2272
2273#ifdef __STDC__
2274# include <limits.h>
2275#else
2276# include <assert.h>
2277#endif
2278
2279#undef $2
2280
2281/* Override any GCC internal prototype to avoid an error.
2282 Use char because int might match the return type of a GCC
2283 builtin and then its argument prototype would still apply. */
2284#ifdef __cplusplus
2285extern "C"
2286#endif
2287char $2 ();
2288/* The GNU C library defines this for functions which it implements
2289 to always fail with ENOSYS. Some functions are actually named
2290 something starting with __ and the normal name is an alias. */
2291#if defined __stub_$2 || defined __stub___$2
2292choke me
2293#endif
2294
2295int
2296main ()
2297{
2298return $2 ();
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303if ac_fn_c_try_link "$LINENO"; then :
2304 eval "$3=yes"
2305else
2306 eval "$3=no"
2307fi
2308rm -f core conftest.err conftest.$ac_objext \
2309 conftest$ac_exeext conftest.$ac_ext
2310fi
2311eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313$as_echo "$ac_res" >&6; }
d6974efa 2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2315
2316} # ac_fn_c_check_func
2317
2318# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2319# -------------------------------------------
2320# Tests whether TYPE exists after having included INCLUDES, setting cache
2321# variable VAR accordingly.
2322ac_fn_c_check_type ()
2323{
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326$as_echo_n "checking for $2... " >&6; }
d6974efa 2327if eval \${$3+:} false; then :
067d23c9
KY
2328 $as_echo_n "(cached) " >&6
2329else
2330 eval "$3=no"
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332/* end confdefs.h. */
2333$4
2334int
2335main ()
2336{
2337if (sizeof ($2))
2338 return 0;
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343if ac_fn_c_try_compile "$LINENO"; then :
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347int
2348main ()
2349{
2350if (sizeof (($2)))
2351 return 0;
2352 ;
2353 return 0;
2354}
2355_ACEOF
2356if ac_fn_c_try_compile "$LINENO"; then :
2357
2358else
2359 eval "$3=yes"
2360fi
2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362fi
2363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364fi
2365eval ac_res=\$$3
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367$as_echo "$ac_res" >&6; }
d6974efa 2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2369
2370} # ac_fn_c_check_type
2371cat >config.log <<_ACEOF
2372This file contains any messages produced by compilers while
2373running configure, to aid debugging if configure makes a mistake.
2374
2375It was created by emacs $as_me 24.0.50, which was
d6974efa 2376generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2377
2378 $ $0 $@
2379
2380_ACEOF
2381exec 5>>config.log
2382{
2383cat <<_ASUNAME
2384## --------- ##
2385## Platform. ##
2386## --------- ##
2387
2388hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2389uname -m = `(uname -m) 2>/dev/null || echo unknown`
2390uname -r = `(uname -r) 2>/dev/null || echo unknown`
2391uname -s = `(uname -s) 2>/dev/null || echo unknown`
2392uname -v = `(uname -v) 2>/dev/null || echo unknown`
2393
2394/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2395/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2396
2397/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2398/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2399/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2400/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2401/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2402/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2403/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2404
2405_ASUNAME
2406
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 $as_echo "PATH: $as_dir"
2413 done
2414IFS=$as_save_IFS
2415
2416} >&5
2417
2418cat >&5 <<_ACEOF
2419
2420
2421## ----------- ##
2422## Core tests. ##
2423## ----------- ##
2424
2425_ACEOF
2426
2427
2428# Keep a trace of the command line.
2429# Strip out --no-create and --no-recursion so they do not pile up.
2430# Strip out --silent because we don't want to record it for future runs.
2431# Also quote any args containing shell meta-characters.
2432# Make two passes to allow for proper duplicate-argument suppression.
2433ac_configure_args=
2434ac_configure_args0=
2435ac_configure_args1=
2436ac_must_keep_next=false
2437for ac_pass in 1 2
2438do
2439 for ac_arg
2440 do
2441 case $ac_arg in
2442 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2444 | -silent | --silent | --silen | --sile | --sil)
2445 continue ;;
2446 *\'*)
2447 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2448 esac
2449 case $ac_pass in
2450 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2451 2)
2452 as_fn_append ac_configure_args1 " '$ac_arg'"
2453 if test $ac_must_keep_next = true; then
2454 ac_must_keep_next=false # Got value, back to normal.
2455 else
2456 case $ac_arg in
2457 *=* | --config-cache | -C | -disable-* | --disable-* \
2458 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2459 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2460 | -with-* | --with-* | -without-* | --without-* | --x)
2461 case "$ac_configure_args0 " in
2462 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2463 esac
2464 ;;
2465 -* ) ac_must_keep_next=true ;;
2466 esac
2467 fi
2468 as_fn_append ac_configure_args " '$ac_arg'"
2469 ;;
2470 esac
2471 done
2472done
2473{ ac_configure_args0=; unset ac_configure_args0;}
2474{ ac_configure_args1=; unset ac_configure_args1;}
2475
2476# When interrupted or exit'd, cleanup temporary files, and complete
2477# config.log. We remove comments because anyway the quotes in there
2478# would cause problems or look ugly.
2479# WARNING: Use '\'' to represent an apostrophe within the trap.
2480# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2481trap 'exit_status=$?
2482 # Save into config.log some information that might help in debugging.
2483 {
2484 echo
2485
2018939f 2486 $as_echo "## ---------------- ##
067d23c9 2487## Cache variables. ##
2018939f 2488## ---------------- ##"
067d23c9
KY
2489 echo
2490 # The following way of writing the cache mishandles newlines in values,
2491(
2492 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2493 eval ac_val=\$$ac_var
2494 case $ac_val in #(
2495 *${as_nl}*)
2496 case $ac_var in #(
2497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2498$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2499 esac
2500 case $ac_var in #(
2501 _ | IFS | as_nl) ;; #(
2502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2503 *) { eval $ac_var=; unset $ac_var;} ;;
2504 esac ;;
2505 esac
2506 done
2507 (set) 2>&1 |
2508 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2509 *${as_nl}ac_space=\ *)
2510 sed -n \
2511 "s/'\''/'\''\\\\'\'''\''/g;
2512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2513 ;; #(
2514 *)
2515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2516 ;;
2517 esac |
2518 sort
2519)
2520 echo
2521
2018939f 2522 $as_echo "## ----------------- ##
067d23c9 2523## Output variables. ##
2018939f 2524## ----------------- ##"
067d23c9
KY
2525 echo
2526 for ac_var in $ac_subst_vars
2527 do
2528 eval ac_val=\$$ac_var
2529 case $ac_val in
2530 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 esac
2532 $as_echo "$ac_var='\''$ac_val'\''"
2533 done | sort
2534 echo
2535
2536 if test -n "$ac_subst_files"; then
2018939f 2537 $as_echo "## ------------------- ##
067d23c9 2538## File substitutions. ##
2018939f 2539## ------------------- ##"
067d23c9
KY
2540 echo
2541 for ac_var in $ac_subst_files
2542 do
2543 eval ac_val=\$$ac_var
2544 case $ac_val in
2545 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 esac
2547 $as_echo "$ac_var='\''$ac_val'\''"
2548 done | sort
2549 echo
2550 fi
2551
2552 if test -s confdefs.h; then
2018939f 2553 $as_echo "## ----------- ##
067d23c9 2554## confdefs.h. ##
2018939f 2555## ----------- ##"
067d23c9
KY
2556 echo
2557 cat confdefs.h
2558 echo
2559 fi
2560 test "$ac_signal" != 0 &&
2561 $as_echo "$as_me: caught signal $ac_signal"
2562 $as_echo "$as_me: exit $exit_status"
2563 } >&5
2564 rm -f core *.core core.conftest.* &&
2565 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2566 exit $exit_status
2567' 0
2568for ac_signal in 1 2 13 15; do
2569 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2570done
2571ac_signal=0
2572
2573# confdefs.h avoids OS command line length limits that DEFS can exceed.
2574rm -f -r conftest* confdefs.h
2575
2576$as_echo "/* confdefs.h */" > confdefs.h
2577
2578# Predefined preprocessor variables.
2579
2580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_NAME "$PACKAGE_NAME"
2582_ACEOF
2583
2584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2586_ACEOF
2587
2588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_VERSION "$PACKAGE_VERSION"
2590_ACEOF
2591
2592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_STRING "$PACKAGE_STRING"
2594_ACEOF
2595
2596cat >>confdefs.h <<_ACEOF
2597#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2598_ACEOF
2599
2600cat >>confdefs.h <<_ACEOF
2601#define PACKAGE_URL "$PACKAGE_URL"
2602_ACEOF
2603
2604
2605# Let the site file select an alternate cache file if it wants to.
2606# Prefer an explicitly selected file to automatically selected ones.
2607ac_site_file1=NONE
2608ac_site_file2=NONE
2609if test -n "$CONFIG_SITE"; then
2018939f
AS
2610 # We do not want a PATH search for config.site.
2611 case $CONFIG_SITE in #((
2612 -*) ac_site_file1=./$CONFIG_SITE;;
2613 */*) ac_site_file1=$CONFIG_SITE;;
2614 *) ac_site_file1=./$CONFIG_SITE;;
2615 esac
067d23c9
KY
2616elif test "x$prefix" != xNONE; then
2617 ac_site_file1=$prefix/share/config.site
2618 ac_site_file2=$prefix/etc/config.site
2619else
2620 ac_site_file1=$ac_default_prefix/share/config.site
2621 ac_site_file2=$ac_default_prefix/etc/config.site
2622fi
2623for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2624do
2625 test "x$ac_site_file" = xNONE && continue
2626 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2628$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2629 sed 's/^/| /' "$ac_site_file" >&5
2018939f
AS
2630 . "$ac_site_file" \
2631 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633as_fn_error $? "failed to load site script $ac_site_file
d6974efa 2634See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2635 fi
2636done
2637
2638if test -r "$cache_file"; then
2639 # Some versions of bash will fail to source /dev/null (special files
2640 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2641 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2643$as_echo "$as_me: loading cache $cache_file" >&6;}
2644 case $cache_file in
2645 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2646 *) . "./$cache_file";;
2647 esac
2648 fi
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2651$as_echo "$as_me: creating cache $cache_file" >&6;}
2652 >$cache_file
2653fi
2654
2655as_fn_append ac_header_list " stdlib.h"
2656as_fn_append ac_header_list " unistd.h"
2657as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2658gl_getopt_required=GNU
2659as_fn_append ac_header_list " getopt.h"
067d23c9 2660as_fn_append ac_func_list " alarm"
1fd182f0
PE
2661as_fn_append ac_header_list " sys/time.h"
2662as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2663# Check that the precious variables saved in the cache have kept the same
2664# value.
2665ac_cache_corrupted=false
2666for ac_var in $ac_precious_vars; do
2667 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2668 eval ac_new_set=\$ac_env_${ac_var}_set
2669 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2670 eval ac_new_val=\$ac_env_${ac_var}_value
2671 case $ac_old_set,$ac_new_set in
2672 set,)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2674$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,set)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2678$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2679 ac_cache_corrupted=: ;;
2680 ,);;
2681 *)
2682 if test "x$ac_old_val" != "x$ac_new_val"; then
2683 # differences in whitespace do not lead to failure.
2684 ac_old_val_w=`echo x $ac_old_val`
2685 ac_new_val_w=`echo x $ac_new_val`
2686 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2688$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2689 ac_cache_corrupted=:
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2692$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2693 eval $ac_var=\$ac_old_val
2694 fi
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2696$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2698$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2699 fi;;
2700 esac
2701 # Pass precious variables to config.status.
2702 if test "$ac_new_set" = set; then
2703 case $ac_new_val in
2704 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2705 *) ac_arg=$ac_var=$ac_new_val ;;
2706 esac
2707 case " $ac_configure_args " in
2708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2709 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2710 esac
2711 fi
2712done
2713if $ac_cache_corrupted; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2717$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 2718 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
2719fi
2720## -------------------- ##
2721## Main body of script. ##
2722## -------------------- ##
2723
2724ac_ext=c
2725ac_cpp='$CPP $CPPFLAGS'
2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2732
2733
743c80a7 2734am__api_version='1.11'
067d23c9 2735
743c80a7
PE
2736ac_aux_dir=
2737for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2738 if test -f "$ac_dir/install-sh"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/install-sh -c"
2741 break
2742 elif test -f "$ac_dir/install.sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install.sh -c"
2745 break
2746 elif test -f "$ac_dir/shtool"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/shtool install -c"
2749 break
2750 fi
2751done
2752if test -z "$ac_aux_dir"; then
2753 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754fi
067d23c9 2755
743c80a7
PE
2756# These three variables are undocumented and unsupported,
2757# and are intended to be withdrawn in a future Autoconf release.
2758# They can cause serious problems if a builder's source tree is in a directory
2759# whose full name contains unusual characters.
2760ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 2763
067d23c9 2764
743c80a7
PE
2765# Find a good install program. We prefer a C program (faster),
2766# so one script is as good as another. But avoid the broken or
2767# incompatible versions:
2768# SysV /etc/install, /usr/sbin/install
2769# SunOS /usr/etc/install
2770# IRIX /sbin/install
2771# AIX /bin/install
2772# AmigaOS /C/install, which installs bootblocks on floppy discs
2773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2774# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2776# OS/2's system install, which has a completely different semantic
2777# ./install, which can be erroneously created by make from ./install.sh.
2778# Reject install programs that cannot install multiple files.
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2780$as_echo_n "checking for a BSD-compatible install... " >&6; }
2781if test -z "$INSTALL"; then
d6974efa 2782if ${ac_cv_path_install+:} false; then :
743c80a7
PE
2783 $as_echo_n "(cached) " >&6
2784else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 # Account for people who put trailing slashes in PATH elements.
2791case $as_dir/ in #((
2792 ./ | .// | /[cC]/* | \
2793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2794 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2795 /usr/ucb/* ) ;;
2796 *)
2797 # OSF1 and SCO ODT 3.0 have their own names for install.
2798 # Don't use installbsd from OSF since it installs stuff as root
2799 # by default.
2800 for ac_prog in ginstall scoinst install; do
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2803 if test $ac_prog = install &&
2804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2805 # AIX install. It has an incompatible calling convention.
2806 :
2807 elif test $ac_prog = install &&
2808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809 # program-specific install script used by HP pwplus--don't use.
2810 :
2811 else
2812 rm -rf conftest.one conftest.two conftest.dir
2813 echo one > conftest.one
2814 echo two > conftest.two
2815 mkdir conftest.dir
2816 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2817 test -s conftest.one && test -s conftest.two &&
2818 test -s conftest.dir/conftest.one &&
2819 test -s conftest.dir/conftest.two
2820 then
2821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2822 break 3
2823 fi
2824 fi
2825 fi
2826 done
2827 done
2828 ;;
2829esac
067d23c9 2830
743c80a7
PE
2831 done
2832IFS=$as_save_IFS
067d23c9 2833
743c80a7 2834rm -rf conftest.one conftest.two conftest.dir
067d23c9 2835
067d23c9 2836fi
743c80a7
PE
2837 if test "${ac_cv_path_install+set}" = set; then
2838 INSTALL=$ac_cv_path_install
2839 else
2840 # As a last resort, use the slow shell script. Don't cache a
2841 # value for INSTALL within a source directory, because that will
2842 # break other packages using the cache if that directory is
2843 # removed, or if the value is a relative name.
2844 INSTALL=$ac_install_sh
2845 fi
067d23c9 2846fi
743c80a7
PE
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2848$as_echo "$INSTALL" >&6; }
067d23c9 2849
743c80a7
PE
2850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2851# It thinks the first close brace ends the variable substitution.
2852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 2853
743c80a7 2854test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 2855
743c80a7 2856test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 2857
743c80a7
PE
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2859$as_echo_n "checking whether build environment is sane... " >&6; }
2860# Just in case
2861sleep 1
2862echo timestamp > conftest.file
2863# Reject unsafe characters in $srcdir or the absolute working directory
2864# name. Accept space and tab only in the latter.
2865am_lf='
2866'
2867case `pwd` in
2868 *[\\\"\#\$\&\'\`$am_lf]*)
d6974efa 2869 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
2870esac
2871case $srcdir in
2872 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d6974efa 2873 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 2874esac
067d23c9 2875
743c80a7
PE
2876# Do `set' in a subshell so we don't clobber the current shell's
2877# arguments. Must try -L first in case configure is actually a
2878# symlink; some systems play weird games with the mod time of symlinks
2879# (eg FreeBSD returns the mod time of the symlink's containing
2880# directory).
2881if (
2882 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2883 if test "$*" = "X"; then
2884 # -L didn't work.
2885 set X `ls -t "$srcdir/configure" conftest.file`
2886 fi
2887 rm -f conftest.file
2888 if test "$*" != "X $srcdir/configure conftest.file" \
2889 && test "$*" != "X conftest.file $srcdir/configure"; then
2890
2891 # If neither matched, then we have a broken ls. This can happen
2892 # if, for instance, CONFIG_SHELL is bash and it inherits a
2893 # broken ls alias from the environment. This has actually
2894 # happened. Such a system could not be considered "sane".
2895 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2896alias in your environment" "$LINENO" 5
2897 fi
067d23c9 2898
743c80a7
PE
2899 test "$2" = conftest.file
2900 )
2901then
2902 # Ok.
2903 :
067d23c9 2904else
743c80a7
PE
2905 as_fn_error $? "newly created file is older than distributed files!
2906Check your system clock" "$LINENO" 5
067d23c9 2907fi
743c80a7
PE
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2909$as_echo "yes" >&6; }
2910test "$program_prefix" != NONE &&
2911 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2912# Use a double $ so make ignores it.
2913test "$program_suffix" != NONE &&
2914 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2915# Double any \ or $.
2916# By default was `s,x,x', remove it if useless.
2917ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2918program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 2919
743c80a7
PE
2920# expand $ac_aux_dir to an absolute path
2921am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 2922
743c80a7
PE
2923if test x"${MISSING+set}" != xset; then
2924 case $am_aux_dir in
2925 *\ * | *\ *)
2926 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2927 *)
2928 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2929 esac
067d23c9 2930fi
743c80a7
PE
2931# Use eval to expand $SHELL
2932if eval "$MISSING --run true"; then
2933 am_missing_run="$MISSING --run "
067d23c9 2934else
743c80a7
PE
2935 am_missing_run=
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2937$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
2938fi
2939
743c80a7
PE
2940if test x"${install_sh}" != xset; then
2941 case $am_aux_dir in
2942 *\ * | *\ *)
2943 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2944 *)
2945 install_sh="\${SHELL} $am_aux_dir/install-sh"
2946 esac
067d23c9
KY
2947fi
2948
743c80a7
PE
2949# Installed binaries are usually stripped using `strip' when the user
2950# run `make install-strip'. However `strip' might not be the right
2951# tool to use in cross-compilation environments, therefore Automake
2952# will honor the `STRIP' environment variable to overrule this program.
2953if test "$cross_compiling" != no; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956set dummy ${ac_tool_prefix}strip; ac_word=$2
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 2959if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 2960 $as_echo_n "(cached) " >&6
067d23c9 2961else
743c80a7
PE
2962 if test -n "$STRIP"; then
2963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976done
2977 done
2978IFS=$as_save_IFS
067d23c9
KY
2979
2980fi
067d23c9 2981fi
743c80a7
PE
2982STRIP=$ac_cv_prog_STRIP
2983if test -n "$STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985$as_echo "$STRIP" >&6; }
2986else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
067d23c9
KY
2989fi
2990
2991
067d23c9 2992fi
743c80a7
PE
2993if test -z "$ac_cv_prog_STRIP"; then
2994 ac_ct_STRIP=$STRIP
2995 # Extract the first word of "strip", so it can be a program name with args.
2996set dummy strip; ac_word=$2
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 2999if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3000 $as_echo_n "(cached) " >&6
3001else
3002 if test -n "$ac_ct_STRIP"; then
3003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_STRIP="strip"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016done
3017 done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023if test -n "$ac_ct_STRIP"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025$as_echo "$ac_ct_STRIP" >&6; }
3026else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031 if test "x$ac_ct_STRIP" = x; then
3032 STRIP=":"
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040 STRIP=$ac_ct_STRIP
3041 fi
3042else
3043 STRIP="$ac_cv_prog_STRIP"
3044fi
3045
3046fi
3047INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3048
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3050$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3051if test -z "$MKDIR_P"; then
d6974efa 3052 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3053 $as_echo_n "(cached) " >&6
3054else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_prog in mkdir gmkdir; do
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3063 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3064 'mkdir (GNU coreutils) '* | \
3065 'mkdir (coreutils) '* | \
3066 'mkdir (fileutils) '4.1*)
3067 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3068 break 3;;
3069 esac
3070 done
3071 done
3072 done
3073IFS=$as_save_IFS
3074
3075fi
3076
3077 test -d ./--version && rmdir ./--version
3078 if test "${ac_cv_path_mkdir+set}" = set; then
3079 MKDIR_P="$ac_cv_path_mkdir -p"
3080 else
3081 # As a last resort, use the slow shell script. Don't cache a
3082 # value for MKDIR_P within a source directory, because that will
3083 # break other packages using the cache if that directory is
3084 # removed, or if the value is a relative name.
3085 MKDIR_P="$ac_install_sh -d"
3086 fi
3087fi
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3089$as_echo "$MKDIR_P" >&6; }
3090
a451f14b 3091
743c80a7
PE
3092mkdir_p="$MKDIR_P"
3093case $mkdir_p in
3094 [\\/$]* | ?:[\\/]*) ;;
3095 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3096esac
3097
3098for ac_prog in gawk mawk nawk awk
3099do
3100 # Extract the first word of "$ac_prog", so it can be a program name with args.
3101set dummy $ac_prog; ac_word=$2
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3104if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3105 $as_echo_n "(cached) " >&6
3106else
3107 if test -n "$AWK"; then
3108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_AWK="$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121done
3122 done
3123IFS=$as_save_IFS
3124
3125fi
3126fi
3127AWK=$ac_cv_prog_AWK
3128if test -n "$AWK"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130$as_echo "$AWK" >&6; }
3131else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
3134fi
3135
3136
3137 test -n "$AWK" && break
3138done
3139
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3142set x ${MAKE-make}
3143ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 3144if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3145 $as_echo_n "(cached) " >&6
3146else
3147 cat >conftest.make <<\_ACEOF
3148SHELL = /bin/sh
3149all:
3150 @echo '@@@%%%=$(MAKE)=@@@%%%'
3151_ACEOF
3152# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3153case `${MAKE-make} -f conftest.make 2>/dev/null` in
3154 *@@@%%%=?*=@@@%%%*)
3155 eval ac_cv_prog_make_${ac_make}_set=yes;;
3156 *)
3157 eval ac_cv_prog_make_${ac_make}_set=no;;
3158esac
3159rm -f conftest.make
3160fi
3161if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163$as_echo "yes" >&6; }
3164 SET_MAKE=
3165else
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168 SET_MAKE="MAKE=${MAKE-make}"
3169fi
3170
3171rm -rf .tst 2>/dev/null
3172mkdir .tst 2>/dev/null
3173if test -d .tst; then
3174 am__leading_dot=.
3175else
3176 am__leading_dot=_
3177fi
3178rmdir .tst 2>/dev/null
3179
3180if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182 # is not polluted with repeated "-I."
3183 am__isrc=' -I$(srcdir)'
3184 # test to see if srcdir already configured
3185 if test -f $srcdir/config.status; then
3186 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187 fi
3188fi
3189
3190# test whether we have cygpath
3191if test -z "$CYGPATH_W"; then
3192 if (cygpath --version) >/dev/null 2>/dev/null; then
3193 CYGPATH_W='cygpath -w'
3194 else
3195 CYGPATH_W=echo
3196 fi
3197fi
3198
3199
3200# Define the identity of the package.
3201 PACKAGE='emacs'
3202 VERSION='24.0.50'
3203
3204
3205cat >>confdefs.h <<_ACEOF
3206#define PACKAGE "$PACKAGE"
3207_ACEOF
3208
3209
3210cat >>confdefs.h <<_ACEOF
3211#define VERSION "$VERSION"
3212_ACEOF
3213
3214# Some tools Automake needs.
3215
3216ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3217
3218
3219AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3220
3221
3222AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3223
3224
3225AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3226
3227
3228MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3229
3230# We need awk for the "check" target. The system "awk" is bad on
3231# some platforms.
3232# Always define AMTAR for backward compatibility.
3233
3234AMTAR=${AMTAR-"${am_missing_run}tar"}
3235
3236am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3237
3238
3239
3240
3241
3242
3243
3244
3245lispdir='${datadir}/emacs/${version}/lisp'
3246locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3247'${datadir}/emacs/site-lisp'
3248lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3249etcdir='${datadir}/emacs/${version}/etc'
3250archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3251docdir='${datadir}/emacs/${version}/etc'
3252gamedir='${localstatedir}/games/emacs'
3253
3254
3255
3256
3257# Check whether --with-pop was given.
3258if test "${with_pop+set}" = set; then :
3259 withval=$with_pop;
3260else
3261 with_pop=yes
3262fi
3263
3264if test "$with_pop" = yes; then
3265 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3266
3267fi
3268
3269
3270# Check whether --with-kerberos was given.
3271if test "${with_kerberos+set}" = set; then :
3272 withval=$with_kerberos;
3273else
3274 with_kerberos=no
3275fi
3276
3277if test "$with_kerberos" != no; then
3278 $as_echo "#define KERBEROS 1" >>confdefs.h
3279
3280fi
3281
3282
3283# Check whether --with-kerberos5 was given.
3284if test "${with_kerberos5+set}" = set; then :
3285 withval=$with_kerberos5;
3286else
3287 with_kerberos5=no
3288fi
3289
3290if test "${with_kerberos5}" != no; then
3291 if test "${with_kerberos}" = no; then
3292 with_kerberos=yes
3293 $as_echo "#define KERBEROS 1" >>confdefs.h
3294
3295 fi
3296
3297$as_echo "#define KERBEROS5 1" >>confdefs.h
3298
3299fi
3300
3301
3302# Check whether --with-hesiod was given.
3303if test "${with_hesiod+set}" = set; then :
3304 withval=$with_hesiod;
3305else
3306 with_hesiod=no
3307fi
3308
3309if test "$with_hesiod" != no; then
3310
3311$as_echo "#define HESIOD 1" >>confdefs.h
3312
3313fi
3314
3315
3316# Check whether --with-mmdf was given.
3317if test "${with_mmdf+set}" = set; then :
3318 withval=$with_mmdf;
3319else
3320 with_mmdf=no
3321fi
3322
3323if test "$with_mmdf" != no; then
3324
3325$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3326
3327fi
3328
3329
3330# Check whether --with-mail-unlink was given.
3331if test "${with_mail_unlink+set}" = set; then :
3332 withval=$with_mail_unlink;
3333else
3334 with_mail_unlink=no
3335fi
3336
3337if test "$with_mail_unlink" != no; then
3338
3339$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3340
3341fi
3342
3343
3344# Check whether --with-mailhost was given.
3345if test "${with_mailhost+set}" = set; then :
3346 withval=$with_mailhost;
3347cat >>confdefs.h <<_ACEOF
3348#define MAILHOST "$withval"
3349_ACEOF
3350
3351fi
3352
3353
3354
067d23c9
KY
3355# Check whether --with-sound was given.
3356if test "${with_sound+set}" = set; then :
3357 withval=$with_sound;
3358else
3359 with_sound=yes
3360fi
3361
3362
3363
3364# Check whether --with-sync-input was given.
3365if test "${with_sync_input+set}" = set; then :
3366 withval=$with_sync_input;
3367else
3368 with_sync_input=yes
3369fi
3370
3371if test "$with_sync_input" = yes; then
3372
3373$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3374
3375fi
3376
3377
3378# Check whether --with-x-toolkit was given.
3379if test "${with_x_toolkit+set}" = set; then :
3380 withval=$with_x_toolkit; case "${withval}" in
3381 y | ye | yes ) val=gtk ;;
3382 n | no ) val=no ;;
3383 l | lu | luc | luci | lucid ) val=lucid ;;
3384 a | at | ath | athe | athen | athena ) val=athena ;;
3385 m | mo | mot | moti | motif ) val=motif ;;
3386 g | gt | gtk ) val=gtk ;;
3387 gtk3 ) val=gtk3 ;;
3388 * )
2018939f 3389as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3390this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3391\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3392 ;;
3393 esac
3394 with_x_toolkit=$val
3395
3396fi
3397
3398
3399
3400# Check whether --with-xpm was given.
3401if test "${with_xpm+set}" = set; then :
3402 withval=$with_xpm;
3403else
3404 with_xpm=yes
3405fi
3406
3407
3408# Check whether --with-jpeg was given.
3409if test "${with_jpeg+set}" = set; then :
3410 withval=$with_jpeg;
3411else
3412 with_jpeg=yes
3413fi
3414
3415
3416# Check whether --with-tiff was given.
3417if test "${with_tiff+set}" = set; then :
3418 withval=$with_tiff;
3419else
3420 with_tiff=yes
3421fi
3422
3423
3424# Check whether --with-gif was given.
3425if test "${with_gif+set}" = set; then :
3426 withval=$with_gif;
3427else
3428 with_gif=yes
3429fi
3430
3431
3432# Check whether --with-png was given.
3433if test "${with_png+set}" = set; then :
3434 withval=$with_png;
3435else
3436 with_png=yes
3437fi
3438
3439
3440# Check whether --with-rsvg was given.
3441if test "${with_rsvg+set}" = set; then :
3442 withval=$with_rsvg;
3443else
3444 with_rsvg=yes
3445fi
3446
3447
3448# Check whether --with-xml2 was given.
3449if test "${with_xml2+set}" = set; then :
3450 withval=$with_xml2;
3451else
3452 with_xml2=yes
3453fi
3454
3455
3456# Check whether --with-imagemagick was given.
3457if test "${with_imagemagick+set}" = set; then :
3458 withval=$with_imagemagick;
3459else
3460 with_imagemagick=yes
3461fi
3462
3463
3464
3465# Check whether --with-xft was given.
3466if test "${with_xft+set}" = set; then :
3467 withval=$with_xft;
3468else
3469 with_xft=yes
3470fi
3471
3472
3473# Check whether --with-libotf was given.
3474if test "${with_libotf+set}" = set; then :
3475 withval=$with_libotf;
3476else
3477 with_libotf=yes
3478fi
3479
3480
3481# Check whether --with-m17n-flt was given.
3482if test "${with_m17n_flt+set}" = set; then :
3483 withval=$with_m17n_flt;
3484else
3485 with_m17n_flt=yes
3486fi
3487
3488
3489
3490# Check whether --with-toolkit-scroll-bars was given.
3491if test "${with_toolkit_scroll_bars+set}" = set; then :
3492 withval=$with_toolkit_scroll_bars;
3493else
3494 with_toolkit_scroll_bars=yes
3495fi
3496
3497
3498# Check whether --with-xaw3d was given.
3499if test "${with_xaw3d+set}" = set; then :
3500 withval=$with_xaw3d;
3501else
3502 with_xaw3d=yes
3503fi
3504
3505
3506# Check whether --with-xim was given.
3507if test "${with_xim+set}" = set; then :
3508 withval=$with_xim;
3509else
3510 with_xim=yes
3511fi
3512
3513
3514# Check whether --with-ns was given.
3515if test "${with_ns+set}" = set; then :
3516 withval=$with_ns;
3517else
3518 with_ns=no
3519fi
3520
3521
3522
3523# Check whether --with-gpm was given.
3524if test "${with_gpm+set}" = set; then :
3525 withval=$with_gpm;
3526else
3527 with_gpm=yes
3528fi
3529
3530
3531# Check whether --with-dbus was given.
3532if test "${with_dbus+set}" = set; then :
3533 withval=$with_dbus;
3534else
3535 with_dbus=yes
3536fi
3537
3538
3539# Check whether --with-gconf was given.
3540if test "${with_gconf+set}" = set; then :
3541 withval=$with_gconf;
3542else
3543 with_gconf=yes
3544fi
3545
3546
3547# Check whether --with-selinux was given.
3548if test "${with_selinux+set}" = set; then :
3549 withval=$with_selinux;
3550else
3551 with_selinux=yes
3552fi
3553
3554
3555# Check whether --with-gnutls was given.
3556if test "${with_gnutls+set}" = set; then :
3557 withval=$with_gnutls;
3558else
3559 with_gnutls=yes
3560fi
3561
3562
3563## For the times when you want to build Emacs but don't have
3564## a suitable makeinfo, and can live without the manuals.
3565
3566# Check whether --with-makeinfo was given.
3567if test "${with_makeinfo+set}" = set; then :
3568 withval=$with_makeinfo;
3569else
3570 with_makeinfo=yes
3571fi
3572
3573
3574## This is an option because I do not know if all info/man support
3575## compressed files, nor how to test if they do so.
3576
3577# Check whether --with-compress-info was given.
3578if test "${with_compress_info+set}" = set; then :
3579 withval=$with_compress_info;
3580else
3581 with_compress_info=yes
3582fi
3583
3584if test $with_compress_info = yes; then
3585 GZIP_INFO=yes
3586else
3587 GZIP_INFO=
3588fi
3589
3590
3591
3592# Check whether --with-pkg-config-prog was given.
3593if test "${with_pkg_config_prog+set}" = set; then :
3594 withval=$with_pkg_config_prog;
3595fi
3596
3597if test "X${with_pkg_config_prog}" != X; then
3598 if test "${with_pkg_config_prog}" != yes; then
3599 PKG_CONFIG="${with_pkg_config_prog}"
3600 fi
3601fi
3602
3603CRT_DIR=
3604
3605# Check whether --with-crt-dir was given.
3606if test "${with_crt_dir+set}" = set; then :
3607 withval=$with_crt_dir;
3608fi
3609
3610CRT_DIR="${with_crt_dir}"
3611
3612
4fc5868a
UM
3613# Check whether --with-gameuser was given.
3614if test "${with_gameuser+set}" = set; then :
3615 withval=$with_gameuser;
3616fi
3617
3618test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3619 && gameuser="${with_gameuser}"
3620test "X$gameuser" = X && gameuser=games
3621
3622
067d23c9
KY
3623# Check whether --with-gnustep-conf was given.
3624if test "${with_gnustep_conf+set}" = set; then :
3625 withval=$with_gnustep_conf;
3626fi
3627
3628test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3629 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3630test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3631 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3632
3633# Check whether --enable-ns-self-contained was given.
3634if test "${enable_ns_self_contained+set}" = set; then :
3635 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3636else
3637 EN_NS_SELF_CONTAINED=yes
3638fi
3639
3640
3641# Check whether --enable-asserts was given.
3642if test "${enable_asserts+set}" = set; then :
3643 enableval=$enable_asserts; USE_XASSERTS=$enableval
3644else
3645 USE_XASSERTS=no
3646fi
3647
3648
3649# Check whether --enable-maintainer-mode was given.
3650if test "${enable_maintainer_mode+set}" = set; then :
3651 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3652else
3653 USE_MAINTAINER_MODE=no
3654fi
3655
3656if test $USE_MAINTAINER_MODE = yes; then
3657 MAINT=
3658else
3659 MAINT=#
3660fi
3661
3662
3663# Check whether --enable-locallisppath was given.
3664if test "${enable_locallisppath+set}" = set; then :
3665 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3666 locallisppath=
3667elif test "${enableval}" != "yes"; then
3668 locallisppath=${enableval}
3669fi
3670fi
3671
3672
3673# Check whether --enable-checking was given.
3674if test "${enable_checking+set}" = set; then :
3675 enableval=$enable_checking; ac_checking_flags="${enableval}"
3676fi
3677
3678IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3679for check in $ac_checking_flags
3680do
3681 case $check in
3682 # these set all the flags to specific states
3683 yes) ac_enable_checking=1 ;;
3684 no) ac_enable_checking= ;
3685 ac_gc_check_stringbytes= ;
3686 ac_gc_check_string_overrun= ;
3687 ac_gc_check_string_free_list= ;
3688 ac_xmalloc_overrun= ;
3689 ac_gc_check_cons_list= ;;
3690 all) ac_enable_checking=1 ;
3691 ac_gc_check_stringbytes=1 ;
3692 ac_gc_check_string_overrun=1 ;
3693 ac_gc_check_string_free_list=1 ;
3694 ac_xmalloc_overrun=1 ;
3695 ac_gc_check_cons_list=1 ;;
3696 # these enable particular checks
3697 stringbytes) ac_gc_check_stringbytes=1 ;;
3698 stringoverrun) ac_gc_check_string_overrun=1 ;;
3699 stringfreelist) ac_gc_check_string_free_list=1 ;;
3700 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3701 conslist) ac_gc_check_cons_list=1 ;;
d6974efa 3702 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
3703 esac
3704done
3705IFS="$ac_save_IFS"
3706
3707if test x$ac_enable_checking != x ; then
3708
3709$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3710
3711fi
3712if test x$ac_gc_check_stringbytes != x ; then
3713
3714$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3715
3716fi
3717if test x$ac_gc_check_stringoverrun != x ; then
3718
3719$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3720
3721fi
3722if test x$ac_gc_check_string_free_list != x ; then
3723
3724$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3725
3726fi
3727if test x$ac_xmalloc_overrun != x ; then
3728
3729$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3730
3731fi
3732if test x$ac_gc_check_cons_list != x ; then
3733
3734$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3735
3736fi
3737
3738# Check whether --enable-use-lisp-union-type was given.
3739if test "${enable_use_lisp_union_type+set}" = set; then :
3740 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3741
3742$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3743
3744fi
3745fi
3746
3747
3748
3749# Check whether --enable-profiling was given.
3750if test "${enable_profiling+set}" = set; then :
3751 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3752fi
3753
3754if test x$ac_enable_profiling != x ; then
3755 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3756else
3757 PROFILING_CFLAGS=
3758fi
3759
3760
3761# Check whether --enable-autodepend was given.
3762if test "${enable_autodepend+set}" = set; then :
3763 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3764else
3765 ac_enable_autodepend=yes
3766fi
3767
3768
3769#### Make srcdir absolute, if it isn't already. It's important to
3770#### avoid running the path through pwd unnecessarily, since pwd can
3771#### give you automounter prefixes, which can go away. We do all this
3772#### so Emacs can find its files when run uninstalled.
3773## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3774unset CDPATH
3775case "${srcdir}" in
3776 /* ) ;;
3777 . )
3778 ## We may be able to use the $PWD environment variable to make this
3779 ## absolute. But sometimes PWD is inaccurate.
3780 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3781 ## but that tested only for a well-formed and valid PWD,
3782 ## it did not object when PWD was well-formed and valid but just wrong.
3783 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3784 then
3785 srcdir="$PWD"
3786 else
3787 srcdir="`(cd ${srcdir}; pwd)`"
3788 fi
3789 ;;
3790 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3791esac
3792
3793#### Check if the source directory already has a configured system in it.
3794if test `pwd` != `(cd ${srcdir} && pwd)` \
3795 && test -f "${srcdir}/src/config.h" ; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3797 as a build directory right now; it has been configured in its own
3798 right. To configure in another directory as well, you MUST
3799 use GNU make. If you do not have GNU make, then you must
3800 now do \`make distclean' in ${srcdir},
3801 and then run $0 again." >&5
3802$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3803 as a build directory right now; it has been configured in its own
3804 right. To configure in another directory as well, you MUST
3805 use GNU make. If you do not have GNU make, then you must
3806 now do \`make distclean' in ${srcdir},
3807 and then run $0 again." >&2;}
3808fi
3809
3810#### Given the configuration name, set machfile and opsysfile to the
3811#### names of the m/*.h and s/*.h files we should use.
3812
3813### Canonicalize the configuration name.
3814
067d23c9
KY
3815# Make sure we can run config.sub.
3816$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 3817 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3820$as_echo_n "checking build system type... " >&6; }
d6974efa 3821if ${ac_cv_build+:} false; then :
067d23c9
KY
3822 $as_echo_n "(cached) " >&6
3823else
3824 ac_build_alias=$build_alias
3825test "x$ac_build_alias" = x &&
3826 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3827test "x$ac_build_alias" = x &&
2018939f 3828 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 3829ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 3830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
3831
3832fi
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3834$as_echo "$ac_cv_build" >&6; }
3835case $ac_cv_build in
3836*-*-*) ;;
d6974efa 3837*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
3838esac
3839build=$ac_cv_build
3840ac_save_IFS=$IFS; IFS='-'
3841set x $ac_cv_build
3842shift
3843build_cpu=$1
3844build_vendor=$2
3845shift; shift
3846# Remember, the first character of IFS is used to create $*,
3847# except with old shells:
3848build_os=$*
3849IFS=$ac_save_IFS
3850case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3851
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3854$as_echo_n "checking host system type... " >&6; }
d6974efa 3855if ${ac_cv_host+:} false; then :
067d23c9
KY
3856 $as_echo_n "(cached) " >&6
3857else
3858 if test "x$host_alias" = x; then
3859 ac_cv_host=$ac_cv_build
3860else
3861 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 3862 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
3863fi
3864
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3867$as_echo "$ac_cv_host" >&6; }
3868case $ac_cv_host in
3869*-*-*) ;;
d6974efa 3870*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
3871esac
3872host=$ac_cv_host
3873ac_save_IFS=$IFS; IFS='-'
3874set x $ac_cv_host
3875shift
3876host_cpu=$1
3877host_vendor=$2
3878shift; shift
3879# Remember, the first character of IFS is used to create $*,
3880# except with old shells:
3881host_os=$*
3882IFS=$ac_save_IFS
3883case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3884
3885
3886canonical=$host
3887configuration=${host_alias-${build_alias-$host}}
3888
3889
3890
3891### If you add support for a new configuration, add code to this
3892### switch statement to recognize your configuration name and select
3893### the appropriate operating system and machine description files.
3894
3895### You would hope that you could choose an m/*.h file pretty much
3896### based on the machine portion of the configuration name, and an s/*.h
3897### file based on the operating system portion. However, it turns out
3898### that each m/*.h file is pretty manufacturer-specific - for
3899### example mips.h is MIPS
3900### So we basically have to have a special case for each
3901### configuration name.
3902###
3903### As far as handling version numbers on operating systems is
3904### concerned, make sure things will fail in a fixable way. If
3905### /etc/MACHINES doesn't say anything about version numbers, be
3906### prepared to handle anything reasonably. If version numbers
3907### matter, be sure /etc/MACHINES says something about it.
3908
3909machine='' opsys='' unported=no
3910case "${canonical}" in
3911
d6a003a8
AS
3912 ## GNU/Linux ports
3913 *-*-linux-gnu*)
3914 opsys=gnu-linux
3915 case ${canonical} in
3916 alpha*) machine=alpha ;;
3917 s390-*) machine=ibms390 ;;
3918 s390x-*) machine=ibms390x ;;
3919 powerpc*) machine=macppc ;;
3920 sparc*) machine=sparc ;;
3921 ia64*) machine=ia64 ;;
3922 m68k*) machine=m68k ;;
3923 x86_64*) machine=amdx86-64 ;;
3924 esac
3925 ;;
3926
067d23c9
KY
3927 ## FreeBSD ports
3928 *-*-freebsd* )
3929 opsys=freebsd
3930 case "${canonical}" in
3931 alpha*) machine=alpha ;;
3932 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3933 ia64-*) machine=ia64 ;;
3934 i[3456]86-*) machine=intel386 ;;
3935 powerpc-*) machine=macppc ;;
3936 sparc-*) machine=sparc ;;
3937 sparc64-*) machine=sparc ;;
3938 esac
3939 ;;
3940
3941 ## FreeBSD kernel + glibc based userland
3942 *-*-kfreebsd*gnu* )
3943 opsys=gnu-kfreebsd
3944 case "${canonical}" in
3945 alpha*) machine=alpha ;;
3946 amd64-*|x86_64-*) machine=amdx86-64 ;;
3947 ia64-*) machine=ia64 ;;
3948 i[3456]86-*) machine=intel386 ;;
3949 powerpc-*) machine=macppc ;;
3950 sparc-*) machine=sparc ;;
3951 sparc64-*) machine=sparc ;;
3952 esac
3953 ;;
3954
3955 ## NetBSD ports
3956 *-*-netbsd* )
3957 opsys=netbsd
3958 case "${canonical}" in
3959 alpha*) machine=alpha ;;
3960 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3961 i[3456]86-*) machine=intel386 ;;
3962 m68k-*) machine=m68k ;;
3963 powerpc-*) machine=macppc ;;
067d23c9
KY
3964 sparc*-) machine=sparc ;;
3965 vax-*) machine=vax ;;
3966 esac
3967 ;;
3968
3969 ## OpenBSD ports
3970 *-*-openbsd* )
3971 opsys=openbsd
3972 case "${canonical}" in
3973 alpha*) machine=alpha ;;
3974 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3975 i386-*) machine=intel386 ;;
3976 powerpc-*) machine=macppc ;;
3977 sparc*) machine=sparc ;;
3978 vax-*) machine=vax ;;
3979 esac
3980 ;;
3981
067d23c9
KY
3982 ## Apple Darwin / Mac OS X
3983 *-apple-darwin* )
3984 case "${canonical}" in
3985 i[3456]86-* ) machine=intel386 ;;
3986 powerpc-* ) machine=macppc ;;
3987 x86_64-* ) machine=amdx86-64 ;;
3988 * ) unported=yes ;;
3989 esac
3990 opsys=darwin
3991 # Define CPP as follows to make autoconf work correctly.
3992 CPP="${CC-cc} -E -no-cpp-precomp"
3993 # Use fink packages if available.
3994 if test -d /sw/include && test -d /sw/lib; then
3995 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3996 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3997 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3998 fi
3999 ;;
4000
4001 ## HP 9000 series 700 and 800, running HP/UX
4002 hppa*-hp-hpux10.2* )
d6a003a8 4003 opsys=hpux10-20
067d23c9
KY
4004 ;;
4005 hppa*-hp-hpux1[1-9]* )
d6a003a8 4006 opsys=hpux11
067d23c9
KY
4007 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4008 ;;
4009
125c3718
PE
4010 ia64*-hp-hpux1[1-9]* )
4011 machine=hp800 opsys=hpux11
4012 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4013 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4014 CANNOT_DUMP=yes
4015 ;;
4016
4017 hppa*-*-linux-gnu* )
4018 machine=hp800 opsys=gnu-linux
4019 ;;
4020
067d23c9 4021 ## IBM machines
067d23c9
KY
4022 rs6000-ibm-aix4.[23]* )
4023 machine=ibmrs6000 opsys=aix4-2
4024 ;;
4025 powerpc-ibm-aix4.[23]* )
4026 machine=ibmrs6000 opsys=aix4-2
4027 ;;
4028 rs6000-ibm-aix[56]* )
4029 machine=ibmrs6000 opsys=aix4-2
4030 ;;
4031 powerpc-ibm-aix[56]* )
4032 machine=ibmrs6000 opsys=aix4-2
4033 ;;
4034
067d23c9
KY
4035 ## Silicon Graphics machines
4036 ## Iris 4D
4037 mips-sgi-irix6.5 )
4038 machine=iris4d opsys=irix6-5
4039 # Without defining _LANGUAGE_C, things get masked out in the headers
4040 # so that, for instance, grepping for `free' in stdlib.h fails and
4041 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4042 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4043 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4044 ;;
4045
4046 ## Suns
067d23c9
KY
4047 *-sun-solaris* \
4048 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4049 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4050 case "${canonical}" in
4051 i[3456]86-*-* ) machine=intel386 ;;
4052 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4053 sparc* ) machine=sparc ;;
4054 * ) unported=yes ;;
4055 esac
4056 case "${canonical}" in
4057 *-sunos5.6* | *-solaris2.6* )
4058 opsys=sol2-6
4059 NON_GNU_CPP=/usr/ccs/lib/cpp
4060 RANLIB="ar -ts"
4061 ;;
4062 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4063 opsys=sol2-6
4064 emacs_check_sunpro_c=yes
4065 NON_GNU_CPP=/usr/ccs/lib/cpp
4066 ;;
4067 *-sunos5* | *-solaris* )
4068 opsys=sol2-10
4069 emacs_check_sunpro_c=yes
4070 NON_GNU_CPP=/usr/ccs/lib/cpp
4071 ;;
4072 esac
4073 ## Watch out for a compiler that we know will not work.
4074 case "${canonical}" in
4075 *-solaris* | *-sunos5* )
4076 if [ "x$CC" = x/usr/ucb/cc ]; then
4077 ## /usr/ucb/cc doesn't work;
4078 ## we should find some other compiler that does work.
4079 unset CC
4080 fi
4081 ;;
4082 *) ;;
4083 esac
4084 ;;
4085
067d23c9
KY
4086 ## Intel 386 machines where we don't care about the manufacturer.
4087 i[3456]86-*-* )
4088 machine=intel386
4089 case "${canonical}" in
4090 *-cygwin ) opsys=cygwin ;;
4091 *-darwin* ) opsys=darwin
4092 CPP="${CC-cc} -E -no-cpp-precomp"
4093 ;;
067d23c9
KY
4094 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4095 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4096 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4097 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4098 esac
4099 ;;
4100
067d23c9
KY
4101 * )
4102 unported=yes
4103 ;;
4104esac
4105
4106### If the code above didn't choose an operating system, just choose
4107### an operating system based on the configuration name. You really
4108### only want to use this when you have no idea what the right
4109### operating system is; if you know what operating systems a machine
4110### runs, it's cleaner to make it explicit in the case statement
4111### above.
4112if test x"${opsys}" = x; then
4113 case "${canonical}" in
4114 *-gnu* ) opsys=gnu ;;
4115 * )
4116 unported=yes
4117 ;;
4118 esac
4119fi
4120
4121
4122
4123if test $unported = yes; then
2018939f 4124 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4125Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4126fi
4127
d6a003a8
AS
4128if test -n "$machine"; then
4129 machfile="m/${machine}.h"
4130else
4131 machfile=
4132fi
067d23c9
KY
4133opsysfile="s/${opsys}.h"
4134
4135
4136#### Choose a compiler.
4137test -n "$CC" && cc_specified=yes
4138
4139# Save the value of CFLAGS that the user specified.
4140SPECIFIED_CFLAGS="$CFLAGS"
4141
4142ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4149set dummy ${ac_tool_prefix}gcc; ac_word=$2
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4152if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4153 $as_echo_n "(cached) " >&6
4154else
4155 if test -n "$CC"; then
4156 ac_cv_prog_CC="$CC" # Let the user override the test.
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170 done
4171IFS=$as_save_IFS
4172
4173fi
4174fi
4175CC=$ac_cv_prog_CC
4176if test -n "$CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178$as_echo "$CC" >&6; }
4179else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
4182fi
4183
4184
4185fi
4186if test -z "$ac_cv_prog_CC"; then
4187 ac_ct_CC=$CC
4188 # Extract the first word of "gcc", so it can be a program name with args.
4189set dummy gcc; ac_word=$2
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4192if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4193 $as_echo_n "(cached) " >&6
4194else
4195 if test -n "$ac_ct_CC"; then
4196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4197else
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_ac_ct_CC="gcc"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209done
4210 done
4211IFS=$as_save_IFS
4212
4213fi
4214fi
4215ac_ct_CC=$ac_cv_prog_ac_ct_CC
4216if test -n "$ac_ct_CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4218$as_echo "$ac_ct_CC" >&6; }
4219else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
4222fi
4223
4224 if test "x$ac_ct_CC" = x; then
4225 CC=""
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228yes:)
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231ac_tool_warned=yes ;;
4232esac
4233 CC=$ac_ct_CC
4234 fi
4235else
4236 CC="$ac_cv_prog_CC"
4237fi
4238
4239if test -z "$CC"; then
4240 if test -n "$ac_tool_prefix"; then
4241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4242set dummy ${ac_tool_prefix}cc; ac_word=$2
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4245if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4246 $as_echo_n "(cached) " >&6
4247else
4248 if test -n "$CC"; then
4249 ac_cv_prog_CC="$CC" # Let the user override the test.
4250else
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_CC="${ac_tool_prefix}cc"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263 done
4264IFS=$as_save_IFS
4265
4266fi
4267fi
4268CC=$ac_cv_prog_CC
4269if test -n "$CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4271$as_echo "$CC" >&6; }
4272else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274$as_echo "no" >&6; }
4275fi
4276
4277
4278 fi
4279fi
4280if test -z "$CC"; then
4281 # Extract the first word of "cc", so it can be a program name with args.
4282set dummy cc; ac_word=$2
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4285if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4286 $as_echo_n "(cached) " >&6
4287else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290else
4291 ac_prog_rejected=no
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4300 ac_prog_rejected=yes
4301 continue
4302 fi
4303 ac_cv_prog_CC="cc"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307done
4308 done
4309IFS=$as_save_IFS
4310
4311if test $ac_prog_rejected = yes; then
4312 # We found a bogon in the path, so make sure we never use it.
4313 set dummy $ac_cv_prog_CC
4314 shift
4315 if test $# != 0; then
4316 # We chose a different compiler from the bogus one.
4317 # However, it has the same basename, so the bogon will be chosen
4318 # first if we set CC to just the basename; use the full file name.
4319 shift
4320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4321 fi
4322fi
4323fi
4324fi
4325CC=$ac_cv_prog_CC
4326if test -n "$CC"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328$as_echo "$CC" >&6; }
4329else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331$as_echo "no" >&6; }
4332fi
4333
4334
4335fi
4336if test -z "$CC"; then
4337 if test -n "$ac_tool_prefix"; then
4338 for ac_prog in cl.exe
4339 do
4340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4344if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4345 $as_echo_n "(cached) " >&6
4346else
4347 if test -n "$CC"; then
4348 ac_cv_prog_CC="$CC" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361done
4362 done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367CC=$ac_cv_prog_CC
4368if test -n "$CC"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4370$as_echo "$CC" >&6; }
4371else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376
4377 test -n "$CC" && break
4378 done
4379fi
4380if test -z "$CC"; then
4381 ac_ct_CC=$CC
4382 for ac_prog in cl.exe
4383do
4384 # Extract the first word of "$ac_prog", so it can be a program name with args.
4385set dummy $ac_prog; ac_word=$2
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4388if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4389 $as_echo_n "(cached) " >&6
4390else
4391 if test -n "$ac_ct_CC"; then
4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_ac_ct_CC="$ac_prog"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405done
4406 done
4407IFS=$as_save_IFS
4408
4409fi
4410fi
4411ac_ct_CC=$ac_cv_prog_ac_ct_CC
4412if test -n "$ac_ct_CC"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4414$as_echo "$ac_ct_CC" >&6; }
4415else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
4418fi
4419
4420
4421 test -n "$ac_ct_CC" && break
4422done
4423
4424 if test "x$ac_ct_CC" = x; then
4425 CC=""
4426 else
4427 case $cross_compiling:$ac_tool_warned in
4428yes:)
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4431ac_tool_warned=yes ;;
4432esac
4433 CC=$ac_ct_CC
4434 fi
4435fi
4436
4437fi
4438
4439
4440test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4442as_fn_error $? "no acceptable C compiler found in \$PATH
d6974efa 4443See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4444
4445# Provide some information about the compiler.
4446$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4447set X $ac_compile
4448ac_compiler=$2
4449for ac_option in --version -v -V -qversion; do
4450 { { ac_try="$ac_compiler $ac_option >&5"
4451case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
4455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4456$as_echo "$ac_try_echo"; } >&5
4457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4458 ac_status=$?
4459 if test -s conftest.err; then
4460 sed '10a\
4461... rest of stderr output deleted ...
4462 10q' conftest.err >conftest.er1
4463 cat conftest.er1 >&5
4464 fi
4465 rm -f conftest.er1 conftest.err
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468done
4469
4470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h. */
4472
4473int
4474main ()
4475{
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481ac_clean_files_save=$ac_clean_files
4482ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4483# Try to create an executable without -o first, disregard a.out.
4484# It will help us diagnose broken compilers, and finding out an intuition
4485# of exeext.
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4487$as_echo_n "checking whether the C compiler works... " >&6; }
4488ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4489
4490# The possible output files:
4491ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4492
4493ac_rmfiles=
4494for ac_file in $ac_files
4495do
4496 case $ac_file in
4497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4498 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4499 esac
4500done
4501rm -f $ac_rmfiles
4502
4503if { { ac_try="$ac_link_default"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509$as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_link_default") 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
4514 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4515# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4516# in a Makefile. We should not override ac_cv_exeext if it was cached,
4517# so that the user can short-circuit this test for compilers unknown to
4518# Autoconf.
4519for ac_file in $ac_files ''
4520do
4521 test -f "$ac_file" || continue
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4524 ;;
4525 [ab].out )
4526 # We found the default executable, but exeext='' is most
4527 # certainly right.
4528 break;;
4529 *.* )
4530 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4531 then :; else
4532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4533 fi
4534 # We set ac_cv_exeext here because the later test for it is not
4535 # safe: cross compilers may not add the suffix if given an `-o'
4536 # argument, so we may need to know it at that point already.
4537 # Even if this section looks crufty: it has the advantage of
4538 # actually working.
4539 break;;
4540 * )
4541 break;;
4542 esac
4543done
4544test "$ac_cv_exeext" = no && ac_cv_exeext=
4545
4546else
4547 ac_file=''
4548fi
4549if test -z "$ac_file"; then :
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551$as_echo "no" >&6; }
4552$as_echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4557as_fn_error 77 "C compiler cannot create executables
d6974efa 4558See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4559else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4561$as_echo "yes" >&6; }
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4564$as_echo_n "checking for C compiler default output file name... " >&6; }
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4566$as_echo "$ac_file" >&6; }
4567ac_exeext=$ac_cv_exeext
4568
4569rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4570ac_clean_files=$ac_clean_files_save
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4572$as_echo_n "checking for suffix of executables... " >&6; }
4573if { { ac_try="$ac_link"
4574case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577esac
4578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4579$as_echo "$ac_try_echo"; } >&5
4580 (eval "$ac_link") 2>&5
4581 ac_status=$?
4582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4583 test $ac_status = 0; }; then :
4584 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4585# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4586# work properly (i.e., refer to `conftest.exe'), while it won't with
4587# `rm'.
4588for ac_file in conftest.exe conftest conftest.*; do
4589 test -f "$ac_file" || continue
4590 case $ac_file in
4591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4592 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4593 break;;
4594 * ) break;;
4595 esac
4596done
4597else
4598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4600as_fn_error $? "cannot compute suffix of executables: cannot compile and link
d6974efa 4601See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4602fi
4603rm -f conftest conftest$ac_cv_exeext
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4605$as_echo "$ac_cv_exeext" >&6; }
4606
4607rm -f conftest.$ac_ext
4608EXEEXT=$ac_cv_exeext
4609ac_exeext=$EXEEXT
4610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h. */
4612#include <stdio.h>
4613int
4614main ()
4615{
4616FILE *f = fopen ("conftest.out", "w");
4617 return ferror (f) || fclose (f) != 0;
4618
4619 ;
4620 return 0;
4621}
4622_ACEOF
4623ac_clean_files="$ac_clean_files conftest.out"
4624# Check that the compiler produces executables we can run. If not, either
4625# the compiler is broken, or we cross compile.
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4627$as_echo_n "checking whether we are cross compiling... " >&6; }
4628if test "$cross_compiling" != yes; then
4629 { { ac_try="$ac_link"
4630case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633esac
4634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635$as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_link") 2>&5
4637 ac_status=$?
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 if { ac_try='./conftest$ac_cv_exeext'
4641 { { case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644esac
4645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646$as_echo "$ac_try_echo"; } >&5
4647 (eval "$ac_try") 2>&5
4648 ac_status=$?
4649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4650 test $ac_status = 0; }; }; then
4651 cross_compiling=no
4652 else
4653 if test "$cross_compiling" = maybe; then
4654 cross_compiling=yes
4655 else
4656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4658as_fn_error $? "cannot run C compiled programs.
067d23c9 4659If you meant to cross compile, use \`--host'.
d6974efa 4660See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4661 fi
4662 fi
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4665$as_echo "$cross_compiling" >&6; }
4666
4667rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4668ac_clean_files=$ac_clean_files_save
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4670$as_echo_n "checking for suffix of object files... " >&6; }
d6974efa 4671if ${ac_cv_objext+:} false; then :
067d23c9
KY
4672 $as_echo_n "(cached) " >&6
4673else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680
4681 ;
4682 return 0;
4683}
4684_ACEOF
4685rm -f conftest.o conftest.obj
4686if { { ac_try="$ac_compile"
4687case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690esac
4691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692$as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_compile") 2>&5
4694 ac_status=$?
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; then :
4697 for ac_file in conftest.o conftest.obj conftest.*; do
4698 test -f "$ac_file" || continue;
4699 case $ac_file in
4700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4702 break;;
4703 esac
4704done
4705else
4706 $as_echo "$as_me: failed program was:" >&5
4707sed 's/^/| /' conftest.$ac_ext >&5
4708
4709{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4711as_fn_error $? "cannot compute suffix of object files: cannot compile
d6974efa 4712See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4713fi
4714rm -f conftest.$ac_cv_objext conftest.$ac_ext
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4717$as_echo "$ac_cv_objext" >&6; }
4718OBJEXT=$ac_cv_objext
4719ac_objext=$OBJEXT
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4721$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6974efa 4722if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
4723 $as_echo_n "(cached) " >&6
4724else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h. */
4727
4728int
4729main ()
4730{
4731#ifndef __GNUC__
4732 choke me
4733#endif
4734
4735 ;
4736 return 0;
4737}
4738_ACEOF
4739if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_compiler_gnu=yes
4741else
4742 ac_compiler_gnu=no
4743fi
4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745ac_cv_c_compiler_gnu=$ac_compiler_gnu
4746
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4749$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4750if test $ac_compiler_gnu = yes; then
4751 GCC=yes
4752else
4753 GCC=
4754fi
4755ac_test_CFLAGS=${CFLAGS+set}
4756ac_save_CFLAGS=$CFLAGS
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4758$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6974efa 4759if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
4760 $as_echo_n "(cached) " >&6
4761else
4762 ac_save_c_werror_flag=$ac_c_werror_flag
4763 ac_c_werror_flag=yes
4764 ac_cv_prog_cc_g=no
4765 CFLAGS="-g"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767/* end confdefs.h. */
4768
4769int
4770main ()
4771{
4772
4773 ;
4774 return 0;
4775}
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_prog_cc_g=yes
4779else
4780 CFLAGS=""
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then :
4793
4794else
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
4799
4800int
4801main ()
4802{
4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_g=yes
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_c_werror_flag=$ac_save_c_werror_flag
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4819$as_echo "$ac_cv_prog_cc_g" >&6; }
4820if test "$ac_test_CFLAGS" = set; then
4821 CFLAGS=$ac_save_CFLAGS
4822elif test $ac_cv_prog_cc_g = yes; then
4823 if test "$GCC" = yes; then
4824 CFLAGS="-g -O2"
4825 else
4826 CFLAGS="-g"
4827 fi
4828else
4829 if test "$GCC" = yes; then
4830 CFLAGS="-O2"
4831 else
4832 CFLAGS=
4833 fi
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4836$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6974efa 4837if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
4838 $as_echo_n "(cached) " >&6
4839else
4840 ac_cv_prog_cc_c89=no
4841ac_save_CC=$CC
4842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844#include <stdarg.h>
4845#include <stdio.h>
4846#include <sys/types.h>
4847#include <sys/stat.h>
4848/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4849struct buf { int x; };
4850FILE * (*rcsopen) (struct buf *, struct stat *, int);
4851static char *e (p, i)
4852 char **p;
4853 int i;
4854{
4855 return p[i];
4856}
4857static char *f (char * (*g) (char **, int), char **p, ...)
4858{
4859 char *s;
4860 va_list v;
4861 va_start (v,p);
4862 s = g (p, va_arg (v,int));
4863 va_end (v);
4864 return s;
4865}
4866
4867/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4868 function prototypes and stuff, but not '\xHH' hex character constants.
4869 These don't provoke an error unfortunately, instead are silently treated
4870 as 'x'. The following induces an error, until -std is added to get
4871 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4872 array size at least. It's necessary to write '\x00'==0 to get something
4873 that's true only with -std. */
4874int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4875
4876/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4877 inside strings and character constants. */
4878#define FOO(x) 'x'
4879int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4880
4881int test (int i, double x);
4882struct s1 {int (*f) (int a);};
4883struct s2 {int (*f) (double a);};
4884int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885int argc;
4886char **argv;
4887int
4888main ()
4889{
4890return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4891 ;
4892 return 0;
4893}
4894_ACEOF
4895for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4896 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4897do
4898 CC="$ac_save_CC $ac_arg"
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_prog_cc_c89=$ac_arg
4901fi
4902rm -f core conftest.err conftest.$ac_objext
4903 test "x$ac_cv_prog_cc_c89" != "xno" && break
4904done
743c80a7
PE
4905rm -f conftest.$ac_ext
4906CC=$ac_save_CC
4907
4908fi
4909# AC_CACHE_VAL
4910case "x$ac_cv_prog_cc_c89" in
4911 x)
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4913$as_echo "none needed" >&6; } ;;
4914 xno)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4916$as_echo "unsupported" >&6; } ;;
4917 *)
4918 CC="$CC $ac_cv_prog_cc_c89"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4920$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4921esac
4922if test "x$ac_cv_prog_cc_c89" != xno; then :
4923
4924fi
4925
4926ac_ext=c
4927ac_cpp='$CPP $CPPFLAGS'
4928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931DEPDIR="${am__leading_dot}deps"
4932
4933ac_config_commands="$ac_config_commands depfiles"
4934
4935
4936am_make=${MAKE-make}
4937cat > confinc << 'END'
4938am__doit:
4939 @echo this is the am__doit target
4940.PHONY: am__doit
4941END
4942# If we don't find an include directive, just comment out the code.
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4944$as_echo_n "checking for style of include used by $am_make... " >&6; }
4945am__include="#"
4946am__quote=
4947_am_result=none
4948# First try GNU make style include.
4949echo "include confinc" > confmf
4950# Ignore all kinds of additional output from `make'.
4951case `$am_make -s -f confmf 2> /dev/null` in #(
4952*the\ am__doit\ target*)
4953 am__include=include
4954 am__quote=
4955 _am_result=GNU
4956 ;;
4957esac
4958# Now try BSD make style include.
4959if test "$am__include" = "#"; then
4960 echo '.include "confinc"' > confmf
4961 case `$am_make -s -f confmf 2> /dev/null` in #(
4962 *the\ am__doit\ target*)
4963 am__include=.include
4964 am__quote="\""
4965 _am_result=BSD
4966 ;;
4967 esac
4968fi
4969
4970
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4972$as_echo "$_am_result" >&6; }
4973rm -f confinc confmf
4974
4975# Check whether --enable-dependency-tracking was given.
4976if test "${enable_dependency_tracking+set}" = set; then :
4977 enableval=$enable_dependency_tracking;
4978fi
4979
4980if test "x$enable_dependency_tracking" != xno; then
4981 am_depcomp="$ac_aux_dir/depcomp"
4982 AMDEPBACKSLASH='\'
4983fi
4984 if test "x$enable_dependency_tracking" != xno; then
4985 AMDEP_TRUE=
4986 AMDEP_FALSE='#'
4987else
4988 AMDEP_TRUE='#'
4989 AMDEP_FALSE=
4990fi
4991
4992
4993
4994depcc="$CC" am_compiler_list=
4995
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4997$as_echo_n "checking dependency style of $depcc... " >&6; }
d6974efa 4998if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
4999 $as_echo_n "(cached) " >&6
5000else
5001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5002 # We make a subdir and do the tests there. Otherwise we can end up
5003 # making bogus files that we don't know about and never remove. For
5004 # instance it was reported that on HP-UX the gcc test will end up
5005 # making a dummy file named `D' -- because `-MD' means `put the output
5006 # in D'.
5007 mkdir conftest.dir
5008 # Copy depcomp to subdir because otherwise we won't find it if we're
5009 # using a relative directory.
5010 cp "$am_depcomp" conftest.dir
5011 cd conftest.dir
5012 # We will build objects and dependencies in a subdirectory because
5013 # it helps to detect inapplicable dependency modes. For instance
5014 # both Tru64's cc and ICC support -MD to output dependencies as a
5015 # side effect of compilation, but ICC will put the dependencies in
5016 # the current directory while Tru64 will put them in the object
5017 # directory.
5018 mkdir sub
5019
5020 am_cv_CC_dependencies_compiler_type=none
5021 if test "$am_compiler_list" = ""; then
5022 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5023 fi
5024 am__universal=false
5025 case " $depcc " in #(
5026 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5027 esac
5028
5029 for depmode in $am_compiler_list; do
5030 # Setup a source with many dependencies, because some compilers
5031 # like to wrap large dependency lists on column 80 (with \), and
5032 # we should not choose a depcomp mode which is confused by this.
5033 #
5034 # We need to recreate these files for each test, as the compiler may
5035 # overwrite some of them when testing with obscure command lines.
5036 # This happens at least with the AIX C compiler.
5037 : > sub/conftest.c
5038 for i in 1 2 3 4 5 6; do
5039 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5040 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5041 # Solaris 8's {/usr,}/bin/sh.
5042 touch sub/conftst$i.h
5043 done
5044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5045
5046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5047 # mode. It turns out that the SunPro C++ compiler does not properly
5048 # handle `-M -o', and we need to detect this. Also, some Intel
5049 # versions had trouble with output in subdirs
5050 am__obj=sub/conftest.${OBJEXT-o}
5051 am__minus_obj="-o $am__obj"
5052 case $depmode in
5053 gcc)
5054 # This depmode causes a compiler race in universal mode.
5055 test "$am__universal" = false || continue
5056 ;;
5057 nosideeffect)
5058 # after this tag, mechanisms are not by side-effect, so they'll
5059 # only be used when explicitly requested
5060 if test "x$enable_dependency_tracking" = xyes; then
5061 continue
5062 else
5063 break
5064 fi
5065 ;;
5066 msvisualcpp | msvcmsys)
5067 # This compiler won't grok `-c -o', but also, the minuso test has
5068 # not run yet. These depmodes are late enough in the game, and
5069 # so weak that their functioning should not be impacted.
5070 am__obj=conftest.${OBJEXT-o}
5071 am__minus_obj=
5072 ;;
5073 none) break ;;
5074 esac
5075 if depmode=$depmode \
5076 source=sub/conftest.c object=$am__obj \
5077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5079 >/dev/null 2>conftest.err &&
5080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5084 # icc doesn't choke on unknown options, it will just issue warnings
5085 # or remarks (even with -Werror). So we grep stderr for any message
5086 # that says an option was ignored or not supported.
5087 # When given -MP, icc 7.0 and 7.1 complain thusly:
5088 # icc: Command line warning: ignoring option '-M'; no argument required
5089 # The diagnosis changed in icc 8.0:
5090 # icc: Command line remark: option '-MP' not supported
5091 if (grep 'ignoring option' conftest.err ||
5092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5093 am_cv_CC_dependencies_compiler_type=$depmode
5094 break
5095 fi
5096 fi
5097 done
5098
5099 cd ..
5100 rm -rf conftest.dir
5101else
5102 am_cv_CC_dependencies_compiler_type=none
5103fi
5104
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5107$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5108CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5109
5110 if
5111 test "x$enable_dependency_tracking" != xno \
5112 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5113 am__fastdepCC_TRUE=
5114 am__fastdepCC_FALSE='#'
5115else
5116 am__fastdepCC_TRUE='#'
5117 am__fastdepCC_FALSE=
5118fi
5119
5120
5121if test "x$CC" != xcc; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5123$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5124else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5126$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5127fi
5128set dummy $CC; ac_cc=`$as_echo "$2" |
5129 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
d6974efa 5130if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5131 $as_echo_n "(cached) " >&6
5132else
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h. */
5135
5136int
5137main ()
5138{
5139
5140 ;
5141 return 0;
5142}
5143_ACEOF
5144# Make sure it works both with $CC and with simple cc.
5145# We do the test twice because some compilers refuse to overwrite an
5146# existing .o file with -o, though they will create one.
5147ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5148rm -f conftest2.*
5149if { { case "(($ac_try" in
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5152esac
5153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5154$as_echo "$ac_try_echo"; } >&5
5155 (eval "$ac_try") 2>&5
5156 ac_status=$?
5157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5158 test $ac_status = 0; } &&
5159 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162esac
5163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164$as_echo "$ac_try_echo"; } >&5
5165 (eval "$ac_try") 2>&5
5166 ac_status=$?
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; };
5169then
5170 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5171 if test "x$CC" != xcc; then
5172 # Test first that cc exists at all.
5173 if { ac_try='cc -c conftest.$ac_ext >&5'
5174 { { case "(($ac_try" in
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177esac
5178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5179$as_echo "$ac_try_echo"; } >&5
5180 (eval "$ac_try") 2>&5
5181 ac_status=$?
5182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }; }; then
5184 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5185 rm -f conftest2.*
5186 if { { case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5191$as_echo "$ac_try_echo"; } >&5
5192 (eval "$ac_try") 2>&5
5193 ac_status=$?
5194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5195 test $ac_status = 0; } &&
5196 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199esac
5200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5201$as_echo "$ac_try_echo"; } >&5
5202 (eval "$ac_try") 2>&5
5203 ac_status=$?
5204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5205 test $ac_status = 0; };
5206 then
5207 # cc works too.
5208 :
5209 else
5210 # cc exists but doesn't like -o.
5211 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5212 fi
5213 fi
5214 fi
5215else
5216 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5217fi
5218rm -f core conftest*
5219
5220fi
5221if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223$as_echo "yes" >&6; }
5224else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227
5228$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5229
5230fi
5231
5232# FIXME: we rely on the cache variable name because
5233# there is no other way.
5234set dummy $CC
5235am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5236eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5237if test "$am_t" != yes; then
5238 # Losing compiler, so override with the script.
5239 # FIXME: It is wrong to rewrite CC.
5240 # But if we don't then we get into trouble of one sort or another.
5241 # A longer-term fix would be to have automake use am__CC in this case,
5242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5243 CC="$am_aux_dir/compile $CC"
5244fi
5245
5246
5247
5248# Initialize gnulib right after verifying that the C compiler works.
5249if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5251set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5254if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5255 $as_echo_n "(cached) " >&6
5256else
5257 if test -n "$RANLIB"; then
5258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271done
5272 done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277RANLIB=$ac_cv_prog_RANLIB
5278if test -n "$RANLIB"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5280$as_echo "$RANLIB" >&6; }
5281else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5284fi
5285
5286
5287fi
5288if test -z "$ac_cv_prog_RANLIB"; then
5289 ac_ct_RANLIB=$RANLIB
5290 # Extract the first word of "ranlib", so it can be a program name with args.
5291set dummy ranlib; ac_word=$2
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5294if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5295 $as_echo_n "(cached) " >&6
5296else
5297 if test -n "$ac_ct_RANLIB"; then
5298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5299else
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_ac_ct_RANLIB="ranlib"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311done
5312 done
5313IFS=$as_save_IFS
067d23c9
KY
5314
5315fi
743c80a7
PE
5316fi
5317ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5318if test -n "$ac_ct_RANLIB"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5320$as_echo "$ac_ct_RANLIB" >&6; }
5321else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5324fi
067d23c9 5325
743c80a7
PE
5326 if test "x$ac_ct_RANLIB" = x; then
5327 RANLIB=":"
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333ac_tool_warned=yes ;;
5334esac
5335 RANLIB=$ac_ct_RANLIB
5336 fi
5337else
5338 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5339fi
5340
743c80a7 5341
067d23c9
KY
5342ac_ext=c
5343ac_cpp='$CPP $CPPFLAGS'
5344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5348$as_echo_n "checking how to run the C preprocessor... " >&6; }
5349# On Suns, sometimes $CPP names a directory.
5350if test -n "$CPP" && test -d "$CPP"; then
5351 CPP=
5352fi
5353if test -z "$CPP"; then
d6974efa 5354 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5355 $as_echo_n "(cached) " >&6
5356else
5357 # Double quotes because CPP needs to be expanded
5358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5359 do
5360 ac_preproc_ok=false
5361for ac_c_preproc_warn_flag in '' yes
5362do
5363 # Use a header file that comes with gcc, so configuring glibc
5364 # with a fresh cross-compiler works.
5365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366 # <limits.h> exists even on freestanding compilers.
5367 # On the NeXT, cc -E runs the code through the compiler's parser,
5368 # not just through cpp. "Syntax error" is here to catch this case.
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h. */
5371#ifdef __STDC__
5372# include <limits.h>
5373#else
5374# include <assert.h>
5375#endif
5376 Syntax error
5377_ACEOF
5378if ac_fn_c_try_cpp "$LINENO"; then :
5379
5380else
5381 # Broken: fails on valid input.
5382continue
5383fi
2018939f 5384rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5385
5386 # OK, works on sane cases. Now check whether nonexistent headers
5387 # can be detected and how.
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h. */
5390#include <ac_nonexistent.h>
5391_ACEOF
5392if ac_fn_c_try_cpp "$LINENO"; then :
5393 # Broken: success on invalid input.
5394continue
5395else
5396 # Passes both tests.
5397ac_preproc_ok=:
5398break
5399fi
2018939f 5400rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5401
5402done
5403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5404rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5405if $ac_preproc_ok; then :
5406 break
5407fi
5408
5409 done
5410 ac_cv_prog_CPP=$CPP
5411
5412fi
5413 CPP=$ac_cv_prog_CPP
5414else
5415 ac_cv_prog_CPP=$CPP
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5418$as_echo "$CPP" >&6; }
5419ac_preproc_ok=false
5420for ac_c_preproc_warn_flag in '' yes
5421do
5422 # Use a header file that comes with gcc, so configuring glibc
5423 # with a fresh cross-compiler works.
5424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5425 # <limits.h> exists even on freestanding compilers.
5426 # On the NeXT, cc -E runs the code through the compiler's parser,
5427 # not just through cpp. "Syntax error" is here to catch this case.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429/* end confdefs.h. */
5430#ifdef __STDC__
5431# include <limits.h>
5432#else
5433# include <assert.h>
5434#endif
5435 Syntax error
5436_ACEOF
5437if ac_fn_c_try_cpp "$LINENO"; then :
5438
5439else
5440 # Broken: fails on valid input.
5441continue
5442fi
2018939f 5443rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5444
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
5449#include <ac_nonexistent.h>
5450_ACEOF
5451if ac_fn_c_try_cpp "$LINENO"; then :
5452 # Broken: success on invalid input.
5453continue
5454else
5455 # Passes both tests.
5456ac_preproc_ok=:
5457break
5458fi
2018939f 5459rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5460
5461done
5462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5463rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5464if $ac_preproc_ok; then :
5465
5466else
5467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5469as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 5470See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5471fi
5472
5473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5481$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d6974efa 5482if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5483 $as_echo_n "(cached) " >&6
5484else
5485 if test -z "$GREP"; then
5486 ac_path_GREP_found=false
5487 # Loop through the user's path and test for each of PROGNAME-LIST
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_prog in grep ggrep; do
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5496 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5497# Check for GNU ac_path_GREP and select it if it is found.
5498 # Check for GNU $ac_path_GREP
5499case `"$ac_path_GREP" --version 2>&1` in
5500*GNU*)
5501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5502*)
5503 ac_count=0
5504 $as_echo_n 0123456789 >"conftest.in"
5505 while :
5506 do
5507 cat "conftest.in" "conftest.in" >"conftest.tmp"
5508 mv "conftest.tmp" "conftest.in"
5509 cp "conftest.in" "conftest.nl"
5510 $as_echo 'GREP' >> "conftest.nl"
5511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5513 as_fn_arith $ac_count + 1 && ac_count=$as_val
5514 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5515 # Best one so far, save it but keep looking for a better one
5516 ac_cv_path_GREP="$ac_path_GREP"
5517 ac_path_GREP_max=$ac_count
5518 fi
5519 # 10*(2^10) chars as input seems more than enough
5520 test $ac_count -gt 10 && break
5521 done
5522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5523esac
5524
5525 $ac_path_GREP_found && break 3
5526 done
5527 done
5528 done
5529IFS=$as_save_IFS
5530 if test -z "$ac_cv_path_GREP"; then
2018939f 5531 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5532 fi
5533else
5534 ac_cv_path_GREP=$GREP
5535fi
5536
5537fi
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5539$as_echo "$ac_cv_path_GREP" >&6; }
5540 GREP="$ac_cv_path_GREP"
5541
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5544$as_echo_n "checking for egrep... " >&6; }
d6974efa 5545if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5546 $as_echo_n "(cached) " >&6
5547else
5548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5549 then ac_cv_path_EGREP="$GREP -E"
5550 else
5551 if test -z "$EGREP"; then
5552 ac_path_EGREP_found=false
5553 # Loop through the user's path and test for each of PROGNAME-LIST
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_prog in egrep; do
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5562 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5563# Check for GNU ac_path_EGREP and select it if it is found.
5564 # Check for GNU $ac_path_EGREP
5565case `"$ac_path_EGREP" --version 2>&1` in
5566*GNU*)
5567 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5568*)
5569 ac_count=0
5570 $as_echo_n 0123456789 >"conftest.in"
5571 while :
5572 do
5573 cat "conftest.in" "conftest.in" >"conftest.tmp"
5574 mv "conftest.tmp" "conftest.in"
5575 cp "conftest.in" "conftest.nl"
5576 $as_echo 'EGREP' >> "conftest.nl"
5577 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5579 as_fn_arith $ac_count + 1 && ac_count=$as_val
5580 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5581 # Best one so far, save it but keep looking for a better one
5582 ac_cv_path_EGREP="$ac_path_EGREP"
5583 ac_path_EGREP_max=$ac_count
5584 fi
5585 # 10*(2^10) chars as input seems more than enough
5586 test $ac_count -gt 10 && break
5587 done
5588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5589esac
5590
5591 $ac_path_EGREP_found && break 3
5592 done
5593 done
5594 done
5595IFS=$as_save_IFS
5596 if test -z "$ac_cv_path_EGREP"; then
2018939f 5597 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5598 fi
5599else
5600 ac_cv_path_EGREP=$EGREP
5601fi
5602
5603 fi
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5606$as_echo "$ac_cv_path_EGREP" >&6; }
5607 EGREP="$ac_cv_path_EGREP"
5608
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5611$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 5612if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5613 $as_echo_n "(cached) " >&6
5614else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h. */
5617#include <stdlib.h>
5618#include <stdarg.h>
5619#include <string.h>
5620#include <float.h>
5621
5622int
5623main ()
5624{
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 ac_cv_header_stdc=yes
5632else
5633 ac_cv_header_stdc=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636
5637if test $ac_cv_header_stdc = yes; then
5638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h. */
5641#include <string.h>
5642
5643_ACEOF
5644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5645 $EGREP "memchr" >/dev/null 2>&1; then :
5646
5647else
5648 ac_cv_header_stdc=no
5649fi
5650rm -f conftest*
5651
5652fi
5653
5654if test $ac_cv_header_stdc = yes; then
5655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h. */
5658#include <stdlib.h>
5659
5660_ACEOF
5661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662 $EGREP "free" >/dev/null 2>&1; then :
5663
5664else
5665 ac_cv_header_stdc=no
5666fi
5667rm -f conftest*
5668
5669fi
5670
5671if test $ac_cv_header_stdc = yes; then
5672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5673 if test "$cross_compiling" = yes; then :
5674 :
5675else
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h. */
5678#include <ctype.h>
5679#include <stdlib.h>
5680#if ((' ' & 0x0FF) == 0x020)
5681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5683#else
5684# define ISLOWER(c) \
5685 (('a' <= (c) && (c) <= 'i') \
5686 || ('j' <= (c) && (c) <= 'r') \
5687 || ('s' <= (c) && (c) <= 'z'))
5688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5689#endif
5690
5691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5692int
5693main ()
5694{
5695 int i;
5696 for (i = 0; i < 256; i++)
5697 if (XOR (islower (i), ISLOWER (i))
5698 || toupper (i) != TOUPPER (i))
5699 return 2;
5700 return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_run "$LINENO"; then :
5704
5705else
5706 ac_cv_header_stdc=no
5707fi
5708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5709 conftest.$ac_objext conftest.beam conftest.$ac_ext
5710fi
5711
5712fi
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5715$as_echo "$ac_cv_header_stdc" >&6; }
5716if test $ac_cv_header_stdc = yes; then
5717
5718$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5719
5720fi
5721
5722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5724 inttypes.h stdint.h unistd.h
5725do :
5726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5728"
2018939f 5729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
5730 cat >>confdefs.h <<_ACEOF
5731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5732_ACEOF
5733
5734fi
5735
5736done
5737
5738
5739
1fd182f0
PE
5740
5741
067d23c9 5742 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d6974efa 5743if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
5744 MINIX=yes
5745else
5746 MINIX=
5747fi
5748
5749
5750 if test "$MINIX" = yes; then
5751
5752$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5753
5754
5755$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5756
5757
5758$as_echo "#define _MINIX 1" >>confdefs.h
5759
5760 fi
5761
1fd182f0
PE
5762 case "$host_os" in
5763 hpux*)
5764
5765$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5766
5767 ;;
5768 esac
5769
067d23c9
KY
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5772$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d6974efa 5773if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
5774 $as_echo_n "(cached) " >&6
5775else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h. */
5778
1fd182f0
PE
5779# define __EXTENSIONS__ 1
5780 $ac_includes_default
067d23c9
KY
5781int
5782main ()
5783{
5784
5785 ;
5786 return 0;
5787}
5788_ACEOF
5789if ac_fn_c_try_compile "$LINENO"; then :
5790 ac_cv_safe_to_define___extensions__=yes
5791else
5792 ac_cv_safe_to_define___extensions__=no
5793fi
5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5797$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5798 test $ac_cv_safe_to_define___extensions__ = yes &&
5799 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5800
5801 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5802
5803 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5804
5805 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5806
5807 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5808
5809
5810
1fd182f0
PE
5811
5812
5813
5814
5815
5816
5817
5818 # Code from module arg-nonnull:
5819 # Code from module c++defs:
f737437b 5820 # Code from module dtoastr:
1fd182f0
PE
5821 # Code from module extensions:
5822
e275c824
PE
5823 # Code from module getopt-gnu:
5824 # Code from module getopt-posix:
5825 # Code from module gettext-h:
1fd182f0
PE
5826 # Code from module include_next:
5827 # Code from module intprops:
5828 # Code from module mktime:
5829 # Code from module multiarch:
5830 # Code from module stddef:
5831 # Code from module time:
5832 # Code from module time_r:
e275c824 5833 # Code from module unistd:
1fd182f0
PE
5834 # Code from module warn-on-use:
5835
5836
5837# On Suns, sometimes $CPP names a directory.
5838if test -n "$CPP" && test -d "$CPP"; then
5839 CPP=
5840fi
5841
5842## If not using gcc, and on Solaris, and no CPP specified, see if
5843## using a Sun compiler, which needs -Xs to prevent whitespace.
5844if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5845 test x"$CPP" = x; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5847$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
d6974efa 5848 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
5849 $as_echo_n "(cached) " >&6
5850else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h. */
5853
5854int
5855main ()
5856{
5857#ifndef __SUNPRO_C
5858fail;
5859#endif
5860
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865if ac_fn_c_try_link "$LINENO"; then :
5866 emacs_cv_sunpro_c=yes
5867else
5868 emacs_cv_sunpro_c=no
5869fi
5870rm -f core conftest.err conftest.$ac_objext \
5871 conftest$ac_exeext conftest.$ac_ext
5872fi
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5875$as_echo "$emacs_cv_sunpro_c" >&6; }
5876
5877 if test x"$emacs_cv_sunpro_c" = xyes; then
5878 NON_GNU_CPP="$CC -E -Xs"
5879 fi
5880fi
5881
5882#### Some systems specify a CPP to use unless we are using GCC.
5883#### Now that we know whether we are using GCC, we can decide whether
5884#### to use that one.
5885if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5886then
5887 CPP="$NON_GNU_CPP"
5888fi
5889
5890#### Some systems specify a CC to use unless we are using GCC.
5891#### Now that we know whether we are using GCC, we can decide whether
5892#### to use that one.
5893if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5894 test x$cc_specified != xyes
5895then
5896 CC="$NON_GNU_CC"
5897fi
5898
5899if test x$GCC = xyes; then
5900 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5901else
5902 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5903fi
5904
067d23c9
KY
5905### Use -Wno-pointer-sign if the compiler supports it
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5907$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5908SAVE_CFLAGS="$CFLAGS"
5909CFLAGS="$CFLAGS -Wno-pointer-sign"
5910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h. */
5912
5913int
5914main ()
5915{
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"; then :
5922 has_option=yes
5923else
5924 has_option=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927if test $has_option = yes; then
5928 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5931$as_echo "$has_option" >&6; }
5932CFLAGS="$SAVE_CFLAGS"
5933unset has_option
5934unset SAVE_CFLAGS
5935
5936### Use -Wdeclaration-after-statement if the compiler supports it
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5938$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5939SAVE_CFLAGS="$CFLAGS"
5940CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h. */
5943
5944int
5945main ()
5946{
5947
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952if ac_fn_c_try_compile "$LINENO"; then :
5953 has_option=yes
5954else
5955 has_option=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958if test $has_option = yes; then
5959 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5962$as_echo "$has_option" >&6; }
5963CFLAGS="$SAVE_CFLAGS"
5964unset has_option
5965unset SAVE_CFLAGS
5966
5967### Use -Wold-style-definition if the compiler supports it
5968# This can be removed when conversion to standard C is finished.
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5970$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5971SAVE_CFLAGS="$CFLAGS"
5972CFLAGS="$CFLAGS -Wold-style-definition"
5973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h. */
5975
5976int
5977main ()
5978{
5979
5980 ;
5981 return 0;
5982}
5983_ACEOF
5984if ac_fn_c_try_compile "$LINENO"; then :
5985 has_option=yes
5986else
5987 has_option=no
5988fi
5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990if test $has_option = yes; then
5991 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5994$as_echo "$has_option" >&6; }
5995CFLAGS="$SAVE_CFLAGS"
5996unset has_option
5997unset SAVE_CFLAGS
5998
5999### Use -Wimplicit-function-declaration if the compiler supports it
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6001$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6002SAVE_CFLAGS="$CFLAGS"
6003CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h. */
6006
6007int
6008main ()
6009{
6010
6011 ;
6012 return 0;
6013}
6014_ACEOF
6015if ac_fn_c_try_compile "$LINENO"; then :
6016 has_option=yes
6017else
6018 has_option=no
6019fi
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021if test $has_option = yes; then
6022 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6023fi
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6025$as_echo "$has_option" >&6; }
6026CFLAGS="$SAVE_CFLAGS"
6027unset has_option
6028unset SAVE_CFLAGS
6029
6030
6031
6032
6033#### Some other nice autoconf tests.
6034
6035ac_ext=c
6036ac_cpp='$CPP $CPPFLAGS'
6037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6041$as_echo_n "checking how to run the C preprocessor... " >&6; }
6042# On Suns, sometimes $CPP names a directory.
6043if test -n "$CPP" && test -d "$CPP"; then
6044 CPP=
6045fi
6046if test -z "$CPP"; then
d6974efa 6047 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6048 $as_echo_n "(cached) " >&6
6049else
6050 # Double quotes because CPP needs to be expanded
6051 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6052 do
6053 ac_preproc_ok=false
6054for ac_c_preproc_warn_flag in '' yes
6055do
6056 # Use a header file that comes with gcc, so configuring glibc
6057 # with a fresh cross-compiler works.
6058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6059 # <limits.h> exists even on freestanding compilers.
6060 # On the NeXT, cc -E runs the code through the compiler's parser,
6061 # not just through cpp. "Syntax error" is here to catch this case.
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h. */
6064#ifdef __STDC__
6065# include <limits.h>
6066#else
6067# include <assert.h>
6068#endif
6069 Syntax error
6070_ACEOF
6071if ac_fn_c_try_cpp "$LINENO"; then :
6072
6073else
6074 # Broken: fails on valid input.
6075continue
6076fi
2018939f 6077rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6078
6079 # OK, works on sane cases. Now check whether nonexistent headers
6080 # can be detected and how.
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
6083#include <ac_nonexistent.h>
6084_ACEOF
6085if ac_fn_c_try_cpp "$LINENO"; then :
6086 # Broken: success on invalid input.
6087continue
6088else
6089 # Passes both tests.
6090ac_preproc_ok=:
6091break
6092fi
2018939f 6093rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6094
6095done
6096# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6097rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6098if $ac_preproc_ok; then :
6099 break
6100fi
6101
6102 done
6103 ac_cv_prog_CPP=$CPP
6104
6105fi
6106 CPP=$ac_cv_prog_CPP
6107else
6108 ac_cv_prog_CPP=$CPP
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6111$as_echo "$CPP" >&6; }
6112ac_preproc_ok=false
6113for ac_c_preproc_warn_flag in '' yes
6114do
6115 # Use a header file that comes with gcc, so configuring glibc
6116 # with a fresh cross-compiler works.
6117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118 # <limits.h> exists even on freestanding compilers.
6119 # On the NeXT, cc -E runs the code through the compiler's parser,
6120 # not just through cpp. "Syntax error" is here to catch this case.
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h. */
6123#ifdef __STDC__
6124# include <limits.h>
6125#else
6126# include <assert.h>
6127#endif
6128 Syntax error
6129_ACEOF
6130if ac_fn_c_try_cpp "$LINENO"; then :
6131
6132else
6133 # Broken: fails on valid input.
6134continue
6135fi
2018939f 6136rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6137
6138 # OK, works on sane cases. Now check whether nonexistent headers
6139 # can be detected and how.
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h. */
6142#include <ac_nonexistent.h>
6143_ACEOF
6144if ac_fn_c_try_cpp "$LINENO"; then :
6145 # Broken: success on invalid input.
6146continue
6147else
6148 # Passes both tests.
6149ac_preproc_ok=:
6150break
6151fi
2018939f 6152rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6153
6154done
6155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6156rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6157if $ac_preproc_ok; then :
6158
6159else
6160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 6162as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 6163See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6164fi
6165
6166ac_ext=c
6167ac_cpp='$CPP $CPPFLAGS'
6168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171
067d23c9
KY
6172
6173if test "x$RANLIB" = x; then
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6176set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6179if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6180 $as_echo_n "(cached) " >&6
6181else
6182 if test -n "$RANLIB"; then
6183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196done
6197 done
6198IFS=$as_save_IFS
6199
6200fi
6201fi
6202RANLIB=$ac_cv_prog_RANLIB
6203if test -n "$RANLIB"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6205$as_echo "$RANLIB" >&6; }
6206else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208$as_echo "no" >&6; }
6209fi
6210
6211
6212fi
6213if test -z "$ac_cv_prog_RANLIB"; then
6214 ac_ct_RANLIB=$RANLIB
6215 # Extract the first word of "ranlib", so it can be a program name with args.
6216set dummy ranlib; ac_word=$2
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6219if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6220 $as_echo_n "(cached) " >&6
6221else
6222 if test -n "$ac_ct_RANLIB"; then
6223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_prog_ac_ct_RANLIB="ranlib"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6235 fi
6236done
6237 done
6238IFS=$as_save_IFS
6239
6240fi
6241fi
6242ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6243if test -n "$ac_ct_RANLIB"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6245$as_echo "$ac_ct_RANLIB" >&6; }
6246else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248$as_echo "no" >&6; }
6249fi
6250
6251 if test "x$ac_ct_RANLIB" = x; then
6252 RANLIB=":"
6253 else
6254 case $cross_compiling:$ac_tool_warned in
6255yes:)
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258ac_tool_warned=yes ;;
6259esac
6260 RANLIB=$ac_ct_RANLIB
6261 fi
6262else
6263 RANLIB="$ac_cv_prog_RANLIB"
6264fi
6265
6266fi
6267
6268## Although we're running on an amd64 kernel, we're actually compiling for
6269## the x86 architecture. The user should probably have provided an
6270## explicit --build to `configure', but if everything else than the kernel
6271## is running in i386 mode, we can help them out.
6272if test "$machine" = "amdx86-64"; then
6273 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
d6974efa 6274if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6275
6276fi
6277
6278 if test "$ac_cv_have_decl_i386" = "yes"; then
6279 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6280 machine=intel386
6281 machfile="m/${machine}.h"
6282 fi
6283fi
6284
6285# Extract the first word of "install-info", so it can be a program name with args.
6286set dummy install-info; ac_word=$2
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6289if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6290 $as_echo_n "(cached) " >&6
6291else
6292 case $INSTALL_INFO in
6293 [\\/]* | ?:[\\/]*)
6294 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6295 ;;
6296 *)
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308done
6309 done
6310IFS=$as_save_IFS
6311
6312 ;;
6313esac
6314fi
6315INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6316if test -n "$INSTALL_INFO"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6318$as_echo "$INSTALL_INFO" >&6; }
6319else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322fi
6323
6324
6325# Extract the first word of "install-info", so it can be a program name with args.
6326set dummy install-info; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6329if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6330 $as_echo_n "(cached) " >&6
6331else
6332 case $INSTALL_INFO in
6333 [\\/]* | ?:[\\/]*)
6334 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6335 ;;
6336 *)
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in /usr/sbin
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349 done
6350IFS=$as_save_IFS
6351
6352 ;;
6353esac
6354fi
6355INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6356if test -n "$INSTALL_INFO"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6358$as_echo "$INSTALL_INFO" >&6; }
6359else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
6362fi
6363
6364
6365# Extract the first word of "install-info", so it can be a program name with args.
6366set dummy install-info; ac_word=$2
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6369if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6370 $as_echo_n "(cached) " >&6
6371else
6372 case $INSTALL_INFO in
6373 [\\/]* | ?:[\\/]*)
6374 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6375 ;;
6376 *)
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in /sbin
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388done
6389 done
6390IFS=$as_save_IFS
6391
6392 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6393 ;;
6394esac
6395fi
6396INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6397if test -n "$INSTALL_INFO"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6399$as_echo "$INSTALL_INFO" >&6; }
6400else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
6404
6405
6406# Extract the first word of "gzip", so it can be a program name with args.
6407set dummy gzip; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6410if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6411 $as_echo_n "(cached) " >&6
6412else
6413 case $GZIP_PROG in
6414 [\\/]* | ?:[\\/]*)
6415 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6416 ;;
6417 *)
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429done
6430 done
6431IFS=$as_save_IFS
6432
6433 ;;
6434esac
6435fi
6436GZIP_PROG=$ac_cv_path_GZIP_PROG
6437if test -n "$GZIP_PROG"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6439$as_echo "$GZIP_PROG" >&6; }
6440else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442$as_echo "no" >&6; }
6443fi
6444
6445
6446
6447
6448## Need makeinfo >= 4.6 (?) to build the manuals.
6449# Extract the first word of "makeinfo", so it can be a program name with args.
6450set dummy makeinfo; ac_word=$2
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6453if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6454 $as_echo_n "(cached) " >&6
6455else
6456 case $MAKEINFO in
6457 [\\/]* | ?:[\\/]*)
6458 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6459 ;;
6460 *)
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472done
6473 done
6474IFS=$as_save_IFS
6475
6476 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6477 ;;
6478esac
6479fi
6480MAKEINFO=$ac_cv_path_MAKEINFO
6481if test -n "$MAKEINFO"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6483$as_echo "$MAKEINFO" >&6; }
6484else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486$as_echo "no" >&6; }
6487fi
6488
6489
6490if test "$MAKEINFO" != "no" && \
6491 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
6492 MAKEINFO=no
6493fi
6494
6495## Makeinfo is unusual. For a released Emacs, the manuals are
6496## pre-built, and not deleted by the normal clean rules. makeinfo is
6497## therefore in the category of "special tools" not normally required, which
6498## configure does not have to check for (eg autoconf itself).
6499## In a Bazaar checkout on the other hand, the manuals are not included.
6500## So makeinfo is a requirement to build from Bazaar, and configure
6501## should test for it as it does for any other build requirement.
6502## We use the presence of $srcdir/info/emacs to distinguish a release,
6503## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6504HAVE_MAKEINFO=yes
6505
067d23c9 6506if test "$MAKEINFO" = "no"; then
96f129d5 6507 MAKEINFO=makeinfo
067d23c9 6508 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6509 HAVE_MAKEINFO=no
067d23c9 6510 elif test ! -e $srcdir/info/emacs; then
2018939f 6511 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6512source tree does not seem to have pre-built manuals in the \`info' directory.
6513Either install a suitable version of makeinfo, or re-run configure
6514with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6515 fi
6516fi
6517
6518
96f129d5 6519
067d23c9
KY
6520if test x$GCC = xyes; then
6521 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6522 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6523else
6524 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6525 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6526fi
6527
6528
6529late_LDFLAGS=$LDFLAGS
6530if test x$GCC = xyes; then
6531 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6532else
6533 LDFLAGS="$LDFLAGS -znocombreloc"
6534fi
6535
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6537$as_echo_n "checking for -znocombreloc... " >&6; }
6538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h. */
6540
6541int
6542main ()
6543{
6544
6545 ;
6546 return 0;
6547}
6548_ACEOF
6549if ac_fn_c_try_link "$LINENO"; then :
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6551$as_echo "yes" >&6; }
6552else
6553 LDFLAGS=$late_LDFLAGS
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557rm -f core conftest.err conftest.$ac_objext \
6558 conftest$ac_exeext conftest.$ac_ext
6559
6560
6561# The value of CPP is a quoted variable reference, so we need to do this
6562# to get its actual value...
6563CPP=`eval "echo $CPP"`
6564
6565
125c3718 6566test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6567case "$opsys" in
125c3718
PE
6568 your-opsys-here) CANNOT_DUMP=yes ;;
6569esac
6570
6571test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6572
6573$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6574
125c3718 6575
067d23c9
KY
6576
6577
6578
6579UNEXEC_OBJ=unexelf.o
6580case "$opsys" in
6581 # MSDOS uses unexcoff.o
6582 # MSWindows uses unexw32.o
6583 aix4-2)
6584 UNEXEC_OBJ=unexaix.o
6585 ;;
6586 cygwin)
6587 UNEXEC_OBJ=unexcw.o
6588 ;;
6589 darwin)
6590 UNEXEC_OBJ=unexmacosx.o
6591 ;;
6592 hpux10-20 | hpux11)
6593 UNEXEC_OBJ=unexhp9k800.o
6594 ;;
6595 sol2-10)
6596 # Use the Solaris dldump() function, called from unexsol.c, to dump
6597 # emacs, instead of the generic ELF dump code found in unexelf.c.
6598 # The resulting binary has a complete symbol table, and is better
6599 # for debugging and other observability tools (debuggers, pstack, etc).
6600 #
6601 # If you encounter a problem using dldump(), please consider sending
6602 # a message to the OpenSolaris tools-linking mailing list:
6603 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6604 #
6605 # It is likely that dldump() works with older Solaris too, but this has
6606 # not been tested, so for now this change is for Solaris 10 or newer.
6607 UNEXEC_OBJ=unexsol.o
6608 ;;
6609esac
6610
6611LD_SWITCH_SYSTEM=
6612case "$opsys" in
6613 freebsd)
6614 ## Let `ld' find image libs and similar things in /usr/local/lib.
6615 ## The system compiler, GCC, has apparently been modified to not
6616 ## look there, contrary to what a stock GCC would do.
6617 LD_SWITCH_SYSTEM=-L/usr/local/lib
6618 ;;
6619
6620 gnu-linux)
6621 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6622 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6623 ;;
6624
6625 netbsd)
6626 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6627 ;;
6628
6629 openbsd)
6630 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6631 ## otherwise Emacs dumps core on elf systems.
6632 LD_SWITCH_SYSTEM="-Z"
6633 ;;
6634esac
6635
6636
6637ac_link="$ac_link $LD_SWITCH_SYSTEM"
6638
6639## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6640## which has not been defined yet. When this was handled with cpp,
6641## it was expanded to null when configure sourced the s/*.h file.
6642## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6643## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6644## (or somesuch), but because it is supposed to go at the _front_
6645## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6646## Compare with the gnu-linux case below, which added to the end
6647## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6648## LD_SWITCH_SYSTEM_TEMACS.
6649case "$opsys" in
6650 netbsd|openbsd)
6651 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6652 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6653esac
6654
6655
6656C_SWITCH_MACHINE=
6657if test "$machine" = "alpha"; then
6658 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
d6974efa 6659if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6660
6661fi
6662
6663 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6664 ## With ELF, make sure that all common symbols get allocated to in the
6665 ## data section. Otherwise, the dump of temacs may miss variables in
6666 ## the shared library that have been initialized. For example, with
6667 ## GNU libc, __malloc_initialized would normally be resolved to the
6668 ## shared library's .bss section, which is fatal.
6669 if test "x$GCC" = "xyes"; then
6670 C_SWITCH_MACHINE="-fno-common"
6671 else
2018939f 6672 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6673 fi
6674 else
6675 UNEXEC_OBJ=unexalpha.o
6676 fi
6677fi
6678
6679
6680
6681
6682C_SWITCH_SYSTEM=
6683## Some programs in src produce warnings saying certain subprograms
6684## are too complex and need a MAXMEM value greater than 2000 for
6685## additional optimization. --nils@exp-math.uni-essen.de
6686test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6687 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6688## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6689## It is redundant in glibc2, since we define _GNU_SOURCE.
6690
6691
6692
6693LIBS_SYSTEM=
6694case "$opsys" in
6695 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6696 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6697
6698 freebsd) LIBS_SYSTEM="-lutil" ;;
6699
6700 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6701
6702 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6703
6704 ## Motif needs -lgen.
6705 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6706esac
6707
6708
6709
6710### Make sure subsequent tests use flags consistent with the build flags.
6711
6712if test x"${OVERRIDE_CPPFLAGS}" != x; then
6713 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6714else
6715 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6716fi
6717
6718
6719
6720# Check whether --enable-largefile was given.
6721if test "${enable_largefile+set}" = set; then :
6722 enableval=$enable_largefile;
6723fi
6724
6725if test "$enable_largefile" != no; then
6726
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6728$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d6974efa 6729if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
6730 $as_echo_n "(cached) " >&6
6731else
6732 ac_cv_sys_largefile_CC=no
6733 if test "$GCC" != yes; then
6734 ac_save_CC=$CC
6735 while :; do
6736 # IRIX 6.2 and later do not support large files by default,
6737 # so use the C compiler's -n32 option if that helps.
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h. */
6740#include <sys/types.h>
6741 /* Check that off_t can represent 2**63 - 1 correctly.
6742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6743 since some C++ compilers masquerading as C compilers
6744 incorrectly reject 9223372036854775807. */
6745#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6747 && LARGE_OFF_T % 2147483647 == 1)
6748 ? 1 : -1];
6749int
6750main ()
6751{
6752
6753 ;
6754 return 0;
6755}
6756_ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 break
6759fi
6760rm -f core conftest.err conftest.$ac_objext
6761 CC="$CC -n32"
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 ac_cv_sys_largefile_CC=' -n32'; break
6764fi
6765rm -f core conftest.err conftest.$ac_objext
6766 break
6767 done
6768 CC=$ac_save_CC
6769 rm -f conftest.$ac_ext
6770 fi
6771fi
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6773$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6774 if test "$ac_cv_sys_largefile_CC" != no; then
6775 CC=$CC$ac_cv_sys_largefile_CC
6776 fi
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6779$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d6974efa 6780if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
6781 $as_echo_n "(cached) " >&6
6782else
6783 while :; do
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h. */
6786#include <sys/types.h>
6787 /* Check that off_t can represent 2**63 - 1 correctly.
6788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6789 since some C++ compilers masquerading as C compilers
6790 incorrectly reject 9223372036854775807. */
6791#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6793 && LARGE_OFF_T % 2147483647 == 1)
6794 ? 1 : -1];
6795int
6796main ()
6797{
6798
6799 ;
6800 return 0;
6801}
6802_ACEOF
6803if ac_fn_c_try_compile "$LINENO"; then :
6804 ac_cv_sys_file_offset_bits=no; break
6805fi
6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809#define _FILE_OFFSET_BITS 64
6810#include <sys/types.h>
6811 /* Check that off_t can represent 2**63 - 1 correctly.
6812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6813 since some C++ compilers masquerading as C compilers
6814 incorrectly reject 9223372036854775807. */
6815#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6817 && LARGE_OFF_T % 2147483647 == 1)
6818 ? 1 : -1];
6819int
6820main ()
6821{
6822
6823 ;
6824 return 0;
6825}
6826_ACEOF
6827if ac_fn_c_try_compile "$LINENO"; then :
6828 ac_cv_sys_file_offset_bits=64; break
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 ac_cv_sys_file_offset_bits=unknown
6832 break
6833done
6834fi
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6836$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6837case $ac_cv_sys_file_offset_bits in #(
6838 no | unknown) ;;
6839 *)
6840cat >>confdefs.h <<_ACEOF
6841#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6842_ACEOF
6843;;
6844esac
6845rm -rf conftest*
6846 if test $ac_cv_sys_file_offset_bits = unknown; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6848$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d6974efa 6849if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
6850 $as_echo_n "(cached) " >&6
6851else
6852 while :; do
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854/* end confdefs.h. */
6855#include <sys/types.h>
6856 /* Check that off_t can represent 2**63 - 1 correctly.
6857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6858 since some C++ compilers masquerading as C compilers
6859 incorrectly reject 9223372036854775807. */
6860#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6862 && LARGE_OFF_T % 2147483647 == 1)
6863 ? 1 : -1];
6864int
6865main ()
6866{
6867
6868 ;
6869 return 0;
6870}
6871_ACEOF
6872if ac_fn_c_try_compile "$LINENO"; then :
6873 ac_cv_sys_large_files=no; break
6874fi
6875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h. */
6878#define _LARGE_FILES 1
6879#include <sys/types.h>
6880 /* Check that off_t can represent 2**63 - 1 correctly.
6881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6882 since some C++ compilers masquerading as C compilers
6883 incorrectly reject 9223372036854775807. */
6884#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6886 && LARGE_OFF_T % 2147483647 == 1)
6887 ? 1 : -1];
6888int
6889main ()
6890{
6891
6892 ;
6893 return 0;
6894}
6895_ACEOF
6896if ac_fn_c_try_compile "$LINENO"; then :
6897 ac_cv_sys_large_files=1; break
6898fi
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 ac_cv_sys_large_files=unknown
6901 break
6902done
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6905$as_echo "$ac_cv_sys_large_files" >&6; }
6906case $ac_cv_sys_large_files in #(
6907 no | unknown) ;;
6908 *)
6909cat >>confdefs.h <<_ACEOF
6910#define _LARGE_FILES $ac_cv_sys_large_files
6911_ACEOF
6912;;
6913esac
6914rm -rf conftest*
6915 fi
6916fi
6917
6918
6919
6920## If user specified a crt-dir, use that unconditionally.
6921if test "X$CRT_DIR" = "X"; then
6922
6923 case "$canonical" in
6924 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6925 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6926 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6927 ## For anything else (eg /usr/lib32), it is up the user to specify
6928 ## the location (bug#5655).
6929 ## Test for crtn.o, not just the directory, because sometimes the
6930 ## directory exists but does not have the relevant files (bug#1287).
6931 ## FIXME better to test for binary compatibility somehow.
6932 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6933 ;;
6934
6935 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6936 esac
6937
6938 case "$opsys" in
6939 hpux10-20) CRT_DIR=/lib ;;
6940 esac
6941
6942 ## Default is /usr/lib.
6943 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6944
6945else
6946
6947 ## Some platforms don't use any of these files, so it is not
6948 ## appropriate to put this test outside the if block.
6949 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 6950 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
6951
6952fi
6953
6954
6955
6956LIB_MATH=-lm
6957LIB_STANDARD=
6958START_FILES=
6959
6960case $opsys in
6961 cygwin )
6962 LIB_MATH=
6963 START_FILES='pre-crt0.o'
6964 ;;
6965 darwin )
6966 ## Adding -lm confuses the dynamic linker, so omit it.
6967 LIB_MATH=
6968 START_FILES='pre-crt0.o'
6969 ;;
6970 freebsd )
6971 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6972 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6973 ;;
6974 gnu-linux | gnu-kfreebsd )
6975 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6976 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6977 ;;
6978 hpux10-20 | hpux11 )
6979 LIB_STANDARD=-lc
6980 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6981 ;;
6982 netbsd | openbsd )
6983 if test -f $CRT_DIR/crti.o; then
6984 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6985 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6986 else
6987 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6988 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6989 fi
6990 ;;
6991esac
6992
6993
6994
6995
6996
6997
6998
6999if test "${with_sound}" != "no"; then
7000 # Sound support for GNU/Linux and the free BSDs.
7001 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7002do :
7003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7004ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7005if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7006 cat >>confdefs.h <<_ACEOF
7007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008_ACEOF
7009 have_sound_header=yes
7010fi
7011
7012done
7013
7014 # Emulation library used on NetBSD.
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7016$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
d6974efa 7017if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7018 $as_echo_n "(cached) " >&6
7019else
7020 ac_check_lib_save_LIBS=$LIBS
7021LIBS="-lossaudio $LIBS"
7022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h. */
7024
7025/* Override any GCC internal prototype to avoid an error.
7026 Use char because int might match the return type of a GCC
7027 builtin and then its argument prototype would still apply. */
7028#ifdef __cplusplus
7029extern "C"
7030#endif
7031char _oss_ioctl ();
7032int
7033main ()
7034{
7035return _oss_ioctl ();
7036 ;
7037 return 0;
7038}
7039_ACEOF
7040if ac_fn_c_try_link "$LINENO"; then :
7041 ac_cv_lib_ossaudio__oss_ioctl=yes
7042else
7043 ac_cv_lib_ossaudio__oss_ioctl=no
7044fi
7045rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047LIBS=$ac_check_lib_save_LIBS
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7050$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
d6974efa 7051if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7052 LIBSOUND=-lossaudio
7053else
7054 LIBSOUND=
7055fi
7056
7057
7058
7059 ALSA_REQUIRED=1.0.0
7060 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7061
7062 succeeded=no
7063
7064 # Extract the first word of "pkg-config", so it can be a program name with args.
7065set dummy pkg-config; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 7068if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7069 $as_echo_n "(cached) " >&6
7070else
7071 case $PKG_CONFIG in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7074 ;;
7075 *)
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088 done
7089IFS=$as_save_IFS
7090
7091 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7092 ;;
7093esac
7094fi
7095PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7096if test -n "$PKG_CONFIG"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7098$as_echo "$PKG_CONFIG" >&6; }
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105
7106 if test "$PKG_CONFIG" = "no" ; then
7107 HAVE_ALSA=no
7108 else
7109 PKG_CONFIG_MIN_VERSION=0.9.0
7110 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7112$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7113
7114 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7116$as_echo "yes" >&6; }
7117 succeeded=yes
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7120$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7121 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7123$as_echo "$ALSA_CFLAGS" >&6; }
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7126$as_echo_n "checking ALSA_LIBS... " >&6; }
7127 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7129$as_echo "$ALSA_LIBS" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132$as_echo "no" >&6; }
7133 ALSA_CFLAGS=""
7134 ALSA_LIBS=""
7135 ## If we have a custom action on failure, don't print errors, but
7136 ## do set a variable so people can do so.
7137 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7138
7139 fi
7140
7141
7142
7143 else
7144 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7145 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7146 fi
7147 fi
7148
7149 if test $succeeded = yes; then
7150 HAVE_ALSA=yes
7151 else
7152 HAVE_ALSA=no
7153 fi
7154
7155 if test $HAVE_ALSA = yes; then
7156 SAVE_CFLAGS="$CFLAGS"
7157 SAVE_LDFLAGS="$LDFLAGS"
7158 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7159 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h. */
7162#include <asoundlib.h>
7163int
7164main ()
7165{
7166snd_lib_error_set_handler (0);
7167 ;
7168 return 0;
7169}
7170_ACEOF
7171if ac_fn_c_try_compile "$LINENO"; then :
7172 emacs_alsa_normal=yes
7173else
7174 emacs_alsa_normal=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 if test "$emacs_alsa_normal" != yes; then
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h. */
7180#include <alsa/asoundlib.h>
7181int
7182main ()
7183{
7184snd_lib_error_set_handler (0);
7185 ;
7186 return 0;
7187}
7188_ACEOF
7189if ac_fn_c_try_compile "$LINENO"; then :
7190 emacs_alsa_subdir=yes
7191else
7192 emacs_alsa_subdir=no
7193fi
7194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 if test "$emacs_alsa_subdir" != yes; then
2018939f 7196 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7197 fi
7198 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7199 fi
7200
7201 CFLAGS="$SAVE_CFLAGS"
7202 LDFLAGS="$SAVE_LDFLAGS"
7203 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7204 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7205
7206$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7207
7208 fi
7209
7210 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7211 case "$opsys" in
7212 gnu-linux|freebsd|netbsd)
7213
7214$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7215
7216 ;;
7217 esac
7218 fi
7219
7220
7221fi
7222
7223for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7224 linux/version.h sys/systeminfo.h limits.h \
7225 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7226 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7227 sys/utsname.h pwd.h utmp.h dirent.h util.h
7228do :
7229 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7230ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7232 cat >>confdefs.h <<_ACEOF
7233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234_ACEOF
7235
7236fi
7237
7238done
7239
7240
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7242$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h. */
7245#include <sys/personality.h>
7246int
7247main ()
7248{
7249personality (PER_LINUX32)
7250 ;
7251 return 0;
7252}
7253_ACEOF
7254if ac_fn_c_try_compile "$LINENO"; then :
7255 emacs_cv_personality_linux32=yes
7256else
7257 emacs_cv_personality_linux32=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7261$as_echo "$emacs_cv_personality_linux32" >&6; }
7262
7263if test $emacs_cv_personality_linux32 = yes; then
7264
7265$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7266
7267fi
7268
7269for ac_header in term.h
7270do :
7271 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
d6974efa 7272if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7273 cat >>confdefs.h <<_ACEOF
7274#define HAVE_TERM_H 1
7275_ACEOF
7276
7277fi
7278
7279done
7280
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7282$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 7283if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7284 $as_echo_n "(cached) " >&6
7285else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288#include <stdlib.h>
7289#include <stdarg.h>
7290#include <string.h>
7291#include <float.h>
7292
7293int
7294main ()
7295{
7296
7297 ;
7298 return 0;
7299}
7300_ACEOF
7301if ac_fn_c_try_compile "$LINENO"; then :
7302 ac_cv_header_stdc=yes
7303else
7304 ac_cv_header_stdc=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307
7308if test $ac_cv_header_stdc = yes; then
7309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <string.h>
7313
7314_ACEOF
7315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 $EGREP "memchr" >/dev/null 2>&1; then :
7317
7318else
7319 ac_cv_header_stdc=no
7320fi
7321rm -f conftest*
7322
7323fi
7324
7325if test $ac_cv_header_stdc = yes; then
7326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329#include <stdlib.h>
7330
7331_ACEOF
7332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7333 $EGREP "free" >/dev/null 2>&1; then :
7334
7335else
7336 ac_cv_header_stdc=no
7337fi
7338rm -f conftest*
7339
7340fi
7341
7342if test $ac_cv_header_stdc = yes; then
7343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7344 if test "$cross_compiling" = yes; then :
7345 :
7346else
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h. */
7349#include <ctype.h>
7350#include <stdlib.h>
7351#if ((' ' & 0x0FF) == 0x020)
7352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7354#else
7355# define ISLOWER(c) \
7356 (('a' <= (c) && (c) <= 'i') \
7357 || ('j' <= (c) && (c) <= 'r') \
7358 || ('s' <= (c) && (c) <= 'z'))
7359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7360#endif
7361
7362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7363int
7364main ()
7365{
7366 int i;
7367 for (i = 0; i < 256; i++)
7368 if (XOR (islower (i), ISLOWER (i))
7369 || toupper (i) != TOUPPER (i))
7370 return 2;
7371 return 0;
7372}
7373_ACEOF
7374if ac_fn_c_try_run "$LINENO"; then :
7375
7376else
7377 ac_cv_header_stdc=no
7378fi
7379rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7380 conftest.$ac_objext conftest.beam conftest.$ac_ext
7381fi
7382
7383fi
7384fi
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7386$as_echo "$ac_cv_header_stdc" >&6; }
7387if test $ac_cv_header_stdc = yes; then
7388
7389$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7390
7391fi
7392
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7394$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
d6974efa 7395if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7396 $as_echo_n "(cached) " >&6
7397else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h. */
7400#include <sys/types.h>
7401#include <sys/time.h>
7402#include <time.h>
7403
7404int
7405main ()
7406{
7407if ((struct tm *) 0)
7408return 0;
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"; then :
7414 ac_cv_header_time=yes
7415else
7416 ac_cv_header_time=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7421$as_echo "$ac_cv_header_time" >&6; }
7422if test $ac_cv_header_time = yes; then
7423
7424$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7425
7426fi
7427
7428ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
d6974efa 7429if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7430 ac_have_decl=1
7431else
7432 ac_have_decl=0
7433fi
7434
7435cat >>confdefs.h <<_ACEOF
7436#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7437_ACEOF
7438
7439if test $ac_cv_have_decl_sys_siglist != yes; then
7440 # For Tru64, at least:
7441 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
d6974efa 7442if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7443 ac_have_decl=1
7444else
7445 ac_have_decl=0
7446fi
7447
7448cat >>confdefs.h <<_ACEOF
7449#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7450_ACEOF
7451
7452 if test $ac_cv_have_decl___sys_siglist = yes; then
7453
7454$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7455
7456 fi
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7459$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d6974efa 7460if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7461 $as_echo_n "(cached) " >&6
7462else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h. */
7465#include <sys/types.h>
7466#include <sys/wait.h>
7467#ifndef WEXITSTATUS
7468# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7469#endif
7470#ifndef WIFEXITED
7471# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7472#endif
7473
7474int
7475main ()
7476{
7477 int s;
7478 wait (&s);
7479 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7480 ;
7481 return 0;
7482}
7483_ACEOF
7484if ac_fn_c_try_compile "$LINENO"; then :
7485 ac_cv_header_sys_wait_h=yes
7486else
7487 ac_cv_header_sys_wait_h=no
7488fi
7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490fi
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7492$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7493if test $ac_cv_header_sys_wait_h = yes; then
7494
7495$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7496
7497fi
7498
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7501$as_echo_n "checking for struct utimbuf... " >&6; }
d6974efa 7502if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7503 $as_echo_n "(cached) " >&6
7504else
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h. */
7507#ifdef TIME_WITH_SYS_TIME
7508#include <sys/time.h>
7509#include <time.h>
7510#else
7511#ifdef HAVE_SYS_TIME_H
7512#include <sys/time.h>
7513#else
7514#include <time.h>
7515#endif
7516#endif
7517#ifdef HAVE_UTIME_H
7518#include <utime.h>
7519#endif
7520int
7521main ()
7522{
7523static struct utimbuf x; x.actime = x.modtime;
7524 ;
7525 return 0;
7526}
7527_ACEOF
7528if ac_fn_c_try_compile "$LINENO"; then :
7529 emacs_cv_struct_utimbuf=yes
7530else
7531 emacs_cv_struct_utimbuf=no
7532fi
7533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534fi
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7536$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7537if test $emacs_cv_struct_utimbuf = yes; then
7538
7539$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7540
7541fi
7542
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7544$as_echo_n "checking return type of signal handlers... " >&6; }
d6974efa 7545if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7546 $as_echo_n "(cached) " >&6
7547else
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549/* end confdefs.h. */
7550#include <sys/types.h>
7551#include <signal.h>
7552
7553int
7554main ()
7555{
7556return *(signal (0, 0)) (0) == 1;
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_compile "$LINENO"; then :
7562 ac_cv_type_signal=int
7563else
7564 ac_cv_type_signal=void
7565fi
7566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567fi
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7569$as_echo "$ac_cv_type_signal" >&6; }
7570
7571cat >>confdefs.h <<_ACEOF
7572#define RETSIGTYPE $ac_cv_type_signal
7573_ACEOF
7574
7575
7576
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7578$as_echo_n "checking for speed_t... " >&6; }
d6974efa 7579if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7580 $as_echo_n "(cached) " >&6
7581else
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583/* end confdefs.h. */
7584#include <termios.h>
7585int
7586main ()
7587{
7588speed_t x = 1;
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593if ac_fn_c_try_compile "$LINENO"; then :
7594 emacs_cv_speed_t=yes
7595else
7596 emacs_cv_speed_t=no
7597fi
7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7601$as_echo "$emacs_cv_speed_t" >&6; }
7602if test $emacs_cv_speed_t = yes; then
7603
7604$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7605
7606fi
7607
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7609$as_echo_n "checking for struct timeval... " >&6; }
d6974efa 7610if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7611 $as_echo_n "(cached) " >&6
7612else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h. */
7615#ifdef TIME_WITH_SYS_TIME
7616#include <sys/time.h>
7617#include <time.h>
7618#else
7619#ifdef HAVE_SYS_TIME_H
7620#include <sys/time.h>
7621#else
7622#include <time.h>
7623#endif
7624#endif
7625int
7626main ()
7627{
7628static struct timeval x; x.tv_sec = x.tv_usec;
7629 ;
7630 return 0;
7631}
7632_ACEOF
7633if ac_fn_c_try_compile "$LINENO"; then :
7634 emacs_cv_struct_timeval=yes
7635else
7636 emacs_cv_struct_timeval=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7641$as_echo "$emacs_cv_struct_timeval" >&6; }
7642HAVE_TIMEVAL=$emacs_cv_struct_timeval
7643if test $emacs_cv_struct_timeval = yes; then
7644
7645$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7646
7647fi
7648
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7650$as_echo_n "checking for struct exception... " >&6; }
d6974efa 7651if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7652 $as_echo_n "(cached) " >&6
7653else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h. */
7656#include <math.h>
7657int
7658main ()
7659{
7660static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7661 ;
7662 return 0;
7663}
7664_ACEOF
7665if ac_fn_c_try_compile "$LINENO"; then :
7666 emacs_cv_struct_exception=yes
7667else
7668 emacs_cv_struct_exception=no
7669fi
7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7671fi
7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7673$as_echo "$emacs_cv_struct_exception" >&6; }
7674HAVE_EXCEPTION=$emacs_cv_struct_exception
7675if test $emacs_cv_struct_exception != yes; then
7676
7677$as_echo "#define NO_MATHERR 1" >>confdefs.h
7678
7679fi
7680
7681for ac_header in sys/socket.h
7682do :
7683 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
d6974efa 7684if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7685 cat >>confdefs.h <<_ACEOF
7686#define HAVE_SYS_SOCKET_H 1
7687_ACEOF
7688
7689fi
7690
7691done
7692
7693for ac_header in net/if.h
7694do :
7695 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7696#if HAVE_SYS_SOCKET_H
7697#include <sys/socket.h>
7698#endif
7699"
d6974efa 7700if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7701 cat >>confdefs.h <<_ACEOF
7702#define HAVE_NET_IF_H 1
7703_ACEOF
7704
7705fi
7706
7707done
7708
7709
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7711$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6974efa 7712if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
7713 $as_echo_n "(cached) " >&6
7714else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716/* end confdefs.h. */
7717#include <sys/types.h>
7718#include <time.h>
7719
7720int
7721main ()
7722{
7723struct tm tm;
7724 int *p = &tm.tm_sec;
7725 return !p;
7726 ;
7727 return 0;
7728}
7729_ACEOF
7730if ac_fn_c_try_compile "$LINENO"; then :
7731 ac_cv_struct_tm=time.h
7732else
7733 ac_cv_struct_tm=sys/time.h
7734fi
7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7738$as_echo "$ac_cv_struct_tm" >&6; }
7739if test $ac_cv_struct_tm = sys/time.h; then
7740
7741$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7742
7743fi
7744
7745ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7746#include <$ac_cv_struct_tm>
7747
7748"
d6974efa 7749if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
7750
7751cat >>confdefs.h <<_ACEOF
7752#define HAVE_STRUCT_TM_TM_ZONE 1
7753_ACEOF
7754
7755
7756fi
7757
7758if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7759
7760$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7761
7762else
7763 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7764"
d6974efa 7765if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
7766 ac_have_decl=1
7767else
7768 ac_have_decl=0
7769fi
7770
7771cat >>confdefs.h <<_ACEOF
7772#define HAVE_DECL_TZNAME $ac_have_decl
7773_ACEOF
7774
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7776$as_echo_n "checking for tzname... " >&6; }
d6974efa 7777if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
7778 $as_echo_n "(cached) " >&6
7779else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h. */
7782#include <time.h>
7783#if !HAVE_DECL_TZNAME
7784extern char *tzname[];
7785#endif
7786
7787int
7788main ()
7789{
7790return tzname[0][0];
7791 ;
7792 return 0;
7793}
7794_ACEOF
7795if ac_fn_c_try_link "$LINENO"; then :
7796 ac_cv_var_tzname=yes
7797else
7798 ac_cv_var_tzname=no
7799fi
7800rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7804$as_echo "$ac_cv_var_tzname" >&6; }
7805 if test $ac_cv_var_tzname = yes; then
7806
7807$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7808
7809 fi
7810fi
7811
7812ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7813"
d6974efa 7814if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
7815
7816$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7817
7818fi
7819
7820ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7821#if HAVE_SYS_SOCKET_H
7822#include <sys/socket.h>
7823#endif
7824#if HAVE_NET_IF_H
7825#include <net/if.h>
7826#endif
7827"
d6974efa 7828if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
7829
7830cat >>confdefs.h <<_ACEOF
7831#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7832_ACEOF
7833
7834
7835fi
7836ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7837#if HAVE_SYS_SOCKET_H
7838#include <sys/socket.h>
7839#endif
7840#if HAVE_NET_IF_H
7841#include <net/if.h>
7842#endif
7843"
d6974efa 7844if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
7845
7846cat >>confdefs.h <<_ACEOF
7847#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7848_ACEOF
7849
7850
7851fi
7852ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7853#if HAVE_SYS_SOCKET_H
7854#include <sys/socket.h>
7855#endif
7856#if HAVE_NET_IF_H
7857#include <net/if.h>
7858#endif
7859"
d6974efa 7860if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
7861
7862cat >>confdefs.h <<_ACEOF
7863#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7864_ACEOF
7865
7866
7867fi
7868ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7869#if HAVE_SYS_SOCKET_H
7870#include <sys/socket.h>
7871#endif
7872#if HAVE_NET_IF_H
7873#include <net/if.h>
7874#endif
7875"
d6974efa 7876if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
7877
7878cat >>confdefs.h <<_ACEOF
7879#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7880_ACEOF
7881
7882
7883fi
7884ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7885#if HAVE_SYS_SOCKET_H
7886#include <sys/socket.h>
7887#endif
7888#if HAVE_NET_IF_H
7889#include <net/if.h>
7890#endif
7891"
d6974efa 7892if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
7893
7894cat >>confdefs.h <<_ACEOF
7895#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7896_ACEOF
7897
7898
7899fi
7900
7901
7902
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7904$as_echo_n "checking for function prototypes... " >&6; }
7905if test "$ac_cv_prog_cc_c89" != no; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7907$as_echo "yes" >&6; }
7908
7909$as_echo "#define PROTOTYPES 1" >>confdefs.h
7910
7911
7912$as_echo "#define __PROTOTYPES 1" >>confdefs.h
7913
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7920$as_echo_n "checking for working volatile... " >&6; }
d6974efa 7921if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
7922 $as_echo_n "(cached) " >&6
7923else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h. */
7926
7927int
7928main ()
7929{
7930
7931volatile int x;
7932int * volatile y = (int *) 0;
7933return !x && !y;
7934 ;
7935 return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_compile "$LINENO"; then :
7939 ac_cv_c_volatile=yes
7940else
7941 ac_cv_c_volatile=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944fi
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7946$as_echo "$ac_cv_c_volatile" >&6; }
7947if test $ac_cv_c_volatile = no; then
7948
7949$as_echo "#define volatile /**/" >>confdefs.h
7950
7951fi
7952
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7954$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6974efa 7955if ${ac_cv_c_const+:} false; then :
067d23c9
KY
7956 $as_echo_n "(cached) " >&6
7957else
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959/* end confdefs.h. */
7960
7961int
7962main ()
7963{
7964/* FIXME: Include the comments suggested by Paul. */
7965#ifndef __cplusplus
7966 /* Ultrix mips cc rejects this. */
7967 typedef int charset[2];
7968 const charset cs;
7969 /* SunOS 4.1.1 cc rejects this. */
7970 char const *const *pcpcc;
7971 char **ppc;
7972 /* NEC SVR4.0.2 mips cc rejects this. */
7973 struct point {int x, y;};
7974 static struct point const zero = {0,0};
7975 /* AIX XL C 1.02.0.0 rejects this.
7976 It does not let you subtract one const X* pointer from another in
7977 an arm of an if-expression whose if-part is not a constant
7978 expression */
7979 const char *g = "string";
7980 pcpcc = &g + (g ? g-g : 0);
7981 /* HPUX 7.0 cc rejects these. */
7982 ++pcpcc;
7983 ppc = (char**) pcpcc;
7984 pcpcc = (char const *const *) ppc;
7985 { /* SCO 3.2v4 cc rejects this. */
7986 char *t;
7987 char const *s = 0 ? (char *) 0 : (char const *) 0;
7988
7989 *t++ = 0;
7990 if (s) return 0;
7991 }
7992 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7993 int x[] = {25, 17};
7994 const int *foo = &x[0];
7995 ++foo;
7996 }
7997 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7998 typedef const int *iptr;
7999 iptr p = 0;
8000 ++p;
8001 }
8002 { /* AIX XL C 1.02.0.0 rejects this saying
8003 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8004 struct s { int j; const int *ap[3]; };
8005 struct s *b; b->j = 5;
8006 }
8007 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8008 const int foo = 10;
8009 if (!foo) return 0;
8010 }
8011 return !cs[0] && !zero.x;
8012#endif
8013
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"; then :
8019 ac_cv_c_const=yes
8020else
8021 ac_cv_c_const=no
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8026$as_echo "$ac_cv_c_const" >&6; }
8027if test $ac_cv_c_const = no; then
8028
8029$as_echo "#define const /**/" >>confdefs.h
8030
8031fi
8032
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8034$as_echo_n "checking for void * support... " >&6; }
d6974efa 8035if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8036 $as_echo_n "(cached) " >&6
8037else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h. */
8040
8041int
8042main ()
8043{
8044void * foo;
8045 ;
8046 return 0;
8047}
8048_ACEOF
8049if ac_fn_c_try_compile "$LINENO"; then :
8050 emacs_cv_void_star=yes
8051else
8052 emacs_cv_void_star=no
8053fi
8054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8057$as_echo "$emacs_cv_void_star" >&6; }
8058if test $emacs_cv_void_star = yes; then
8059 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8060
8061else
8062 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8063
8064fi
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8067$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6974efa 8068if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8069 $as_echo_n "(cached) " >&6
8070else
8071 ac_cv_c_bigendian=unknown
8072 # See if we're dealing with a universal compiler.
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h. */
8075#ifndef __APPLE_CC__
8076 not a universal capable compiler
8077 #endif
8078 typedef int dummy;
8079
8080_ACEOF
8081if ac_fn_c_try_compile "$LINENO"; then :
8082
8083 # Check for potential -arch flags. It is not universal unless
8084 # there are at least two -arch flags with different values.
8085 ac_arch=
8086 ac_prev=
8087 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8088 if test -n "$ac_prev"; then
8089 case $ac_word in
8090 i?86 | x86_64 | ppc | ppc64)
8091 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8092 ac_arch=$ac_word
8093 else
8094 ac_cv_c_bigendian=universal
8095 break
8096 fi
8097 ;;
8098 esac
8099 ac_prev=
8100 elif test "x$ac_word" = "x-arch"; then
8101 ac_prev=arch
8102 fi
8103 done
8104fi
8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 if test $ac_cv_c_bigendian = unknown; then
8107 # See if sys/param.h defines the BYTE_ORDER macro.
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h. */
8110#include <sys/types.h>
8111 #include <sys/param.h>
8112
8113int
8114main ()
8115{
8116#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8117 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8118 && LITTLE_ENDIAN)
8119 bogus endian macros
8120 #endif
8121
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"; then :
8127 # It does; now see whether it defined to BIG_ENDIAN or not.
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h. */
8130#include <sys/types.h>
8131 #include <sys/param.h>
8132
8133int
8134main ()
8135{
8136#if BYTE_ORDER != BIG_ENDIAN
8137 not big endian
8138 #endif
8139
8140 ;
8141 return 0;
8142}
8143_ACEOF
8144if ac_fn_c_try_compile "$LINENO"; then :
8145 ac_cv_c_bigendian=yes
8146else
8147 ac_cv_c_bigendian=no
8148fi
8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150fi
8151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 fi
8153 if test $ac_cv_c_bigendian = unknown; then
8154 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h. */
8157#include <limits.h>
8158
8159int
8160main ()
8161{
8162#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8163 bogus endian macros
8164 #endif
8165
8166 ;
8167 return 0;
8168}
8169_ACEOF
8170if ac_fn_c_try_compile "$LINENO"; then :
8171 # It does; now see whether it defined to _BIG_ENDIAN or not.
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h. */
8174#include <limits.h>
8175
8176int
8177main ()
8178{
8179#ifndef _BIG_ENDIAN
8180 not big endian
8181 #endif
8182
8183 ;
8184 return 0;
8185}
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188 ac_cv_c_bigendian=yes
8189else
8190 ac_cv_c_bigendian=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193fi
8194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 fi
8196 if test $ac_cv_c_bigendian = unknown; then
8197 # Compile a test program.
8198 if test "$cross_compiling" = yes; then :
8199 # Try to guess by grepping values from an object file.
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h. */
8202short int ascii_mm[] =
8203 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8204 short int ascii_ii[] =
8205 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8206 int use_ascii (int i) {
8207 return ascii_mm[i] + ascii_ii[i];
8208 }
8209 short int ebcdic_ii[] =
8210 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8211 short int ebcdic_mm[] =
8212 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8213 int use_ebcdic (int i) {
8214 return ebcdic_mm[i] + ebcdic_ii[i];
8215 }
8216 extern int foo;
8217
8218int
8219main ()
8220{
8221return use_ascii (foo) == use_ebcdic (foo);
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226if ac_fn_c_try_compile "$LINENO"; then :
8227 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8228 ac_cv_c_bigendian=yes
8229 fi
8230 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8231 if test "$ac_cv_c_bigendian" = unknown; then
8232 ac_cv_c_bigendian=no
8233 else
8234 # finding both strings is unlikely to happen, but who knows?
8235 ac_cv_c_bigendian=unknown
8236 fi
8237 fi
8238fi
8239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240else
8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h. */
8243$ac_includes_default
8244int
8245main ()
8246{
8247
8248 /* Are we little or big endian? From Harbison&Steele. */
8249 union
8250 {
8251 long int l;
8252 char c[sizeof (long int)];
8253 } u;
8254 u.l = 1;
8255 return u.c[sizeof (long int) - 1] == 1;
8256
8257 ;
8258 return 0;
8259}
8260_ACEOF
8261if ac_fn_c_try_run "$LINENO"; then :
8262 ac_cv_c_bigendian=no
8263else
8264 ac_cv_c_bigendian=yes
8265fi
8266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8267 conftest.$ac_objext conftest.beam conftest.$ac_ext
8268fi
8269
8270 fi
8271fi
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8273$as_echo "$ac_cv_c_bigendian" >&6; }
8274 case $ac_cv_c_bigendian in #(
8275 yes)
8276 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8277;; #(
8278 no)
8279 ;; #(
8280 universal)
8281
8282$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8283
8284 ;; #(
8285 *)
2018939f 8286 as_fn_error $? "unknown endianness
d6974efa 8287 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8288 esac
8289
8290
7cae64b4
PE
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8292$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
d6974efa 8293if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8294 $as_echo_n "(cached) " >&6
8295else
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297/* end confdefs.h. */
8298char __attribute__ ((__aligned__ (1 << 3))) c;
8299int
8300main ()
8301{
8302
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307if ac_fn_c_try_compile "$LINENO"; then :
8308 emacs_cv_attribute_aligned=yes
8309else
8310 emacs_cv_attribute_aligned=no
8311fi
8312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313fi
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8315$as_echo "$emacs_cv_attribute_aligned" >&6; }
8316if test $emacs_cv_attribute_aligned = yes; then
8317
8318$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8319
8320fi
8321
067d23c9
KY
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8323$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8324set x ${MAKE-make}
8325ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 8326if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8327 $as_echo_n "(cached) " >&6
8328else
8329 cat >conftest.make <<\_ACEOF
8330SHELL = /bin/sh
8331all:
8332 @echo '@@@%%%=$(MAKE)=@@@%%%'
8333_ACEOF
2018939f 8334# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8335case `${MAKE-make} -f conftest.make 2>/dev/null` in
8336 *@@@%%%=?*=@@@%%%*)
8337 eval ac_cv_prog_make_${ac_make}_set=yes;;
8338 *)
8339 eval ac_cv_prog_make_${ac_make}_set=no;;
8340esac
8341rm -f conftest.make
8342fi
8343if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8345$as_echo "yes" >&6; }
8346 SET_MAKE=
8347else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350 SET_MAKE="MAKE=${MAKE-make}"
8351fi
8352
8353
8354DEPFLAGS=
8355MKDEPDIR=":"
8356deps_frag=deps.mk
8357if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8359$as_echo_n "checking whether we are using GNU Make... " >&6; }
8360 HAVE_GNU_MAKE=no
8361 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8362 if test "x$testval" != x; then
8363 HAVE_GNU_MAKE=yes
8364 else
8365 ac_enable_autodepend=no
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8368$as_echo "$HAVE_GNU_MAKE" >&6; }
8369 if test $HAVE_GNU_MAKE = yes; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8371$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8372 SAVE_CFLAGS="$CFLAGS"
8373 CFLAGS="$CFLAGS -MMD -MF deps.d"
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h. */
8376
8377int
8378main ()
8379{
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_compile "$LINENO"; then :
8386
8387else
8388 ac_enable_autodepend=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 CFLAGS="$SAVE_CFLAGS"
8392 test -f deps.d || ac_enable_autodepend=no
8393 rm -rf deps.d
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8395$as_echo "$ac_enable_autodepend" >&6; }
8396 fi
8397 if test $ac_enable_autodepend = yes; then
8398 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8399 ## In parallel builds, another make might create depdir between
8400 ## the first test and mkdir, so stick another test on the end.
8401 ## Or use mkinstalldirs? mkdir -p is not portable.
8402 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8403 deps_frag=autodeps.mk
8404 fi
8405fi
8406deps_frag=$srcdir/src/$deps_frag
8407
8408
8409
8410
8411
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8413$as_echo_n "checking for long file names... " >&6; }
d6974efa 8414if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8415 $as_echo_n "(cached) " >&6
8416else
8417 ac_cv_sys_long_file_names=yes
8418# Test for long file names in all the places we know might matter:
8419# . the current directory, where building will happen
8420# $prefix/lib where we will be installing things
8421# $exec_prefix/lib likewise
8422# $TMPDIR if set, where it might want to write temporary files
8423# /tmp where it might want to write temporary files
8424# /var/tmp likewise
8425# /usr/tmp likewise
8426for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8427 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8428 # in the usual case where exec_prefix is '${prefix}'.
8429 case $ac_dir in #(
8430 . | /* | ?:[\\/]*) ;; #(
8431 *) continue;;
8432 esac
8433 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8434 ac_xdir=$ac_dir/cf$$
8435 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8436 ac_tf1=$ac_xdir/conftest9012345
8437 ac_tf2=$ac_xdir/conftest9012346
8438 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8439 ac_cv_sys_long_file_names=no
8440 rm -f -r "$ac_xdir" 2>/dev/null
8441 test $ac_cv_sys_long_file_names = no && break
8442done
8443fi
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8445$as_echo "$ac_cv_sys_long_file_names" >&6; }
8446if test $ac_cv_sys_long_file_names = yes; then
8447
8448$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8449
8450fi
8451
8452
8453#### Choose a window system.
8454
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8456$as_echo_n "checking for X... " >&6; }
8457
8458
8459# Check whether --with-x was given.
8460if test "${with_x+set}" = set; then :
8461 withval=$with_x;
8462fi
8463
8464# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8465if test "x$with_x" = xno; then
8466 # The user explicitly disabled X.
8467 have_x=disabled
8468else
8469 case $x_includes,$x_libraries in #(
d6974efa
PE
8470 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8471 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8472 $as_echo_n "(cached) " >&6
8473else
8474 # One or both of the vars are not set, and there is no cached value.
8475ac_x_includes=no ac_x_libraries=no
8476rm -f -r conftest.dir
8477if mkdir conftest.dir; then
8478 cd conftest.dir
8479 cat >Imakefile <<'_ACEOF'
8480incroot:
8481 @echo incroot='${INCROOT}'
8482usrlibdir:
8483 @echo usrlibdir='${USRLIBDIR}'
8484libdir:
8485 @echo libdir='${LIBDIR}'
8486_ACEOF
8487 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8488 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8489 for ac_var in incroot usrlibdir libdir; do
8490 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8491 done
8492 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8493 for ac_extension in a so sl dylib la dll; do
8494 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8495 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8496 ac_im_usrlibdir=$ac_im_libdir; break
8497 fi
8498 done
8499 # Screen out bogus values from the imake configuration. They are
8500 # bogus both because they are the default anyway, and because
8501 # using them would break gcc on systems where it needs fixed includes.
8502 case $ac_im_incroot in
8503 /usr/include) ac_x_includes= ;;
8504 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8505 esac
8506 case $ac_im_usrlibdir in
8507 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8508 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8509 esac
8510 fi
8511 cd ..
8512 rm -f -r conftest.dir
8513fi
8514
8515# Standard set of common directories for X headers.
8516# Check X11 before X11Rn because it is often a symlink to the current release.
8517ac_x_header_dirs='
8518/usr/X11/include
8519/usr/X11R7/include
8520/usr/X11R6/include
8521/usr/X11R5/include
8522/usr/X11R4/include
8523
8524/usr/include/X11
8525/usr/include/X11R7
8526/usr/include/X11R6
8527/usr/include/X11R5
8528/usr/include/X11R4
8529
8530/usr/local/X11/include
8531/usr/local/X11R7/include
8532/usr/local/X11R6/include
8533/usr/local/X11R5/include
8534/usr/local/X11R4/include
8535
8536/usr/local/include/X11
8537/usr/local/include/X11R7
8538/usr/local/include/X11R6
8539/usr/local/include/X11R5
8540/usr/local/include/X11R4
8541
8542/usr/X386/include
8543/usr/x386/include
8544/usr/XFree86/include/X11
8545
8546/usr/include
8547/usr/local/include
8548/usr/unsupported/include
8549/usr/athena/include
8550/usr/local/x11r5/include
8551/usr/lpp/Xamples/include
8552
8553/usr/openwin/include
8554/usr/openwin/share/include'
8555
8556if test "$ac_x_includes" = no; then
8557 # Guess where to find include files, by looking for Xlib.h.
8558 # First, try using that file with no special directory specified.
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h. */
8561#include <X11/Xlib.h>
8562_ACEOF
8563if ac_fn_c_try_cpp "$LINENO"; then :
8564 # We can compile using X headers with no special include directory.
8565ac_x_includes=
8566else
8567 for ac_dir in $ac_x_header_dirs; do
8568 if test -r "$ac_dir/X11/Xlib.h"; then
8569 ac_x_includes=$ac_dir
8570 break
8571 fi
8572done
8573fi
2018939f 8574rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8575fi # $ac_x_includes = no
8576
8577if test "$ac_x_libraries" = no; then
8578 # Check for the libraries.
8579 # See if we find them without any special options.
8580 # Don't add to $LIBS permanently.
8581 ac_save_LIBS=$LIBS
8582 LIBS="-lX11 $LIBS"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h. */
8585#include <X11/Xlib.h>
8586int
8587main ()
8588{
8589XrmInitialize ()
8590 ;
8591 return 0;
8592}
8593_ACEOF
8594if ac_fn_c_try_link "$LINENO"; then :
8595 LIBS=$ac_save_LIBS
8596# We can link X programs with no special library path.
8597ac_x_libraries=
8598else
8599 LIBS=$ac_save_LIBS
8600for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8601do
8602 # Don't even attempt the hair of trying to link an X program!
8603 for ac_extension in a so sl dylib la dll; do
8604 if test -r "$ac_dir/libX11.$ac_extension"; then
8605 ac_x_libraries=$ac_dir
8606 break 2
8607 fi
8608 done
8609done
8610fi
8611rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
8613fi # $ac_x_libraries = no
8614
8615case $ac_x_includes,$ac_x_libraries in #(
8616 no,* | *,no | *\'*)
8617 # Didn't find X, or a directory has "'" in its name.
8618 ac_cv_have_x="have_x=no";; #(
8619 *)
8620 # Record where we found X for the cache.
8621 ac_cv_have_x="have_x=yes\
8622 ac_x_includes='$ac_x_includes'\
8623 ac_x_libraries='$ac_x_libraries'"
8624esac
8625fi
8626;; #(
8627 *) have_x=yes;;
8628 esac
8629 eval "$ac_cv_have_x"
8630fi # $with_x != no
8631
8632if test "$have_x" != yes; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8634$as_echo "$have_x" >&6; }
8635 no_x=yes
8636else
8637 # If each of the values was on the command line, it overrides each guess.
8638 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8639 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8640 # Update the cache value to reflect the command line values.
8641 ac_cv_have_x="have_x=yes\
8642 ac_x_includes='$x_includes'\
8643 ac_x_libraries='$x_libraries'"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8645$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8646fi
8647
8648if test "$no_x" = yes; then
8649 window_system=none
8650else
8651 window_system=x11
8652fi
8653
8654## Workaround for bug in autoconf <= 2.62.
8655## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8656## No need to do anything special for these standard directories.
8657if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8658
8659 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8660
8661fi
8662
8663LD_SWITCH_X_SITE_AUX=
8664LD_SWITCH_X_SITE_AUX_RPATH=
8665if test "${x_libraries}" != NONE; then
8666 if test -n "${x_libraries}"; then
8667 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8668 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8669 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8670 fi
8671 x_default_search_path=""
8672 x_search_path=${x_libraries}
8673 if test -z "${x_search_path}"; then
8674 x_search_path=/usr/lib
8675 fi
8676 for x_library in `echo ${x_search_path}: | \
8677 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8678 x_search_path="\
8679${x_library}/X11/%L/%T/%N%C%S:\
8680${x_library}/X11/%l/%T/%N%C%S:\
8681${x_library}/X11/%T/%N%C%S:\
8682${x_library}/X11/%L/%T/%N%S:\
8683${x_library}/X11/%l/%T/%N%S:\
8684${x_library}/X11/%T/%N%S"
8685 if test x"${x_default_search_path}" = x; then
8686 x_default_search_path=${x_search_path}
8687 else
8688 x_default_search_path="${x_search_path}:${x_default_search_path}"
8689 fi
8690 done
8691fi
8692
8693
8694
8695if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8696 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8697fi
8698
8699if test x"${x_includes}" = x; then
8700 bitmapdir=/usr/include/X11/bitmaps
8701else
8702 # accumulate include directories that have X11 bitmap subdirectories
8703 bmd_acc="dummyval"
8704 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8705 if test -d "${bmd}/X11/bitmaps"; then
8706 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8707 fi
8708 if test -d "${bmd}/bitmaps"; then
8709 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8710 fi
8711 done
8712 if test ${bmd_acc} != "dummyval"; then
8713 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8714 fi
8715fi
8716
8717HAVE_NS=no
8718NS_IMPL_COCOA=no
8719NS_IMPL_GNUSTEP=no
8720tmp_CPPFLAGS="$CPPFLAGS"
8721tmp_CFLAGS="$CFLAGS"
8722CPPFLAGS="$CPPFLAGS -x objective-c"
8723CFLAGS="$CFLAGS -x objective-c"
8724TEMACS_LDFLAGS2="\${LDFLAGS}"
8725if test "${with_ns}" != no; then
8726 if test "${opsys}" = darwin; then
8727 NS_IMPL_COCOA=yes
8728 ns_appdir=`pwd`/nextstep/Emacs.app
8729 ns_appbindir=${ns_appdir}/Contents/MacOS/
8730 ns_appresdir=${ns_appdir}/Contents/Resources
8731 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8732 elif test -f $GNUSTEP_CONFIG_FILE; then
8733 NS_IMPL_GNUSTEP=yes
8734 ns_appdir=`pwd`/nextstep/Emacs.app
8735 ns_appbindir=${ns_appdir}/
8736 ns_appresdir=${ns_appdir}/Resources
8737 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8738 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8739 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8740 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8741 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8742 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8743 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8744 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8745 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8746 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8747 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8748 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8749 LIB_STANDARD=
8750 START_FILES=
8751 TEMACS_LDFLAGS2=
8752 fi
8753 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
d6974efa 8754if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
8755 HAVE_NS=yes
8756else
2018939f 8757 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
8758 files are missing or cannot be compiled." "$LINENO" 5
8759fi
8760
8761
8762 NS_HAVE_NSINTEGER=yes
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764/* end confdefs.h. */
8765#include <Foundation/NSObjCRuntime.h>
8766int
8767main ()
8768{
8769NSInteger i;
8770 ;
8771 return 0;
8772}
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"; then :
8775 ns_have_nsinteger=yes
8776else
8777 ns_have_nsinteger=no
8778fi
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 if test $ns_have_nsinteger = no; then
8781 NS_HAVE_NSINTEGER=no
8782 fi
8783fi
8784
8785
8786ns_frag=/dev/null
8787NS_OBJ=
8788NS_SUPPORT=
8789if test "${HAVE_NS}" = yes; then
8790 window_system=nextstep
8791 with_xft=no
8792 # set up packaging dirs
8793 exec_prefix=${ns_appbindir}
8794 libexecdir=${ns_appbindir}/libexec
8795 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8796 prefix=${ns_appresdir}
8797 fi
8798 ns_frag=$srcdir/src/ns.mk
8799 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8800 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8801fi
8802CFLAGS="$tmp_CFLAGS"
8803CPPFLAGS="$tmp_CPPFLAGS"
8804
8805
8806
8807
8808
8809case "${window_system}" in
8810 x11 )
8811 HAVE_X_WINDOWS=yes
8812 HAVE_X11=yes
8813 case "${with_x_toolkit}" in
8814 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8815 motif ) USE_X_TOOLKIT=MOTIF ;;
8816 gtk ) with_gtk=yes
8817 USE_X_TOOLKIT=none ;;
8818 gtk3 ) with_gtk3=yes
8819 USE_X_TOOLKIT=none ;;
8820 no ) USE_X_TOOLKIT=none ;;
8821 * ) USE_X_TOOLKIT=maybe ;;
8822 esac
8823 ;;
8824 nextstep | none )
8825 HAVE_X_WINDOWS=no
8826 HAVE_X11=no
8827 USE_X_TOOLKIT=none
8828 ;;
8829esac
8830
8831if test "$window_system" = none && test "X$with_x" != "Xno"; then
8832 # Extract the first word of "X", so it can be a program name with args.
8833set dummy X; ac_word=$2
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 8836if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
8837 $as_echo_n "(cached) " >&6
8838else
8839 if test -n "$HAVE_XSERVER"; then
8840 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_HAVE_XSERVER="true"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8852 fi
8853done
8854 done
8855IFS=$as_save_IFS
8856
8857 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8858fi
8859fi
8860HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8861if test -n "$HAVE_XSERVER"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8863$as_echo "$HAVE_XSERVER" >&6; }
8864else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866$as_echo "no" >&6; }
8867fi
8868
8869
8870 if test "$HAVE_XSERVER" = true ||
8871 test -n "$DISPLAY" ||
8872 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 8873 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
8874were found. You should install the relevant development files for X
8875and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8876sure you have development files for image handling, i.e.
8877tiff, gif, jpeg, png and xpm.
8878If you are sure you want Emacs compiled without X window support, pass
8879 --without-x
8880to configure." "$LINENO" 5
8881 fi
8882fi
8883
8884### If we're using X11, we should use the X menu package.
8885HAVE_MENUS=no
8886case ${HAVE_X11} in
8887 yes ) HAVE_MENUS=yes ;;
8888esac
8889
8890# Do the opsystem or machine files prohibit the use of the GNU malloc?
8891# Assume not, until told otherwise.
8892GNU_MALLOC=yes
8893doug_lea_malloc=yes
8894ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
d6974efa 8895if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
8896
8897else
8898 doug_lea_malloc=no
8899fi
8900
8901ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
d6974efa 8902if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
8903
8904else
8905 doug_lea_malloc=no
8906fi
8907
8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8909$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
d6974efa 8910if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
8911 $as_echo_n "(cached) " >&6
8912else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h. */
8915extern void (* __after_morecore_hook)();
8916int
8917main ()
8918{
8919__after_morecore_hook = 0
8920 ;
8921 return 0;
8922}
8923_ACEOF
8924if ac_fn_c_try_link "$LINENO"; then :
8925 emacs_cv_var___after_morecore_hook=yes
8926else
8927 emacs_cv_var___after_morecore_hook=no
8928fi
8929rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8933$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8934if test $emacs_cv_var___after_morecore_hook = no; then
8935 doug_lea_malloc=no
8936fi
8937
8938
8939system_malloc=no
8940case "$opsys" in
8941 ## darwin ld insists on the use of malloc routines in the System framework.
8942 darwin|sol2-10) system_malloc=yes ;;
8943esac
8944
8945if test "${system_malloc}" = "yes"; then
8946
8947$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8948
8949 GNU_MALLOC=no
8950 GNU_MALLOC_reason="
8951 (The GNU allocators don't work with this system configuration.)"
8952 GMALLOC_OBJ=
8953 VMLIMIT_OBJ=
8954else
8955 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8956 VMLIMIT_OBJ=vm-limit.o
8957fi
8958
8959
8960
8961if test "$doug_lea_malloc" = "yes" ; then
8962 if test "$GNU_MALLOC" = yes ; then
8963 GNU_MALLOC_reason="
8964 (Using Doug Lea's new malloc from the GNU C Library.)"
8965 fi
8966
8967$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8968
8969
8970 ## Use mmap directly for allocating larger buffers.
8971 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8972 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8973 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8974 case "$opsys" in
8975 gnu*) REL_ALLOC=no ;;
8976 esac
8977fi
8978
8979if test x"${REL_ALLOC}" = x; then
8980 REL_ALLOC=${GNU_MALLOC}
8981fi
8982
8983use_mmap_for_buffers=no
8984case "$opsys" in
8985 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8986esac
8987
8988
8989
8990
8991 for ac_header in $ac_header_list
8992do :
8993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8994ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8995"
2018939f 8996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
8997 cat >>confdefs.h <<_ACEOF
8998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8999_ACEOF
9000
9001fi
9002
9003done
9004
9005
9006
9007
9008
9009
9010
9011
9012for ac_func in getpagesize
9013do :
9014 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d6974efa 9015if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9016 cat >>confdefs.h <<_ACEOF
9017#define HAVE_GETPAGESIZE 1
9018_ACEOF
9019
9020fi
9021done
9022
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9024$as_echo_n "checking for working mmap... " >&6; }
d6974efa 9025if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9026 $as_echo_n "(cached) " >&6
9027else
9028 if test "$cross_compiling" = yes; then :
9029 ac_cv_func_mmap_fixed_mapped=no
9030else
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h. */
9033$ac_includes_default
9034/* malloc might have been renamed as rpl_malloc. */
9035#undef malloc
9036
9037/* Thanks to Mike Haertel and Jim Avera for this test.
9038 Here is a matrix of mmap possibilities:
9039 mmap private not fixed
9040 mmap private fixed at somewhere currently unmapped
9041 mmap private fixed at somewhere already mapped
9042 mmap shared not fixed
9043 mmap shared fixed at somewhere currently unmapped
9044 mmap shared fixed at somewhere already mapped
9045 For private mappings, we should verify that changes cannot be read()
9046 back from the file, nor mmap's back from the file at a different
9047 address. (There have been systems where private was not correctly
9048 implemented like the infamous i386 svr4.0, and systems where the
9049 VM page cache was not coherent with the file system buffer cache
9050 like early versions of FreeBSD and possibly contemporary NetBSD.)
9051 For shared mappings, we should conversely verify that changes get
9052 propagated back to all the places they're supposed to be.
9053
9054 Grep wants private fixed already mapped.
9055 The main things grep needs to know about mmap are:
9056 * does it exist and is it safe to write into the mmap'd area
9057 * how to use it (BSD variants) */
9058
9059#include <fcntl.h>
9060#include <sys/mman.h>
9061
9062#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9063char *malloc ();
9064#endif
9065
9066/* This mess was copied from the GNU getpagesize.h. */
9067#ifndef HAVE_GETPAGESIZE
9068# ifdef _SC_PAGESIZE
9069# define getpagesize() sysconf(_SC_PAGESIZE)
9070# else /* no _SC_PAGESIZE */
9071# ifdef HAVE_SYS_PARAM_H
9072# include <sys/param.h>
9073# ifdef EXEC_PAGESIZE
9074# define getpagesize() EXEC_PAGESIZE
9075# else /* no EXEC_PAGESIZE */
9076# ifdef NBPG
9077# define getpagesize() NBPG * CLSIZE
9078# ifndef CLSIZE
9079# define CLSIZE 1
9080# endif /* no CLSIZE */
9081# else /* no NBPG */
9082# ifdef NBPC
9083# define getpagesize() NBPC
9084# else /* no NBPC */
9085# ifdef PAGESIZE
9086# define getpagesize() PAGESIZE
9087# endif /* PAGESIZE */
9088# endif /* no NBPC */
9089# endif /* no NBPG */
9090# endif /* no EXEC_PAGESIZE */
9091# else /* no HAVE_SYS_PARAM_H */
9092# define getpagesize() 8192 /* punt totally */
9093# endif /* no HAVE_SYS_PARAM_H */
9094# endif /* no _SC_PAGESIZE */
9095
9096#endif /* no HAVE_GETPAGESIZE */
9097
9098int
9099main ()
9100{
9101 char *data, *data2, *data3;
2018939f 9102 const char *cdata2;
067d23c9
KY
9103 int i, pagesize;
9104 int fd, fd2;
9105
9106 pagesize = getpagesize ();
9107
9108 /* First, make a file with some known garbage in it. */
9109 data = (char *) malloc (pagesize);
9110 if (!data)
9111 return 1;
9112 for (i = 0; i < pagesize; ++i)
9113 *(data + i) = rand ();
9114 umask (0);
9115 fd = creat ("conftest.mmap", 0600);
9116 if (fd < 0)
9117 return 2;
9118 if (write (fd, data, pagesize) != pagesize)
9119 return 3;
9120 close (fd);
9121
9122 /* Next, check that the tail of a page is zero-filled. File must have
9123 non-zero length, otherwise we risk SIGBUS for entire page. */
9124 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9125 if (fd2 < 0)
9126 return 4;
2018939f
AS
9127 cdata2 = "";
9128 if (write (fd2, cdata2, 1) != 1)
067d23c9 9129 return 5;
2018939f 9130 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9131 if (data2 == MAP_FAILED)
9132 return 6;
9133 for (i = 0; i < pagesize; ++i)
9134 if (*(data2 + i))
9135 return 7;
9136 close (fd2);
9137 if (munmap (data2, pagesize))
9138 return 8;
9139
9140 /* Next, try to mmap the file at a fixed address which already has
9141 something else allocated at it. If we can, also make sure that
9142 we see the same garbage. */
9143 fd = open ("conftest.mmap", O_RDWR);
9144 if (fd < 0)
9145 return 9;
9146 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9147 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9148 return 10;
9149 for (i = 0; i < pagesize; ++i)
9150 if (*(data + i) != *(data2 + i))
9151 return 11;
9152
9153 /* Finally, make sure that changes to the mapped area do not
9154 percolate back to the file as seen by read(). (This is a bug on
9155 some variants of i386 svr4.0.) */
9156 for (i = 0; i < pagesize; ++i)
9157 *(data2 + i) = *(data2 + i) + 1;
9158 data3 = (char *) malloc (pagesize);
9159 if (!data3)
9160 return 12;
9161 if (read (fd, data3, pagesize) != pagesize)
9162 return 13;
9163 for (i = 0; i < pagesize; ++i)
9164 if (*(data + i) != *(data3 + i))
9165 return 14;
9166 close (fd);
9167 return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_run "$LINENO"; then :
9171 ac_cv_func_mmap_fixed_mapped=yes
9172else
9173 ac_cv_func_mmap_fixed_mapped=no
9174fi
9175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9176 conftest.$ac_objext conftest.beam conftest.$ac_ext
9177fi
9178
9179fi
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9181$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9182if test $ac_cv_func_mmap_fixed_mapped = yes; then
9183
9184$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9185
9186fi
9187rm -f conftest.mmap conftest.txt
9188
9189if test $use_mmap_for_buffers = yes; then
9190
9191$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9192
9193 REL_ALLOC=no
9194fi
9195
9196LIBS="$LIBS_SYSTEM $LIBS"
9197
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9199$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
d6974efa 9200if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9201 $as_echo_n "(cached) " >&6
9202else
9203 ac_check_lib_save_LIBS=$LIBS
9204LIBS="-ldnet $LIBS"
9205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h. */
9207
9208/* Override any GCC internal prototype to avoid an error.
9209 Use char because int might match the return type of a GCC
9210 builtin and then its argument prototype would still apply. */
9211#ifdef __cplusplus
9212extern "C"
9213#endif
9214char dnet_ntoa ();
9215int
9216main ()
9217{
9218return dnet_ntoa ();
9219 ;
9220 return 0;
9221}
9222_ACEOF
9223if ac_fn_c_try_link "$LINENO"; then :
9224 ac_cv_lib_dnet_dnet_ntoa=yes
9225else
9226 ac_cv_lib_dnet_dnet_ntoa=no
9227fi
9228rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext conftest.$ac_ext
9230LIBS=$ac_check_lib_save_LIBS
9231fi
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9233$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d6974efa 9234if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9235 cat >>confdefs.h <<_ACEOF
9236#define HAVE_LIBDNET 1
9237_ACEOF
9238
9239 LIBS="-ldnet $LIBS"
9240
9241fi
9242
9243
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9245$as_echo_n "checking for main in -lXbsd... " >&6; }
d6974efa 9246if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9247 $as_echo_n "(cached) " >&6
9248else
9249 ac_check_lib_save_LIBS=$LIBS
9250LIBS="-lXbsd $LIBS"
9251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252/* end confdefs.h. */
9253
9254
9255int
9256main ()
9257{
9258return main ();
9259 ;
9260 return 0;
9261}
9262_ACEOF
9263if ac_fn_c_try_link "$LINENO"; then :
9264 ac_cv_lib_Xbsd_main=yes
9265else
9266 ac_cv_lib_Xbsd_main=no
9267fi
9268rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270LIBS=$ac_check_lib_save_LIBS
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9273$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
d6974efa 9274if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9275 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9276fi
9277
9278
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9280$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
d6974efa 9281if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9282 $as_echo_n "(cached) " >&6
9283else
9284 ac_check_lib_save_LIBS=$LIBS
9285LIBS="-lpthreads $LIBS"
9286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287/* end confdefs.h. */
9288
9289/* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9292#ifdef __cplusplus
9293extern "C"
9294#endif
9295char cma_open ();
9296int
9297main ()
9298{
9299return cma_open ();
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304if ac_fn_c_try_link "$LINENO"; then :
9305 ac_cv_lib_pthreads_cma_open=yes
9306else
9307 ac_cv_lib_pthreads_cma_open=no
9308fi
9309rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311LIBS=$ac_check_lib_save_LIBS
9312fi
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9314$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
d6974efa 9315if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9316 cat >>confdefs.h <<_ACEOF
9317#define HAVE_LIBPTHREADS 1
9318_ACEOF
9319
9320 LIBS="-lpthreads $LIBS"
9321
9322fi
9323
9324
9325## Note: when using cpp in s/aix4.2.h, this definition depended on
9326## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9327## the system file was sourced. Hence the value of LIBS_SYSTEM
9328## added to LIBS in configure would never contain the pthreads part,
9329## but the value used in Makefiles might. FIXME?
9330##
9331## -lpthreads seems to be necessary for Xlib in X11R6, and should
9332## be harmless on older versions of X where it happens to exist.
9333test "$opsys" = "aix4-2" && \
9334 test $ac_cv_lib_pthreads_cma_open = yes && \
9335 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9336
9337
9338case ${host_os} in
9339aix*)
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9341$as_echo_n "checking for -bbigtoc option... " >&6; }
d6974efa 9342if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9343 $as_echo_n "(cached) " >&6
9344else
9345
9346 case $GCC in
9347 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9348 *) gdb_cv_bigtoc=-bbigtoc ;;
9349 esac
9350
9351 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h. */
9354
9355int
9356main ()
9357{
9358int i;
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363if ac_fn_c_try_link "$LINENO"; then :
9364
9365else
9366 gdb_cv_bigtoc=
9367fi
9368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370
9371fi
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9373$as_echo "$gdb_cv_bigtoc" >&6; }
9374 ;;
9375esac
9376
9377# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9378# used for the tests that follow. We set them back to REAL_CFLAGS and
9379# REAL_CPPFLAGS later on.
9380
9381REAL_CFLAGS="$CFLAGS"
9382REAL_CPPFLAGS="$CPPFLAGS"
9383
9384if test "${HAVE_X11}" = "yes"; then
9385 DEFS="$C_SWITCH_X_SITE $DEFS"
9386 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9387 LIBS="-lX11 $LIBS"
9388 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9389 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9390
9391 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9392 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9393 # but it's more convenient here to set LD_RUN_PATH
9394 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9395 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9396 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9397 export LD_RUN_PATH
9398 fi
9399
9400 if test "${opsys}" = "gnu-linux"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9402$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405
9406int
9407main ()
9408{
9409XOpenDisplay ("foo");
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415 xlinux_first_failure=no
9416else
9417 xlinux_first_failure=yes
9418fi
9419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 if test "${xlinux_first_failure}" = "yes"; then
9422 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9423 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9424 OLD_CPPFLAGS="$CPPFLAGS"
9425 OLD_LIBS="$LIBS"
9426 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9427 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9428 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9429 LIBS="$LIBS -b i486-linuxaout"
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h. */
9432
9433int
9434main ()
9435{
9436XOpenDisplay ("foo");
9437 ;
9438 return 0;
9439}
9440_ACEOF
9441if ac_fn_c_try_link "$LINENO"; then :
9442 xlinux_second_failure=no
9443else
9444 xlinux_second_failure=yes
9445fi
9446rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 if test "${xlinux_second_failure}" = "yes"; then
9449 # If we get the same failure with -b, there is no use adding -b.
9450 # So take it out. This plays safe.
9451 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9452 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9453 CPPFLAGS="$OLD_CPPFLAGS"
9454 LIBS="$OLD_LIBS"
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456$as_echo "no" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9459$as_echo "yes" >&6; }
9460 fi
9461 else
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463$as_echo "no" >&6; }
9464 fi
9465 fi
9466
9467 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9468 # header files included from there.
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9470$as_echo_n "checking for Xkb... " >&6; }
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h. */
9473#include <X11/Xlib.h>
9474#include <X11/XKBlib.h>
9475int
9476main ()
9477{
9478XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9479 ;
9480 return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"; then :
9484 emacs_xkb=yes
9485else
9486 emacs_xkb=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9491$as_echo "$emacs_xkb" >&6; }
9492 if test $emacs_xkb = yes; then
9493
9494$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9495
9496 fi
9497
9498 for ac_func in XrmSetDatabase XScreenResourceString \
9499XScreenNumberOfScreen XSetWMProtocols
9500do :
9501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9503if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9504 cat >>confdefs.h <<_ACEOF
9505#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9506_ACEOF
9507
9508fi
9509done
9510
9511fi
9512
9513if test "${window_system}" = "x11"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9515$as_echo_n "checking X11 version 6... " >&6; }
d6974efa 9516 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9517 $as_echo_n "(cached) " >&6
9518else
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h. */
9521#include <X11/Xlib.h>
9522int
9523main ()
9524{
9525#if XlibSpecificationRelease < 6
9526fail;
9527#endif
9528
9529 ;
9530 return 0;
9531}
9532_ACEOF
9533if ac_fn_c_try_link "$LINENO"; then :
9534 emacs_cv_x11_version_6=yes
9535else
9536 emacs_cv_x11_version_6=no
9537fi
9538rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540fi
9541
9542 if test $emacs_cv_x11_version_6 = yes; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9544$as_echo "6 or newer" >&6; }
9545
9546$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9547
9548
9549$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9550
9551 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9552 ## XIM support.
9553 case "$opsys" in
9554 sol2-*) : ;;
9555 *)
9556$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9557
9558 ;;
9559 esac
9560 else
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9562$as_echo "before 6" >&6; }
9563 fi
9564fi
9565
9566
9567### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9568HAVE_RSVG=no
9569if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9570 if test "${with_rsvg}" != "no"; then
9571 RSVG_REQUIRED=2.11.0
9572 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9573
9574
9575 succeeded=no
9576
9577 # Extract the first word of "pkg-config", so it can be a program name with args.
9578set dummy pkg-config; ac_word=$2
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9581if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9582 $as_echo_n "(cached) " >&6
9583else
9584 case $PKG_CONFIG in
9585 [\\/]* | ?:[\\/]*)
9586 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9587 ;;
9588 *)
9589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590for as_dir in $PATH
9591do
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
9594 for ac_exec_ext in '' $ac_executable_extensions; do
9595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9596 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 break 2
9599 fi
9600done
9601 done
9602IFS=$as_save_IFS
9603
9604 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9605 ;;
9606esac
9607fi
9608PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9609if test -n "$PKG_CONFIG"; then
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9611$as_echo "$PKG_CONFIG" >&6; }
9612else
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614$as_echo "no" >&6; }
9615fi
9616
9617
9618
9619 if test "$PKG_CONFIG" = "no" ; then
9620 :
9621 else
9622 PKG_CONFIG_MIN_VERSION=0.9.0
9623 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9625$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9626
9627 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9629$as_echo "yes" >&6; }
9630 succeeded=yes
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9633$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9634 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9636$as_echo "$RSVG_CFLAGS" >&6; }
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9639$as_echo_n "checking RSVG_LIBS... " >&6; }
9640 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9642$as_echo "$RSVG_LIBS" >&6; }
9643 else
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645$as_echo "no" >&6; }
9646 RSVG_CFLAGS=""
9647 RSVG_LIBS=""
9648 ## If we have a custom action on failure, don't print errors, but
9649 ## do set a variable so people can do so.
9650 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9651
9652 fi
9653
9654
9655
9656 else
9657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9659 fi
9660 fi
9661
9662 if test $succeeded = yes; then
9663 HAVE_RSVG=yes
9664 else
9665 :
9666 fi
9667
9668
9669
9670
9671 if test $HAVE_RSVG = yes; then
9672
9673$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9674
9675 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9676 LIBS="$RSVG_LIBS $LIBS"
9677 fi
9678 fi
9679fi
9680
9681HAVE_IMAGEMAGICK=no
9682if test "${HAVE_X11}" = "yes"; then
9683 if test "${with_imagemagick}" != "no"; then
9684 IMAGEMAGICK_MODULE="Wand"
9685
9686 succeeded=no
9687
9688 # Extract the first word of "pkg-config", so it can be a program name with args.
9689set dummy pkg-config; ac_word=$2
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9692if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9693 $as_echo_n "(cached) " >&6
9694else
9695 case $PKG_CONFIG in
9696 [\\/]* | ?:[\\/]*)
9697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9698 ;;
9699 *)
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9710 fi
9711done
9712 done
9713IFS=$as_save_IFS
9714
9715 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9716 ;;
9717esac
9718fi
9719PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9720if test -n "$PKG_CONFIG"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9722$as_echo "$PKG_CONFIG" >&6; }
9723else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725$as_echo "no" >&6; }
9726fi
9727
9728
9729
9730 if test "$PKG_CONFIG" = "no" ; then
9731 :
9732 else
9733 PKG_CONFIG_MIN_VERSION=0.9.0
9734 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9736$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9737
9738 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9740$as_echo "yes" >&6; }
9741 succeeded=yes
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9744$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9745 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9747$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9750$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9751 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9753$as_echo "$IMAGEMAGICK_LIBS" >&6; }
9754 else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756$as_echo "no" >&6; }
9757 IMAGEMAGICK_CFLAGS=""
9758 IMAGEMAGICK_LIBS=""
9759 ## If we have a custom action on failure, don't print errors, but
9760 ## do set a variable so people can do so.
9761 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9762
9763 fi
9764
9765
9766
9767 else
9768 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9769 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9770 fi
9771 fi
9772
9773 if test $succeeded = yes; then
9774 HAVE_IMAGEMAGICK=yes
9775 else
9776 :
9777 fi
9778
9779
9780
9781
9782 if test $HAVE_IMAGEMAGICK = yes; then
9783
9784$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9785
9786 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9787 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9788 for ac_func in MagickExportImagePixels
9789do :
9790 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
d6974efa 9791if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
9792 cat >>confdefs.h <<_ACEOF
9793#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9794_ACEOF
9795
9796fi
9797done
9798
9799 fi
9800 fi
9801fi
9802
9803
9804HAVE_GTK=no
9805if test "${with_gtk3}" = "yes"; then
9806 GLIB_REQUIRED=2.6
9807 GTK_REQUIRED=2.90
9808 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9809
9810
9811 succeeded=no
9812
9813 # Extract the first word of "pkg-config", so it can be a program name with args.
9814set dummy pkg-config; ac_word=$2
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9817if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9818 $as_echo_n "(cached) " >&6
9819else
9820 case $PKG_CONFIG in
9821 [\\/]* | ?:[\\/]*)
9822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9823 ;;
9824 *)
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836done
9837 done
9838IFS=$as_save_IFS
9839
9840 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9841 ;;
9842esac
9843fi
9844PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9845if test -n "$PKG_CONFIG"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9847$as_echo "$PKG_CONFIG" >&6; }
9848else
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850$as_echo "no" >&6; }
9851fi
9852
9853
9854
9855 if test "$PKG_CONFIG" = "no" ; then
9856 pkg_check_gtk=no
9857 else
9858 PKG_CONFIG_MIN_VERSION=0.9.0
9859 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9861$as_echo_n "checking for $GTK_MODULES... " >&6; }
9862
9863 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9865$as_echo "yes" >&6; }
9866 succeeded=yes
9867
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9869$as_echo_n "checking GTK_CFLAGS... " >&6; }
9870 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9872$as_echo "$GTK_CFLAGS" >&6; }
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9875$as_echo_n "checking GTK_LIBS... " >&6; }
9876 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9878$as_echo "$GTK_LIBS" >&6; }
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881$as_echo "no" >&6; }
9882 GTK_CFLAGS=""
9883 GTK_LIBS=""
9884 ## If we have a custom action on failure, don't print errors, but
9885 ## do set a variable so people can do so.
9886 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9887
9888 fi
9889
9890
9891
9892 else
9893 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9894 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9895 fi
9896 fi
9897
9898 if test $succeeded = yes; then
9899 pkg_check_gtk=yes
9900 else
9901 pkg_check_gtk=no
9902 fi
9903
9904 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 9905 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
9906 fi
9907fi
9908
9909if test "$pkg_check_gtk" != "yes"; then
9910 HAVE_GTK=no
9911if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9912 GLIB_REQUIRED=2.6
9913 GTK_REQUIRED=2.6
9914 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9915
9916
9917 succeeded=no
9918
9919 # Extract the first word of "pkg-config", so it can be a program name with args.
9920set dummy pkg-config; ac_word=$2
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9923if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9924 $as_echo_n "(cached) " >&6
9925else
9926 case $PKG_CONFIG in
9927 [\\/]* | ?:[\\/]*)
9928 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9929 ;;
9930 *)
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932for as_dir in $PATH
9933do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9938 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942done
9943 done
9944IFS=$as_save_IFS
9945
9946 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9947 ;;
9948esac
9949fi
9950PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9951if test -n "$PKG_CONFIG"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9953$as_echo "$PKG_CONFIG" >&6; }
9954else
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
9957fi
9958
9959
9960
9961 if test "$PKG_CONFIG" = "no" ; then
9962 pkg_check_gtk=no
9963 else
9964 PKG_CONFIG_MIN_VERSION=0.9.0
9965 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9967$as_echo_n "checking for $GTK_MODULES... " >&6; }
9968
9969 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9971$as_echo "yes" >&6; }
9972 succeeded=yes
9973
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9975$as_echo_n "checking GTK_CFLAGS... " >&6; }
9976 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9978$as_echo "$GTK_CFLAGS" >&6; }
9979
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9981$as_echo_n "checking GTK_LIBS... " >&6; }
9982 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9984$as_echo "$GTK_LIBS" >&6; }
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987$as_echo "no" >&6; }
9988 GTK_CFLAGS=""
9989 GTK_LIBS=""
9990 ## If we have a custom action on failure, don't print errors, but
9991 ## do set a variable so people can do so.
9992 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9993
9994 fi
9995
9996
9997
9998 else
9999 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10000 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10001 fi
10002 fi
10003
10004 if test $succeeded = yes; then
10005 pkg_check_gtk=yes
10006 else
10007 pkg_check_gtk=no
10008 fi
10009
10010 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10011 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10012 fi
10013fi
10014fi
10015
10016GTK_OBJ=
10017if test x"$pkg_check_gtk" = xyes; then
10018
10019
10020
10021 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10022 CFLAGS="$CFLAGS $GTK_CFLAGS"
10023 LIBS="$GTK_LIBS $LIBS"
10024 GTK_COMPILES=no
10025 for ac_func in gtk_main
10026do :
10027 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
d6974efa 10028if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10029 cat >>confdefs.h <<_ACEOF
10030#define HAVE_GTK_MAIN 1
10031_ACEOF
10032 GTK_COMPILES=yes
10033fi
10034done
10035
10036 if test "${GTK_COMPILES}" != "yes"; then
10037 if test "$USE_X_TOOLKIT" != "maybe"; then
d6974efa 10038 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10039 fi
10040 else
10041 HAVE_GTK=yes
10042
10043$as_echo "#define USE_GTK 1" >>confdefs.h
10044
10045 GTK_OBJ=gtkutil.o
10046 USE_X_TOOLKIT=none
10047 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10048 :
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10051 closing open displays. This is no problem if you just use
10052 one display, but if you use more than one and close one of them
10053 Emacs may crash." >&5
10054$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10055 closing open displays. This is no problem if you just use
10056 one display, but if you use more than one and close one of them
10057 Emacs may crash." >&2;}
10058 sleep 3
10059 fi
10060 fi
10061
10062fi
10063
10064
10065
10066if test "${HAVE_GTK}" = "yes"; then
10067
10068 if test "$with_toolkit_scroll_bars" != no; then
10069 with_toolkit_scroll_bars=yes
10070 fi
10071
10072 HAVE_GTK_FILE_SELECTION=no
10073 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10074#include <gtk/gtk.h>
10075"
d6974efa 10076if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10077 HAVE_GTK_FILE_SELECTION=yes
10078else
10079 HAVE_GTK_FILE_SELECTION=no
10080fi
10081
10082 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10083 for ac_func in gtk_file_selection_new
10084do :
10085 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
d6974efa 10086if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10087 cat >>confdefs.h <<_ACEOF
10088#define HAVE_GTK_FILE_SELECTION_NEW 1
10089_ACEOF
10090
10091fi
10092done
10093
10094 fi
10095
10096 HAVE_GTK_AND_PTHREAD=no
10097 for ac_header in pthread.h
10098do :
10099 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
d6974efa 10100if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10101 cat >>confdefs.h <<_ACEOF
10102#define HAVE_PTHREAD_H 1
10103_ACEOF
10104
10105fi
10106
10107done
10108
10109 if test "$ac_cv_header_pthread_h"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10111$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
d6974efa 10112if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10113 $as_echo_n "(cached) " >&6
10114else
10115 ac_check_lib_save_LIBS=$LIBS
10116LIBS="-lpthread $LIBS"
10117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h. */
10119
10120/* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10123#ifdef __cplusplus
10124extern "C"
10125#endif
10126char pthread_self ();
10127int
10128main ()
10129{
10130return pthread_self ();
10131 ;
10132 return 0;
10133}
10134_ACEOF
10135if ac_fn_c_try_link "$LINENO"; then :
10136 ac_cv_lib_pthread_pthread_self=yes
10137else
10138 ac_cv_lib_pthread_pthread_self=no
10139fi
10140rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142LIBS=$ac_check_lib_save_LIBS
10143fi
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10145$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
d6974efa 10146if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10147 HAVE_GTK_AND_PTHREAD=yes
10148fi
10149
10150 fi
10151 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10152 case "${canonical}" in
10153 *-hpux*) ;;
10154 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10155 esac
10156
10157$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10158
10159 fi
10160
10161 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10162 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10163 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10164 gtk_orientable_set_orientation
10165do :
10166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10167ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 10168if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10169 cat >>confdefs.h <<_ACEOF
10170#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10171_ACEOF
10172
10173fi
10174done
10175
10176
10177fi
10178
10179HAVE_DBUS=no
10180DBUS_OBJ=
10181if test "${with_dbus}" = "yes"; then
10182
10183 succeeded=no
10184
10185 # Extract the first word of "pkg-config", so it can be a program name with args.
10186set dummy pkg-config; ac_word=$2
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10188$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10189if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10190 $as_echo_n "(cached) " >&6
10191else
10192 case $PKG_CONFIG in
10193 [\\/]* | ?:[\\/]*)
10194 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10195 ;;
10196 *)
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10204 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209 done
10210IFS=$as_save_IFS
10211
10212 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10213 ;;
10214esac
10215fi
10216PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10217if test -n "$PKG_CONFIG"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10219$as_echo "$PKG_CONFIG" >&6; }
10220else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
10223fi
10224
10225
10226
10227 if test "$PKG_CONFIG" = "no" ; then
10228 HAVE_DBUS=no
10229 else
10230 PKG_CONFIG_MIN_VERSION=0.9.0
10231 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10233$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10234
10235 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237$as_echo "yes" >&6; }
10238 succeeded=yes
10239
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10241$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10242 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10244$as_echo "$DBUS_CFLAGS" >&6; }
10245
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10247$as_echo_n "checking DBUS_LIBS... " >&6; }
10248 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10250$as_echo "$DBUS_LIBS" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
10254 DBUS_CFLAGS=""
10255 DBUS_LIBS=""
10256 ## If we have a custom action on failure, don't print errors, but
10257 ## do set a variable so people can do so.
10258 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10259
10260 fi
10261
10262
10263
10264 else
10265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10267 fi
10268 fi
10269
10270 if test $succeeded = yes; then
10271 HAVE_DBUS=yes
10272 else
10273 HAVE_DBUS=no
10274 fi
10275
10276 if test "$HAVE_DBUS" = yes; then
10277 LIBS="$LIBS $DBUS_LIBS"
10278
10279$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10280
10281 for ac_func in dbus_watch_get_unix_fd
10282do :
10283 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
d6974efa 10284if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10285 cat >>confdefs.h <<_ACEOF
10286#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10287_ACEOF
10288
10289fi
10290done
10291
10292 DBUS_OBJ=dbusbind.o
10293 fi
10294fi
10295
10296
10297HAVE_GCONF=no
10298if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10299
10300 succeeded=no
10301
10302 # Extract the first word of "pkg-config", so it can be a program name with args.
10303set dummy pkg-config; ac_word=$2
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10306if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10307 $as_echo_n "(cached) " >&6
10308else
10309 case $PKG_CONFIG in
10310 [\\/]* | ?:[\\/]*)
10311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10312 ;;
10313 *)
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315for as_dir in $PATH
10316do
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 break 2
10324 fi
10325done
10326 done
10327IFS=$as_save_IFS
10328
10329 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10330 ;;
10331esac
10332fi
10333PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10334if test -n "$PKG_CONFIG"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10336$as_echo "$PKG_CONFIG" >&6; }
10337else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342
10343
10344 if test "$PKG_CONFIG" = "no" ; then
10345 HAVE_GCONF=no
10346 else
10347 PKG_CONFIG_MIN_VERSION=0.9.0
10348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10350$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10351
10352 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354$as_echo "yes" >&6; }
10355 succeeded=yes
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10358$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10359 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10361$as_echo "$GCONF_CFLAGS" >&6; }
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10364$as_echo_n "checking GCONF_LIBS... " >&6; }
10365 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10367$as_echo "$GCONF_LIBS" >&6; }
10368 else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370$as_echo "no" >&6; }
10371 GCONF_CFLAGS=""
10372 GCONF_LIBS=""
10373 ## If we have a custom action on failure, don't print errors, but
10374 ## do set a variable so people can do so.
10375 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10376
10377 fi
10378
10379
10380
10381 else
10382 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10383 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10384 fi
10385 fi
10386
10387 if test $succeeded = yes; then
10388 HAVE_GCONF=yes
10389 else
10390 HAVE_GCONF=no
10391 fi
10392
10393 if test "$HAVE_GCONF" = yes; then
10394
10395$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10396
10397 for ac_func in g_type_init
10398do :
10399 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
d6974efa 10400if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10401 cat >>confdefs.h <<_ACEOF
10402#define HAVE_G_TYPE_INIT 1
10403_ACEOF
10404
10405fi
10406done
10407
10408 fi
10409fi
10410
10411HAVE_LIBSELINUX=no
10412LIBSELINUX_LIBS=
10413if test "${with_selinux}" = "yes"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10415$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
d6974efa 10416if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10417 $as_echo_n "(cached) " >&6
10418else
10419 ac_check_lib_save_LIBS=$LIBS
10420LIBS="-lselinux $LIBS"
10421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h. */
10423
10424/* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427#ifdef __cplusplus
10428extern "C"
10429#endif
10430char lgetfilecon ();
10431int
10432main ()
10433{
10434return lgetfilecon ();
10435 ;
10436 return 0;
10437}
10438_ACEOF
10439if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_lib_selinux_lgetfilecon=yes
10441else
10442 ac_cv_lib_selinux_lgetfilecon=no
10443fi
10444rm -f core conftest.err conftest.$ac_objext \
10445 conftest$ac_exeext conftest.$ac_ext
10446LIBS=$ac_check_lib_save_LIBS
10447fi
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10449$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
d6974efa 10450if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10451 HAVE_LIBSELINUX=yes
10452else
10453 HAVE_LIBSELINUX=no
10454fi
10455
10456 if test "$HAVE_LIBSELINUX" = yes; then
10457
10458$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10459
10460 LIBSELINUX_LIBS=-lselinux
10461 fi
10462fi
10463
10464
10465HAVE_GNUTLS=no
10466if test "${with_gnutls}" = "yes" ; then
10467
10468 succeeded=no
10469
10470 # Extract the first word of "pkg-config", so it can be a program name with args.
10471set dummy pkg-config; ac_word=$2
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10474if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10475 $as_echo_n "(cached) " >&6
10476else
10477 case $PKG_CONFIG in
10478 [\\/]* | ?:[\\/]*)
10479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10480 ;;
10481 *)
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483for as_dir in $PATH
10484do
10485 IFS=$as_save_IFS
10486 test -z "$as_dir" && as_dir=.
10487 for ac_exec_ext in '' $ac_executable_extensions; do
10488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10491 break 2
10492 fi
10493done
10494 done
10495IFS=$as_save_IFS
10496
10497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10498 ;;
10499esac
10500fi
10501PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10502if test -n "$PKG_CONFIG"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10504$as_echo "$PKG_CONFIG" >&6; }
10505else
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507$as_echo "no" >&6; }
10508fi
10509
10510
10511
10512 if test "$PKG_CONFIG" = "no" ; then
10513 HAVE_GNUTLS=no
10514 else
10515 PKG_CONFIG_MIN_VERSION=0.9.0
10516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10518$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10519
10520 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10522$as_echo "yes" >&6; }
10523 succeeded=yes
10524
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10526$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10527 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10529$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10530
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10532$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10533 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10535$as_echo "$LIBGNUTLS_LIBS" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538$as_echo "no" >&6; }
10539 LIBGNUTLS_CFLAGS=""
10540 LIBGNUTLS_LIBS=""
10541 ## If we have a custom action on failure, don't print errors, but
10542 ## do set a variable so people can do so.
10543 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10544
10545 fi
10546
10547
10548
10549 else
10550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10552 fi
10553 fi
10554
10555 if test $succeeded = yes; then
10556 HAVE_GNUTLS=yes
10557 else
10558 HAVE_GNUTLS=no
10559 fi
10560
10561 if test "${HAVE_GNUTLS}" = "yes"; then
10562
10563$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10564
10565 fi
10566fi
10567
10568
10569
10570HAVE_XAW3D=no
10571LUCID_LIBW=
10572if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10573 if test "$with_xaw3d" != no; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10575$as_echo_n "checking for xaw3d... " >&6; }
d6974efa 10576 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10577 $as_echo_n "(cached) " >&6
10578else
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h. */
10581
10582#include <X11/Intrinsic.h>
10583#include <X11/Xaw3d/Simple.h>
10584int
10585main ()
10586{
10587
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592if ac_fn_c_try_link "$LINENO"; then :
10593 emacs_cv_xaw3d=yes
10594else
10595 emacs_cv_xaw3d=no
10596fi
10597rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599fi
10600
10601 else
10602 emacs_cv_xaw3d=no
10603 fi
10604 if test $emacs_cv_xaw3d = yes; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10606$as_echo "yes; using Lucid toolkit" >&6; }
10607 USE_X_TOOLKIT=LUCID
10608 HAVE_XAW3D=yes
10609 LUCID_LIBW=-lXaw3d
10610
10611$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10612
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10617$as_echo_n "checking for libXaw... " >&6; }
d6974efa 10618 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10619 $as_echo_n "(cached) " >&6
10620else
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h. */
10623
10624#include <X11/Intrinsic.h>
10625#include <X11/Xaw/Simple.h>
10626int
10627main ()
10628{
10629
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_link "$LINENO"; then :
10635 emacs_cv_xaw=yes
10636else
10637 emacs_cv_xaw=no
10638fi
10639rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641fi
10642
10643 if test $emacs_cv_xaw = yes; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10645$as_echo "yes; using Lucid toolkit" >&6; }
10646 USE_X_TOOLKIT=LUCID
10647 LUCID_LIBW=-lXaw
10648 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
2018939f 10649 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10652$as_echo "no; do not use toolkit by default" >&6; }
10653 USE_X_TOOLKIT=none
10654 fi
10655 fi
10656fi
10657
10658X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10659
10660LIBXTR6=
10661if test "${USE_X_TOOLKIT}" != "none"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10663$as_echo_n "checking X11 toolkit version... " >&6; }
d6974efa 10664 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
10665 $as_echo_n "(cached) " >&6
10666else
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h. */
10669#include <X11/Intrinsic.h>
10670int
10671main ()
10672{
10673#if XtSpecificationRelease < 6
10674fail;
10675#endif
10676
10677 ;
10678 return 0;
10679}
10680_ACEOF
10681if ac_fn_c_try_link "$LINENO"; then :
10682 emacs_cv_x11_toolkit_version_6=yes
10683else
10684 emacs_cv_x11_toolkit_version_6=no
10685fi
10686rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688fi
10689
10690 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10691 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10693$as_echo "6 or newer" >&6; }
10694
10695$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10696
10697 LIBXTR6="-lSM -lICE"
10698 case "$opsys" in
10699 ## Use libw.a along with X11R6 Xt.
10700 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10701 esac
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10704$as_echo "before 6" >&6; }
10705 fi
10706
10707 OLDLIBS="$LIBS"
10708 if test x$HAVE_X11XTR6 = xyes; then
10709 LIBS="-lXt -lSM -lICE $LIBS"
10710 else
10711 LIBS="-lXt $LIBS"
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10714$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
d6974efa 10715if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
10716 $as_echo_n "(cached) " >&6
10717else
10718 ac_check_lib_save_LIBS=$LIBS
10719LIBS="-lXmu $LIBS"
10720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721/* end confdefs.h. */
10722
10723/* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10726#ifdef __cplusplus
10727extern "C"
10728#endif
10729char XmuConvertStandardSelection ();
10730int
10731main ()
10732{
10733return XmuConvertStandardSelection ();
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738if ac_fn_c_try_link "$LINENO"; then :
10739 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10740else
10741 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10742fi
10743rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745LIBS=$ac_check_lib_save_LIBS
10746fi
10747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10748$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
d6974efa 10749if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
10750 cat >>confdefs.h <<_ACEOF
10751#define HAVE_LIBXMU 1
10752_ACEOF
10753
10754 LIBS="-lXmu $LIBS"
10755
10756fi
10757
10758 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10759fi
10760
10761
10762LIBXMU=-lXmu
d6a003a8
AS
10763case $opsys in
10764 ## These systems don't supply Xmu.
067d23c9
KY
10765 hpux* | aix4-2 )
10766 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10767 ;;
10768esac
10769
10770
10771# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10772if test "${HAVE_X11}" = "yes"; then
10773 if test "${USE_X_TOOLKIT}" != "none"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10775$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
d6974efa 10776if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
10777 $as_echo_n "(cached) " >&6
10778else
10779 ac_check_lib_save_LIBS=$LIBS
10780LIBS="-lXext $LIBS"
10781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782/* end confdefs.h. */
10783
10784/* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787#ifdef __cplusplus
10788extern "C"
10789#endif
10790char XShapeQueryExtension ();
10791int
10792main ()
10793{
10794return XShapeQueryExtension ();
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799if ac_fn_c_try_link "$LINENO"; then :
10800 ac_cv_lib_Xext_XShapeQueryExtension=yes
10801else
10802 ac_cv_lib_Xext_XShapeQueryExtension=no
10803fi
10804rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806LIBS=$ac_check_lib_save_LIBS
10807fi
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10809$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
d6974efa 10810if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
10811 cat >>confdefs.h <<_ACEOF
10812#define HAVE_LIBXEXT 1
10813_ACEOF
10814
10815 LIBS="-lXext $LIBS"
10816
10817fi
10818
10819 fi
10820fi
10821
10822LIBXP=
10823if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10825$as_echo_n "checking for Motif version 2.1... " >&6; }
d6974efa 10826if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
10827 $as_echo_n "(cached) " >&6
10828else
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830/* end confdefs.h. */
10831#include <Xm/Xm.h>
10832int
10833main ()
10834{
10835#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10836int x = 5;
10837#else
10838Motif version prior to 2.1.
10839#endif
10840 ;
10841 return 0;
10842}
10843_ACEOF
10844if ac_fn_c_try_compile "$LINENO"; then :
10845 emacs_cv_motif_version_2_1=yes
10846else
10847 emacs_cv_motif_version_2_1=no
10848fi
10849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10852$as_echo "$emacs_cv_motif_version_2_1" >&6; }
10853 if test $emacs_cv_motif_version_2_1 = yes; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10855$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
d6974efa 10856if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
10857 $as_echo_n "(cached) " >&6
10858else
10859 ac_check_lib_save_LIBS=$LIBS
10860LIBS="-lXp $LIBS"
10861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862/* end confdefs.h. */
10863
10864/* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867#ifdef __cplusplus
10868extern "C"
10869#endif
10870char XpCreateContext ();
10871int
10872main ()
10873{
10874return XpCreateContext ();
10875 ;
10876 return 0;
10877}
10878_ACEOF
10879if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_lib_Xp_XpCreateContext=yes
10881else
10882 ac_cv_lib_Xp_XpCreateContext=no
10883fi
10884rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886LIBS=$ac_check_lib_save_LIBS
10887fi
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10889$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
d6974efa 10890if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
10891 LIBXP=-lXp
10892fi
10893
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10896$as_echo_n "checking for LessTif where some systems put it... " >&6; }
d6974efa 10897if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
10898 $as_echo_n "(cached) " >&6
10899else
10900 # We put this in CFLAGS temporarily to precede other -I options
10901 # that might be in CFLAGS temporarily.
10902 # We put this in CPPFLAGS where it precedes the other -I options.
10903 OLD_CPPFLAGS=$CPPFLAGS
10904 OLD_CFLAGS=$CFLAGS
10905 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10906 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h. */
10909#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10910int
10911main ()
10912{
10913int x = 5;
10914 ;
10915 return 0;
10916}
10917_ACEOF
10918if ac_fn_c_try_compile "$LINENO"; then :
10919 emacs_cv_lesstif=yes
10920else
10921 emacs_cv_lesstif=no
10922fi
10923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10924fi
10925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10926$as_echo "$emacs_cv_lesstif" >&6; }
10927 if test $emacs_cv_lesstif = yes; then
10928 # Make sure this -I option remains in CPPFLAGS after it is set
10929 # back to REAL_CPPFLAGS.
10930 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10931 # have those other -I options anyway. Ultimately, having this
10932 # directory ultimately in CPPFLAGS will be enough.
10933 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10934 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10935 else
10936 CFLAGS=$OLD_CFLAGS
10937 CPPFLAGS=$OLD_CPPFLAGS
10938 fi
10939 fi
10940fi
10941
10942
10943USE_TOOLKIT_SCROLL_BARS=no
10944if test "${with_toolkit_scroll_bars}" != "no"; then
10945 if test "${USE_X_TOOLKIT}" != "none"; then
10946 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10947 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10948
10949 HAVE_XAW3D=no
10950 USE_TOOLKIT_SCROLL_BARS=yes
10951 elif test "${HAVE_XAW3D}" = "yes"; then
10952 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10953
10954 USE_TOOLKIT_SCROLL_BARS=yes
10955 fi
10956 elif test "${HAVE_GTK}" = "yes"; then
10957 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10958
10959 USE_TOOLKIT_SCROLL_BARS=yes
10960 elif test "${HAVE_NS}" = "yes"; then
10961 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10962
10963 USE_TOOLKIT_SCROLL_BARS=yes
10964 fi
10965fi
10966
10967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h. */
10969
10970 #include <X11/Xlib.h>
10971 #include <X11/Xresource.h>
10972int
10973main ()
10974{
10975XIMProc callback;
10976 ;
10977 return 0;
10978}
10979_ACEOF
10980if ac_fn_c_try_compile "$LINENO"; then :
10981 HAVE_XIM=yes
10982
10983$as_echo "#define HAVE_XIM 1" >>confdefs.h
10984
10985else
10986 HAVE_XIM=no
10987fi
10988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989
10990
10991if test "${with_xim}" != "no"; then
10992
10993$as_echo "#define USE_XIM 1" >>confdefs.h
10994
10995fi
10996
10997
10998if test "${HAVE_XIM}" != "no"; then
10999 late_CFLAGS=$CFLAGS
11000 if test "$GCC" = yes; then
11001 CFLAGS="$CFLAGS --pedantic-errors"
11002 fi
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004/* end confdefs.h. */
11005
11006#include <X11/Xlib.h>
11007#include <X11/Xresource.h>
11008int
11009main ()
11010{
11011Display *display;
11012XrmDatabase db;
11013char *res_name;
11014char *res_class;
11015XIMProc callback;
11016XPointer *client_data;
11017#ifndef __GNUC__
11018/* If we're not using GCC, it's probably not XFree86, and this is
11019 probably right, but we can't use something like --pedantic-errors. */
11020extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11021 char*, XIMProc, XPointer*);
11022#endif
11023(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11024 client_data);
11025 ;
11026 return 0;
11027}
11028_ACEOF
11029if ac_fn_c_try_compile "$LINENO"; then :
11030 emacs_cv_arg6_star=yes
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 if test "$emacs_cv_arg6_star" = yes; then
11034 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11035
11036 else
11037 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11038
11039 fi
11040 CFLAGS=$late_CFLAGS
11041fi
11042
11043### Start of font-backend (under any platform) section.
11044# (nothing here yet -- this is a placeholder)
11045### End of font-backend (under any platform) section.
11046
11047### Start of font-backend (under X11) section.
11048if test "${HAVE_X11}" = "yes"; then
11049
11050 succeeded=no
11051
11052 # Extract the first word of "pkg-config", so it can be a program name with args.
11053set dummy pkg-config; ac_word=$2
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11056if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11057 $as_echo_n "(cached) " >&6
11058else
11059 case $PKG_CONFIG in
11060 [\\/]* | ?:[\\/]*)
11061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11062 ;;
11063 *)
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065for as_dir in $PATH
11066do
11067 IFS=$as_save_IFS
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073 break 2
11074 fi
11075done
11076 done
11077IFS=$as_save_IFS
11078
11079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11080 ;;
11081esac
11082fi
11083PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11084if test -n "$PKG_CONFIG"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11086$as_echo "$PKG_CONFIG" >&6; }
11087else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089$as_echo "no" >&6; }
11090fi
11091
11092
11093
11094 if test "$PKG_CONFIG" = "no" ; then
11095 HAVE_FC=no
11096 else
11097 PKG_CONFIG_MIN_VERSION=0.9.0
11098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11100$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11101
11102 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11104$as_echo "yes" >&6; }
11105 succeeded=yes
11106
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11108$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11109 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11111$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11112
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11114$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11115 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11117$as_echo "$FONTCONFIG_LIBS" >&6; }
11118 else
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120$as_echo "no" >&6; }
11121 FONTCONFIG_CFLAGS=""
11122 FONTCONFIG_LIBS=""
11123 ## If we have a custom action on failure, don't print errors, but
11124 ## do set a variable so people can do so.
11125 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11126
11127 fi
11128
11129
11130
11131 else
11132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11134 fi
11135 fi
11136
11137 if test $succeeded = yes; then
11138 HAVE_FC=yes
11139 else
11140 HAVE_FC=no
11141 fi
11142
11143
11144 ## Use -lXft if available, unless `--with-xft=no'.
11145 HAVE_XFT=maybe
11146 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11147 with_xft="no";
11148 fi
11149 if test "x${with_xft}" != "xno"; then
11150
11151
11152 succeeded=no
11153
11154 # Extract the first word of "pkg-config", so it can be a program name with args.
11155set dummy pkg-config; ac_word=$2
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11158if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11159 $as_echo_n "(cached) " >&6
11160else
11161 case $PKG_CONFIG in
11162 [\\/]* | ?:[\\/]*)
11163 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11164 ;;
11165 *)
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167for as_dir in $PATH
11168do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11173 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11176 fi
11177done
11178 done
11179IFS=$as_save_IFS
11180
11181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11182 ;;
11183esac
11184fi
11185PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11186if test -n "$PKG_CONFIG"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11188$as_echo "$PKG_CONFIG" >&6; }
11189else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191$as_echo "no" >&6; }
11192fi
11193
11194
11195
11196 if test "$PKG_CONFIG" = "no" ; then
11197 HAVE_XFT=no
11198 else
11199 PKG_CONFIG_MIN_VERSION=0.9.0
11200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11202$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11203
11204 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11206$as_echo "yes" >&6; }
11207 succeeded=yes
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11210$as_echo_n "checking XFT_CFLAGS... " >&6; }
11211 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11213$as_echo "$XFT_CFLAGS" >&6; }
11214
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11216$as_echo_n "checking XFT_LIBS... " >&6; }
11217 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11219$as_echo "$XFT_LIBS" >&6; }
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
11223 XFT_CFLAGS=""
11224 XFT_LIBS=""
11225 ## If we have a custom action on failure, don't print errors, but
11226 ## do set a variable so people can do so.
11227 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11228
11229 fi
11230
11231
11232
11233 else
11234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11236 fi
11237 fi
11238
11239 if test $succeeded = yes; then
11240 :
11241 else
11242 HAVE_XFT=no
11243 fi
11244
11245 ## Because xftfont.c uses XRenderQueryExtension, we also
11246 ## need to link to -lXrender.
11247 HAVE_XRENDER=no
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11249$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
d6974efa 11250if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11251 $as_echo_n "(cached) " >&6
11252else
11253 ac_check_lib_save_LIBS=$LIBS
11254LIBS="-lXrender $LIBS"
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h. */
11257
11258/* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
11261#ifdef __cplusplus
11262extern "C"
11263#endif
11264char XRenderQueryExtension ();
11265int
11266main ()
11267{
11268return XRenderQueryExtension ();
11269 ;
11270 return 0;
11271}
11272_ACEOF
11273if ac_fn_c_try_link "$LINENO"; then :
11274 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11275else
11276 ac_cv_lib_Xrender_XRenderQueryExtension=no
11277fi
11278rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280LIBS=$ac_check_lib_save_LIBS
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11283$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
d6974efa 11284if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11285 HAVE_XRENDER=yes
11286fi
11287
11288 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11289 OLD_CPPFLAGS="$CPPFLAGS"
11290 OLD_CFLAGS="$CFLAGS"
11291 OLD_LIBS="$LIBS"
11292 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11293 CFLAGS="$CFLAGS $XFT_CFLAGS"
11294 XFT_LIBS="-lXrender $XFT_LIBS"
11295 LIBS="$XFT_LIBS $LIBS"
11296 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
d6974efa 11297if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11299$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
d6974efa 11300if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11301 $as_echo_n "(cached) " >&6
11302else
11303 ac_check_lib_save_LIBS=$LIBS
11304LIBS="-lXft $XFT_LIBS $LIBS"
11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
11307
11308/* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311#ifdef __cplusplus
11312extern "C"
11313#endif
11314char XftFontOpen ();
11315int
11316main ()
11317{
11318return XftFontOpen ();
11319 ;
11320 return 0;
11321}
11322_ACEOF
11323if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_Xft_XftFontOpen=yes
11325else
11326 ac_cv_lib_Xft_XftFontOpen=no
11327fi
11328rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330LIBS=$ac_check_lib_save_LIBS
11331fi
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11333$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
d6974efa 11334if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11335 HAVE_XFT=yes
11336fi
11337
11338fi
11339
11340
11341
11342 if test "${HAVE_XFT}" = "yes"; then
11343
11344$as_echo "#define HAVE_XFT 1" >>confdefs.h
11345
11346
11347 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11348 else
11349 CPPFLAGS="$OLD_CPPFLAGS"
11350 CFLAGS="$OLD_CFLAGS"
11351 LIBS="$OLD_LIBS"
11352 fi # "${HAVE_XFT}" = "yes"
11353 fi # "$HAVE_XFT" != no
11354 fi # "x${with_xft}" != "xno"
11355
11356 if test "$HAVE_XFT" != "yes"; then
11357 HAVE_XFT=no
11358 fi
11359
067d23c9
KY
11360 ## We used to allow building with FreeType and without Xft.
11361 ## However, the ftx font backend driver is not in good shape.
9ba41eb9 11362 HAVE_FREETYPE=$HAVE_XFT
067d23c9
KY
11363
11364 HAVE_LIBOTF=no
11365 if test "${HAVE_FREETYPE}" = "yes"; then
11366
11367$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11368
11369 if test "${with_libotf}" != "no"; then
11370
11371 succeeded=no
11372
11373 # Extract the first word of "pkg-config", so it can be a program name with args.
11374set dummy pkg-config; ac_word=$2
11375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11377if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11378 $as_echo_n "(cached) " >&6
11379else
11380 case $PKG_CONFIG in
11381 [\\/]* | ?:[\\/]*)
11382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11383 ;;
11384 *)
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386for as_dir in $PATH
11387do
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11395 fi
11396done
11397 done
11398IFS=$as_save_IFS
11399
11400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11401 ;;
11402esac
11403fi
11404PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11405if test -n "$PKG_CONFIG"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11407$as_echo "$PKG_CONFIG" >&6; }
11408else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
11411fi
11412
11413
11414
11415 if test "$PKG_CONFIG" = "no" ; then
11416 HAVE_LIBOTF=no
11417 else
11418 PKG_CONFIG_MIN_VERSION=0.9.0
11419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11421$as_echo_n "checking for libotf... " >&6; }
11422
11423 if $PKG_CONFIG --exists "libotf" 2>&5; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11425$as_echo "yes" >&6; }
11426 succeeded=yes
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11429$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11430 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11432$as_echo "$LIBOTF_CFLAGS" >&6; }
11433
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11435$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11436 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11438$as_echo "$LIBOTF_LIBS" >&6; }
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441$as_echo "no" >&6; }
11442 LIBOTF_CFLAGS=""
11443 LIBOTF_LIBS=""
11444 ## If we have a custom action on failure, don't print errors, but
11445 ## do set a variable so people can do so.
11446 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11447
11448 fi
11449
11450
11451
11452 else
11453 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11454 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11455 fi
11456 fi
11457
11458 if test $succeeded = yes; then
11459 HAVE_LIBOTF=yes
11460 else
11461 HAVE_LIBOTF=no
11462 fi
11463
11464 if test "$HAVE_LIBOTF" = "yes"; then
11465
11466$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11469$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
d6974efa 11470if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11471 $as_echo_n "(cached) " >&6
11472else
11473 ac_check_lib_save_LIBS=$LIBS
11474LIBS="-lotf $LIBS"
11475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476/* end confdefs.h. */
11477
11478/* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481#ifdef __cplusplus
11482extern "C"
11483#endif
11484char OTF_get_variation_glyphs ();
11485int
11486main ()
11487{
11488return OTF_get_variation_glyphs ();
11489 ;
11490 return 0;
11491}
11492_ACEOF
11493if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11495else
11496 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11497fi
11498rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500LIBS=$ac_check_lib_save_LIBS
11501fi
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11503$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
d6974efa 11504if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11505 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11506else
11507 HAVE_OTF_GET_VARIATION_GLYPHS=no
11508fi
11509
11510 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11511
11512$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11513
11514 fi
11515 fi
11516 fi
11517 fi
11518
11519 HAVE_M17N_FLT=no
11520 if test "${HAVE_LIBOTF}" = yes; then
11521 if test "${with_m17n_flt}" != "no"; then
11522
11523 succeeded=no
11524
11525 # Extract the first word of "pkg-config", so it can be a program name with args.
11526set dummy pkg-config; ac_word=$2
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11529if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11530 $as_echo_n "(cached) " >&6
11531else
11532 case $PKG_CONFIG in
11533 [\\/]* | ?:[\\/]*)
11534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11535 ;;
11536 *)
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538for as_dir in $PATH
11539do
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 break 2
11547 fi
11548done
11549 done
11550IFS=$as_save_IFS
11551
11552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11553 ;;
11554esac
11555fi
11556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11557if test -n "$PKG_CONFIG"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11559$as_echo "$PKG_CONFIG" >&6; }
11560else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
11563fi
11564
11565
11566
11567 if test "$PKG_CONFIG" = "no" ; then
11568 HAVE_M17N_FLT=no
11569 else
11570 PKG_CONFIG_MIN_VERSION=0.9.0
11571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11573$as_echo_n "checking for m17n-flt... " >&6; }
11574
11575 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11577$as_echo "yes" >&6; }
11578 succeeded=yes
11579
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11581$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11582 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11584$as_echo "$M17N_FLT_CFLAGS" >&6; }
11585
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11587$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11588 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11590$as_echo "$M17N_FLT_LIBS" >&6; }
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593$as_echo "no" >&6; }
11594 M17N_FLT_CFLAGS=""
11595 M17N_FLT_LIBS=""
11596 ## If we have a custom action on failure, don't print errors, but
11597 ## do set a variable so people can do so.
11598 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11599
11600 fi
11601
11602
11603
11604 else
11605 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11606 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11607 fi
11608 fi
11609
11610 if test $succeeded = yes; then
11611 HAVE_M17N_FLT=yes
11612 else
11613 HAVE_M17N_FLT=no
11614 fi
11615
11616 if test "$HAVE_M17N_FLT" = "yes"; then
11617
11618$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11619
11620 fi
11621 fi
11622 fi
11623else
11624 HAVE_XFT=no
11625 HAVE_FREETYPE=no
11626 HAVE_LIBOTF=no
11627 HAVE_M17N_FLT=no
11628fi
11629
11630### End of font-backend (under X11) section.
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641### Use -lXpm if available, unless `--with-xpm=no'.
11642HAVE_XPM=no
11643LIBXPM=
11644if test "${HAVE_X11}" = "yes"; then
11645 if test "${with_xpm}" != "no"; then
11646 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
d6974efa 11647if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11649$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
d6974efa 11650if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11651 $as_echo_n "(cached) " >&6
11652else
11653 ac_check_lib_save_LIBS=$LIBS
11654LIBS="-lXpm -lX11 $LIBS"
11655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656/* end confdefs.h. */
11657
11658/* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661#ifdef __cplusplus
11662extern "C"
11663#endif
11664char XpmReadFileToPixmap ();
11665int
11666main ()
11667{
11668return XpmReadFileToPixmap ();
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673if ac_fn_c_try_link "$LINENO"; then :
11674 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11675else
11676 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11677fi
11678rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680LIBS=$ac_check_lib_save_LIBS
11681fi
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11683$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
d6974efa 11684if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
11685 HAVE_XPM=yes
11686fi
11687
11688fi
11689
11690
11691 if test "${HAVE_XPM}" = "yes"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11693$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695/* end confdefs.h. */
11696#include "X11/xpm.h"
11697#ifndef XpmReturnAllocPixels
11698no_return_alloc_pixels
11699#endif
11700
11701_ACEOF
11702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11703 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11704 HAVE_XPM=no
11705else
11706 HAVE_XPM=yes
11707fi
11708rm -f conftest*
11709
11710
11711 if test "${HAVE_XPM}" = "yes"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713$as_echo "yes" >&6; }
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
11717 fi
11718 fi
11719 fi
11720
11721 if test "${HAVE_XPM}" = "yes"; then
11722
11723$as_echo "#define HAVE_XPM 1" >>confdefs.h
11724
11725 LIBXPM=-lXpm
11726 fi
11727fi
11728
11729
11730### Use -ljpeg if available, unless `--with-jpeg=no'.
11731HAVE_JPEG=no
11732LIBJPEG=
11733if test "${HAVE_X11}" = "yes"; then
11734 if test "${with_jpeg}" != "no"; then
11735 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
d6974efa 11736if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11738$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
d6974efa 11739if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
11740 $as_echo_n "(cached) " >&6
11741else
11742 ac_check_lib_save_LIBS=$LIBS
11743LIBS="-ljpeg $LIBS"
11744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745/* end confdefs.h. */
11746
11747/* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750#ifdef __cplusplus
11751extern "C"
11752#endif
11753char jpeg_destroy_compress ();
11754int
11755main ()
11756{
11757return jpeg_destroy_compress ();
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762if ac_fn_c_try_link "$LINENO"; then :
11763 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11764else
11765 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11766fi
11767rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769LIBS=$ac_check_lib_save_LIBS
11770fi
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11772$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
d6974efa 11773if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
11774 HAVE_JPEG=yes
11775fi
11776
11777fi
11778
11779
11780 fi
11781
11782 if test "${HAVE_JPEG}" = "yes"; then
11783 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11784
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786/* end confdefs.h. */
11787#include <jpeglib.h>
11788 version=JPEG_LIB_VERSION
11789
11790_ACEOF
11791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11792 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11793 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11794
11795else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11797$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11798 HAVE_JPEG=no
11799fi
11800rm -f conftest*
11801
11802 fi
11803 if test "${HAVE_JPEG}" = "yes"; then
11804 LIBJPEG=-ljpeg
11805 fi
11806fi
11807
11808
11809### Use -lpng if available, unless `--with-png=no'.
11810HAVE_PNG=no
11811LIBPNG=
11812if test "${HAVE_X11}" = "yes"; then
11813 if test "${with_png}" != "no"; then
11814 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11815 # in /usr/include/libpng.
11816 for ac_header in png.h libpng/png.h
11817do :
11818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11819ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 11820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
11821 cat >>confdefs.h <<_ACEOF
11822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823_ACEOF
11824
11825fi
11826
11827done
11828
11829 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11831$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
d6974efa 11832if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
11833 $as_echo_n "(cached) " >&6
11834else
11835 ac_check_lib_save_LIBS=$LIBS
11836LIBS="-lpng -lz -lm $LIBS"
11837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838/* end confdefs.h. */
11839
11840/* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11843#ifdef __cplusplus
11844extern "C"
11845#endif
11846char png_get_channels ();
11847int
11848main ()
11849{
11850return png_get_channels ();
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855if ac_fn_c_try_link "$LINENO"; then :
11856 ac_cv_lib_png_png_get_channels=yes
11857else
11858 ac_cv_lib_png_png_get_channels=no
11859fi
11860rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862LIBS=$ac_check_lib_save_LIBS
11863fi
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11865$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
d6974efa 11866if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
11867 HAVE_PNG=yes
11868fi
11869
11870 fi
11871 fi
11872
11873 if test "${HAVE_PNG}" = "yes"; then
11874
11875$as_echo "#define HAVE_PNG 1" >>confdefs.h
11876
11877 LIBPNG="-lpng -lz -lm"
11878 fi
11879fi
11880
11881
11882### Use -ltiff if available, unless `--with-tiff=no'.
11883HAVE_TIFF=no
11884LIBTIFF=
11885if test "${HAVE_X11}" = "yes"; then
11886 if test "${with_tiff}" != "no"; then
11887 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
d6974efa 11888if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
11889 tifflibs="-lz -lm"
11890 # At least one tiff package requires the jpeg library.
11891 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11893$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
d6974efa 11894if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
11895 $as_echo_n "(cached) " >&6
11896else
11897 ac_check_lib_save_LIBS=$LIBS
11898LIBS="-ltiff $tifflibs $LIBS"
11899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900/* end confdefs.h. */
11901
11902/* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11905#ifdef __cplusplus
11906extern "C"
11907#endif
11908char TIFFGetVersion ();
11909int
11910main ()
11911{
11912return TIFFGetVersion ();
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917if ac_fn_c_try_link "$LINENO"; then :
11918 ac_cv_lib_tiff_TIFFGetVersion=yes
11919else
11920 ac_cv_lib_tiff_TIFFGetVersion=no
11921fi
11922rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924LIBS=$ac_check_lib_save_LIBS
11925fi
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11927$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
d6974efa 11928if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
11929 HAVE_TIFF=yes
11930fi
11931
11932fi
11933
11934
11935 fi
11936
11937 if test "${HAVE_TIFF}" = "yes"; then
11938
11939$as_echo "#define HAVE_TIFF 1" >>confdefs.h
11940
11941 LIBTIFF=-ltiff
11942 fi
11943fi
11944
11945
11946### Use -lgif or -lungif if available, unless `--with-gif=no'.
11947HAVE_GIF=no
11948LIBGIF=
11949if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11950 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
d6974efa 11951if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
11952 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11953# Earlier versions can crash Emacs.
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11955$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
d6974efa 11956if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
11957 $as_echo_n "(cached) " >&6
11958else
11959 ac_check_lib_save_LIBS=$LIBS
11960LIBS="-lgif $LIBS"
11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962/* end confdefs.h. */
11963
11964/* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970char EGifPutExtensionLast ();
11971int
11972main ()
11973{
11974return EGifPutExtensionLast ();
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_lib_gif_EGifPutExtensionLast=yes
11981else
11982 ac_cv_lib_gif_EGifPutExtensionLast=no
11983fi
11984rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11989$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
d6974efa 11990if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
11991 HAVE_GIF=yes
11992else
11993 HAVE_GIF=maybe
11994fi
11995
11996fi
11997
11998
11999
12000 if test "$HAVE_GIF" = yes; then
12001 LIBGIF=-lgif
12002 elif test "$HAVE_GIF" = maybe; then
12003# If gif_lib.h but no libgif, try libungif.
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12005$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
d6974efa 12006if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12007 $as_echo_n "(cached) " >&6
12008else
12009 ac_check_lib_save_LIBS=$LIBS
12010LIBS="-lungif $LIBS"
12011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012/* end confdefs.h. */
12013
12014/* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017#ifdef __cplusplus
12018extern "C"
12019#endif
12020char EGifPutExtensionLast ();
12021int
12022main ()
12023{
12024return EGifPutExtensionLast ();
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029if ac_fn_c_try_link "$LINENO"; then :
12030 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12031else
12032 ac_cv_lib_ungif_EGifPutExtensionLast=no
12033fi
12034rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036LIBS=$ac_check_lib_save_LIBS
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12039$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
d6974efa 12040if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12041 HAVE_GIF=yes
12042else
12043 HAVE_GIF=no
12044fi
12045
12046 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12047 fi
12048
12049 if test "${HAVE_GIF}" = "yes"; then
12050
12051$as_echo "#define HAVE_GIF 1" >>confdefs.h
12052
12053 fi
12054fi
12055
12056
12057if test "${HAVE_X11}" = "yes"; then
12058 MISSING=""
12059 WITH_NO=""
12060 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12061 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12062 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12063 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12064 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12065 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12066 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12067 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12068 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12069 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12070
12071 if test "X${MISSING}" != X; then
2018939f 12072 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12073 $MISSING
12074Maybe some development libraries/packages are missing?
12075If you don't want to link with them give
12076 $WITH_NO
12077as options to configure" "$LINENO" 5
12078 fi
12079fi
12080
12081### Use -lgpm if available, unless `--with-gpm=no'.
12082HAVE_GPM=no
12083LIBGPM=
12084MOUSE_SUPPORT=
12085if test "${with_gpm}" != "no"; then
12086 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
d6974efa 12087if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12089$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
d6974efa 12090if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12091 $as_echo_n "(cached) " >&6
12092else
12093 ac_check_lib_save_LIBS=$LIBS
12094LIBS="-lgpm $LIBS"
12095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h. */
12097
12098/* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
12101#ifdef __cplusplus
12102extern "C"
12103#endif
12104char Gpm_Open ();
12105int
12106main ()
12107{
12108return Gpm_Open ();
12109 ;
12110 return 0;
12111}
12112_ACEOF
12113if ac_fn_c_try_link "$LINENO"; then :
12114 ac_cv_lib_gpm_Gpm_Open=yes
12115else
12116 ac_cv_lib_gpm_Gpm_Open=no
12117fi
12118rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120LIBS=$ac_check_lib_save_LIBS
12121fi
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12123$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
d6974efa 12124if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12125 HAVE_GPM=yes
12126fi
12127
12128fi
12129
12130
12131
12132 if test "${HAVE_GPM}" = "yes"; then
12133
12134$as_echo "#define HAVE_GPM 1" >>confdefs.h
12135
12136 LIBGPM=-lgpm
12137 ## May be reset below.
12138 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12139 fi
12140fi
12141
12142
12143ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
d6974efa 12144if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12145
12146$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12147
12148fi
12149
12150
12151
12152C_SWITCH_X_SYSTEM=
12153### Use NeXTstep API to implement GUI.
12154if test "${HAVE_NS}" = "yes"; then
12155
12156$as_echo "#define HAVE_NS 1" >>confdefs.h
12157
12158 if test "${NS_IMPL_COCOA}" = "yes"; then
12159
12160$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12161
12162 GNU_OBJC_CFLAGS=
12163 fi
12164 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12165
12166$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12167
12168 # See also .m.o rule in Makefile.in */
12169 # FIXME: are all these flags really needed? Document here why. */
12170 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12171 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12172 fi
12173 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12174
12175$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12176
12177 fi
12178 # We also have mouse menus.
12179 HAVE_MENUS=yes
12180 OTHER_FILES=ns-app
12181fi
12182
12183
12184### Use session management (-lSM -lICE) if available
12185HAVE_X_SM=no
12186LIBXSM=
12187if test "${HAVE_X11}" = "yes"; then
12188 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
d6974efa 12189if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12191$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
d6974efa 12192if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12193 $as_echo_n "(cached) " >&6
12194else
12195 ac_check_lib_save_LIBS=$LIBS
12196LIBS="-lSM -lICE $LIBS"
12197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198/* end confdefs.h. */
12199
12200/* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12203#ifdef __cplusplus
12204extern "C"
12205#endif
12206char SmcOpenConnection ();
12207int
12208main ()
12209{
12210return SmcOpenConnection ();
12211 ;
12212 return 0;
12213}
12214_ACEOF
12215if ac_fn_c_try_link "$LINENO"; then :
12216 ac_cv_lib_SM_SmcOpenConnection=yes
12217else
12218 ac_cv_lib_SM_SmcOpenConnection=no
12219fi
12220rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222LIBS=$ac_check_lib_save_LIBS
12223fi
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12225$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
d6974efa 12226if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12227 HAVE_X_SM=yes
12228fi
12229
12230fi
12231
12232
12233
12234 if test "${HAVE_X_SM}" = "yes"; then
12235
12236$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12237
12238 LIBXSM="-lSM -lICE"
12239 case "$LIBS" in
12240 *-lSM*) ;;
12241 *) LIBS="$LIBXSM $LIBS" ;;
12242 esac
12243 fi
12244fi
12245
12246
12247### Use libxml (-lxml2) if available
12248if test "${with_xml2}" != "no"; then
12249 ### I'm not sure what the version number should be, so I just guessed.
12250
12251 succeeded=no
12252
12253 # Extract the first word of "pkg-config", so it can be a program name with args.
12254set dummy pkg-config; ac_word=$2
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12257if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12258 $as_echo_n "(cached) " >&6
12259else
12260 case $PKG_CONFIG in
12261 [\\/]* | ?:[\\/]*)
12262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12263 ;;
12264 *)
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276done
12277 done
12278IFS=$as_save_IFS
12279
12280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12281 ;;
12282esac
12283fi
12284PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12285if test -n "$PKG_CONFIG"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12287$as_echo "$PKG_CONFIG" >&6; }
12288else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
12291fi
12292
12293
12294
12295 if test "$PKG_CONFIG" = "no" ; then
12296 HAVE_LIBXML2=no
12297 else
12298 PKG_CONFIG_MIN_VERSION=0.9.0
12299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12301$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12302
dab73760 12303 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12305$as_echo "yes" >&6; }
12306 succeeded=yes
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12309$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12310 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12312$as_echo "$LIBXML2_CFLAGS" >&6; }
12313
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12315$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12316 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12318$as_echo "$LIBXML2_LIBS" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
12322 LIBXML2_CFLAGS=""
12323 LIBXML2_LIBS=""
12324 ## If we have a custom action on failure, don't print errors, but
12325 ## do set a variable so people can do so.
dab73760 12326 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12327
12328 fi
12329
12330
12331
12332 else
12333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12335 fi
12336 fi
12337
12338 if test $succeeded = yes; then
12339 HAVE_LIBXML2=yes
12340 else
12341 HAVE_LIBXML2=no
12342 fi
12343
12344 if test "${HAVE_LIBXML2}" = "yes"; then
12345 LIBS="$LIBXML2_LIBS $LIBS"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12347$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
d6974efa 12348if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12349 $as_echo_n "(cached) " >&6
12350else
12351 ac_check_lib_save_LIBS=$LIBS
12352LIBS="-lxml2 $LIBS"
12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h. */
12355
12356/* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12359#ifdef __cplusplus
12360extern "C"
12361#endif
12362char htmlReadMemory ();
12363int
12364main ()
12365{
12366return htmlReadMemory ();
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_lib_xml2_htmlReadMemory=yes
12373else
12374 ac_cv_lib_xml2_htmlReadMemory=no
12375fi
12376rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378LIBS=$ac_check_lib_save_LIBS
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12381$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
d6974efa 12382if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12383 HAVE_LIBXML2=yes
12384else
12385 HAVE_LIBXML2=no
12386fi
12387
12388 if test "${HAVE_LIBXML2}" = "yes"; then
12389
12390$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12391
12392 else
12393 LIBXML2_LIBS=""
12394 LIBXML2_CFLAGS=""
12395 fi
12396 fi
12397fi
12398
12399
12400
12401# If netdb.h doesn't declare h_errno, we must declare it by hand.
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12403$as_echo_n "checking whether netdb declares h_errno... " >&6; }
d6974efa 12404if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12405 $as_echo_n "(cached) " >&6
12406else
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408/* end confdefs.h. */
12409#include <netdb.h>
12410int
12411main ()
12412{
12413return h_errno;
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418if ac_fn_c_try_link "$LINENO"; then :
12419 emacs_cv_netdb_declares_h_errno=yes
12420else
12421 emacs_cv_netdb_declares_h_errno=no
12422fi
12423rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425fi
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12427$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12428if test $emacs_cv_netdb_declares_h_errno = yes; then
12429
12430$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12431
12432fi
12433
d6974efa
PE
12434ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12435if test "x$ac_cv_type_size_t" = xyes; then :
12436
12437else
12438
12439cat >>confdefs.h <<_ACEOF
12440#define size_t unsigned int
12441_ACEOF
12442
12443fi
12444
067d23c9
KY
12445# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12446# for constant arguments. Useless!
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12448$as_echo_n "checking for working alloca.h... " >&6; }
d6974efa 12449if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12450 $as_echo_n "(cached) " >&6
12451else
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453/* end confdefs.h. */
12454#include <alloca.h>
12455int
12456main ()
12457{
12458char *p = (char *) alloca (2 * sizeof (int));
12459 if (p) return 0;
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_working_alloca_h=yes
12466else
12467 ac_cv_working_alloca_h=no
12468fi
12469rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471fi
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12473$as_echo "$ac_cv_working_alloca_h" >&6; }
12474if test $ac_cv_working_alloca_h = yes; then
12475
12476$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12477
12478fi
12479
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12481$as_echo_n "checking for alloca... " >&6; }
d6974efa 12482if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12483 $as_echo_n "(cached) " >&6
12484else
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h. */
12487#ifdef __GNUC__
12488# define alloca __builtin_alloca
12489#else
12490# ifdef _MSC_VER
12491# include <malloc.h>
12492# define alloca _alloca
12493# else
12494# ifdef HAVE_ALLOCA_H
12495# include <alloca.h>
12496# else
12497# ifdef _AIX
12498 #pragma alloca
12499# else
12500# ifndef alloca /* predefined by HP cc +Olibcalls */
d6974efa 12501void *alloca (size_t);
067d23c9
KY
12502# endif
12503# endif
12504# endif
12505# endif
12506#endif
12507
12508int
12509main ()
12510{
12511char *p = (char *) alloca (1);
12512 if (p) return 0;
12513 ;
12514 return 0;
12515}
12516_ACEOF
12517if ac_fn_c_try_link "$LINENO"; then :
12518 ac_cv_func_alloca_works=yes
12519else
12520 ac_cv_func_alloca_works=no
12521fi
12522rm -f core conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12526$as_echo "$ac_cv_func_alloca_works" >&6; }
12527
12528if test $ac_cv_func_alloca_works = yes; then
12529
12530$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12531
12532else
12533 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12534# that cause trouble. Some versions do not even contain alloca or
12535# contain a buggy version. If you still want to use their alloca,
12536# use ar to extract alloca.o from them instead of compiling alloca.c.
12537
12538ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12539
12540$as_echo "#define C_ALLOCA 1" >>confdefs.h
12541
12542
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12544$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d6974efa 12545if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12546 $as_echo_n "(cached) " >&6
12547else
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549/* end confdefs.h. */
12550#if defined CRAY && ! defined CRAY2
12551webecray
12552#else
12553wenotbecray
12554#endif
12555
12556_ACEOF
12557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12558 $EGREP "webecray" >/dev/null 2>&1; then :
12559 ac_cv_os_cray=yes
12560else
12561 ac_cv_os_cray=no
12562fi
12563rm -f conftest*
12564
12565fi
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12567$as_echo "$ac_cv_os_cray" >&6; }
12568if test $ac_cv_os_cray = yes; then
12569 for ac_func in _getb67 GETB67 getb67; do
12570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12572if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12573
12574cat >>confdefs.h <<_ACEOF
12575#define CRAY_STACKSEG_END $ac_func
12576_ACEOF
12577
12578 break
12579fi
12580
12581 done
12582fi
12583
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12585$as_echo_n "checking stack direction for C alloca... " >&6; }
d6974efa 12586if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12587 $as_echo_n "(cached) " >&6
12588else
12589 if test "$cross_compiling" = yes; then :
12590 ac_cv_c_stack_direction=0
12591else
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593/* end confdefs.h. */
12594$ac_includes_default
12595int
12596find_stack_direction ()
12597{
12598 static char *addr = 0;
12599 auto char dummy;
12600 if (addr == 0)
12601 {
12602 addr = &dummy;
12603 return find_stack_direction ();
12604 }
12605 else
12606 return (&dummy > addr) ? 1 : -1;
12607}
12608
12609int
12610main ()
12611{
12612 return find_stack_direction () < 0;
12613}
12614_ACEOF
12615if ac_fn_c_try_run "$LINENO"; then :
12616 ac_cv_c_stack_direction=1
12617else
12618 ac_cv_c_stack_direction=-1
12619fi
12620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12621 conftest.$ac_objext conftest.beam conftest.$ac_ext
12622fi
12623
12624fi
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12626$as_echo "$ac_cv_c_stack_direction" >&6; }
12627cat >>confdefs.h <<_ACEOF
12628#define STACK_DIRECTION $ac_cv_c_stack_direction
12629_ACEOF
12630
12631
12632fi
12633
12634
12635if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12636 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12637fi
12638
12639# fmod, logb, and frexp are found in -lm on most systems.
12640# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12642$as_echo_n "checking for sqrt in -lm... " >&6; }
d6974efa 12643if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12644 $as_echo_n "(cached) " >&6
12645else
12646 ac_check_lib_save_LIBS=$LIBS
12647LIBS="-lm $LIBS"
12648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h. */
12650
12651/* Override any GCC internal prototype to avoid an error.
12652 Use char because int might match the return type of a GCC
12653 builtin and then its argument prototype would still apply. */
12654#ifdef __cplusplus
12655extern "C"
12656#endif
12657char sqrt ();
12658int
12659main ()
12660{
12661return sqrt ();
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_link "$LINENO"; then :
12667 ac_cv_lib_m_sqrt=yes
12668else
12669 ac_cv_lib_m_sqrt=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673LIBS=$ac_check_lib_save_LIBS
12674fi
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12676$as_echo "$ac_cv_lib_m_sqrt" >&6; }
d6974efa 12677if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
12678 cat >>confdefs.h <<_ACEOF
12679#define HAVE_LIBM 1
12680_ACEOF
12681
12682 LIBS="-lm $LIBS"
12683
12684fi
12685
12686
12687# Check for mail-locking functions in a "mail" library. Probably this should
12688# have the same check as for liblockfile below.
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12690$as_echo_n "checking for maillock in -lmail... " >&6; }
d6974efa 12691if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
12692 $as_echo_n "(cached) " >&6
12693else
12694 ac_check_lib_save_LIBS=$LIBS
12695LIBS="-lmail $LIBS"
12696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h. */
12698
12699/* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702#ifdef __cplusplus
12703extern "C"
12704#endif
12705char maillock ();
12706int
12707main ()
12708{
12709return maillock ();
12710 ;
12711 return 0;
12712}
12713_ACEOF
12714if ac_fn_c_try_link "$LINENO"; then :
12715 ac_cv_lib_mail_maillock=yes
12716else
12717 ac_cv_lib_mail_maillock=no
12718fi
12719rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721LIBS=$ac_check_lib_save_LIBS
12722fi
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12724$as_echo "$ac_cv_lib_mail_maillock" >&6; }
d6974efa 12725if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
12726 have_mail=yes
12727else
12728 have_mail=no
12729fi
12730
12731if test $have_mail = yes; then
12732 LIBS_MAIL=-lmail
12733 LIBS="$LIBS_MAIL $LIBS"
12734
12735$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12736
12737else
12738 LIBS_MAIL=
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12741$as_echo_n "checking for maillock in -llockfile... " >&6; }
d6974efa 12742if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
12743 $as_echo_n "(cached) " >&6
12744else
12745 ac_check_lib_save_LIBS=$LIBS
12746LIBS="-llockfile $LIBS"
12747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748/* end confdefs.h. */
12749
12750/* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char maillock ();
12757int
12758main ()
12759{
12760return maillock ();
12761 ;
12762 return 0;
12763}
12764_ACEOF
12765if ac_fn_c_try_link "$LINENO"; then :
12766 ac_cv_lib_lockfile_maillock=yes
12767else
12768 ac_cv_lib_lockfile_maillock=no
12769fi
12770rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772LIBS=$ac_check_lib_save_LIBS
12773fi
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12775$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
d6974efa 12776if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
12777 have_lockfile=yes
12778else
12779 have_lockfile=no
12780fi
12781
12782if test $have_lockfile = yes; then
12783 LIBS_MAIL=-llockfile
12784 LIBS="$LIBS_MAIL $LIBS"
12785
12786$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12787
12788else
12789# If we have the shared liblockfile, assume we must use it for mail
12790# locking (e.g. Debian). If we couldn't link against liblockfile
12791# (no liblockfile.a installed), ensure that we don't need to.
12792 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12793set dummy liblockfile.so; ac_word=$2
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12795$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12796if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
12797 $as_echo_n "(cached) " >&6
12798else
12799 if test -n "$liblockfile"; then
12800 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12801else
12802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12804for as_dir in $as_dummy
12805do
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12810 ac_cv_prog_liblockfile="yes"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 break 2
12813 fi
12814done
12815 done
12816IFS=$as_save_IFS
12817
12818 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12819fi
12820fi
12821liblockfile=$ac_cv_prog_liblockfile
12822if test -n "$liblockfile"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12824$as_echo "$liblockfile" >&6; }
12825else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827$as_echo "no" >&6; }
12828fi
12829
12830
12831 if test $ac_cv_prog_liblockfile = yes; then
2018939f 12832 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
12833This probably means that movemail could lose mail.
12834There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12835 fi
12836fi
12837for ac_func in touchlock
12838do :
12839 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
d6974efa 12840if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
12841 cat >>confdefs.h <<_ACEOF
12842#define HAVE_TOUCHLOCK 1
12843_ACEOF
12844
12845fi
12846done
12847
12848for ac_header in maillock.h
12849do :
12850 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
d6974efa 12851if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
12852 cat >>confdefs.h <<_ACEOF
12853#define HAVE_MAILLOCK_H 1
12854_ACEOF
12855
12856fi
12857
12858done
12859
12860
12861
12862## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12863## interlock access to the mail spool. The alternative is a lock file named
12864## /usr/spool/mail/$USER.lock.
12865mail_lock=no
12866case "$opsys" in
12867 aix4-2) mail_lock="lockf" ;;
12868
12869 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12870
12871 ## On GNU/Linux systems, both methods are used by various mail programs.
12872 ## I assume most people are using newer mailers that have heard of flock.
12873 ## Change this if you need to.
12874 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12875 ## configure gets the right answers, and that means *NOT* using flock.
12876 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12877 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12878 ## Debian maintainer hasn't provided a clean fix for Emacs.
12879 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12880 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12881 ## correct logic. -- fx
12882 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12883 ## liblockfile is a Free Software replacement for libmail, used on
12884 ## Debian systems and elsewhere. -rfr.
12885 gnu-*)
12886 mail_lock="flock"
12887 if test $have_mail = yes || test $have_lockfile = yes; then
12888 test $ac_cv_header_maillock_h = yes && mail_lock=no
12889 fi
12890 ;;
12891esac
12892
12893BLESSMAIL_TARGET=
12894case "$mail_lock" in
12895 flock)
12896$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12897 ;;
12898
12899 lockf)
12900$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12901 ;;
12902
12903 *) BLESSMAIL_TARGET="need-blessmail" ;;
12904esac
12905
12906
12907
12908for ac_func in gethostname getdomainname dup2 \
12909rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12910random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 12911strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
12912utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12913__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12914sendto recvfrom getsockopt setsockopt getsockname getpeername \
12915gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12916memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12917cfmakeraw cfsetspeed isnan copysign __executable_start
12918do :
12919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12921if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12922 cat >>confdefs.h <<_ACEOF
12923#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12924_ACEOF
12925
12926fi
12927done
12928
12929
2018939f
AS
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12931$as_echo_n "checking for __builtin_unwind_init... " >&6; }
d6974efa 12932if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
12933 $as_echo_n "(cached) " >&6
12934else
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h. */
12937
12938int
12939main ()
12940{
12941__builtin_unwind_init ();
12942 ;
12943 return 0;
12944}
12945_ACEOF
12946if ac_fn_c_try_link "$LINENO"; then :
12947 emacs_cv_func___builtin_unwind_init=yes
12948else
12949 emacs_cv_func___builtin_unwind_init=no
12950fi
12951rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953fi
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12955$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12956if test $emacs_cv_func___builtin_unwind_init = yes; then
12957
12958$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12959
12960fi
12961
067d23c9
KY
12962for ac_header in sys/un.h
12963do :
12964 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
d6974efa 12965if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
12966 cat >>confdefs.h <<_ACEOF
12967#define HAVE_SYS_UN_H 1
12968_ACEOF
12969
12970fi
12971
12972done
12973
12974
1fd182f0 12975ac_have_func=no # yes means we've found a way to get the load average.
067d23c9
KY
12976
12977# Make sure getloadavg.c is where it belongs, at configure-time.
12978test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
2018939f 12979 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
067d23c9
KY
12980
12981ac_save_LIBS=$LIBS
12982
12983# Check for getloadavg, but be sure not to touch the cache variable.
12984(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
d6974efa 12985if test "x$ac_cv_func_getloadavg" = xyes; then :
067d23c9
KY
12986 exit 0
12987else
12988 exit 1
12989fi
12990) && ac_have_func=yes
12991
12992# On HPUX9, an unprivileged user can get load averages through this function.
12993for ac_func in pstat_getdynamic
12994do :
12995 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
d6974efa 12996if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
067d23c9
KY
12997 cat >>confdefs.h <<_ACEOF
12998#define HAVE_PSTAT_GETDYNAMIC 1
12999_ACEOF
13000
13001fi
13002done
13003
13004
13005# Solaris has libkstat which does not require root.
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13007$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
d6974efa 13008if ${ac_cv_lib_kstat_kstat_open+:} false; then :
067d23c9
KY
13009 $as_echo_n "(cached) " >&6
13010else
13011 ac_check_lib_save_LIBS=$LIBS
13012LIBS="-lkstat $LIBS"
13013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h. */
13015
13016/* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13019#ifdef __cplusplus
13020extern "C"
13021#endif
13022char kstat_open ();
13023int
13024main ()
13025{
13026return kstat_open ();
13027 ;
13028 return 0;
13029}
13030_ACEOF
13031if ac_fn_c_try_link "$LINENO"; then :
13032 ac_cv_lib_kstat_kstat_open=yes
13033else
13034 ac_cv_lib_kstat_kstat_open=no
13035fi
13036rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038LIBS=$ac_check_lib_save_LIBS
13039fi
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13041$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
d6974efa 13042if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
067d23c9
KY
13043 cat >>confdefs.h <<_ACEOF
13044#define HAVE_LIBKSTAT 1
13045_ACEOF
13046
13047 LIBS="-lkstat $LIBS"
13048
13049fi
13050
13051test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13052
13053# Some systems with -lutil have (and need) -lkvm as well, some do not.
13054# On Solaris, -lkvm requires nlist from -lelf, so check that first
13055# to get the right answer into the cache.
13056# For kstat on solaris, we need libelf to force the definition of SVR4 below.
13057if test $ac_have_func = no; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13059$as_echo_n "checking for elf_begin in -lelf... " >&6; }
d6974efa 13060if ${ac_cv_lib_elf_elf_begin+:} false; then :
067d23c9
KY
13061 $as_echo_n "(cached) " >&6
13062else
13063 ac_check_lib_save_LIBS=$LIBS
13064LIBS="-lelf $LIBS"
13065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066/* end confdefs.h. */
13067
13068/* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071#ifdef __cplusplus
13072extern "C"
13073#endif
13074char elf_begin ();
13075int
13076main ()
13077{
13078return elf_begin ();
13079 ;
13080 return 0;
13081}
13082_ACEOF
13083if ac_fn_c_try_link "$LINENO"; then :
13084 ac_cv_lib_elf_elf_begin=yes
13085else
13086 ac_cv_lib_elf_elf_begin=no
13087fi
13088rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090LIBS=$ac_check_lib_save_LIBS
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13093$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
d6974efa 13094if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
067d23c9
KY
13095 LIBS="-lelf $LIBS"
13096fi
13097
13098fi
13099if test $ac_have_func = no; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13101$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
d6974efa 13102if ${ac_cv_lib_kvm_kvm_open+:} false; then :
067d23c9
KY
13103 $as_echo_n "(cached) " >&6
13104else
13105 ac_check_lib_save_LIBS=$LIBS
13106LIBS="-lkvm $LIBS"
13107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h. */
13109
13110/* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13113#ifdef __cplusplus
13114extern "C"
13115#endif
13116char kvm_open ();
13117int
13118main ()
13119{
13120return kvm_open ();
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_lib_kvm_kvm_open=yes
13127else
13128 ac_cv_lib_kvm_kvm_open=no
13129fi
13130rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132LIBS=$ac_check_lib_save_LIBS
13133fi
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13135$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
d6974efa 13136if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
067d23c9
KY
13137 LIBS="-lkvm $LIBS"
13138fi
13139
13140 # Check for the 4.4BSD definition of getloadavg.
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13142$as_echo_n "checking for getloadavg in -lutil... " >&6; }
d6974efa 13143if ${ac_cv_lib_util_getloadavg+:} false; then :
067d23c9
KY
13144 $as_echo_n "(cached) " >&6
13145else
13146 ac_check_lib_save_LIBS=$LIBS
13147LIBS="-lutil $LIBS"
13148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150
13151/* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13154#ifdef __cplusplus
13155extern "C"
13156#endif
13157char getloadavg ();
13158int
13159main ()
13160{
13161return getloadavg ();
13162 ;
13163 return 0;
13164}
13165_ACEOF
13166if ac_fn_c_try_link "$LINENO"; then :
13167 ac_cv_lib_util_getloadavg=yes
13168else
13169 ac_cv_lib_util_getloadavg=no
13170fi
13171rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173LIBS=$ac_check_lib_save_LIBS
13174fi
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13176$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
d6974efa 13177if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
067d23c9
KY
13178 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13179fi
13180
13181fi
13182
13183if test $ac_have_func = no; then
13184 # There is a commonly available library for RS/6000 AIX.
13185 # Since it is not a standard part of AIX, it might be installed locally.
13186 ac_getloadavg_LIBS=$LIBS
13187 LIBS="-L/usr/local/lib $LIBS"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13189$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
d6974efa 13190if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
067d23c9
KY
13191 $as_echo_n "(cached) " >&6
13192else
13193 ac_check_lib_save_LIBS=$LIBS
13194LIBS="-lgetloadavg $LIBS"
13195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196/* end confdefs.h. */
13197
13198/* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13201#ifdef __cplusplus
13202extern "C"
13203#endif
13204char getloadavg ();
13205int
13206main ()
13207{
13208return getloadavg ();
13209 ;
13210 return 0;
13211}
13212_ACEOF
13213if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_lib_getloadavg_getloadavg=yes
13215else
13216 ac_cv_lib_getloadavg_getloadavg=no
13217fi
13218rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220LIBS=$ac_check_lib_save_LIBS
13221fi
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13223$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
d6974efa 13224if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
067d23c9
KY
13225 LIBS="-lgetloadavg $LIBS"
13226else
13227 LIBS=$ac_getloadavg_LIBS
13228fi
13229
13230fi
13231
13232# Make sure it is really in the library, if we think we found it,
13233# otherwise set up the replacement function.
13234for ac_func in getloadavg
13235do :
13236 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
d6974efa 13237if test "x$ac_cv_func_getloadavg" = xyes; then :
067d23c9
KY
13238 cat >>confdefs.h <<_ACEOF
13239#define HAVE_GETLOADAVG 1
13240_ACEOF
13241
13242else
13243 case " $LIBOBJS " in
13244 *" getloadavg.$ac_objext "* ) ;;
13245 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13246 ;;
13247esac
13248
13249
13250$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13251
13252# Figure out what our getloadavg.c needs.
13253ac_have_func=no
13254ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
d6974efa 13255if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
067d23c9
KY
13256 ac_have_func=yes
13257
13258$as_echo "#define DGUX 1" >>confdefs.h
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13261$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
d6974efa 13262if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
067d23c9
KY
13263 $as_echo_n "(cached) " >&6
13264else
13265 ac_check_lib_save_LIBS=$LIBS
13266LIBS="-ldgc $LIBS"
13267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268/* end confdefs.h. */
13269
13270/* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13273#ifdef __cplusplus
13274extern "C"
13275#endif
13276char dg_sys_info ();
13277int
13278main ()
13279{
13280return dg_sys_info ();
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285if ac_fn_c_try_link "$LINENO"; then :
13286 ac_cv_lib_dgc_dg_sys_info=yes
13287else
13288 ac_cv_lib_dgc_dg_sys_info=no
13289fi
13290rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292LIBS=$ac_check_lib_save_LIBS
13293fi
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13295$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
d6974efa 13296if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
067d23c9
KY
13297 cat >>confdefs.h <<_ACEOF
13298#define HAVE_LIBDGC 1
13299_ACEOF
13300
13301 LIBS="-ldgc $LIBS"
13302
13303fi
13304
13305fi
13306
13307
13308
13309ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
d6974efa 13310if test "x$ac_cv_header_locale_h" = xyes; then :
067d23c9
KY
13311
13312fi
13313
13314
13315for ac_func in setlocale
13316do :
13317 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
d6974efa 13318if test "x$ac_cv_func_setlocale" = xyes; then :
067d23c9
KY
13319 cat >>confdefs.h <<_ACEOF
13320#define HAVE_SETLOCALE 1
13321_ACEOF
13322
13323fi
13324done
13325
13326
13327# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13328# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13329# Irix 4.0.5F has the header but not the library.
d6974efa
PE
13330if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13331 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
067d23c9
KY
13332 ac_have_func=yes
13333
13334$as_echo "#define SVR4 1" >>confdefs.h
13335
13336fi
13337
13338if test $ac_have_func = no; then
13339 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
d6974efa 13340if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
067d23c9
KY
13341 ac_have_func=yes
13342
13343$as_echo "#define UMAX 1" >>confdefs.h
13344
13345
13346$as_echo "#define UMAX4_3 1" >>confdefs.h
13347
13348fi
13349
13350
13351fi
13352
13353if test $ac_have_func = no; then
13354 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
d6974efa 13355if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
067d23c9
KY
13356 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13357
13358fi
13359
13360
13361fi
13362
13363if test $ac_have_func = no; then
13364 for ac_header in mach/mach.h
13365do :
13366 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
d6974efa 13367if test "x$ac_cv_header_mach_mach_h" = xyes; then :
067d23c9
KY
13368 cat >>confdefs.h <<_ACEOF
13369#define HAVE_MACH_MACH_H 1
13370_ACEOF
13371
13372fi
13373
13374done
13375
13376fi
13377
13378for ac_header in nlist.h
13379do :
13380 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
d6974efa 13381if test "x$ac_cv_header_nlist_h" = xyes; then :
067d23c9
KY
13382 cat >>confdefs.h <<_ACEOF
13383#define HAVE_NLIST_H 1
13384_ACEOF
13385 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13386"
d6974efa 13387if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
067d23c9
KY
13388
13389cat >>confdefs.h <<_ACEOF
13390#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13391_ACEOF
13392
13393
13394$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13395
13396fi
13397
13398
13399fi
13400
13401done
13402
13403fi
13404done
13405
13406
13407# Some definitions of getloadavg require that the program be installed setgid.
13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13409$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
d6974efa 13410if ${ac_cv_func_getloadavg_setgid+:} false; then :
067d23c9
KY
13411 $as_echo_n "(cached) " >&6
13412else
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414/* end confdefs.h. */
13415#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13416#ifdef LDAV_PRIVILEGED
13417Yowza Am I SETGID yet
13418#endif
13419_ACEOF
13420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13422 ac_cv_func_getloadavg_setgid=yes
13423else
13424 ac_cv_func_getloadavg_setgid=no
13425fi
13426rm -f conftest*
13427
13428fi
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13430$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13431if test $ac_cv_func_getloadavg_setgid = yes; then
13432 NEED_SETGID=true
13433
13434$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13435
13436else
13437 NEED_SETGID=false
13438fi
13439
13440if test $ac_cv_func_getloadavg_setgid = yes; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13442$as_echo_n "checking group of /dev/kmem... " >&6; }
d6974efa 13443if ${ac_cv_group_kmem+:} false; then :
067d23c9
KY
13444 $as_echo_n "(cached) " >&6
13445else
13446 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13447 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13448 # If we got an error (system does not support symlinks), try without -L.
13449 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13450 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13451 | sed -ne 's/[ ][ ]*/ /g;
13452 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13453 / /s/.* //;p;'`
13454
13455fi
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13457$as_echo "$ac_cv_group_kmem" >&6; }
13458 KMEM_GROUP=$ac_cv_group_kmem
13459fi
13460if test "x$ac_save_LIBS" = x; then
13461 GETLOADAVG_LIBS=$LIBS
13462else
13463 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13464fi
13465LIBS=$ac_save_LIBS
13466
13467
13468
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13470$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
d6974efa 13471if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13472 $as_echo_n "(cached) " >&6
13473else
13474 while :; do
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476/* end confdefs.h. */
13477#include <sys/types.h> /* for off_t */
13478 #include <stdio.h>
13479int
13480main ()
13481{
13482int (*fp) (FILE *, off_t, int) = fseeko;
13483 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_link "$LINENO"; then :
13489 ac_cv_sys_largefile_source=no; break
13490fi
13491rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494/* end confdefs.h. */
13495#define _LARGEFILE_SOURCE 1
13496#include <sys/types.h> /* for off_t */
13497 #include <stdio.h>
13498int
13499main ()
13500{
13501int (*fp) (FILE *, off_t, int) = fseeko;
13502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13503 ;
13504 return 0;
13505}
13506_ACEOF
13507if ac_fn_c_try_link "$LINENO"; then :
13508 ac_cv_sys_largefile_source=1; break
13509fi
1fd182f0
PE
13510rm -f core conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
13512 ac_cv_sys_largefile_source=unknown
13513 break
13514done
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13517$as_echo "$ac_cv_sys_largefile_source" >&6; }
13518case $ac_cv_sys_largefile_source in #(
13519 no | unknown) ;;
13520 *)
13521cat >>confdefs.h <<_ACEOF
13522#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13523_ACEOF
13524;;
13525esac
13526rm -rf conftest*
13527
13528# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13529# in glibc 2.1.3, but that breaks too many other things.
13530# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13531if test $ac_cv_sys_largefile_source != unknown; then
13532
13533$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13534
13535fi
13536
13537
1fd182f0
PE
13538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13539$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
d6974efa 13540if ${ac_cv_func_getpgrp_void+:} false; then :
1fd182f0
PE
13541 $as_echo_n "(cached) " >&6
13542else
13543 # Use it with a single arg.
13544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h. */
13546$ac_includes_default
13547int
13548main ()
13549{
13550getpgrp (0);
13551 ;
13552 return 0;
13553}
13554_ACEOF
13555if ac_fn_c_try_compile "$LINENO"; then :
13556 ac_cv_func_getpgrp_void=no
13557else
13558 ac_cv_func_getpgrp_void=yes
13559fi
13560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561
13562fi
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13564$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13565if test $ac_cv_func_getpgrp_void = yes; then
13566
13567$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13568
13569fi
13570
13571
13572# Configure gnulib.
13573
13574
13575
13576
b06b1098
PE
13577
13578
13579
d6974efa
PE
13580
13581
13582
1fd182f0
PE
13583 LIBC_FATAL_STDERR_=1
13584 export LIBC_FATAL_STDERR_
13585
13586
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13588$as_echo_n "checking whether strtold conforms to C99... " >&6; }
d6974efa 13589if ${gl_cv_func_c99_strtold+:} false; then :
1fd182f0
PE
13590 $as_echo_n "(cached) " >&6
13591else
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h. */
13594/* On HP-UX before 11.23, strtold returns a struct instead of
13595 long double. Reject implementations like that, by requiring
13596 compatibility with the C99 prototype. */
13597 #include <stdlib.h>
13598 static long double (*p) (char const *, char **) = strtold;
13599 static long double
13600 test (char const *nptr, char **endptr)
13601 {
13602 long double r;
13603 r = strtold (nptr, endptr);
13604 return r;
13605 }
13606int
13607main ()
13608{
13609return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614if ac_fn_c_try_link "$LINENO"; then :
13615 gl_cv_func_c99_strtold=yes
13616else
13617 gl_cv_func_c99_strtold=no
13618fi
13619rm -f core conftest.err conftest.$ac_objext \
13620 conftest$ac_exeext conftest.$ac_ext
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13623$as_echo "$gl_cv_func_c99_strtold" >&6; }
13624 if test $gl_cv_func_c99_strtold = yes; then
13625
13626$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13627
13628 fi
13629
13630
e275c824
PE
13631 GNULIB_CHOWN=0;
13632 GNULIB_CLOSE=0;
13633 GNULIB_DUP2=0;
13634 GNULIB_DUP3=0;
13635 GNULIB_ENVIRON=0;
13636 GNULIB_EUIDACCESS=0;
13637 GNULIB_FACCESSAT=0;
13638 GNULIB_FCHDIR=0;
13639 GNULIB_FCHOWNAT=0;
13640 GNULIB_FSYNC=0;
13641 GNULIB_FTRUNCATE=0;
13642 GNULIB_GETCWD=0;
13643 GNULIB_GETDOMAINNAME=0;
13644 GNULIB_GETDTABLESIZE=0;
13645 GNULIB_GETGROUPS=0;
13646 GNULIB_GETHOSTNAME=0;
13647 GNULIB_GETLOGIN=0;
13648 GNULIB_GETLOGIN_R=0;
13649 GNULIB_GETPAGESIZE=0;
13650 GNULIB_GETUSERSHELL=0;
13651 GNULIB_LCHOWN=0;
13652 GNULIB_LINK=0;
13653 GNULIB_LINKAT=0;
13654 GNULIB_LSEEK=0;
13655 GNULIB_PIPE=0;
13656 GNULIB_PIPE2=0;
13657 GNULIB_PREAD=0;
13658 GNULIB_PWRITE=0;
13659 GNULIB_READLINK=0;
13660 GNULIB_READLINKAT=0;
13661 GNULIB_RMDIR=0;
13662 GNULIB_SLEEP=0;
13663 GNULIB_SYMLINK=0;
13664 GNULIB_SYMLINKAT=0;
13665 GNULIB_TTYNAME_R=0;
13666 GNULIB_UNISTD_H_GETOPT=0;
13667 GNULIB_UNISTD_H_SIGPIPE=0;
13668 GNULIB_UNLINK=0;
13669 GNULIB_UNLINKAT=0;
13670 GNULIB_USLEEP=0;
13671 GNULIB_WRITE=0;
13672 HAVE_CHOWN=1;
13673 HAVE_DUP2=1;
13674 HAVE_DUP3=1;
13675 HAVE_EUIDACCESS=1;
13676 HAVE_FACCESSAT=1;
13677 HAVE_FCHDIR=1;
13678 HAVE_FCHOWNAT=1;
13679 HAVE_FSYNC=1;
13680 HAVE_FTRUNCATE=1;
13681 HAVE_GETDTABLESIZE=1;
13682 HAVE_GETGROUPS=1;
13683 HAVE_GETHOSTNAME=1;
13684 HAVE_GETLOGIN=1;
13685 HAVE_GETPAGESIZE=1;
13686 HAVE_LCHOWN=1;
13687 HAVE_LINK=1;
13688 HAVE_LINKAT=1;
13689 HAVE_PIPE=1;
13690 HAVE_PIPE2=1;
13691 HAVE_PREAD=1;
13692 HAVE_PWRITE=1;
13693 HAVE_READLINK=1;
13694 HAVE_READLINKAT=1;
13695 HAVE_SLEEP=1;
13696 HAVE_SYMLINK=1;
13697 HAVE_SYMLINKAT=1;
13698 HAVE_UNLINKAT=1;
13699 HAVE_USLEEP=1;
13700 HAVE_DECL_ENVIRON=1;
13701 HAVE_DECL_FCHDIR=1;
13702 HAVE_DECL_GETDOMAINNAME=1;
13703 HAVE_DECL_GETLOGIN_R=1;
13704 HAVE_DECL_GETPAGESIZE=1;
13705 HAVE_DECL_GETUSERSHELL=1;
13706 HAVE_DECL_TTYNAME_R=1;
13707 HAVE_OS_H=0;
13708 HAVE_SYS_PARAM_H=0;
13709 REPLACE_CHOWN=0;
13710 REPLACE_CLOSE=0;
13711 REPLACE_DUP=0;
13712 REPLACE_DUP2=0;
13713 REPLACE_FCHOWNAT=0;
13714 REPLACE_GETCWD=0;
13715 REPLACE_GETDOMAINNAME=0;
13716 REPLACE_GETLOGIN_R=0;
13717 REPLACE_GETGROUPS=0;
13718 REPLACE_GETPAGESIZE=0;
13719 REPLACE_LCHOWN=0;
13720 REPLACE_LINK=0;
13721 REPLACE_LINKAT=0;
13722 REPLACE_LSEEK=0;
13723 REPLACE_PREAD=0;
13724 REPLACE_PWRITE=0;
13725 REPLACE_READLINK=0;
13726 REPLACE_RMDIR=0;
13727 REPLACE_SLEEP=0;
13728 REPLACE_SYMLINK=0;
13729 REPLACE_TTYNAME_R=0;
13730 REPLACE_UNLINK=0;
13731 REPLACE_UNLINKAT=0;
13732 REPLACE_USLEEP=0;
13733 REPLACE_WRITE=0;
13734 UNISTD_H_HAVE_WINSOCK2_H=0;
13735 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
1fd182f0
PE
13736
13737
13738
13739
e275c824
PE
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13741$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
d6974efa 13742if ${gl_cv_have_include_next+:} false; then :
e275c824
PE
13743 $as_echo_n "(cached) " >&6
13744else
13745 rm -rf conftestd1a conftestd1b conftestd2
13746 mkdir conftestd1a conftestd1b conftestd2
13747 cat <<EOF > conftestd1a/conftest.h
13748#define DEFINED_IN_CONFTESTD1
13749#include_next <conftest.h>
13750#ifdef DEFINED_IN_CONFTESTD2
13751int foo;
13752#else
13753#error "include_next doesn't work"
13754#endif
13755EOF
13756 cat <<EOF > conftestd1b/conftest.h
13757#define DEFINED_IN_CONFTESTD1
13758#include <stdio.h>
13759#include_next <conftest.h>
13760#ifdef DEFINED_IN_CONFTESTD2
13761int foo;
13762#else
13763#error "include_next doesn't work"
13764#endif
13765EOF
13766 cat <<EOF > conftestd2/conftest.h
13767#ifndef DEFINED_IN_CONFTESTD1
13768#error "include_next test doesn't work"
13769#endif
13770#define DEFINED_IN_CONFTESTD2
13771EOF
13772 gl_save_CPPFLAGS="$CPPFLAGS"
13773 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h. */
13776#include <conftest.h>
1fd182f0 13777_ACEOF
e275c824
PE
13778if ac_fn_c_try_compile "$LINENO"; then :
13779 gl_cv_have_include_next=yes
13780else
13781 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13783/* end confdefs.h. */
e275c824 13784#include <conftest.h>
1fd182f0
PE
13785_ACEOF
13786if ac_fn_c_try_compile "$LINENO"; then :
e275c824
PE
13787 gl_cv_have_include_next=buggy
13788else
13789 gl_cv_have_include_next=no
1fd182f0
PE
13790fi
13791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 13792
e275c824
PE
13793fi
13794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 CPPFLAGS="$gl_save_CPPFLAGS"
13796 rm -rf conftestd1a conftestd1b conftestd2
1fd182f0 13797
e275c824
PE
13798fi
13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13800$as_echo "$gl_cv_have_include_next" >&6; }
13801 PRAGMA_SYSTEM_HEADER=
13802 if test $gl_cv_have_include_next = yes; then
13803 INCLUDE_NEXT=include_next
13804 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13805 if test -n "$GCC"; then
13806 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13807 fi
1fd182f0 13808 else
e275c824
PE
13809 if test $gl_cv_have_include_next = buggy; then
13810 INCLUDE_NEXT=include
13811 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13812 else
13813 INCLUDE_NEXT=include
13814 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13815 fi
1fd182f0
PE
13816 fi
13817
13818
e275c824
PE
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13821$as_echo_n "checking whether system header files limit the line length... " >&6; }
d6974efa 13822if ${gl_cv_pragma_columns+:} false; then :
1fd182f0
PE
13823 $as_echo_n "(cached) " >&6
13824else
e275c824 13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13826/* end confdefs.h. */
1fd182f0 13827
e275c824
PE
13828#ifdef __TANDEM
13829choke me
13830#endif
13831
13832_ACEOF
13833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13834 $EGREP "choke me" >/dev/null 2>&1; then :
13835 gl_cv_pragma_columns=yes
13836else
13837 gl_cv_pragma_columns=no
13838fi
13839rm -f conftest*
13840
13841
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13844$as_echo "$gl_cv_pragma_columns" >&6; }
13845 if test $gl_cv_pragma_columns = yes; then
13846 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13847 else
13848 PRAGMA_COLUMNS=
13849 fi
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
b06b1098
PE
13864
13865
13866
e275c824
PE
13867 if test $gl_cv_have_include_next = yes; then
13868 gl_cv_next_getopt_h='<'getopt.h'>'
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13871$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
d6974efa 13872if ${gl_cv_next_getopt_h+:} false; then :
e275c824
PE
13873 $as_echo_n "(cached) " >&6
13874else
13875
b06b1098
PE
13876 if test $ac_cv_header_getopt_h = yes; then
13877
13878
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
13880/* end confdefs.h. */
13881#include <getopt.h>
13882
13883_ACEOF
b06b1098
PE
13884 case "$host_os" in
13885 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13886 *) gl_absname_cpp="$ac_cpp" ;;
13887 esac
13888 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13889 sed -n '\#/getopt.h#{
13890 s#.*"\(.*/getopt.h\)".*#\1#
13891 s#^/[^/]#//&#
13892 p
13893 q
13894 }'`'"'
e275c824 13895 else
b06b1098
PE
13896 gl_cv_next_getopt_h='<'getopt.h'>'
13897 fi
13898
e275c824
PE
13899
13900fi
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13902$as_echo "$gl_cv_next_getopt_h" >&6; }
13903 fi
13904 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13905
13906 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13907 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13908 gl_next_as_first_directive='<'getopt.h'>'
13909 else
13910 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13911 gl_next_as_first_directive=$gl_cv_next_getopt_h
13912 fi
13913 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13914
13915
13916
13917
13918 if test $ac_cv_header_getopt_h = yes; then
13919 HAVE_GETOPT_H=1
13920 else
13921 HAVE_GETOPT_H=0
13922 fi
13923
13924
13925 gl_replace_getopt=
13926
13927 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13928 for ac_header in getopt.h
13929do :
13930 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
d6974efa 13931if test "x$ac_cv_header_getopt_h" = xyes; then :
e275c824
PE
13932 cat >>confdefs.h <<_ACEOF
13933#define HAVE_GETOPT_H 1
13934_ACEOF
13935
13936else
13937 gl_replace_getopt=yes
13938fi
13939
13940done
13941
13942 fi
13943
13944 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13945 for ac_func in getopt_long_only
13946do :
13947 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
d6974efa 13948if test "x$ac_cv_func_getopt_long_only" = xyes; then :
e275c824
PE
13949 cat >>confdefs.h <<_ACEOF
13950#define HAVE_GETOPT_LONG_ONLY 1
13951_ACEOF
13952
13953else
13954 gl_replace_getopt=yes
13955fi
13956done
13957
13958 fi
13959
d6974efa
PE
13960 if test -z "$gl_replace_getopt"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13962$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13963if ${gl_cv_func_getopt_posix+:} false; then :
13964 $as_echo_n "(cached) " >&6
e275c824 13965else
e275c824 13966
d6974efa
PE
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968/* end confdefs.h. */
13969#include <unistd.h>
13970int
13971main ()
13972{
13973int *p = &optreset; return optreset;
13974 ;
13975 return 0;
13976}
e275c824 13977_ACEOF
d6974efa
PE
13978if ac_fn_c_try_compile "$LINENO"; then :
13979 gl_optind_min=1
e275c824 13980else
d6974efa
PE
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982/* end confdefs.h. */
13983#include <getopt.h>
13984int
13985main ()
13986{
13987return !getopt_clip;
13988 ;
13989 return 0;
13990}
13991_ACEOF
13992if ac_fn_c_try_compile "$LINENO"; then :
13993 gl_optind_min=1
e275c824 13994else
d6974efa 13995 gl_optind_min=0
e275c824 13996fi
d6974efa 13997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 13998fi
d6974efa 13999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14000
d6974efa
PE
14001 gl_save_CPPFLAGS=$CPPFLAGS
14002 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14003 if test "$cross_compiling" = yes; then :
e275c824
PE
14004 case "$host_os" in
14005 mingw*) gl_cv_func_getopt_posix="guessing no";;
14006 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14007 *) gl_cv_func_getopt_posix="guessing yes";;
14008 esac
14009
14010else
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012/* end confdefs.h. */
14013
14014#include <unistd.h>
14015#include <stdlib.h>
14016#include <string.h>
14017
e275c824
PE
14018int
14019main ()
14020{
14021 {
14022 int argc = 0;
14023 char *argv[10];
14024 int c;
14025
14026 argv[argc++] = "program";
14027 argv[argc++] = "-a";
14028 argv[argc++] = "foo";
14029 argv[argc++] = "bar";
14030 argv[argc] = NULL;
14031 optind = OPTIND_MIN;
14032 opterr = 0;
14033
14034 c = getopt (argc, argv, "ab");
14035 if (!(c == 'a'))
14036 return 1;
14037 c = getopt (argc, argv, "ab");
14038 if (!(c == -1))
14039 return 2;
14040 if (!(optind == 2))
14041 return 3;
14042 }
14043 /* Some internal state exists at this point. */
14044 {
14045 int argc = 0;
14046 char *argv[10];
14047 int c;
14048
14049 argv[argc++] = "program";
14050 argv[argc++] = "donald";
14051 argv[argc++] = "-p";
14052 argv[argc++] = "billy";
14053 argv[argc++] = "duck";
14054 argv[argc++] = "-a";
14055 argv[argc++] = "bar";
14056 argv[argc] = NULL;
14057 optind = OPTIND_MIN;
14058 opterr = 0;
14059
14060 c = getopt (argc, argv, "+abp:q:");
14061 if (!(c == -1))
14062 return 4;
14063 if (!(strcmp (argv[0], "program") == 0))
14064 return 5;
14065 if (!(strcmp (argv[1], "donald") == 0))
14066 return 6;
14067 if (!(strcmp (argv[2], "-p") == 0))
14068 return 7;
14069 if (!(strcmp (argv[3], "billy") == 0))
14070 return 8;
14071 if (!(strcmp (argv[4], "duck") == 0))
14072 return 9;
14073 if (!(strcmp (argv[5], "-a") == 0))
14074 return 10;
14075 if (!(strcmp (argv[6], "bar") == 0))
14076 return 11;
14077 if (!(optind == 1))
14078 return 12;
14079 }
14080 /* Detect MacOS 10.5, AIX 7.1 bug. */
14081 {
14082 char *argv[3] = { "program", "-ab", NULL };
14083 optind = OPTIND_MIN;
14084 opterr = 0;
14085 if (getopt (2, argv, "ab:") != 'a')
14086 return 13;
14087 if (getopt (2, argv, "ab:") != '?')
14088 return 14;
14089 if (optopt != 'b')
14090 return 15;
14091 if (optind != 2)
14092 return 16;
14093 }
14094
14095 return 0;
14096}
14097
14098_ACEOF
14099if ac_fn_c_try_run "$LINENO"; then :
14100 gl_cv_func_getopt_posix=yes
14101else
14102 gl_cv_func_getopt_posix=no
14103fi
14104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14105 conftest.$ac_objext conftest.beam conftest.$ac_ext
14106fi
14107
d6974efa 14108 CPPFLAGS=$gl_save_CPPFLAGS
e275c824
PE
14109
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14112$as_echo "$gl_cv_func_getopt_posix" >&6; }
14113 case "$gl_cv_func_getopt_posix" in
14114 *no) gl_replace_getopt=yes ;;
14115 esac
14116 fi
14117
14118 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14120$as_echo_n "checking for working GNU getopt function... " >&6; }
d6974efa 14121if ${gl_cv_func_getopt_gnu+:} false; then :
e275c824
PE
14122 $as_echo_n "(cached) " >&6
14123else
14124 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14125 # optstring is necessary for programs like m4 that have POSIX-mandated
14126 # semantics for supporting options interspersed with files.
14127 # Also, since getopt_long is a GNU extension, we require optind=0.
14128 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14129 # so take care to revert to the correct (non-)export state.
14130 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14131 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14132 xx) gl_had_POSIXLY_CORRECT=exported ;;
14133 x) gl_had_POSIXLY_CORRECT=yes ;;
14134 *) gl_had_POSIXLY_CORRECT= ;;
14135 esac
14136 POSIXLY_CORRECT=1
14137 export POSIXLY_CORRECT
14138 if test "$cross_compiling" = yes; then :
14139 case $host_os:$ac_cv_have_decl_optreset in
14140 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14141 *:yes) gl_cv_func_getopt_gnu=no;;
14142 *) gl_cv_func_getopt_gnu=yes;;
14143 esac
14144
14145else
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147/* end confdefs.h. */
14148#include <getopt.h>
14149 #include <stddef.h>
14150 #include <string.h>
14151
14152int
14153main ()
14154{
14155
14156 int result = 0;
14157 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14158 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14159 OSF/1 5.1, Solaris 10. */
14160 {
14161 char *myargv[3];
14162 myargv[0] = "conftest";
14163 myargv[1] = "-+";
14164 myargv[2] = 0;
14165 opterr = 0;
14166 if (getopt (2, myargv, "+a") != '?')
14167 result |= 1;
14168 }
14169 /* This code succeeds on glibc 2.8, mingw,
14170 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14171 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14172 {
14173 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14174
14175 optind = 1;
14176 if (getopt (4, argv, "p::") != 'p')
14177 result |= 2;
14178 else if (optarg != NULL)
14179 result |= 4;
14180 else if (getopt (4, argv, "p::") != -1)
14181 result |= 6;
14182 else if (optind != 2)
14183 result |= 8;
14184 }
14185 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14186 {
14187 char *argv[] = { "program", "foo", "-p", NULL };
14188 optind = 0;
14189 if (getopt (3, argv, "-p") != 1)
14190 result |= 16;
14191 else if (getopt (3, argv, "-p") != 'p')
14192 result |= 32;
14193 }
14194 /* This code fails on glibc 2.11. */
14195 {
14196 char *argv[] = { "program", "-b", "-a", NULL };
14197 optind = opterr = 0;
14198 if (getopt (3, argv, "+:a:b") != 'b')
14199 result |= 64;
14200 else if (getopt (3, argv, "+:a:b") != ':')
14201 result |= 64;
14202 }
14203 return result;
14204
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209if ac_fn_c_try_run "$LINENO"; then :
14210 gl_cv_func_getopt_gnu=yes
14211else
14212 gl_cv_func_getopt_gnu=no
14213fi
14214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14215 conftest.$ac_objext conftest.beam conftest.$ac_ext
14216fi
14217
14218 case $gl_had_POSIXLY_CORRECT in
14219 exported) ;;
14220 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14221 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14222 esac
14223
14224fi
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14226$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14227 if test "$gl_cv_func_getopt_gnu" = "no"; then
14228 gl_replace_getopt=yes
14229 fi
14230 fi
14231
14232ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d6974efa 14233if test "x$ac_cv_have_decl_getenv" = xyes; then :
e275c824
PE
14234 ac_have_decl=1
14235else
14236 ac_have_decl=0
14237fi
14238
14239cat >>confdefs.h <<_ACEOF
14240#define HAVE_DECL_GETENV $ac_have_decl
14241_ACEOF
14242
14243
14244
14245
14246
14247
14248 if test -n "$gl_replace_getopt"; then :
14249
14250
14251
14252 GETOPT_H=getopt.h
14253
14254$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14255
14256
14257
14258 GNULIB_UNISTD_H_GETOPT=1
14259
14260
14261
14262
14263
14264
14265
14266
14267 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14278
14279
14280
14281
14282
14283
14284fi
14285
14286
14287
14288 GNULIB_MKTIME=0;
14289 GNULIB_NANOSLEEP=0;
14290 GNULIB_STRPTIME=0;
14291 GNULIB_TIMEGM=0;
14292 GNULIB_TIME_R=0;
14293 HAVE_DECL_LOCALTIME_R=1;
14294 HAVE_NANOSLEEP=1;
14295 HAVE_STRPTIME=1;
14296 HAVE_TIMEGM=1;
14297 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14298 REPLACE_MKTIME=GNULIB_PORTCHECK;
14299 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14300 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14301
14302
14303
14304
14305 for ac_func in $ac_func_list
14306do :
14307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14308ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14309if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14310 cat >>confdefs.h <<_ACEOF
14311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14312_ACEOF
14313
14314fi
14315done
14316
14317
14318
14319
14320 gl_cv_c_multiarch=no
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h. */
14323#ifndef __APPLE_CC__
14324 not a universal capable compiler
14325 #endif
14326 typedef int dummy;
14327
14328_ACEOF
14329if ac_fn_c_try_compile "$LINENO"; then :
14330
14331 arch=
14332 prev=
14333 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14334 if test -n "$prev"; then
14335 case $word in
14336 i?86 | x86_64 | ppc | ppc64)
14337 if test -z "$arch" || test "$arch" = "$word"; then
14338 arch="$word"
14339 else
14340 gl_cv_c_multiarch=yes
14341 fi
14342 ;;
14343 esac
14344 prev=
14345 else
14346 if test "x$word" = "x-arch"; then
14347 prev=arch
14348 fi
14349 fi
14350 done
14351
14352fi
14353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354 if test $gl_cv_c_multiarch = yes; then
e275c824
PE
14355 APPLE_UNIVERSAL_BUILD=1
14356 else
14357 APPLE_UNIVERSAL_BUILD=0
14358 fi
14359
14360
14361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14362$as_echo_n "checking for inline... " >&6; }
d6974efa 14363if ${ac_cv_c_inline+:} false; then :
e275c824
PE
14364 $as_echo_n "(cached) " >&6
14365else
14366 ac_cv_c_inline=no
14367for ac_kw in inline __inline__ __inline; do
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h. */
14370#ifndef __cplusplus
14371typedef int foo_t;
14372static $ac_kw foo_t static_foo () {return 0; }
14373$ac_kw foo_t foo () {return 0; }
14374#endif
14375
14376_ACEOF
1fd182f0
PE
14377if ac_fn_c_try_compile "$LINENO"; then :
14378 ac_cv_c_inline=$ac_kw
14379fi
14380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 test "$ac_cv_c_inline" != no && break
14382done
14383
14384fi
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14386$as_echo "$ac_cv_c_inline" >&6; }
14387
14388case $ac_cv_c_inline in
14389 inline | yes) ;;
14390 *)
14391 case $ac_cv_c_inline in
14392 no) ac_val=;;
14393 *) ac_val=$ac_cv_c_inline;;
14394 esac
14395 cat >>confdefs.h <<_ACEOF
14396#ifndef __cplusplus
14397#define inline $ac_val
14398#endif
14399_ACEOF
14400 ;;
14401esac
14402
14403
14404 REPLACE_NULL=0;
14405 HAVE_WCHAR_T=1;
14406 STDDEF_H='';
14407
14408
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14410$as_echo_n "checking for wchar_t... " >&6; }
d6974efa 14411if ${gt_cv_c_wchar_t+:} false; then :
1fd182f0
PE
14412 $as_echo_n "(cached) " >&6
14413else
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415/* end confdefs.h. */
14416#include <stddef.h>
14417 wchar_t foo = (wchar_t)'\0';
14418int
14419main ()
14420{
14421
14422 ;
14423 return 0;
14424}
14425_ACEOF
14426if ac_fn_c_try_compile "$LINENO"; then :
14427 gt_cv_c_wchar_t=yes
14428else
14429 gt_cv_c_wchar_t=no
14430fi
14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432fi
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14434$as_echo "$gt_cv_c_wchar_t" >&6; }
14435 if test $gt_cv_c_wchar_t = yes; then
14436
14437$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14438
14439 fi
14440
1fd182f0
PE
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14442$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
d6974efa 14443if ${ac_cv_c_restrict+:} false; then :
1fd182f0
PE
14444 $as_echo_n "(cached) " >&6
14445else
14446 ac_cv_c_restrict=no
14447 # The order here caters to the fact that C++ does not require restrict.
14448 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450/* end confdefs.h. */
14451typedef int * int_ptr;
14452 int foo (int_ptr $ac_kw ip) {
14453 return ip[0];
14454 }
14455int
14456main ()
14457{
14458int s[1];
14459 int * $ac_kw t = s;
14460 t[0] = 0;
14461 return foo(t)
14462 ;
14463 return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_compile "$LINENO"; then :
14467 ac_cv_c_restrict=$ac_kw
14468fi
14469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 test "$ac_cv_c_restrict" != no && break
14471 done
14472
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14475$as_echo "$ac_cv_c_restrict" >&6; }
14476
14477 case $ac_cv_c_restrict in
14478 restrict) ;;
14479 no) $as_echo "#define restrict /**/" >>confdefs.h
14480 ;;
14481 *) cat >>confdefs.h <<_ACEOF
14482#define restrict $ac_cv_c_restrict
14483_ACEOF
14484 ;;
14485 esac
14486
14487
14488
14489
14490
1fd182f0
PE
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14492$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
d6974efa 14493if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
1fd182f0
PE
14494 $as_echo_n "(cached) " >&6
14495else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497/* end confdefs.h. */
14498#include <time.h>
14499
14500int
14501main ()
14502{
14503static struct timespec x; x.tv_sec = x.tv_nsec;
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508if ac_fn_c_try_compile "$LINENO"; then :
14509 gl_cv_sys_struct_timespec_in_time_h=yes
14510else
14511 gl_cv_sys_struct_timespec_in_time_h=no
14512fi
14513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514fi
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14516$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14517
14518 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14519 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14520 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14521 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14522 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14523 else
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14525$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
d6974efa 14526if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
1fd182f0
PE
14527 $as_echo_n "(cached) " >&6
14528else
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h. */
14531#include <sys/time.h>
14532
14533int
14534main ()
14535{
14536static struct timespec x; x.tv_sec = x.tv_nsec;
14537 ;
14538 return 0;
14539}
14540_ACEOF
14541if ac_fn_c_try_compile "$LINENO"; then :
14542 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14543else
14544 gl_cv_sys_struct_timespec_in_sys_time_h=no
14545fi
14546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14549$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14550 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14551 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14552 else
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14554$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
d6974efa 14555if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
1fd182f0
PE
14556 $as_echo_n "(cached) " >&6
14557else
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559/* end confdefs.h. */
14560#include <pthread.h>
14561
14562int
14563main ()
14564{
14565static struct timespec x; x.tv_sec = x.tv_nsec;
14566 ;
14567 return 0;
14568}
14569_ACEOF
14570if ac_fn_c_try_compile "$LINENO"; then :
14571 gl_cv_sys_struct_timespec_in_pthread_h=yes
14572else
14573 gl_cv_sys_struct_timespec_in_pthread_h=no
14574fi
14575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576fi
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14578$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14579 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14580 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14581 fi
14582 fi
14583 fi
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
b06b1098
PE
14597
14598
1fd182f0
PE
14599 if test $gl_cv_have_include_next = yes; then
14600 gl_cv_next_time_h='<'time.h'>'
14601 else
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14603$as_echo_n "checking absolute name of <time.h>... " >&6; }
d6974efa 14604if ${gl_cv_next_time_h+:} false; then :
1fd182f0
PE
14605 $as_echo_n "(cached) " >&6
14606else
14607
b06b1098 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
14609/* end confdefs.h. */
14610#include <time.h>
14611
14612_ACEOF
b06b1098
PE
14613 case "$host_os" in
14614 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14615 *) gl_absname_cpp="$ac_cpp" ;;
14616 esac
14617 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14618 sed -n '\#/time.h#{
14619 s#.*"\(.*/time.h\)".*#\1#
14620 s#^/[^/]#//&#
14621 p
14622 q
14623 }'`'"'
14624
1fd182f0
PE
14625
14626fi
14627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14628$as_echo "$gl_cv_next_time_h" >&6; }
14629 fi
14630 NEXT_TIME_H=$gl_cv_next_time_h
14631
14632 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14633 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14634 gl_next_as_first_directive='<'time.h'>'
14635 else
14636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14637 gl_next_as_first_directive=$gl_cv_next_time_h
14638 fi
14639 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14640
14641
14642
14643
14644
b06b1098 14645
1fd182f0 14646ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
d6974efa 14647if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
1fd182f0
PE
14648 ac_have_decl=1
14649else
14650 ac_have_decl=0
14651fi
14652
14653cat >>confdefs.h <<_ACEOF
14654#define HAVE_DECL_LOCALTIME_R $ac_have_decl
14655_ACEOF
14656
14657
14658
14659
14660 if false; then
14661 GL_COND_LIBTOOL_TRUE=
14662 GL_COND_LIBTOOL_FALSE='#'
14663else
14664 GL_COND_LIBTOOL_TRUE='#'
14665 GL_COND_LIBTOOL_FALSE=
14666fi
14667
14668 gl_cond_libtool=false
14669 gl_libdeps=
14670 gl_ltlibdeps=
14671 gl_m4_base='m4'
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681 gl_source_base='lib'
14682 # Code from module arg-nonnull:
14683 # Code from module c++defs:
f737437b 14684 # Code from module dtoastr:
1fd182f0 14685
f737437b 14686 # Code from module extensions:
e275c824
PE
14687 # Code from module getopt-gnu:
14688
14689
14690
14691
14692
14693
e275c824
PE
14694 # Code from module getopt-posix:
14695
14696
14697
14698
14699
14700 if test -n "$gl_replace_getopt"; then :
14701
14702
14703
14704 GETOPT_H=getopt.h
14705
14706$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14707
14708
14709
14710 GNULIB_UNISTD_H_GETOPT=1
14711
14712
14713
14714
14715
14716
14717
14718
14719 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14730
14731
14732
14733
14734
14735
14736fi
14737
14738
14739 # Code from module gettext-h:
14740
14741
1fd182f0
PE
14742 # Code from module include_next:
14743 # Code from module intprops:
14744 # Code from module mktime:
14745
14746
14747
14748
14749
14750if test $APPLE_UNIVERSAL_BUILD = 1; then
14751 # A universal build on Apple MacOS X platforms.
14752 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14753 # But we need a configuration result that is valid in both modes.
14754 ac_cv_func_working_mktime=no
14755fi
14756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14757$as_echo_n "checking for working mktime... " >&6; }
d6974efa 14758if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
14759 $as_echo_n "(cached) " >&6
14760else
14761 if test "$cross_compiling" = yes; then :
14762 ac_cv_func_working_mktime=no
14763else
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h. */
14766/* Test program from Paul Eggert and Tony Leneis. */
14767#include <limits.h>
14768#include <stdlib.h>
14769#include <time.h>
14770
14771#ifdef HAVE_UNISTD_H
14772# include <unistd.h>
14773#endif
14774
14775#ifndef HAVE_ALARM
14776# define alarm(X) /* empty */
14777#endif
14778
14779/* Work around redefinition to rpl_putenv by other config tests. */
14780#undef putenv
14781
14782static time_t time_t_max;
14783static time_t time_t_min;
14784
14785/* Values we'll use to set the TZ environment variable. */
14786static char *tz_strings[] = {
14787 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14788 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14789};
14790#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14791
14792/* Return 0 if mktime fails to convert a date in the spring-forward gap.
14793 Based on a problem report from Andreas Jaeger. */
14794static int
14795spring_forward_gap ()
14796{
14797 /* glibc (up to about 1998-10-07) failed this test. */
14798 struct tm tm;
14799
14800 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14801 instead of "TZ=America/Vancouver" in order to detect the bug even
14802 on systems that don't support the Olson extension, or don't have the
14803 full zoneinfo tables installed. */
14804 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14805
14806 tm.tm_year = 98;
14807 tm.tm_mon = 3;
14808 tm.tm_mday = 5;
14809 tm.tm_hour = 2;
14810 tm.tm_min = 0;
14811 tm.tm_sec = 0;
14812 tm.tm_isdst = -1;
14813 return mktime (&tm) != (time_t) -1;
14814}
14815
14816static int
14817mktime_test1 (time_t now)
14818{
14819 struct tm *lt;
14820 return ! (lt = localtime (&now)) || mktime (lt) == now;
14821}
14822
14823static int
14824mktime_test (time_t now)
14825{
14826 return (mktime_test1 (now)
14827 && mktime_test1 ((time_t) (time_t_max - now))
14828 && mktime_test1 ((time_t) (time_t_min + now)));
14829}
14830
14831static int
14832irix_6_4_bug ()
14833{
14834 /* Based on code from Ariel Faigon. */
14835 struct tm tm;
14836 tm.tm_year = 96;
14837 tm.tm_mon = 3;
14838 tm.tm_mday = 0;
14839 tm.tm_hour = 0;
14840 tm.tm_min = 0;
14841 tm.tm_sec = 0;
14842 tm.tm_isdst = -1;
14843 mktime (&tm);
14844 return tm.tm_mon == 2 && tm.tm_mday == 31;
14845}
14846
14847static int
14848bigtime_test (int j)
14849{
14850 struct tm tm;
14851 time_t now;
14852 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14853 now = mktime (&tm);
14854 if (now != (time_t) -1)
14855 {
14856 struct tm *lt = localtime (&now);
14857 if (! (lt
14858 && lt->tm_year == tm.tm_year
14859 && lt->tm_mon == tm.tm_mon
14860 && lt->tm_mday == tm.tm_mday
14861 && lt->tm_hour == tm.tm_hour
14862 && lt->tm_min == tm.tm_min
14863 && lt->tm_sec == tm.tm_sec
14864 && lt->tm_yday == tm.tm_yday
14865 && lt->tm_wday == tm.tm_wday
14866 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14867 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14868 return 0;
14869 }
14870 return 1;
14871}
14872
14873static int
14874year_2050_test ()
14875{
14876 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14877 ignoring leap seconds. */
14878 unsigned long int answer = 2527315200UL;
14879
14880 struct tm tm;
14881 time_t t;
14882 tm.tm_year = 2050 - 1900;
14883 tm.tm_mon = 2 - 1;
14884 tm.tm_mday = 1;
14885 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14886 tm.tm_isdst = -1;
14887
14888 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14889 instead of "TZ=America/Vancouver" in order to detect the bug even
14890 on systems that don't support the Olson extension, or don't have the
14891 full zoneinfo tables installed. */
14892 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14893
14894 t = mktime (&tm);
14895
14896 /* Check that the result is either a failure, or close enough
14897 to the correct answer that we can assume the discrepancy is
14898 due to leap seconds. */
14899 return (t == (time_t) -1
14900 || (0 < t && answer - 120 <= t && t <= answer + 120));
14901}
14902
14903int
14904main ()
14905{
14906 int result = 0;
14907 time_t t, delta;
14908 int i, j;
3de84ad9
PE
14909 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
14910 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
14911
14912 /* This test makes some buggy mktime implementations loop.
14913 Give up after 60 seconds; a mktime slower than that
14914 isn't worth using anyway. */
14915 alarm (60);
14916
3de84ad9
PE
14917 time_t_max = (! time_t_signed
14918 ? (time_t) -1
14919 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
14920 * 2 + 1));
14921 time_t_min = (! time_t_signed
14922 ? (time_t) 0
14923 : time_t_signed_magnitude
14924 ? ~ (time_t) 0
14925 : ~ time_t_max);
1fd182f0
PE
14926
14927 delta = time_t_max / 997; /* a suitable prime number */
14928 for (i = 0; i < N_STRINGS; i++)
14929 {
14930 if (tz_strings[i])
14931 putenv (tz_strings[i]);
14932
14933 for (t = 0; t <= time_t_max - delta; t += delta)
14934 if (! mktime_test (t))
14935 result |= 1;
14936 if (! (mktime_test ((time_t) 1)
14937 && mktime_test ((time_t) (60 * 60))
14938 && mktime_test ((time_t) (60 * 60 * 24))))
14939 result |= 2;
14940
14941 for (j = 1; ; j <<= 1)
14942 if (! bigtime_test (j))
14943 result |= 4;
14944 else if (INT_MAX / 2 < j)
14945 break;
14946 if (! bigtime_test (INT_MAX))
14947 result |= 8;
14948 }
14949 if (! irix_6_4_bug ())
14950 result |= 16;
14951 if (! spring_forward_gap ())
14952 result |= 32;
14953 if (! year_2050_test ())
14954 result |= 64;
14955 return result;
14956}
14957_ACEOF
14958if ac_fn_c_try_run "$LINENO"; then :
14959 ac_cv_func_working_mktime=yes
14960else
14961 ac_cv_func_working_mktime=no
14962fi
14963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14964 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 14965fi
067d23c9 14966
1fd182f0
PE
14967fi
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14969$as_echo "$ac_cv_func_working_mktime" >&6; }
14970if test $ac_cv_func_working_mktime = no; then
067d23c9 14971
067d23c9 14972
067d23c9
KY
14973
14974
067d23c9 14975
067d23c9
KY
14976
14977
14978
1fd182f0 14979 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 14980
1fd182f0 14981fi
067d23c9 14982
1fd182f0
PE
14983 if test $ac_cv_func_working_mktime = no; then
14984 REPLACE_MKTIME=1
067d23c9
KY
14985
14986
14987
1fd182f0
PE
14988 else
14989 REPLACE_MKTIME=0
14990 fi
067d23c9
KY
14991
14992
14993
067d23c9 14994
1fd182f0 14995 GNULIB_MKTIME=1
067d23c9
KY
14996
14997
14998
1fd182f0 14999 # Code from module multiarch:
067d23c9 15000
1fd182f0 15001 # Code from module stddef:
067d23c9 15002
067d23c9 15003
067d23c9 15004
1fd182f0
PE
15005 if test $gt_cv_c_wchar_t = no; then
15006 HAVE_WCHAR_T=0
15007 STDDEF_H=stddef.h
067d23c9 15008 fi
1fd182f0
PE
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15010$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
d6974efa 15011if ${gl_cv_decl_null_works+:} false; then :
067d23c9 15012 $as_echo_n "(cached) " >&6
067d23c9
KY
15013else
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015/* end confdefs.h. */
1fd182f0
PE
15016#include <stddef.h>
15017 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15018
067d23c9
KY
15019int
15020main ()
15021{
15022
067d23c9
KY
15023 ;
15024 return 0;
15025}
15026_ACEOF
1fd182f0
PE
15027if ac_fn_c_try_compile "$LINENO"; then :
15028 gl_cv_decl_null_works=yes
067d23c9 15029else
1fd182f0 15030 gl_cv_decl_null_works=no
067d23c9 15031fi
1fd182f0 15032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 15033fi
1fd182f0
PE
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15035$as_echo "$gl_cv_decl_null_works" >&6; }
15036 if test $gl_cv_decl_null_works = no; then
15037 REPLACE_NULL=1
15038 STDDEF_H=stddef.h
15039 fi
15040 if test -n "$STDDEF_H"; then
15041
15042
15043
15044
15045
15046
b06b1098
PE
15047
15048
1fd182f0
PE
15049 if test $gl_cv_have_include_next = yes; then
15050 gl_cv_next_stddef_h='<'stddef.h'>'
15051 else
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15053$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
d6974efa 15054if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
15055 $as_echo_n "(cached) " >&6
15056else
15057
b06b1098 15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
15059/* end confdefs.h. */
15060#include <stddef.h>
15061
15062_ACEOF
b06b1098
PE
15063 case "$host_os" in
15064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15065 *) gl_absname_cpp="$ac_cpp" ;;
15066 esac
15067 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15068 sed -n '\#/stddef.h#{
15069 s#.*"\(.*/stddef.h\)".*#\1#
15070 s#^/[^/]#//&#
15071 p
15072 q
15073 }'`'"'
15074
067d23c9
KY
15075
15076fi
1fd182f0
PE
15077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15078$as_echo "$gl_cv_next_stddef_h" >&6; }
15079 fi
15080 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15081
15082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15084 gl_next_as_first_directive='<'stddef.h'>'
15085 else
15086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15087 gl_next_as_first_directive=$gl_cv_next_stddef_h
15088 fi
15089 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15090
15091
15092
b06b1098 15093
067d23c9
KY
15094 fi
15095
1fd182f0 15096 # Code from module time:
067d23c9
KY
15097
15098
067d23c9 15099
1fd182f0 15100 # Code from module time_r:
067d23c9 15101
067d23c9 15102
067d23c9
KY
15103
15104
15105
067d23c9 15106
067d23c9 15107
1fd182f0
PE
15108 if test $ac_cv_have_decl_localtime_r = no; then
15109 HAVE_DECL_LOCALTIME_R=0
15110 fi
067d23c9
KY
15111
15112
1fd182f0
PE
15113 if test $ac_cv_func_localtime_r = yes; then
15114 HAVE_LOCALTIME_R=1
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15116$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
d6974efa 15117if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
15118 $as_echo_n "(cached) " >&6
15119else
1fd182f0 15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 15121/* end confdefs.h. */
1fd182f0 15122#include <time.h>
067d23c9
KY
15123int
15124main ()
15125{
1fd182f0
PE
15126/* We don't need to append 'restrict's to the argument types,
15127 even though the POSIX signature has the 'restrict's,
15128 since C99 says they can't affect type compatibility. */
15129 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15130 if (ptr) return 0;
15131 /* Check the return type is a pointer.
15132 On HP-UX 10 it is 'int'. */
15133 *localtime_r (0, 0);
067d23c9
KY
15134 ;
15135 return 0;
15136}
1fd182f0 15137
067d23c9
KY
15138_ACEOF
15139if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 15140 gl_cv_time_r_posix=yes
067d23c9 15141else
1fd182f0 15142 gl_cv_time_r_posix=no
067d23c9
KY
15143fi
15144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145
15146fi
1fd182f0
PE
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15148$as_echo "$gl_cv_time_r_posix" >&6; }
15149 if test $gl_cv_time_r_posix = yes; then
15150 REPLACE_LOCALTIME_R=0
15151 else
15152 REPLACE_LOCALTIME_R=1
15153 fi
15154 else
15155 HAVE_LOCALTIME_R=0
15156 fi
15157 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 15158
067d23c9
KY
15159
15160
743c80a7 15161
a451f14b
PE
15162
15163
15164
a451f14b 15165
1fd182f0 15166 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 15167
a451f14b 15168
1fd182f0 15169 :
a451f14b
PE
15170
15171 fi
15172
15173
743c80a7
PE
15174
15175
1fd182f0 15176 GNULIB_TIME_R=1
743c80a7
PE
15177
15178
15179
b06b1098 15180 # Code from module unistd:
a451f14b
PE
15181
15182
15183
e275c824
PE
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194 if test $gl_cv_have_include_next = yes; then
15195 gl_cv_next_unistd_h='<'unistd.h'>'
15196 else
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15198$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
d6974efa 15199if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
15200 $as_echo_n "(cached) " >&6
15201else
15202
b06b1098
PE
15203 if test $ac_cv_header_unistd_h = yes; then
15204
15205
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
15207/* end confdefs.h. */
15208#include <unistd.h>
15209
15210_ACEOF
b06b1098
PE
15211 case "$host_os" in
15212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15213 *) gl_absname_cpp="$ac_cpp" ;;
15214 esac
15215 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15216 sed -n '\#/unistd.h#{
15217 s#.*"\(.*/unistd.h\)".*#\1#
15218 s#^/[^/]#//&#
15219 p
15220 q
15221 }'`'"'
e275c824 15222 else
b06b1098
PE
15223 gl_cv_next_unistd_h='<'unistd.h'>'
15224 fi
15225
e275c824
PE
15226
15227fi
15228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15229$as_echo "$gl_cv_next_unistd_h" >&6; }
15230 fi
15231 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15232
15233 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15235 gl_next_as_first_directive='<'unistd.h'>'
15236 else
15237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15238 gl_next_as_first_directive=$gl_cv_next_unistd_h
15239 fi
15240 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15241
15242
15243
15244
e275c824
PE
15245 if test $ac_cv_header_unistd_h = yes; then
15246 HAVE_UNISTD_H=1
15247 else
15248 HAVE_UNISTD_H=0
15249 fi
15250
15251
15252
e275c824 15253
1fd182f0
PE
15254 # Code from module warn-on-use:
15255 # End of code from modules
a451f14b 15256
a451f14b 15257
743c80a7
PE
15258
15259
15260
15261
15262
15263
15264
15265 gltests_libdeps=
15266 gltests_ltlibdeps=
15267
15268
15269
15270
15271
a451f14b
PE
15272
15273
15274
15275
743c80a7
PE
15276 gl_source_base='tests'
15277 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
15278
15279 gl_module_indicator_condition=$gltests_WITNESS
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289 LIBGNU_LIBDEPS="$gl_libdeps"
15290
15291 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15292
15293
15294
067d23c9
KY
15295for ac_func in strftime
15296do :
15297 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
d6974efa 15298if test "x$ac_cv_func_strftime" = xyes; then :
067d23c9
KY
15299 cat >>confdefs.h <<_ACEOF
15300#define HAVE_STRFTIME 1
15301_ACEOF
15302
15303else
15304 # strftime is in -lintl on SCO UNIX.
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15306$as_echo_n "checking for strftime in -lintl... " >&6; }
d6974efa 15307if ${ac_cv_lib_intl_strftime+:} false; then :
067d23c9
KY
15308 $as_echo_n "(cached) " >&6
15309else
15310 ac_check_lib_save_LIBS=$LIBS
15311LIBS="-lintl $LIBS"
15312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313/* end confdefs.h. */
15314
15315/* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15318#ifdef __cplusplus
15319extern "C"
15320#endif
15321char strftime ();
15322int
15323main ()
15324{
15325return strftime ();
15326 ;
15327 return 0;
15328}
15329_ACEOF
15330if ac_fn_c_try_link "$LINENO"; then :
15331 ac_cv_lib_intl_strftime=yes
15332else
15333 ac_cv_lib_intl_strftime=no
15334fi
15335rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15337LIBS=$ac_check_lib_save_LIBS
15338fi
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15340$as_echo "$ac_cv_lib_intl_strftime" >&6; }
d6974efa 15341if test "x$ac_cv_lib_intl_strftime" = xyes; then :
067d23c9
KY
15342 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15343
15344LIBS="-lintl $LIBS"
15345fi
15346
15347fi
15348done
15349
15350
15351# UNIX98 PTYs.
15352for ac_func in grantpt
15353do :
15354 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
d6974efa 15355if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
15356 cat >>confdefs.h <<_ACEOF
15357#define HAVE_GRANTPT 1
15358_ACEOF
15359
15360fi
15361done
15362
15363
15364# PTY-related GNU extensions.
15365for ac_func in getpt
15366do :
15367 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
d6974efa 15368if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
15369 cat >>confdefs.h <<_ACEOF
15370#define HAVE_GETPT 1
15371_ACEOF
15372
15373fi
15374done
15375
15376
15377# Check this now, so that we will NOT find the above functions in ncurses.
15378# That is because we have not set up to link ncurses in lib-src.
15379# It's better to believe a function is not available
15380# than to expect to find it in ncurses.
15381# Also we need tputs and friends to be able to build at all.
15382have_tputs_et_al=true
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15384$as_echo_n "checking for library containing tputs... " >&6; }
d6974efa 15385if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15386 $as_echo_n "(cached) " >&6
15387else
15388 ac_func_search_save_LIBS=$LIBS
15389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390/* end confdefs.h. */
15391
15392/* Override any GCC internal prototype to avoid an error.
15393 Use char because int might match the return type of a GCC
15394 builtin and then its argument prototype would still apply. */
15395#ifdef __cplusplus
15396extern "C"
15397#endif
15398char tputs ();
15399int
15400main ()
15401{
15402return tputs ();
15403 ;
15404 return 0;
15405}
15406_ACEOF
15407for ac_lib in '' ncurses terminfo termcap; do
15408 if test -z "$ac_lib"; then
15409 ac_res="none required"
15410 else
15411 ac_res=-l$ac_lib
15412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15413 fi
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 ac_cv_search_tputs=$ac_res
15416fi
15417rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext
d6974efa 15419 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15420 break
15421fi
15422done
d6974efa 15423if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15424
15425else
15426 ac_cv_search_tputs=no
15427fi
15428rm conftest.$ac_ext
15429LIBS=$ac_func_search_save_LIBS
15430fi
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15432$as_echo "$ac_cv_search_tputs" >&6; }
15433ac_res=$ac_cv_search_tputs
15434if test "$ac_res" != no; then :
15435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15436
15437else
15438 have_tputs_et_al=false
15439fi
15440
15441if test "$have_tputs_et_al" != true; then
2018939f 15442 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
15443Maybe some development libraries/packages are missing? Try installing
15444libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15445fi
15446# Must define this when any termcap library is found.
15447
15448$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15449
15450## FIXME This was the cpp logic, but I am not sure it is right.
15451## The above test has not necessarily found libncurses.
15452HAVE_LIBNCURSES=yes
15453
15454## Use terminfo instead of termcap?
15455## Note only system files NOT using terminfo are:
15456## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15457## darwin|gnu without ncurses.
15458TERMINFO=no
15459LIBS_TERMCAP=
15460case "$opsys" in
15461 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15462 ## hpux10-20: Use the system provided termcap(3) library.
15463 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15464 ## is necessary. Otherwise Emacs dumps core when run -nw.
15465 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15466
15467 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15468 ## The ncurses library has been moved out of the System framework in
15469 ## Mac OS X 10.2. So if configure detects it, set the command-line
15470 ## option to use it.
15471 darwin|gnu*)
15472 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15473 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15474 TERMINFO=yes
15475 LIBS_TERMCAP="-lncurses"
15476 fi
15477 ;;
15478
15479 freebsd)
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15481$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
d6974efa 15482 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
15483 $as_echo_n "(cached) " >&6
15484else
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486/* end confdefs.h. */
15487#include <osreldate.h>
15488int
15489main ()
15490{
15491#if __FreeBSD_version < 400000
15492fail;
15493#endif
15494
15495 ;
15496 return 0;
15497}
15498_ACEOF
15499if ac_fn_c_try_link "$LINENO"; then :
15500 emacs_cv_freebsd_terminfo=yes
15501else
15502 emacs_cv_freebsd_terminfo=no
15503fi
15504rm -f core conftest.err conftest.$ac_objext \
15505 conftest$ac_exeext conftest.$ac_ext
15506fi
15507
15508
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15510$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15511
15512 if test $emacs_cv_freebsd_terminfo = yes; then
15513 TERMINFO=yes
15514 LIBS_TERMCAP="-lncurses"
15515 else
15516 LIBS_TERMCAP="-ltermcap"
15517 fi
15518 ;;
15519
15520 netbsd)
15521 if test $ac_cv_search_tputs = -lterminfo; then
15522 TERMINFO=yes
15523 LIBS_TERMCAP="-lterminfo"
15524 else
15525 LIBS_TERMCAP="-ltermcap"
15526 fi
15527 ;;
15528
15529esac
15530
15531case "$opsys" in
15532 ## hpux: Make sure we get select from libc rather than from libcurses
15533 ## because libcurses on HPUX 10.10 has a broken version of select.
15534 ## We used to use -lc -lcurses, but this may be cleaner.
15535 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15536
15537 openbsd) LIBS_TERMCAP="-lncurses" ;;
15538
15539 ## Must use system termcap, if we use any termcap. It does special things.
15540 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15541esac
15542
15543TERMCAP_OBJ=tparam.o
15544if test $TERMINFO = yes; then
15545
15546$as_echo "#define TERMINFO 1" >>confdefs.h
15547
15548
15549 ## Default used to be -ltermcap. Add a case above if need something else.
15550 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15551
15552 TERMCAP_OBJ=terminfo.o
15553fi
15554
15555
15556
15557
15558# Do we have res_init, for detecting changes in /etc/resolv.conf?
15559resolv=no
15560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561/* end confdefs.h. */
15562#include <netinet/in.h>
15563#include <arpa/nameser.h>
15564#include <resolv.h>
15565int
15566main ()
15567{
15568return res_init();
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573if ac_fn_c_try_link "$LINENO"; then :
15574 have_res_init=yes
15575else
15576 have_res_init=no
15577fi
15578rm -f core conftest.err conftest.$ac_objext \
15579 conftest$ac_exeext conftest.$ac_ext
15580if test "$have_res_init" = no; then
15581 OLIBS="$LIBS"
15582 LIBS="$LIBS -lresolv"
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15584$as_echo_n "checking for res_init with -lresolv... " >&6; }
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586/* end confdefs.h. */
15587#include <netinet/in.h>
15588#include <arpa/nameser.h>
15589#include <resolv.h>
15590int
15591main ()
15592{
15593return res_init();
15594 ;
15595 return 0;
15596}
15597_ACEOF
15598if ac_fn_c_try_link "$LINENO"; then :
15599 have_res_init=yes
15600else
15601 have_res_init=no
15602fi
15603rm -f core conftest.err conftest.$ac_objext \
15604 conftest$ac_exeext conftest.$ac_ext
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15606$as_echo "$have_res_init" >&6; }
15607 if test "$have_res_init" = yes ; then
15608 resolv=yes
15609 fi
15610 LIBS="$OLIBS"
15611fi
15612
15613if test "$have_res_init" = yes; then
15614
15615$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15616
15617fi
15618
15619# Do we need the Hesiod library to provide the support routines?
15620LIBHESIOD=
15621if test "$with_hesiod" != no ; then
15622 # Don't set $LIBS here -- see comments above. FIXME which comments?
15623 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
d6974efa 15624if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
15625
15626else
15627 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
d6974efa 15628if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
15629
15630else
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15632$as_echo_n "checking for res_send in -lresolv... " >&6; }
d6974efa 15633if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
15634 $as_echo_n "(cached) " >&6
15635else
15636 ac_check_lib_save_LIBS=$LIBS
15637LIBS="-lresolv $LIBS"
15638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639/* end confdefs.h. */
15640
15641/* Override any GCC internal prototype to avoid an error.
15642 Use char because int might match the return type of a GCC
15643 builtin and then its argument prototype would still apply. */
15644#ifdef __cplusplus
15645extern "C"
15646#endif
15647char res_send ();
15648int
15649main ()
15650{
15651return res_send ();
15652 ;
15653 return 0;
15654}
15655_ACEOF
15656if ac_fn_c_try_link "$LINENO"; then :
15657 ac_cv_lib_resolv_res_send=yes
15658else
15659 ac_cv_lib_resolv_res_send=no
15660fi
15661rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15663LIBS=$ac_check_lib_save_LIBS
15664fi
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15666$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
d6974efa 15667if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
15668 resolv=yes
15669else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15671$as_echo_n "checking for __res_send in -lresolv... " >&6; }
d6974efa 15672if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
15673 $as_echo_n "(cached) " >&6
15674else
15675 ac_check_lib_save_LIBS=$LIBS
15676LIBS="-lresolv $LIBS"
15677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678/* end confdefs.h. */
15679
15680/* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15683#ifdef __cplusplus
15684extern "C"
15685#endif
15686char __res_send ();
15687int
15688main ()
15689{
15690return __res_send ();
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695if ac_fn_c_try_link "$LINENO"; then :
15696 ac_cv_lib_resolv___res_send=yes
15697else
15698 ac_cv_lib_resolv___res_send=no
15699fi
15700rm -f core conftest.err conftest.$ac_objext \
15701 conftest$ac_exeext conftest.$ac_ext
15702LIBS=$ac_check_lib_save_LIBS
15703fi
15704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15705$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
d6974efa 15706if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
15707 resolv=yes
15708fi
15709
15710fi
15711
15712fi
15713
15714fi
15715
15716 if test "$resolv" = yes ; then
15717 RESOLVLIB=-lresolv
15718 else
15719 RESOLVLIB=
15720 fi
15721 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
d6974efa 15722if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
15723
15724else
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15726$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
d6974efa 15727if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
15728 $as_echo_n "(cached) " >&6
15729else
15730 ac_check_lib_save_LIBS=$LIBS
15731LIBS="-lhesiod $RESOLVLIB $LIBS"
15732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733/* end confdefs.h. */
15734
15735/* Override any GCC internal prototype to avoid an error.
15736 Use char because int might match the return type of a GCC
15737 builtin and then its argument prototype would still apply. */
15738#ifdef __cplusplus
15739extern "C"
15740#endif
15741char hes_getmailhost ();
15742int
15743main ()
15744{
15745return hes_getmailhost ();
15746 ;
15747 return 0;
15748}
15749_ACEOF
15750if ac_fn_c_try_link "$LINENO"; then :
15751 ac_cv_lib_hesiod_hes_getmailhost=yes
15752else
15753 ac_cv_lib_hesiod_hes_getmailhost=no
15754fi
15755rm -f core conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15757LIBS=$ac_check_lib_save_LIBS
15758fi
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15760$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
d6974efa 15761if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
15762 hesiod=yes
15763else
15764 :
15765fi
15766
15767fi
15768
15769
15770 if test x"$hesiod" = xyes; then
15771
15772$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15773
15774 LIBHESIOD=-lhesiod
15775 fi
15776fi
15777
15778
15779# Do we need libresolv (due to res_init or Hesiod)?
15780if test "$resolv" = yes ; then
15781
15782$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15783
15784 LIBRESOLV=-lresolv
15785else
15786 LIBRESOLV=
15787fi
15788
15789
15790# These tell us which Kerberos-related libraries to use.
15791COM_ERRLIB=
15792CRYPTOLIB=
15793KRB5LIB=
15794DESLIB=
15795KRB4LIB=
15796
15797if test "${with_kerberos}" != no; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15799$as_echo_n "checking for com_err in -lcom_err... " >&6; }
d6974efa 15800if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
15801 $as_echo_n "(cached) " >&6
15802else
15803 ac_check_lib_save_LIBS=$LIBS
15804LIBS="-lcom_err $LIBS"
15805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806/* end confdefs.h. */
15807
15808/* Override any GCC internal prototype to avoid an error.
15809 Use char because int might match the return type of a GCC
15810 builtin and then its argument prototype would still apply. */
15811#ifdef __cplusplus
15812extern "C"
15813#endif
15814char com_err ();
15815int
15816main ()
15817{
15818return com_err ();
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823if ac_fn_c_try_link "$LINENO"; then :
15824 ac_cv_lib_com_err_com_err=yes
15825else
15826 ac_cv_lib_com_err_com_err=no
15827fi
15828rm -f core conftest.err conftest.$ac_objext \
15829 conftest$ac_exeext conftest.$ac_ext
15830LIBS=$ac_check_lib_save_LIBS
15831fi
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15833$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
d6974efa 15834if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
15835 have_com_err=yes
15836else
15837 have_com_err=no
15838fi
15839
15840 if test $have_com_err = yes; then
15841 COM_ERRLIB=-lcom_err
15842 LIBS="$COM_ERRLIB $LIBS"
15843
15844$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15845
15846 fi
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15848$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
d6974efa 15849if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
15850 $as_echo_n "(cached) " >&6
15851else
15852 ac_check_lib_save_LIBS=$LIBS
15853LIBS="-lcrypto $LIBS"
15854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855/* end confdefs.h. */
15856
15857/* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
15860#ifdef __cplusplus
15861extern "C"
15862#endif
15863char mit_des_cbc_encrypt ();
15864int
15865main ()
15866{
15867return mit_des_cbc_encrypt ();
15868 ;
15869 return 0;
15870}
15871_ACEOF
15872if ac_fn_c_try_link "$LINENO"; then :
15873 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15874else
15875 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15876fi
15877rm -f core conftest.err conftest.$ac_objext \
15878 conftest$ac_exeext conftest.$ac_ext
15879LIBS=$ac_check_lib_save_LIBS
15880fi
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15882$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 15883if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
15884 have_crypto=yes
15885else
15886 have_crypto=no
15887fi
15888
15889 if test $have_crypto = yes; then
15890 CRYPTOLIB=-lcrypto
15891 LIBS="$CRYPTOLIB $LIBS"
15892
15893$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15894
15895 fi
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15897$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
d6974efa 15898if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
15899 $as_echo_n "(cached) " >&6
15900else
15901 ac_check_lib_save_LIBS=$LIBS
15902LIBS="-lk5crypto $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 mit_des_cbc_encrypt ();
15913int
15914main ()
15915{
15916return mit_des_cbc_encrypt ();
15917 ;
15918 return 0;
15919}
15920_ACEOF
15921if ac_fn_c_try_link "$LINENO"; then :
15922 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15923else
15924 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=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_k5crypto_mit_des_cbc_encrypt" >&5
15931$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 15932if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
15933 have_k5crypto=yes
15934else
15935 have_k5crypto=no
15936fi
15937
15938 if test $have_k5crypto = yes; then
15939 CRYPTOLIB=-lk5crypto
15940 LIBS="$CRYPTOLIB $LIBS"
15941
15942$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15943
15944 fi
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15946$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
d6974efa 15947if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
15948 $as_echo_n "(cached) " >&6
15949else
15950 ac_check_lib_save_LIBS=$LIBS
15951LIBS="-lkrb5 $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 krb5_init_context ();
15962int
15963main ()
15964{
15965return krb5_init_context ();
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970if ac_fn_c_try_link "$LINENO"; then :
15971 ac_cv_lib_krb5_krb5_init_context=yes
15972else
15973 ac_cv_lib_krb5_krb5_init_context=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_krb5_krb5_init_context" >&5
15980$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
d6974efa 15981if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
15982 have_krb5=yes
15983else
15984 have_krb5=no
15985fi
15986
15987 if test $have_krb5=yes; then
15988 KRB5LIB=-lkrb5
15989 LIBS="$KRB5LIB $LIBS"
15990
15991$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
15992
15993 fi
15994 if test "${with_kerberos5}" = no; then
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15996$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
d6974efa 15997if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
15998 $as_echo_n "(cached) " >&6
15999else
16000 ac_check_lib_save_LIBS=$LIBS
16001LIBS="-ldes425 $LIBS"
16002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h. */
16004
16005/* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16008#ifdef __cplusplus
16009extern "C"
16010#endif
16011char des_cbc_encrypt ();
16012int
16013main ()
16014{
16015return des_cbc_encrypt ();
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020if ac_fn_c_try_link "$LINENO"; then :
16021 ac_cv_lib_des425_des_cbc_encrypt=yes
16022else
16023 ac_cv_lib_des425_des_cbc_encrypt=no
16024fi
16025rm -f core conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext conftest.$ac_ext
16027LIBS=$ac_check_lib_save_LIBS
16028fi
16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16030$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
d6974efa 16031if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16032 have_des425=yes
16033else
16034 have_des425=no
16035fi
16036
16037 if test $have_des425 = yes; then
16038 DESLIB=-ldes425
16039 LIBS="$DESLIB $LIBS"
16040
16041$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16042
16043 else
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16045$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
d6974efa 16046if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
16047 $as_echo_n "(cached) " >&6
16048else
16049 ac_check_lib_save_LIBS=$LIBS
16050LIBS="-ldes $LIBS"
16051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052/* end confdefs.h. */
16053
16054/* Override any GCC internal prototype to avoid an error.
16055 Use char because int might match the return type of a GCC
16056 builtin and then its argument prototype would still apply. */
16057#ifdef __cplusplus
16058extern "C"
16059#endif
16060char des_cbc_encrypt ();
16061int
16062main ()
16063{
16064return des_cbc_encrypt ();
16065 ;
16066 return 0;
16067}
16068_ACEOF
16069if ac_fn_c_try_link "$LINENO"; then :
16070 ac_cv_lib_des_des_cbc_encrypt=yes
16071else
16072 ac_cv_lib_des_des_cbc_encrypt=no
16073fi
16074rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16076LIBS=$ac_check_lib_save_LIBS
16077fi
16078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16079$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
d6974efa 16080if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16081 have_des=yes
16082else
16083 have_des=no
16084fi
16085
16086 if test $have_des = yes; then
16087 DESLIB=-ldes
16088 LIBS="$DESLIB $LIBS"
16089
16090$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16091
16092 fi
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16095$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
d6974efa 16096if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
16097 $as_echo_n "(cached) " >&6
16098else
16099 ac_check_lib_save_LIBS=$LIBS
16100LIBS="-lkrb4 $LIBS"
16101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102/* end confdefs.h. */
16103
16104/* Override any GCC internal prototype to avoid an error.
16105 Use char because int might match the return type of a GCC
16106 builtin and then its argument prototype would still apply. */
16107#ifdef __cplusplus
16108extern "C"
16109#endif
16110char krb_get_cred ();
16111int
16112main ()
16113{
16114return krb_get_cred ();
16115 ;
16116 return 0;
16117}
16118_ACEOF
16119if ac_fn_c_try_link "$LINENO"; then :
16120 ac_cv_lib_krb4_krb_get_cred=yes
16121else
16122 ac_cv_lib_krb4_krb_get_cred=no
16123fi
16124rm -f core conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126LIBS=$ac_check_lib_save_LIBS
16127fi
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16129$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
d6974efa 16130if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
16131 have_krb4=yes
16132else
16133 have_krb4=no
16134fi
16135
16136 if test $have_krb4 = yes; then
16137 KRB4LIB=-lkrb4
16138 LIBS="$KRB4LIB $LIBS"
16139
16140$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16141
16142 else
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16144$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
d6974efa 16145if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
16146 $as_echo_n "(cached) " >&6
16147else
16148 ac_check_lib_save_LIBS=$LIBS
16149LIBS="-lkrb $LIBS"
16150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151/* end confdefs.h. */
16152
16153/* Override any GCC internal prototype to avoid an error.
16154 Use char because int might match the return type of a GCC
16155 builtin and then its argument prototype would still apply. */
16156#ifdef __cplusplus
16157extern "C"
16158#endif
16159char krb_get_cred ();
16160int
16161main ()
16162{
16163return krb_get_cred ();
16164 ;
16165 return 0;
16166}
16167_ACEOF
16168if ac_fn_c_try_link "$LINENO"; then :
16169 ac_cv_lib_krb_krb_get_cred=yes
16170else
16171 ac_cv_lib_krb_krb_get_cred=no
16172fi
16173rm -f core conftest.err conftest.$ac_objext \
16174 conftest$ac_exeext conftest.$ac_ext
16175LIBS=$ac_check_lib_save_LIBS
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16178$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
d6974efa 16179if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
16180 have_krb=yes
16181else
16182 have_krb=no
16183fi
16184
16185 if test $have_krb = yes; then
16186 KRB4LIB=-lkrb
16187 LIBS="$KRB4LIB $LIBS"
16188
16189$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16190
16191 fi
16192 fi
16193 fi
16194
16195 if test "${with_kerberos5}" != no; then
16196 for ac_header in krb5.h
16197do :
16198 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
d6974efa 16199if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
16200 cat >>confdefs.h <<_ACEOF
16201#define HAVE_KRB5_H 1
16202_ACEOF
16203 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16204"
d6974efa 16205if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
16206
16207cat >>confdefs.h <<_ACEOF
16208#define HAVE_KRB5_ERROR_TEXT 1
16209_ACEOF
16210
16211
16212fi
16213ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16214"
d6974efa 16215if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
16216
16217cat >>confdefs.h <<_ACEOF
16218#define HAVE_KRB5_ERROR_E_TEXT 1
16219_ACEOF
16220
16221
16222fi
16223
16224fi
16225
16226done
16227
16228 else
16229 for ac_header in des.h
16230do :
16231 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
d6974efa 16232if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
16233 cat >>confdefs.h <<_ACEOF
16234#define HAVE_DES_H 1
16235_ACEOF
16236
16237else
16238 for ac_header in kerberosIV/des.h
16239do :
16240 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
d6974efa 16241if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
16242 cat >>confdefs.h <<_ACEOF
16243#define HAVE_KERBEROSIV_DES_H 1
16244_ACEOF
16245
16246else
16247 for ac_header in kerberos/des.h
16248do :
16249 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
d6974efa 16250if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
16251 cat >>confdefs.h <<_ACEOF
16252#define HAVE_KERBEROS_DES_H 1
16253_ACEOF
16254
16255fi
16256
16257done
16258
16259fi
16260
16261done
16262
16263fi
16264
16265done
16266
16267 for ac_header in krb.h
16268do :
16269 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
d6974efa 16270if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
16271 cat >>confdefs.h <<_ACEOF
16272#define HAVE_KRB_H 1
16273_ACEOF
16274
16275else
16276 for ac_header in kerberosIV/krb.h
16277do :
16278 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
d6974efa 16279if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
16280 cat >>confdefs.h <<_ACEOF
16281#define HAVE_KERBEROSIV_KRB_H 1
16282_ACEOF
16283
16284else
16285 for ac_header in kerberos/krb.h
16286do :
16287 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
d6974efa 16288if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
16289 cat >>confdefs.h <<_ACEOF
16290#define HAVE_KERBEROS_KRB_H 1
16291_ACEOF
16292
16293fi
16294
16295done
16296
16297fi
16298
16299done
16300
16301fi
16302
16303done
16304
16305 fi
16306 for ac_header in com_err.h
16307do :
16308 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
d6974efa 16309if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
16310 cat >>confdefs.h <<_ACEOF
16311#define HAVE_COM_ERR_H 1
16312_ACEOF
16313
16314fi
16315
16316done
16317
16318fi
16319
16320
16321
16322
16323
16324
16325
16326# Solaris requires -lintl if you want strerror (which calls dgettext)
16327# to return localized messages.
16328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16329$as_echo_n "checking for dgettext in -lintl... " >&6; }
d6974efa 16330if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
16331 $as_echo_n "(cached) " >&6
16332else
16333 ac_check_lib_save_LIBS=$LIBS
16334LIBS="-lintl $LIBS"
16335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336/* end confdefs.h. */
16337
16338/* Override any GCC internal prototype to avoid an error.
16339 Use char because int might match the return type of a GCC
16340 builtin and then its argument prototype would still apply. */
16341#ifdef __cplusplus
16342extern "C"
16343#endif
16344char dgettext ();
16345int
16346main ()
16347{
16348return dgettext ();
16349 ;
16350 return 0;
16351}
16352_ACEOF
16353if ac_fn_c_try_link "$LINENO"; then :
16354 ac_cv_lib_intl_dgettext=yes
16355else
16356 ac_cv_lib_intl_dgettext=no
16357fi
16358rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360LIBS=$ac_check_lib_save_LIBS
16361fi
16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16363$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
d6974efa 16364if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
16365 cat >>confdefs.h <<_ACEOF
16366#define HAVE_LIBINTL 1
16367_ACEOF
16368
16369 LIBS="-lintl $LIBS"
16370
16371fi
16372
16373
16374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16375$as_echo_n "checking whether localtime caches TZ... " >&6; }
d6974efa 16376if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
16377 $as_echo_n "(cached) " >&6
16378else
16379 if test x$ac_cv_func_tzset = xyes; then
16380if test "$cross_compiling" = yes; then :
16381 # If we have tzset, assume the worst when cross-compiling.
16382emacs_cv_localtime_cache=yes
16383else
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h. */
16386#include <time.h>
16387char TZ_GMT0[] = "TZ=GMT0";
16388char TZ_PST8[] = "TZ=PST8";
16389main()
16390{
16391 time_t now = time ((time_t *) 0);
16392 int hour_GMT0, hour_unset;
16393 if (putenv (TZ_GMT0) != 0)
16394 exit (1);
16395 hour_GMT0 = localtime (&now)->tm_hour;
16396 unsetenv("TZ");
16397 hour_unset = localtime (&now)->tm_hour;
16398 if (putenv (TZ_PST8) != 0)
16399 exit (1);
16400 if (localtime (&now)->tm_hour == hour_GMT0)
16401 exit (1);
16402 unsetenv("TZ");
16403 if (localtime (&now)->tm_hour != hour_unset)
16404 exit (1);
16405 exit (0);
16406}
16407_ACEOF
16408if ac_fn_c_try_run "$LINENO"; then :
16409 emacs_cv_localtime_cache=no
16410else
16411 emacs_cv_localtime_cache=yes
16412fi
16413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16414 conftest.$ac_objext conftest.beam conftest.$ac_ext
16415fi
16416
16417else
16418 # If we lack tzset, report that localtime does not cache TZ,
16419 # since we can't invalidate the cache if we don't have tzset.
16420 emacs_cv_localtime_cache=no
16421fi
16422fi
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16424$as_echo "$emacs_cv_localtime_cache" >&6; }
16425if test $emacs_cv_localtime_cache = yes; then
16426
16427$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16428
16429fi
16430
16431if test "x$HAVE_TIMEVAL" = xyes; then
16432 for ac_func in gettimeofday
16433do :
16434 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
d6974efa 16435if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
16436 cat >>confdefs.h <<_ACEOF
16437#define HAVE_GETTIMEOFDAY 1
16438_ACEOF
16439
16440fi
16441done
16442
16443 if test $ac_cv_func_gettimeofday = yes; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16445$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
d6974efa 16446if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
16447 $as_echo_n "(cached) " >&6
16448else
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450/* end confdefs.h. */
16451
16452#ifdef TIME_WITH_SYS_TIME
16453#include <sys/time.h>
16454#include <time.h>
16455#else
16456#ifdef HAVE_SYS_TIME_H
16457#include <sys/time.h>
16458#else
16459#include <time.h>
16460#endif
16461#endif
16462int
16463main ()
16464{
16465struct timeval time;
16466 gettimeofday (&time, 0);
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471if ac_fn_c_try_compile "$LINENO"; then :
16472 emacs_cv_gettimeofday_two_arguments=yes
16473else
16474 emacs_cv_gettimeofday_two_arguments=no
16475fi
16476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16477fi
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16479$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16480 if test $emacs_cv_gettimeofday_two_arguments = no; then
16481
16482$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16483
16484 fi
16485 fi
16486fi
16487
16488ok_so_far=yes
16489ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
d6974efa 16490if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
16491
16492else
16493 ok_so_far=no
16494fi
16495
16496if test $ok_so_far = yes; then
16497 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
d6974efa 16498if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
16499
16500else
16501 ok_so_far=no
16502fi
16503
16504
16505fi
16506if test $ok_so_far = yes; then
16507 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
d6974efa 16508if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
16509
16510else
16511 ok_so_far=no
16512fi
16513
16514
16515fi
16516if test $ok_so_far = yes; then
16517
16518$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16519
16520fi
16521
16522if test -f /usr/lpp/X11/bin/smt.exp; then
16523
16524$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16525
16526fi
16527
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16529$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16530if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16532$as_echo "yes" >&6; }
16533
16534$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16535
16536else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538$as_echo "no" >&6; }
16539fi
16540
16541ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d6974efa 16542if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
16543
16544else
16545
16546cat >>confdefs.h <<_ACEOF
16547#define pid_t int
16548_ACEOF
16549
16550fi
16551
16552for ac_header in vfork.h
16553do :
16554 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
d6974efa 16555if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
16556 cat >>confdefs.h <<_ACEOF
16557#define HAVE_VFORK_H 1
16558_ACEOF
16559
16560fi
16561
16562done
16563
16564for ac_func in fork vfork
16565do :
16566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 16568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
16569 cat >>confdefs.h <<_ACEOF
16570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16571_ACEOF
16572
16573fi
16574done
16575
16576if test "x$ac_cv_func_fork" = xyes; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16578$as_echo_n "checking for working fork... " >&6; }
d6974efa 16579if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
16580 $as_echo_n "(cached) " >&6
16581else
16582 if test "$cross_compiling" = yes; then :
16583 ac_cv_func_fork_works=cross
16584else
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586/* end confdefs.h. */
16587$ac_includes_default
16588int
16589main ()
16590{
16591
16592 /* By Ruediger Kuhlmann. */
16593 return fork () < 0;
16594
16595 ;
16596 return 0;
16597}
16598_ACEOF
16599if ac_fn_c_try_run "$LINENO"; then :
16600 ac_cv_func_fork_works=yes
16601else
16602 ac_cv_func_fork_works=no
16603fi
16604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16605 conftest.$ac_objext conftest.beam conftest.$ac_ext
16606fi
16607
16608fi
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16610$as_echo "$ac_cv_func_fork_works" >&6; }
16611
16612else
16613 ac_cv_func_fork_works=$ac_cv_func_fork
16614fi
16615if test "x$ac_cv_func_fork_works" = xcross; then
16616 case $host in
16617 *-*-amigaos* | *-*-msdosdjgpp*)
16618 # Override, as these systems have only a dummy fork() stub
16619 ac_cv_func_fork_works=no
16620 ;;
16621 *)
16622 ac_cv_func_fork_works=yes
16623 ;;
16624 esac
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16626$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16627fi
16628ac_cv_func_vfork_works=$ac_cv_func_vfork
16629if test "x$ac_cv_func_vfork" = xyes; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16631$as_echo_n "checking for working vfork... " >&6; }
d6974efa 16632if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
16633 $as_echo_n "(cached) " >&6
16634else
16635 if test "$cross_compiling" = yes; then :
16636 ac_cv_func_vfork_works=cross
16637else
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h. */
16640/* Thanks to Paul Eggert for this test. */
16641$ac_includes_default
16642#include <sys/wait.h>
16643#ifdef HAVE_VFORK_H
16644# include <vfork.h>
16645#endif
16646/* On some sparc systems, changes by the child to local and incoming
16647 argument registers are propagated back to the parent. The compiler
16648 is told about this with #include <vfork.h>, but some compilers
16649 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16650 static variable whose address is put into a register that is
16651 clobbered by the vfork. */
16652static void
16653#ifdef __cplusplus
16654sparc_address_test (int arg)
16655# else
16656sparc_address_test (arg) int arg;
16657#endif
16658{
16659 static pid_t child;
16660 if (!child) {
16661 child = vfork ();
16662 if (child < 0) {
16663 perror ("vfork");
16664 _exit(2);
16665 }
16666 if (!child) {
16667 arg = getpid();
16668 write(-1, "", 0);
16669 _exit (arg);
16670 }
16671 }
16672}
16673
16674int
16675main ()
16676{
16677 pid_t parent = getpid ();
16678 pid_t child;
16679
16680 sparc_address_test (0);
16681
16682 child = vfork ();
16683
16684 if (child == 0) {
16685 /* Here is another test for sparc vfork register problems. This
16686 test uses lots of local variables, at least as many local
16687 variables as main has allocated so far including compiler
16688 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16689 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16690 reuse the register of parent for one of the local variables,
16691 since it will think that parent can't possibly be used any more
16692 in this routine. Assigning to the local variable will thus
16693 munge parent in the parent process. */
16694 pid_t
16695 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16696 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16697 /* Convince the compiler that p..p7 are live; otherwise, it might
16698 use the same hardware register for all 8 local variables. */
16699 if (p != p1 || p != p2 || p != p3 || p != p4
16700 || p != p5 || p != p6 || p != p7)
16701 _exit(1);
16702
16703 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16704 from child file descriptors. If the child closes a descriptor
16705 before it execs or exits, this munges the parent's descriptor
16706 as well. Test for this by closing stdout in the child. */
16707 _exit(close(fileno(stdout)) != 0);
16708 } else {
16709 int status;
16710 struct stat st;
16711
16712 while (wait(&status) != child)
16713 ;
16714 return (
16715 /* Was there some problem with vforking? */
16716 child < 0
16717
16718 /* Did the child fail? (This shouldn't happen.) */
16719 || status
16720
16721 /* Did the vfork/compiler bug occur? */
16722 || parent != getpid()
16723
16724 /* Did the file descriptor bug occur? */
16725 || fstat(fileno(stdout), &st) != 0
16726 );
16727 }
16728}
16729_ACEOF
16730if ac_fn_c_try_run "$LINENO"; then :
16731 ac_cv_func_vfork_works=yes
16732else
16733 ac_cv_func_vfork_works=no
16734fi
16735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16736 conftest.$ac_objext conftest.beam conftest.$ac_ext
16737fi
16738
16739fi
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16741$as_echo "$ac_cv_func_vfork_works" >&6; }
16742
16743fi;
16744if test "x$ac_cv_func_fork_works" = xcross; then
16745 ac_cv_func_vfork_works=$ac_cv_func_vfork
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16747$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16748fi
16749
16750if test "x$ac_cv_func_vfork_works" = xyes; then
16751
16752$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16753
16754else
16755
16756$as_echo "#define vfork fork" >>confdefs.h
16757
16758fi
16759if test "x$ac_cv_func_fork_works" = xyes; then
16760
16761$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16762
16763fi
16764
16765
16766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16767$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6974efa 16768if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
16769 $as_echo_n "(cached) " >&6
16770else
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772/* end confdefs.h. */
16773#include <langinfo.h>
16774int
16775main ()
16776{
16777char* cs = nl_langinfo(CODESET);
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782if ac_fn_c_try_link "$LINENO"; then :
16783 emacs_cv_langinfo_codeset=yes
16784else
16785 emacs_cv_langinfo_codeset=no
16786fi
16787rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
16789
16790fi
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16792$as_echo "$emacs_cv_langinfo_codeset" >&6; }
16793if test $emacs_cv_langinfo_codeset = yes; then
16794
16795$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16796
16797fi
16798
16799ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d6974efa 16800if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
16801
16802cat >>confdefs.h <<_ACEOF
16803#define HAVE_SIZE_T 1
16804_ACEOF
16805
16806
16807fi
16808
16809
16810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16811$as_echo_n "checking for mbstate_t... " >&6; }
d6974efa 16812if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
16813 $as_echo_n "(cached) " >&6
16814else
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h. */
16817$ac_includes_default
16818# include <wchar.h>
16819int
16820main ()
16821{
16822mbstate_t x; return sizeof x;
16823 ;
16824 return 0;
16825}
16826_ACEOF
16827if ac_fn_c_try_compile "$LINENO"; then :
16828 ac_cv_type_mbstate_t=yes
16829else
16830 ac_cv_type_mbstate_t=no
16831fi
16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833fi
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16835$as_echo "$ac_cv_type_mbstate_t" >&6; }
16836 if test $ac_cv_type_mbstate_t = yes; then
16837
16838$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16839
16840 else
16841
16842$as_echo "#define mbstate_t int" >>confdefs.h
16843
16844 fi
16845
067d23c9
KY
16846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16847$as_echo_n "checking for C restricted array declarations... " >&6; }
d6974efa 16848if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
16849 $as_echo_n "(cached) " >&6
16850else
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h. */
16853void fred (int x[__restrict]);
16854int
16855main ()
16856{
16857
16858 ;
16859 return 0;
16860}
16861_ACEOF
16862if ac_fn_c_try_compile "$LINENO"; then :
16863 emacs_cv_c_restrict_arr=yes
16864else
16865 emacs_cv_c_restrict_arr=no
16866fi
16867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868fi
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16870$as_echo "$emacs_cv_c_restrict_arr" >&6; }
16871if test "$emacs_cv_c_restrict_arr" = yes; then
16872
16873$as_echo "#define __restrict_arr __restrict" >>confdefs.h
16874
16875fi
16876
16877
16878
16879# Set up the CFLAGS for real compilation, so we can substitute it.
16880CFLAGS="$REAL_CFLAGS"
16881CPPFLAGS="$REAL_CPPFLAGS"
16882
16883## Hack to detect a buggy GCC version.
16884if test "x$GCC" = xyes \
16885 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16886 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16887 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 16888 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
16889fi
16890
16891#### Find out which version of Emacs this is.
16892version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16893 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16894if test x"${version}" = x; then
2018939f 16895 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
067d23c9
KY
16896fi
16897if test x"${version}" != x"$PACKAGE_VERSION"; then
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16899$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16900fi
16901
16902### Specify what sort of things we'll be editing into Makefile and config.h.
16903### Use configuration here uncanonicalized to avoid exceeding size limits.
16904
16905
16906## Unused?
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16928## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16929## end of LIBX_BASE, but nothing ever set it.
16930
16931
16932
16933
16934## Used in lwlib/Makefile.in.
16935
d6a003a8
AS
16936if test -n "${machfile}"; then
16937 M_FILE="\$(srcdir)/${machfile}"
16938else
16939 M_FILE=
16940fi
16941S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953cat >>confdefs.h <<_ACEOF
16954#define EMACS_CONFIGURATION "${canonical}"
16955_ACEOF
16956
16957
16958cat >>confdefs.h <<_ACEOF
16959#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16960_ACEOF
16961
d6a003a8 16962if test -n "$machfile"; then
067d23c9
KY
16963
16964cat >>confdefs.h <<_ACEOF
16965#define config_machfile "${machfile}"
16966_ACEOF
16967
d6a003a8 16968fi
067d23c9
KY
16969
16970cat >>confdefs.h <<_ACEOF
16971#define config_opsysfile "${opsysfile}"
16972_ACEOF
16973
16974
16975XMENU_OBJ=
16976XOBJ=
16977FONT_OBJ=
16978if test "${HAVE_X_WINDOWS}" = "yes" ; then
16979
16980$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16981
16982 XMENU_OBJ=xmenu.o
16983 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
16984 FONT_OBJ=xfont.o
16985 if test "$HAVE_XFT" = "yes"; then
16986 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16987 elif test "$HAVE_FREETYPE" = "yes"; then
16988 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16989 fi
16990
16991fi
16992
16993
16994
16995
16996WIDGET_OBJ=
16997MOTIF_LIBW=
16998if test "${USE_X_TOOLKIT}" != "none" ; then
16999 WIDGET_OBJ=widget.o
17000
17001$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17002
17003 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17004
17005$as_echo "#define USE_LUCID 1" >>confdefs.h
17006
17007 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17008
17009$as_echo "#define USE_MOTIF 1" >>confdefs.h
17010
17011 MOTIF_LIBW=-lXm
17012 case "$opsys" in
17013 gnu-linux)
17014 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17015 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17016 ;;
17017
17018 unixware)
17019 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17020 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17021 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17022 ;;
17023
17024 aix4-2)
17025 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17026 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17027 ;;
17028 esac
17029 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17030 fi
17031fi
17032
17033
17034TOOLKIT_LIBW=
17035case "$USE_X_TOOLKIT" in
17036 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17037 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17038 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17039esac
17040
17041
17042if test "$USE_X_TOOLKIT" = "none"; then
17043 LIBXT_OTHER="\$(LIBXSM)"
17044 OLDXMENU_TARGET="really-oldXMenu"
17045else
17046 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17047 OLDXMENU_TARGET="really-lwlib"
17048fi
17049
17050
17051## The X Menu stuff is present in the X10 distribution, but missing
17052## from X11. If we have X10, just use the installed library;
17053## otherwise, use our own copy.
17054if test "${HAVE_X11}" = "yes" ; then
17055
17056$as_echo "#define HAVE_X11 1" >>confdefs.h
17057
17058
17059 if test "$USE_X_TOOLKIT" = "none"; then
17060 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17061 else
17062 OLDXMENU="\${lwlibdir}/liblw.a"
17063 fi
17064 LIBXMENU="\$(OLDXMENU)"
17065 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17066 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17067else
17068 ## For a syntactically valid Makefile; not actually used for anything.
17069 ## See comments in src/Makefile.in.
17070 OLDXMENU=nothing
17071 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17072 if test "${HAVE_X_WINDOWS}" = "yes"; then
17073 LIBXMENU="-lXMenu"
17074 else
17075 LIBXMENU=
17076 fi
17077 LIBX_OTHER=
17078 OLDXMENU_DEPS=
17079fi
17080
17081if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17082 OLDXMENU_TARGET=
17083 OLDXMENU=nothing
17084 LIBXMENU=
17085 OLDXMENU_DEPS=
17086fi
17087
17088
17089
17090
17091
17092
17093
17094if test "${HAVE_MENUS}" = "yes" ; then
17095
17096$as_echo "#define HAVE_MENUS 1" >>confdefs.h
17097
17098fi
17099
17100if test "${GNU_MALLOC}" = "yes" ; then
17101
17102$as_echo "#define GNU_MALLOC 1" >>confdefs.h
17103
17104fi
17105
17106RALLOC_OBJ=
17107if test "${REL_ALLOC}" = "yes" ; then
17108
17109$as_echo "#define REL_ALLOC 1" >>confdefs.h
17110
17111
17112 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17113fi
17114
17115
17116if test "$opsys" = "cygwin"; then
17117 CYGWIN_OBJ="sheap.o"
17118 ## Cygwin differs because of its unexec().
17119 PRE_ALLOC_OBJ=
17120 POST_ALLOC_OBJ=lastfile.o
17121else
17122 CYGWIN_OBJ=
17123 PRE_ALLOC_OBJ=lastfile.o
17124 POST_ALLOC_OBJ=
17125fi
17126
17127
17128
17129
17130
17131case "$opsys" in
17132 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17133
17134 darwin)
17135 ## The -headerpad option tells ld (see man page) to leave room at the
17136 ## end of the header for adding load commands. Needed for dumping.
17137 ## 0x690 is the total size of 30 segment load commands (at 56
17138 ## each); under Cocoa 31 commands are required.
17139 if test "$HAVE_NS" = "yes"; then
17140 libs_nsgui="-framework AppKit"
17141 headerpad_extra=6C8
17142 else
17143 libs_nsgui=
17144 headerpad_extra=690
17145 fi
17146 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17147
17148 ## This is here because src/Makefile.in did some extra fiddling around
17149 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17150 ## #ifndef LD_SWITCH_SYSTEM
17151 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17152 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17153 ## not using gcc, darwin system not on an alpha (ie darwin, since
17154 ## darwin + alpha does not occur).
17155 ## Because this was done in src/Makefile.in, the resulting part of
17156 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17157 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17158 ## rather than LD_SWITCH_SYSTEM.
17159 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17160 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17161 ;;
17162
17163 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17164 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17165 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17166 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17167 ## had different values in configure (in ac_link) and src/Makefile.in.
17168 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17169 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17170
17171 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17172esac
17173
17174if test "$NS_IMPL_GNUSTEP" = "yes"; then
17175 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17176fi
17177
17178
17179
17180
17181LD_FIRSTFLAG=
17182ORDINARY_LINK=
17183case "$opsys" in
17184 ## gnu: GNU needs its own crt0.
17185 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17186
17187 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17188 ## library search parth, i.e. it won't search /usr/lib for libc and
17189 ## friends. Using -nostartfiles instead avoids this problem, and
17190 ## will also work on earlier NetBSD releases.
17191 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17192
17193 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17194 ## MkLinux/LinuxPPC needs this.
17195 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17196 gnu-*)
17197 case "$machine" in
17198 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17199 esac
17200 ;;
17201esac
17202
17203
17204if test "x$ORDINARY_LINK" = "xyes"; then
17205
17206 LD_FIRSTFLAG=""
17207
17208$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17209
17210
17211## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17212## freebsd, gnu-* not on macppc|ibms390x.
17213elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17214
17215 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17216 ## places that are difficult to figure out at make time. Fortunately,
17217 ## these same versions allow you to pass arbitrary flags on to the
17218 ## linker, so there is no reason not to use it as a linker.
17219 ##
17220 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17221 ## searching for libraries in its internal directories, so we have to
17222 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17223 LD_FIRSTFLAG="-nostdlib"
17224fi
17225
17226## FIXME? What setting of EDIT_LDFLAGS should this have?
17227test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17228
17229
17230
17231
17232## FIXME? The logic here is not precisely the same as that above.
17233## There is no check here for a pre-defined LD_FIRSTFLAG.
17234## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17235LIB_GCC=
17236if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17237
17238 case "$opsys" in
17239 freebsd|netbsd|openbsd) LIB_GCC= ;;
17240
17241 gnu-*)
17242 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17243 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
17244 case $host_cpu in
17245 arm*)
067d23c9 17246 LIB_GCC="-lgcc_s"
d6a003a8
AS
17247 ;;
17248 *)
067d23c9
KY
17249 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17250 ## immediately undefine it again and redefine it to empty.
17251 ## Was the C_SWITCH_X_SITE part really necessary?
17252## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17253 LIB_GCC=
d6a003a8
AS
17254 ;;
17255 esac
067d23c9
KY
17256 ;;
17257
17258 ## Ask GCC where to find libgcc.a.
17259 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17260 esac
17261fi
17262
17263
17264TOOLTIP_SUPPORT=
17265WINDOW_SUPPORT=
17266## If we're using X11/GNUstep, define some consequences.
17267if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17268
17269$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17270
17271
17272$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17273
17274 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17275 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17276
17277 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17278 test "$HAVE_X_WINDOWS" = "yes" && \
17279 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17280
17281fi
17282
17283
17284
17285
17286
17287
17288
17289#### Report on what we decided to do.
17290#### Report GTK as a toolkit, even if it doesn't use Xt.
17291#### It makes printing result more understandable as using GTK sets
17292#### toolkit_scroll_bars to yes by default.
17293if test "${HAVE_GTK}" = "yes"; then
17294 USE_X_TOOLKIT=GTK
17295fi
17296
2b7f50d8
AS
17297and_machfile=
17298if test -n "$machfile"; then
17299 and_machfile=" and \`${machfile}'"
17300fi
17301
067d23c9
KY
17302echo "
17303Configured for \`${canonical}'.
17304
17305 Where should the build process find the source code? ${srcdir}
17306 What operating system and machine description files should Emacs use?
2b7f50d8 17307 \`${opsysfile}'${and_machfile}
067d23c9
KY
17308 What compiler should emacs be built with? ${CC} ${CFLAGS}
17309 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17310 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17311 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17312 What window system should Emacs use? ${window_system}
17313 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17314
17315if test -n "${x_includes}"; then
17316echo " Where do we find X Windows header files? ${x_includes}"
17317else
17318echo " Where do we find X Windows header files? Standard dirs"
17319fi
17320if test -n "${x_libraries}"; then
17321echo " Where do we find X Windows libraries? ${x_libraries}"
17322else
17323echo " Where do we find X Windows libraries? Standard dirs"
17324fi
17325
17326echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17327echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17328echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17329echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17330echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17331echo " Does Emacs use -lpng? ${HAVE_PNG}"
17332echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17333echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17334
17335echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17336echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17337echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17338echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17339echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17340echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17341
17342echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17343echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17344echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17345echo " Does Emacs use -lxft? ${HAVE_XFT}"
17346
17347echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17348echo
17349
17350if test $USE_XASSERTS = yes; then
17351 echo " Compiling with asserts turned on."
17352 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17353fi
17354
17355echo
17356
17357if test "$HAVE_NS" = "yes"; then
17358 echo
17359 echo "You must run \"make install\" in order to test the built application.
17360The installed application will go to nextstep/Emacs.app and can be
17361run or moved from there."
17362 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17363 echo "The application will be fully self-contained."
17364 else
17365 echo "The lisp resources for the application will be installed under ${prefix}.
17366You may need to run \"make install\" with sudo. The application will fail
17367to run if these resources are not installed."
17368 fi
17369 echo
17370fi
17371
17372
17373# Remove any trailing slashes in these variables.
17374test "${prefix}" != NONE &&
17375 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17376test "${exec_prefix}" != NONE &&
17377 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17378
193770ee 17379ac_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
17380
17381ac_config_commands="$ac_config_commands default"
17382
17383cat >confcache <<\_ACEOF
17384# This file is a shell script that caches the results of configure
17385# tests run on this system so they can be shared between configure
17386# scripts and configure runs, see configure's option --config-cache.
17387# It is not useful on other systems. If it contains results you don't
17388# want to keep, you may remove or edit it.
17389#
17390# config.status only pays attention to the cache file if you give it
17391# the --recheck option to rerun configure.
17392#
17393# `ac_cv_env_foo' variables (set or unset) will be overridden when
17394# loading this file, other *unset* `ac_cv_foo' will be assigned the
17395# following values.
17396
17397_ACEOF
17398
17399# The following way of writing the cache mishandles newlines in values,
17400# but we know of no workaround that is simple, portable, and efficient.
17401# So, we kill variables containing newlines.
17402# Ultrix sh set writes to stderr and can't be redirected directly,
17403# and sets the high bit in the cache file unless we assign to the vars.
17404(
17405 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17406 eval ac_val=\$$ac_var
17407 case $ac_val in #(
17408 *${as_nl}*)
17409 case $ac_var in #(
17410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17411$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17412 esac
17413 case $ac_var in #(
17414 _ | IFS | as_nl) ;; #(
17415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17416 *) { eval $ac_var=; unset $ac_var;} ;;
17417 esac ;;
17418 esac
17419 done
17420
17421 (set) 2>&1 |
17422 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17423 *${as_nl}ac_space=\ *)
17424 # `set' does not quote correctly, so add quotes: double-quote
17425 # substitution turns \\\\ into \\, and sed turns \\ into \.
17426 sed -n \
17427 "s/'/'\\\\''/g;
17428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17429 ;; #(
17430 *)
17431 # `set' quotes correctly as required by POSIX, so do not add quotes.
17432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17433 ;;
17434 esac |
17435 sort
17436) |
17437 sed '
17438 /^ac_cv_env_/b end
17439 t clear
17440 :clear
17441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17442 t end
17443 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17444 :end' >>confcache
17445if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17446 if test -w "$cache_file"; then
d6974efa 17447 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17449$as_echo "$as_me: updating cache $cache_file" >&6;}
d6974efa
PE
17450 if test ! -f "$cache_file" || test -h "$cache_file"; then
17451 cat confcache >"$cache_file"
17452 else
17453 case $cache_file in #(
17454 */* | ?:*)
17455 mv -f confcache "$cache_file"$$ &&
17456 mv -f "$cache_file"$$ "$cache_file" ;; #(
17457 *)
17458 mv -f confcache "$cache_file" ;;
17459 esac
17460 fi
17461 fi
067d23c9
KY
17462 else
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17464$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17465 fi
17466fi
17467rm -f confcache
17468
17469test "x$prefix" = xNONE && prefix=$ac_default_prefix
17470# Let make expand exec_prefix.
17471test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17472
17473DEFS=-DHAVE_CONFIG_H
17474
17475ac_libobjs=
17476ac_ltlibobjs=
2018939f 17477U=
067d23c9
KY
17478for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17479 # 1. Remove the extension, and $U if already installed.
17480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17481 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17483 # will be set to the directory where LIBOBJS objects are built.
17484 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17485 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17486done
17487LIBOBJS=$ac_libobjs
17488
17489LTLIBOBJS=$ac_ltlibobjs
17490
17491
743c80a7
PE
17492 if test -n "$EXEEXT"; then
17493 am__EXEEXT_TRUE=
17494 am__EXEEXT_FALSE='#'
17495else
17496 am__EXEEXT_TRUE='#'
17497 am__EXEEXT_FALSE=
17498fi
17499
17500if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17501 as_fn_error $? "conditional \"AMDEP\" was never defined.
17502Usually this means the macro was only invoked conditionally." "$LINENO" 5
17503fi
17504if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17505 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17506Usually this means the macro was only invoked conditionally." "$LINENO" 5
17507fi
17508
17509if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17510 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17511Usually this means the macro was only invoked conditionally." "$LINENO" 5
17512fi
17513
17514 gl_libobjs=
17515 gl_ltlibobjs=
17516 if test -n "$gl_LIBOBJS"; then
17517 # Remove the extension.
17518 sed_drop_objext='s/\.o$//;s/\.obj$//'
17519 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17520 gl_libobjs="$gl_libobjs $i.$ac_objext"
17521 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17522 done
17523 fi
17524 gl_LIBOBJS=$gl_libobjs
17525
17526 gl_LTLIBOBJS=$gl_ltlibobjs
17527
17528
17529
17530 gltests_libobjs=
17531 gltests_ltlibobjs=
17532 if test -n "$gltests_LIBOBJS"; then
17533 # Remove the extension.
17534 sed_drop_objext='s/\.o$//;s/\.obj$//'
17535 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17536 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17537 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17538 done
17539 fi
17540 gltests_LIBOBJS=$gltests_libobjs
17541
17542 gltests_LTLIBOBJS=$gltests_ltlibobjs
17543
067d23c9
KY
17544
17545
d6974efa 17546: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
17547ac_write_fail=0
17548ac_clean_files_save=$ac_clean_files
17549ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17551$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17552as_write_fail=0
17553cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17554#! $SHELL
17555# Generated by $as_me.
17556# Run this file to recreate the current configuration.
17557# Compiler output produced by configure, useful for debugging
17558# configure, is in config.log if it exists.
17559
17560debug=false
17561ac_cs_recheck=false
17562ac_cs_silent=false
17563
17564SHELL=\${CONFIG_SHELL-$SHELL}
17565export SHELL
17566_ASEOF
17567cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17568## -------------------- ##
17569## M4sh Initialization. ##
17570## -------------------- ##
17571
17572# Be more Bourne compatible
17573DUALCASE=1; export DUALCASE # for MKS sh
17574if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17575 emulate sh
17576 NULLCMD=:
17577 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17578 # is contrary to our usage. Disable this feature.
17579 alias -g '${1+"$@"}'='"$@"'
17580 setopt NO_GLOB_SUBST
17581else
17582 case `(set -o) 2>/dev/null` in #(
17583 *posix*) :
17584 set -o posix ;; #(
17585 *) :
17586 ;;
17587esac
17588fi
17589
17590
17591as_nl='
17592'
17593export as_nl
17594# Printing a long string crashes Solaris 7 /usr/bin/printf.
17595as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17596as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17597as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17598# Prefer a ksh shell builtin over an external printf program on Solaris,
17599# but without wasting forks for bash or zsh.
17600if test -z "$BASH_VERSION$ZSH_VERSION" \
17601 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17602 as_echo='print -r --'
17603 as_echo_n='print -rn --'
17604elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17605 as_echo='printf %s\n'
17606 as_echo_n='printf %s'
17607else
17608 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17609 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17610 as_echo_n='/usr/ucb/echo -n'
17611 else
17612 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17613 as_echo_n_body='eval
17614 arg=$1;
17615 case $arg in #(
17616 *"$as_nl"*)
17617 expr "X$arg" : "X\\(.*\\)$as_nl";
17618 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17619 esac;
17620 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17621 '
17622 export as_echo_n_body
17623 as_echo_n='sh -c $as_echo_n_body as_echo'
17624 fi
17625 export as_echo_body
17626 as_echo='sh -c $as_echo_body as_echo'
17627fi
17628
17629# The user is always right.
17630if test "${PATH_SEPARATOR+set}" != set; then
17631 PATH_SEPARATOR=:
17632 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17633 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17634 PATH_SEPARATOR=';'
17635 }
17636fi
17637
17638
17639# IFS
17640# We need space, tab and new line, in precisely that order. Quoting is
17641# there to prevent editors from complaining about space-tab.
17642# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17643# splitting by setting IFS to empty value.)
17644IFS=" "" $as_nl"
17645
17646# Find who we are. Look in the path if we contain no directory separator.
d6974efa 17647as_myself=
067d23c9
KY
17648case $0 in #((
17649 *[\\/]* ) as_myself=$0 ;;
17650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17651for as_dir in $PATH
17652do
17653 IFS=$as_save_IFS
17654 test -z "$as_dir" && as_dir=.
17655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17656 done
17657IFS=$as_save_IFS
17658
17659 ;;
17660esac
17661# We did not find ourselves, most probably we were run as `sh COMMAND'
17662# in which case we are not to be found in the path.
17663if test "x$as_myself" = x; then
17664 as_myself=$0
17665fi
17666if test ! -f "$as_myself"; then
17667 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17668 exit 1
17669fi
17670
17671# Unset variables that we do not need and which cause bugs (e.g. in
17672# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17673# suppresses any "Segmentation fault" message there. '((' could
17674# trigger a bug in pdksh 5.2.14.
17675for as_var in BASH_ENV ENV MAIL MAILPATH
17676do eval test x\${$as_var+set} = xset \
17677 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17678done
17679PS1='$ '
17680PS2='> '
17681PS4='+ '
17682
17683# NLS nuisances.
17684LC_ALL=C
17685export LC_ALL
17686LANGUAGE=C
17687export LANGUAGE
17688
17689# CDPATH.
17690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17691
17692
2018939f
AS
17693# as_fn_error STATUS ERROR [LINENO LOG_FD]
17694# ----------------------------------------
067d23c9
KY
17695# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17696# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 17697# script with STATUS, using 1 if that was 0.
067d23c9
KY
17698as_fn_error ()
17699{
2018939f
AS
17700 as_status=$1; test $as_status -eq 0 && as_status=1
17701 if test "$4"; then
17702 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17703 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 17704 fi
2018939f 17705 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
17706 as_fn_exit $as_status
17707} # as_fn_error
17708
17709
17710# as_fn_set_status STATUS
17711# -----------------------
17712# Set $? to STATUS, without forking.
17713as_fn_set_status ()
17714{
17715 return $1
17716} # as_fn_set_status
17717
17718# as_fn_exit STATUS
17719# -----------------
17720# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17721as_fn_exit ()
17722{
17723 set +e
17724 as_fn_set_status $1
17725 exit $1
17726} # as_fn_exit
17727
17728# as_fn_unset VAR
17729# ---------------
17730# Portably unset VAR.
17731as_fn_unset ()
17732{
17733 { eval $1=; unset $1;}
17734}
17735as_unset=as_fn_unset
17736# as_fn_append VAR VALUE
17737# ----------------------
17738# Append the text in VALUE to the end of the definition contained in VAR. Take
17739# advantage of any shell optimizations that allow amortized linear growth over
17740# repeated appends, instead of the typical quadratic growth present in naive
17741# implementations.
17742if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17743 eval 'as_fn_append ()
17744 {
17745 eval $1+=\$2
17746 }'
17747else
17748 as_fn_append ()
17749 {
17750 eval $1=\$$1\$2
17751 }
17752fi # as_fn_append
17753
17754# as_fn_arith ARG...
17755# ------------------
17756# Perform arithmetic evaluation on the ARGs, and store the result in the
17757# global $as_val. Take advantage of shells that can avoid forks. The arguments
17758# must be portable across $(()) and expr.
17759if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17760 eval 'as_fn_arith ()
17761 {
17762 as_val=$(( $* ))
17763 }'
17764else
17765 as_fn_arith ()
17766 {
17767 as_val=`expr "$@" || test $? -eq 1`
17768 }
17769fi # as_fn_arith
17770
17771
17772if expr a : '\(a\)' >/dev/null 2>&1 &&
17773 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17774 as_expr=expr
17775else
17776 as_expr=false
17777fi
17778
17779if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17780 as_basename=basename
17781else
17782 as_basename=false
17783fi
17784
17785if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17786 as_dirname=dirname
17787else
17788 as_dirname=false
17789fi
17790
17791as_me=`$as_basename -- "$0" ||
17792$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17793 X"$0" : 'X\(//\)$' \| \
17794 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17795$as_echo X/"$0" |
17796 sed '/^.*\/\([^/][^/]*\)\/*$/{
17797 s//\1/
17798 q
17799 }
17800 /^X\/\(\/\/\)$/{
17801 s//\1/
17802 q
17803 }
17804 /^X\/\(\/\).*/{
17805 s//\1/
17806 q
17807 }
17808 s/.*/./; q'`
17809
17810# Avoid depending upon Character Ranges.
17811as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17812as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17813as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17814as_cr_digits='0123456789'
17815as_cr_alnum=$as_cr_Letters$as_cr_digits
17816
17817ECHO_C= ECHO_N= ECHO_T=
17818case `echo -n x` in #(((((
17819-n*)
17820 case `echo 'xy\c'` in
17821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17822 xy) ECHO_C='\c';;
17823 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17824 ECHO_T=' ';;
17825 esac;;
17826*)
17827 ECHO_N='-n';;
17828esac
17829
17830rm -f conf$$ conf$$.exe conf$$.file
17831if test -d conf$$.dir; then
17832 rm -f conf$$.dir/conf$$.file
17833else
17834 rm -f conf$$.dir
17835 mkdir conf$$.dir 2>/dev/null
17836fi
17837if (echo >conf$$.file) 2>/dev/null; then
17838 if ln -s conf$$.file conf$$ 2>/dev/null; then
17839 as_ln_s='ln -s'
17840 # ... but there are two gotchas:
17841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17843 # In both cases, we have to default to `cp -p'.
17844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17845 as_ln_s='cp -p'
17846 elif ln conf$$.file conf$$ 2>/dev/null; then
17847 as_ln_s=ln
17848 else
17849 as_ln_s='cp -p'
17850 fi
17851else
17852 as_ln_s='cp -p'
17853fi
17854rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17855rmdir conf$$.dir 2>/dev/null
17856
17857
17858# as_fn_mkdir_p
17859# -------------
17860# Create "$as_dir" as a directory, including parents if necessary.
17861as_fn_mkdir_p ()
17862{
17863
17864 case $as_dir in #(
17865 -*) as_dir=./$as_dir;;
17866 esac
17867 test -d "$as_dir" || eval $as_mkdir_p || {
17868 as_dirs=
17869 while :; do
17870 case $as_dir in #(
17871 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17872 *) as_qdir=$as_dir;;
17873 esac
17874 as_dirs="'$as_qdir' $as_dirs"
17875 as_dir=`$as_dirname -- "$as_dir" ||
17876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17877 X"$as_dir" : 'X\(//\)[^/]' \| \
17878 X"$as_dir" : 'X\(//\)$' \| \
17879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17880$as_echo X"$as_dir" |
17881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17882 s//\1/
17883 q
17884 }
17885 /^X\(\/\/\)[^/].*/{
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 test -d "$as_dir" && break
17899 done
17900 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 17901 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
17902
17903
17904} # as_fn_mkdir_p
17905if mkdir -p . 2>/dev/null; then
17906 as_mkdir_p='mkdir -p "$as_dir"'
17907else
17908 test -d ./-p && rmdir ./-p
17909 as_mkdir_p=false
17910fi
17911
17912if test -x / >/dev/null 2>&1; then
17913 as_test_x='test -x'
17914else
17915 if ls -dL / >/dev/null 2>&1; then
17916 as_ls_L_option=L
17917 else
17918 as_ls_L_option=
17919 fi
17920 as_test_x='
17921 eval sh -c '\''
17922 if test -d "$1"; then
17923 test -d "$1/.";
17924 else
17925 case $1 in #(
17926 -*)set "./$1";;
17927 esac;
17928 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17929 ???[sx]*):;;*)false;;esac;fi
17930 '\'' sh
17931 '
17932fi
17933as_executable_p=$as_test_x
17934
17935# Sed expression to map a string onto a valid CPP name.
17936as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17937
17938# Sed expression to map a string onto a valid variable name.
17939as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17940
17941
17942exec 6>&1
17943## ----------------------------------- ##
17944## Main body of $CONFIG_STATUS script. ##
17945## ----------------------------------- ##
17946_ASEOF
17947test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17948
17949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17950# Save the log message, to keep $0 and so on meaningful, and to
17951# report actual input values of CONFIG_FILES etc. instead of their
17952# values after options handling.
17953ac_log="
17954This file was extended by emacs $as_me 24.0.50, which was
d6974efa 17955generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
17956
17957 CONFIG_FILES = $CONFIG_FILES
17958 CONFIG_HEADERS = $CONFIG_HEADERS
17959 CONFIG_LINKS = $CONFIG_LINKS
17960 CONFIG_COMMANDS = $CONFIG_COMMANDS
17961 $ $0 $@
17962
17963on `(hostname || uname -n) 2>/dev/null | sed 1q`
17964"
17965
17966_ACEOF
17967
17968case $ac_config_files in *"
17969"*) set x $ac_config_files; shift; ac_config_files=$*;;
17970esac
17971
17972case $ac_config_headers in *"
17973"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17974esac
17975
17976
17977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978# Files that config.status was made for.
17979config_files="$ac_config_files"
17980config_headers="$ac_config_headers"
17981config_commands="$ac_config_commands"
17982
17983_ACEOF
17984
17985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17986ac_cs_usage="\
17987\`$as_me' instantiates files and other configuration actions
17988from templates according to the current configuration. Unless the files
17989and actions are specified as TAGs, all are instantiated by default.
17990
17991Usage: $0 [OPTION]... [TAG]...
17992
17993 -h, --help print this help, then exit
17994 -V, --version print version number and configuration settings, then exit
17995 --config print configuration, then exit
17996 -q, --quiet, --silent
17997 do not print progress messages
17998 -d, --debug don't remove temporary files
17999 --recheck update $as_me by reconfiguring in the same conditions
18000 --file=FILE[:TEMPLATE]
18001 instantiate the configuration file FILE
18002 --header=FILE[:TEMPLATE]
18003 instantiate the configuration header FILE
18004
18005Configuration files:
18006$config_files
18007
18008Configuration headers:
18009$config_headers
18010
18011Configuration commands:
18012$config_commands
18013
18014Report bugs to the package provider."
18015
18016_ACEOF
18017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18018ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18019ac_cs_version="\\
18020emacs config.status 24.0.50
d6974efa 18021configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
18022 with options \\"\$ac_cs_config\\"
18023
2018939f 18024Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
18025This config.status script is free software; the Free Software Foundation
18026gives unlimited permission to copy, distribute and modify it."
18027
18028ac_pwd='$ac_pwd'
18029srcdir='$srcdir'
18030INSTALL='$INSTALL'
743c80a7
PE
18031MKDIR_P='$MKDIR_P'
18032AWK='$AWK'
067d23c9
KY
18033test -n "\$AWK" || AWK=awk
18034_ACEOF
18035
18036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18037# The default lists apply if the user does not specify any file.
18038ac_need_defaults=:
18039while test $# != 0
18040do
18041 case $1 in
2018939f 18042 --*=?*)
067d23c9
KY
18043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18044 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18045 ac_shift=:
18046 ;;
2018939f
AS
18047 --*=)
18048 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18049 ac_optarg=
18050 ac_shift=:
18051 ;;
067d23c9
KY
18052 *)
18053 ac_option=$1
18054 ac_optarg=$2
18055 ac_shift=shift
18056 ;;
18057 esac
18058
18059 case $ac_option in
18060 # Handling of the options.
18061 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18062 ac_cs_recheck=: ;;
18063 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18064 $as_echo "$ac_cs_version"; exit ;;
18065 --config | --confi | --conf | --con | --co | --c )
18066 $as_echo "$ac_cs_config"; exit ;;
18067 --debug | --debu | --deb | --de | --d | -d )
18068 debug=: ;;
18069 --file | --fil | --fi | --f )
18070 $ac_shift
18071 case $ac_optarg in
18072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 18073 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
18074 esac
18075 as_fn_append CONFIG_FILES " '$ac_optarg'"
18076 ac_need_defaults=false;;
18077 --header | --heade | --head | --hea )
18078 $ac_shift
18079 case $ac_optarg in
18080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18081 esac
18082 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18083 ac_need_defaults=false;;
18084 --he | --h)
18085 # Conflict between --help and --header
2018939f 18086 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
18087Try \`$0 --help' for more information.";;
18088 --help | --hel | -h )
18089 $as_echo "$ac_cs_usage"; exit ;;
18090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18092 ac_cs_silent=: ;;
18093
18094 # This is an error.
2018939f 18095 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
18096Try \`$0 --help' for more information." ;;
18097
18098 *) as_fn_append ac_config_targets " $1"
18099 ac_need_defaults=false ;;
18100
18101 esac
18102 shift
18103done
18104
18105ac_configure_extra_args=
18106
18107if $ac_cs_silent; then
18108 exec 6>/dev/null
18109 ac_configure_extra_args="$ac_configure_extra_args --silent"
18110fi
18111
18112_ACEOF
18113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18114if \$ac_cs_recheck; then
18115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18116 shift
18117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18118 CONFIG_SHELL='$SHELL'
18119 export CONFIG_SHELL
18120 exec "\$@"
18121fi
18122
18123_ACEOF
18124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18125exec 5>>config.log
18126{
18127 echo
18128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18129## Running $as_me. ##
18130_ASBOX
18131 $as_echo "$ac_log"
18132} >&5
18133
18134_ACEOF
18135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18136#
18137# INIT-COMMANDS
18138#
743c80a7 18139AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
18140GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18141
18142_ACEOF
18143
18144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18145
18146# Handling of arguments.
18147for ac_config_target in $ac_config_targets
18148do
18149 case $ac_config_target in
18150 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 18151 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 18152 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 18153 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
18154 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18155 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18156 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18157 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18158 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18159 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18160 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18161 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18162 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18163 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 18164 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
067d23c9
KY
18165 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18166
d6974efa 18167 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
18168 esac
18169done
18170
18171
18172# If the user did not use the arguments to specify the items to instantiate,
18173# then the envvar interface is used. Set only those that are not.
18174# We use the long form for the default assignment because of an extremely
18175# bizarre bug on SunOS 4.1.3.
18176if $ac_need_defaults; then
18177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18180fi
18181
18182# Have a temporary directory for convenience. Make it in the build tree
18183# simply because there is no reason against having it here, and in addition,
18184# creating and moving files from /tmp can sometimes cause problems.
18185# Hook for its removal unless debugging.
18186# Note that there is a small window in which the directory will not be cleaned:
18187# after its creation but before its name has been assigned to `$tmp'.
18188$debug ||
18189{
d6974efa 18190 tmp= ac_tmp=
067d23c9 18191 trap 'exit_status=$?
d6974efa
PE
18192 : "${ac_tmp:=$tmp}"
18193 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
18194' 0
18195 trap 'as_fn_exit 1' 1 2 13 15
18196}
18197# Create a (secure) tmp directory for tmp files.
18198
18199{
18200 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6974efa 18201 test -d "$tmp"
067d23c9
KY
18202} ||
18203{
18204 tmp=./conf$$-$RANDOM
18205 (umask 077 && mkdir "$tmp")
2018939f 18206} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
d6974efa 18207ac_tmp=$tmp
067d23c9
KY
18208
18209# Set up the scripts for CONFIG_FILES section.
18210# No need to generate them if there are no CONFIG_FILES.
18211# This happens for instance with `./config.status config.h'.
18212if test -n "$CONFIG_FILES"; then
18213
18214if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18215 ac_cs_awk_getline=:
18216 ac_cs_awk_pipe_init=
18217 ac_cs_awk_read_file='
18218 while ((getline aline < (F[key])) > 0)
18219 print(aline)
18220 close(F[key])'
18221 ac_cs_awk_pipe_fini=
18222else
18223 ac_cs_awk_getline=false
18224 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18225 ac_cs_awk_read_file='
18226 print "|#_!!_#|"
18227 print "cat " F[key] " &&"
18228 '$ac_cs_awk_pipe_init
18229 # The final `:' finishes the AND list.
18230 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18231fi
18232ac_cr=`echo X | tr X '\015'`
18233# On cygwin, bash can eat \r inside `` if the user requested igncr.
18234# But we know of no other shell where ac_cr would be empty at this
18235# point, so we can use a bashism as a fallback.
18236if test "x$ac_cr" = x; then
18237 eval ac_cr=\$\'\\r\'
18238fi
18239ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18240if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 18241 ac_cs_awk_cr='\\r'
067d23c9
KY
18242else
18243 ac_cs_awk_cr=$ac_cr
18244fi
18245
d6974efa 18246echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
18247_ACEOF
18248
18249# Create commands to substitute file output variables.
18250{
18251 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6974efa 18252 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
18253 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18254 echo "_ACAWK" &&
18255 echo "_ACEOF"
18256} >conf$$files.sh &&
18257. ./conf$$files.sh ||
2018939f 18258 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18259rm -f conf$$files.sh
18260
18261{
18262 echo "cat >conf$$subs.awk <<_ACEOF" &&
18263 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18264 echo "_ACEOF"
18265} >conf$$subs.sh ||
2018939f
AS
18266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18267ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
18268ac_delim='%!_!# '
18269for ac_last_try in false false false false false :; do
18270 . ./conf$$subs.sh ||
2018939f 18271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18272
18273 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18274 if test $ac_delim_n = $ac_delim_num; then
18275 break
18276 elif $ac_last_try; then
2018939f 18277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18278 else
18279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18280 fi
18281done
18282rm -f conf$$subs.sh
18283
18284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6974efa 18285cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
18286_ACEOF
18287sed -n '
18288h
18289s/^/S["/; s/!.*/"]=/
18290p
18291g
18292s/^[^!]*!//
18293:repl
18294t repl
18295s/'"$ac_delim"'$//
18296t delim
18297:nl
18298h
18299s/\(.\{148\}\)..*/\1/
18300t more1
18301s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18302p
18303n
18304b repl
18305:more1
18306s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18307p
18308g
18309s/.\{148\}//
18310t nl
18311:delim
18312h
18313s/\(.\{148\}\)..*/\1/
18314t more2
18315s/["\\]/\\&/g; s/^/"/; s/$/"/
18316p
18317b
18318:more2
18319s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18320p
18321g
18322s/.\{148\}//
18323t delim
18324' <conf$$subs.awk | sed '
18325/^[^""]/{
18326 N
18327 s/\n//
18328}
18329' >>$CONFIG_STATUS || ac_write_fail=1
18330rm -f conf$$subs.awk
18331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18332_ACAWK
d6974efa 18333cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
18334 for (key in S) S_is_set[key] = 1
18335 FS = "\a"
18336 \$ac_cs_awk_pipe_init
18337}
18338{
18339 line = $ 0
18340 nfields = split(line, field, "@")
18341 substed = 0
18342 len = length(field[1])
18343 for (i = 2; i < nfields; i++) {
18344 key = field[i]
18345 keylen = length(key)
18346 if (S_is_set[key]) {
18347 value = S[key]
18348 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18349 len += length(value) + length(field[++i])
18350 substed = 1
18351 } else
18352 len += 1 + keylen
18353 }
18354 if (nfields == 3 && !substed) {
18355 key = field[2]
18356 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18357 \$ac_cs_awk_read_file
18358 next
18359 }
18360 }
18361 print line
18362}
18363\$ac_cs_awk_pipe_fini
18364_ACAWK
18365_ACEOF
18366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18367if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18369else
18370 cat
d6974efa 18371fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2018939f 18372 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
18373_ACEOF
18374
2018939f
AS
18375# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18376# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
18377# trailing colons and then remove the whole line if VPATH becomes empty
18378# (actually we leave an empty line to preserve line numbers).
18379if test "x$srcdir" = x.; then
2018939f
AS
18380 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18381h
18382s///
18383s/^/:/
18384s/[ ]*$/:/
18385s/:\$(srcdir):/:/g
18386s/:\${srcdir}:/:/g
18387s/:@srcdir@:/:/g
18388s/^:*//
067d23c9 18389s/:*$//
2018939f
AS
18390x
18391s/\(=[ ]*\).*/\1/
18392G
18393s/\n//
067d23c9
KY
18394s/^[^=]*=[ ]*$//
18395}'
18396fi
18397
18398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399fi # test -n "$CONFIG_FILES"
18400
18401# Set up the scripts for CONFIG_HEADERS section.
18402# No need to generate them if there are no CONFIG_HEADERS.
18403# This happens for instance with `./config.status Makefile'.
18404if test -n "$CONFIG_HEADERS"; then
d6974efa 18405cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
18406BEGIN {
18407_ACEOF
18408
18409# Transform confdefs.h into an awk script `defines.awk', embedded as
18410# here-document in config.status, that substitutes the proper values into
18411# config.h.in to produce config.h.
18412
18413# Create a delimiter string that does not exist in confdefs.h, to ease
18414# handling of long lines.
18415ac_delim='%!_!# '
18416for ac_last_try in false false :; do
d6974efa
PE
18417 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18418 if test -z "$ac_tt"; then
067d23c9
KY
18419 break
18420 elif $ac_last_try; then
2018939f 18421 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
18422 else
18423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18424 fi
18425done
18426
18427# For the awk script, D is an array of macro values keyed by name,
18428# likewise P contains macro parameters if any. Preserve backslash
18429# newline sequences.
18430
18431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18432sed -n '
18433s/.\{148\}/&'"$ac_delim"'/g
18434t rset
18435:rset
18436s/^[ ]*#[ ]*define[ ][ ]*/ /
18437t def
18438d
18439:def
18440s/\\$//
18441t bsnl
18442s/["\\]/\\&/g
18443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18444D["\1"]=" \3"/p
18445s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18446d
18447:bsnl
18448s/["\\]/\\&/g
18449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18450D["\1"]=" \3\\\\\\n"\\/p
18451t cont
18452s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18453t cont
18454d
18455:cont
18456n
18457s/.\{148\}/&'"$ac_delim"'/g
18458t clear
18459:clear
18460s/\\$//
18461t bsnlc
18462s/["\\]/\\&/g; s/^/"/; s/$/"/p
18463d
18464:bsnlc
18465s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18466b cont
18467' <confdefs.h | sed '
18468s/'"$ac_delim"'/"\\\
18469"/g' >>$CONFIG_STATUS || ac_write_fail=1
18470
18471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18472 for (key in D) D_is_set[key] = 1
18473 FS = "\a"
18474}
18475/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18476 line = \$ 0
18477 split(line, arg, " ")
18478 if (arg[1] == "#") {
18479 defundef = arg[2]
18480 mac1 = arg[3]
18481 } else {
18482 defundef = substr(arg[1], 2)
18483 mac1 = arg[2]
18484 }
18485 split(mac1, mac2, "(") #)
18486 macro = mac2[1]
18487 prefix = substr(line, 1, index(line, defundef) - 1)
18488 if (D_is_set[macro]) {
18489 # Preserve the white space surrounding the "#".
18490 print prefix "define", macro P[macro] D[macro]
18491 next
18492 } else {
18493 # Replace #undef with comments. This is necessary, for example,
18494 # in the case of _POSIX_SOURCE, which is predefined and required
18495 # on some systems where configure will not decide to define it.
18496 if (defundef == "undef") {
18497 print "/*", prefix defundef, macro, "*/"
18498 next
18499 }
18500 }
18501}
18502{ print }
18503_ACAWK
18504_ACEOF
18505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 18506 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
18507fi # test -n "$CONFIG_HEADERS"
18508
18509
18510eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18511shift
18512for ac_tag
18513do
18514 case $ac_tag in
18515 :[FHLC]) ac_mode=$ac_tag; continue;;
18516 esac
18517 case $ac_mode$ac_tag in
18518 :[FHL]*:*);;
d6974efa 18519 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
18520 :[FH]-) ac_tag=-:-;;
18521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18522 esac
18523 ac_save_IFS=$IFS
18524 IFS=:
18525 set x $ac_tag
18526 IFS=$ac_save_IFS
18527 shift
18528 ac_file=$1
18529 shift
18530
18531 case $ac_mode in
18532 :L) ac_source=$1;;
18533 :[FH])
18534 ac_file_inputs=
18535 for ac_f
18536 do
18537 case $ac_f in
d6974efa 18538 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
18539 *) # Look for the file first in the build tree, then in the source tree
18540 # (if the path is not absolute). The absolute path cannot be DOS-style,
18541 # because $ac_f cannot contain `:'.
18542 test -f "$ac_f" ||
18543 case $ac_f in
18544 [\\/$]*) false;;
18545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18546 esac ||
d6974efa 18547 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
18548 esac
18549 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18550 as_fn_append ac_file_inputs " '$ac_f'"
18551 done
18552
18553 # Let's still pretend it is `configure' which instantiates (i.e., don't
18554 # use $as_me), people would be surprised to read:
18555 # /* config.h. Generated by config.status. */
18556 configure_input='Generated from '`
18557 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18558 `' by configure.'
18559 if test x"$ac_file" != x-; then
18560 configure_input="$ac_file. $configure_input"
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18562$as_echo "$as_me: creating $ac_file" >&6;}
18563 fi
18564 # Neutralize special characters interpreted by sed in replacement strings.
18565 case $configure_input in #(
18566 *\&* | *\|* | *\\* )
18567 ac_sed_conf_input=`$as_echo "$configure_input" |
18568 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18569 *) ac_sed_conf_input=$configure_input;;
18570 esac
18571
18572 case $ac_tag in
d6974efa
PE
18573 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
18575 esac
18576 ;;
18577 esac
18578
18579 ac_dir=`$as_dirname -- "$ac_file" ||
18580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18581 X"$ac_file" : 'X\(//\)[^/]' \| \
18582 X"$ac_file" : 'X\(//\)$' \| \
18583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18584$as_echo X"$ac_file" |
18585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18586 s//\1/
18587 q
18588 }
18589 /^X\(\/\/\)[^/].*/{
18590 s//\1/
18591 q
18592 }
18593 /^X\(\/\/\)$/{
18594 s//\1/
18595 q
18596 }
18597 /^X\(\/\).*/{
18598 s//\1/
18599 q
18600 }
18601 s/.*/./; q'`
18602 as_dir="$ac_dir"; as_fn_mkdir_p
18603 ac_builddir=.
18604
18605case "$ac_dir" in
18606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18607*)
18608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18609 # A ".." for each directory in $ac_dir_suffix.
18610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18611 case $ac_top_builddir_sub in
18612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18614 esac ;;
18615esac
18616ac_abs_top_builddir=$ac_pwd
18617ac_abs_builddir=$ac_pwd$ac_dir_suffix
18618# for backward compatibility:
18619ac_top_builddir=$ac_top_build_prefix
18620
18621case $srcdir in
18622 .) # We are building in place.
18623 ac_srcdir=.
18624 ac_top_srcdir=$ac_top_builddir_sub
18625 ac_abs_top_srcdir=$ac_pwd ;;
18626 [\\/]* | ?:[\\/]* ) # Absolute name.
18627 ac_srcdir=$srcdir$ac_dir_suffix;
18628 ac_top_srcdir=$srcdir
18629 ac_abs_top_srcdir=$srcdir ;;
18630 *) # Relative name.
18631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18632 ac_top_srcdir=$ac_top_build_prefix$srcdir
18633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18634esac
18635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18636
18637
18638 case $ac_mode in
18639 :F)
18640 #
18641 # CONFIG_FILE
18642 #
18643
18644 case $INSTALL in
18645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18647 esac
743c80a7
PE
18648 ac_MKDIR_P=$MKDIR_P
18649 case $MKDIR_P in
18650 [\\/$]* | ?:[\\/]* ) ;;
18651 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18652 esac
067d23c9
KY
18653_ACEOF
18654
18655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18656# If the template does not know about datarootdir, expand it.
18657# FIXME: This hack should be removed a few years after 2.60.
18658ac_datarootdir_hack=; ac_datarootdir_seen=
18659ac_sed_dataroot='
18660/datarootdir/ {
18661 p
18662 q
18663}
18664/@datadir@/p
18665/@docdir@/p
18666/@infodir@/p
18667/@localedir@/p
18668/@mandir@/p'
18669case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18670*datarootdir*) ac_datarootdir_seen=yes;;
18671*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18673$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18674_ACEOF
18675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18676 ac_datarootdir_hack='
18677 s&@datadir@&$datadir&g
18678 s&@docdir@&$docdir&g
18679 s&@infodir@&$infodir&g
18680 s&@localedir@&$localedir&g
18681 s&@mandir@&$mandir&g
18682 s&\\\${datarootdir}&$datarootdir&g' ;;
18683esac
18684_ACEOF
18685
18686# Neutralize VPATH when `$srcdir' = `.'.
18687# Shell code in configure.ac might set extrasub.
18688# FIXME: do we really want to maintain this feature?
18689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18690ac_sed_extra="$ac_vpsub
18691$extrasub
18692_ACEOF
18693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18694:t
18695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18696s|@configure_input@|$ac_sed_conf_input|;t t
18697s&@top_builddir@&$ac_top_builddir_sub&;t t
18698s&@top_build_prefix@&$ac_top_build_prefix&;t t
18699s&@srcdir@&$ac_srcdir&;t t
18700s&@abs_srcdir@&$ac_abs_srcdir&;t t
18701s&@top_srcdir@&$ac_top_srcdir&;t t
18702s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18703s&@builddir@&$ac_builddir&;t t
18704s&@abs_builddir@&$ac_abs_builddir&;t t
18705s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18706s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 18707s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
18708$ac_datarootdir_hack
18709"
18710eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18711if $ac_cs_awk_getline; then
d6974efa 18712 $AWK -f "$ac_tmp/subs.awk"
067d23c9 18713else
d6974efa
PE
18714 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18715fi \
18716 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18717
18718test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6974efa
PE
18719 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18721 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 18723which seems to be undefined. Please make sure it is defined" >&5
067d23c9 18724$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 18725which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 18726
d6974efa 18727 rm -f "$ac_tmp/stdin"
067d23c9 18728 case $ac_file in
d6974efa
PE
18729 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18730 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 18731 esac \
2018939f 18732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18733 ;;
18734 :H)
18735 #
18736 # CONFIG_HEADER
18737 #
18738 if test x"$ac_file" != x-; then
18739 {
18740 $as_echo "/* $configure_input */" \
d6974efa
PE
18741 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18742 } >"$ac_tmp/config.h" \
2018939f 18743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d6974efa 18744 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18746$as_echo "$as_me: $ac_file is unchanged" >&6;}
18747 else
18748 rm -f "$ac_file"
d6974efa 18749 mv "$ac_tmp/config.h" "$ac_file" \
2018939f 18750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18751 fi
18752 else
18753 $as_echo "/* $configure_input */" \
d6974efa 18754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2018939f 18755 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 18756 fi
743c80a7
PE
18757# Compute "$ac_file"'s index in $config_headers.
18758_am_arg="$ac_file"
18759_am_stamp_count=1
18760for _am_header in $config_headers :; do
18761 case $_am_header in
18762 $_am_arg | $_am_arg:* )
18763 break ;;
18764 * )
18765 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18766 esac
18767done
18768echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18769$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18770 X"$_am_arg" : 'X\(//\)[^/]' \| \
18771 X"$_am_arg" : 'X\(//\)$' \| \
18772 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18773$as_echo X"$_am_arg" |
18774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18775 s//\1/
18776 q
18777 }
18778 /^X\(\/\/\)[^/].*/{
18779 s//\1/
18780 q
18781 }
18782 /^X\(\/\/\)$/{
18783 s//\1/
18784 q
18785 }
18786 /^X\(\/\).*/{
18787 s//\1/
18788 q
18789 }
18790 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
18791 ;;
18792
18793 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18794$as_echo "$as_me: executing $ac_file commands" >&6;}
18795 ;;
18796 esac
18797
18798
18799 case $ac_file$ac_mode in
743c80a7
PE
18800 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18801 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18802 # are listed without --file. Let's play safe and only enable the eval
18803 # if we detect the quoting.
18804 case $CONFIG_FILES in
18805 *\'*) eval set x "$CONFIG_FILES" ;;
18806 *) set x $CONFIG_FILES ;;
18807 esac
18808 shift
18809 for mf
18810 do
18811 # Strip MF so we end up with the name of the file.
18812 mf=`echo "$mf" | sed -e 's/:.*$//'`
18813 # Check whether this is an Automake generated Makefile or not.
18814 # We used to match only the files named `Makefile.in', but
18815 # some people rename them; so instead we look at the file content.
18816 # Grep'ing the first line is not enough: some people post-process
18817 # each Makefile.in and add a new line on top of each file to say so.
18818 # Grep'ing the whole file is not good either: AIX grep has a line
18819 # limit of 2048, but all sed's we know have understand at least 4000.
18820 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18821 dirpart=`$as_dirname -- "$mf" ||
18822$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18823 X"$mf" : 'X\(//\)[^/]' \| \
18824 X"$mf" : 'X\(//\)$' \| \
18825 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18826$as_echo X"$mf" |
18827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18828 s//\1/
18829 q
18830 }
18831 /^X\(\/\/\)[^/].*/{
18832 s//\1/
18833 q
18834 }
18835 /^X\(\/\/\)$/{
18836 s//\1/
18837 q
18838 }
18839 /^X\(\/\).*/{
18840 s//\1/
18841 q
18842 }
18843 s/.*/./; q'`
18844 else
18845 continue
18846 fi
18847 # Extract the definition of DEPDIR, am__include, and am__quote
18848 # from the Makefile without running `make'.
18849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18850 test -z "$DEPDIR" && continue
18851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18852 test -z "am__include" && continue
18853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18854 # When using ansi2knr, U may be empty or an underscore; expand it
18855 U=`sed -n 's/^U = //p' < "$mf"`
18856 # Find all dependency output files, they are included files with
18857 # $(DEPDIR) in their names. We invoke sed twice because it is the
18858 # simplest approach to changing $(DEPDIR) to its actual value in the
18859 # expansion.
18860 for file in `sed -n "
18861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18863 # Make sure the directory exists.
18864 test -f "$dirpart/$file" && continue
18865 fdir=`$as_dirname -- "$file" ||
18866$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18867 X"$file" : 'X\(//\)[^/]' \| \
18868 X"$file" : 'X\(//\)$' \| \
18869 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18870$as_echo X"$file" |
18871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18872 s//\1/
18873 q
18874 }
18875 /^X\(\/\/\)[^/].*/{
18876 s//\1/
18877 q
18878 }
18879 /^X\(\/\/\)$/{
18880 s//\1/
18881 q
18882 }
18883 /^X\(\/\).*/{
18884 s//\1/
18885 q
18886 }
18887 s/.*/./; q'`
18888 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18889 # echo "creating $dirpart/$file"
18890 echo '# dummy' > "$dirpart/$file"
18891 done
18892 done
18893}
18894 ;;
067d23c9
KY
18895 "default":C)
18896
18897### Make the necessary directories, if they don't exist.
18898for dir in etc lisp ; do
18899 test -d ${dir} || mkdir ${dir}
18900done
18901
18902echo creating src/epaths.h
18903${MAKE-make} epaths-force
18904
18905if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18906 echo creating src/.gdbinit
18907 echo source $srcdir/src/.gdbinit > src/.gdbinit
18908fi
18909
18910 ;;
18911
18912 esac
18913done # for ac_tag
18914
18915
18916as_fn_exit 0
18917_ACEOF
18918ac_clean_files=$ac_clean_files_save
18919
18920test $ac_write_fail = 0 ||
2018939f 18921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18922
18923
18924# configure is writing to config.log, and then calls config.status.
18925# config.status does its own redirection, appending to config.log.
18926# Unfortunately, on DOS this fails, as config.log is still kept open
18927# by configure, so config.status won't be able to write to it; its
18928# output is simply discarded. So we exec the FD to /dev/null,
18929# effectively closing config.log, so it can be properly (re)opened and
18930# appended to by config.status. When coming back to configure, we
18931# need to make the FD available again.
18932if test "$no_create" != yes; then
18933 ac_cs_success=:
18934 ac_config_status_args=
18935 test "$silent" = yes &&
18936 ac_config_status_args="$ac_config_status_args --quiet"
18937 exec 5>/dev/null
18938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18939 exec 5>>config.log
18940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18941 # would make configure fail if this is the last instruction.
2018939f 18942 $ac_cs_success || as_fn_exit 1
067d23c9
KY
18943fi
18944if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18946$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18947fi
18948