aclocal.m4: omit auto-generated file from repository
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
2018939f 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.
2018939f 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.
2018939f 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
2018939f
AS
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
743c80a7
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
2018939f 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
2018939f 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
2018939f 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
2018939f 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
2018939f 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; }
2018939f 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; }
2018939f 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
2018939f 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
2018939f 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; }
2018939f 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; }
2018939f 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
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
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; }
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; }
2018939f 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; }
2018939f 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; }
2018939f 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; }
2018939f 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; }
2018939f 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; }
2018939f 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; }
2018939f 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; }
2018939f 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; }
2018939f 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
2018939f 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
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 " stddef.h"
2662as_fn_append ac_header_list " time.h"
2663as_fn_append ac_header_list " sys/time.h"
2664as_fn_append ac_func_list " localtime_r"
067d23c9
KY
2665# Check that the precious variables saved in the cache have kept the same
2666# value.
2667ac_cache_corrupted=false
2668for ac_var in $ac_precious_vars; do
2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670 eval ac_new_set=\$ac_env_${ac_var}_set
2671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672 eval ac_new_val=\$ac_env_${ac_var}_value
2673 case $ac_old_set,$ac_new_set in
2674 set,)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2676$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2678 ,set)
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2680$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2682 ,);;
2683 *)
2684 if test "x$ac_old_val" != "x$ac_new_val"; then
2685 # differences in whitespace do not lead to failure.
2686 ac_old_val_w=`echo x $ac_old_val`
2687 ac_new_val_w=`echo x $ac_new_val`
2688 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2691 ac_cache_corrupted=:
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2694$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695 eval $ac_var=\$ac_old_val
2696 fi
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2698$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2700$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2701 fi;;
2702 esac
2703 # Pass precious variables to config.status.
2704 if test "$ac_new_set" = set; then
2705 case $ac_new_val in
2706 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2707 *) ac_arg=$ac_var=$ac_new_val ;;
2708 esac
2709 case " $ac_configure_args " in
2710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2711 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2712 esac
2713 fi
2714done
2715if $ac_cache_corrupted; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 2720 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
2721fi
2722## -------------------- ##
2723## Main body of script. ##
2724## -------------------- ##
2725
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2734
2735
743c80a7 2736am__api_version='1.11'
067d23c9 2737
743c80a7
PE
2738ac_aux_dir=
2739for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2740 if test -f "$ac_dir/install-sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install-sh -c"
2743 break
2744 elif test -f "$ac_dir/install.sh"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/install.sh -c"
2747 break
2748 elif test -f "$ac_dir/shtool"; then
2749 ac_aux_dir=$ac_dir
2750 ac_install_sh="$ac_aux_dir/shtool install -c"
2751 break
2752 fi
2753done
2754if test -z "$ac_aux_dir"; then
2755 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2756fi
067d23c9 2757
743c80a7
PE
2758# These three variables are undocumented and unsupported,
2759# and are intended to be withdrawn in a future Autoconf release.
2760# They can cause serious problems if a builder's source tree is in a directory
2761# whose full name contains unusual characters.
2762ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2763ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2764ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 2765
067d23c9 2766
743c80a7
PE
2767# Find a good install program. We prefer a C program (faster),
2768# so one script is as good as another. But avoid the broken or
2769# incompatible versions:
2770# SysV /etc/install, /usr/sbin/install
2771# SunOS /usr/etc/install
2772# IRIX /sbin/install
2773# AIX /bin/install
2774# AmigaOS /C/install, which installs bootblocks on floppy discs
2775# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2776# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2777# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2778# OS/2's system install, which has a completely different semantic
2779# ./install, which can be erroneously created by make from ./install.sh.
2780# Reject install programs that cannot install multiple files.
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2782$as_echo_n "checking for a BSD-compatible install... " >&6; }
2783if test -z "$INSTALL"; then
2784if ${ac_cv_path_install+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 # Account for people who put trailing slashes in PATH elements.
2793case $as_dir/ in #((
2794 ./ | .// | /[cC]/* | \
2795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2796 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2797 /usr/ucb/* ) ;;
2798 *)
2799 # OSF1 and SCO ODT 3.0 have their own names for install.
2800 # Don't use installbsd from OSF since it installs stuff as root
2801 # by default.
2802 for ac_prog in ginstall scoinst install; do
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2805 if test $ac_prog = install &&
2806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807 # AIX install. It has an incompatible calling convention.
2808 :
2809 elif test $ac_prog = install &&
2810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811 # program-specific install script used by HP pwplus--don't use.
2812 :
2813 else
2814 rm -rf conftest.one conftest.two conftest.dir
2815 echo one > conftest.one
2816 echo two > conftest.two
2817 mkdir conftest.dir
2818 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2819 test -s conftest.one && test -s conftest.two &&
2820 test -s conftest.dir/conftest.one &&
2821 test -s conftest.dir/conftest.two
2822 then
2823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2824 break 3
2825 fi
2826 fi
2827 fi
2828 done
2829 done
2830 ;;
2831esac
067d23c9 2832
743c80a7
PE
2833 done
2834IFS=$as_save_IFS
067d23c9 2835
743c80a7 2836rm -rf conftest.one conftest.two conftest.dir
067d23c9 2837
067d23c9 2838fi
743c80a7
PE
2839 if test "${ac_cv_path_install+set}" = set; then
2840 INSTALL=$ac_cv_path_install
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for INSTALL within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 INSTALL=$ac_install_sh
2847 fi
067d23c9 2848fi
743c80a7
PE
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2850$as_echo "$INSTALL" >&6; }
067d23c9 2851
743c80a7
PE
2852# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2853# It thinks the first close brace ends the variable substitution.
2854test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 2855
743c80a7 2856test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 2857
743c80a7 2858test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 2859
743c80a7
PE
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861$as_echo_n "checking whether build environment is sane... " >&6; }
2862# Just in case
2863sleep 1
2864echo timestamp > conftest.file
2865# Reject unsafe characters in $srcdir or the absolute working directory
2866# name. Accept space and tab only in the latter.
2867am_lf='
2868'
2869case `pwd` in
2870 *[\\\"\#\$\&\'\`$am_lf]*)
2871 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2872esac
2873case $srcdir in
2874 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2876esac
067d23c9 2877
743c80a7
PE
2878# Do `set' in a subshell so we don't clobber the current shell's
2879# arguments. Must try -L first in case configure is actually a
2880# symlink; some systems play weird games with the mod time of symlinks
2881# (eg FreeBSD returns the mod time of the symlink's containing
2882# directory).
2883if (
2884 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885 if test "$*" = "X"; then
2886 # -L didn't work.
2887 set X `ls -t "$srcdir/configure" conftest.file`
2888 fi
2889 rm -f conftest.file
2890 if test "$*" != "X $srcdir/configure conftest.file" \
2891 && test "$*" != "X conftest.file $srcdir/configure"; then
2892
2893 # If neither matched, then we have a broken ls. This can happen
2894 # if, for instance, CONFIG_SHELL is bash and it inherits a
2895 # broken ls alias from the environment. This has actually
2896 # happened. Such a system could not be considered "sane".
2897 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2898alias in your environment" "$LINENO" 5
2899 fi
067d23c9 2900
743c80a7
PE
2901 test "$2" = conftest.file
2902 )
2903then
2904 # Ok.
2905 :
067d23c9 2906else
743c80a7
PE
2907 as_fn_error $? "newly created file is older than distributed files!
2908Check your system clock" "$LINENO" 5
067d23c9 2909fi
743c80a7
PE
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911$as_echo "yes" >&6; }
2912test "$program_prefix" != NONE &&
2913 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914# Use a double $ so make ignores it.
2915test "$program_suffix" != NONE &&
2916 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917# Double any \ or $.
2918# By default was `s,x,x', remove it if useless.
2919ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 2921
743c80a7
PE
2922# expand $ac_aux_dir to an absolute path
2923am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 2924
743c80a7
PE
2925if test x"${MISSING+set}" != xset; then
2926 case $am_aux_dir in
2927 *\ * | *\ *)
2928 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2929 *)
2930 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2931 esac
067d23c9 2932fi
743c80a7
PE
2933# Use eval to expand $SHELL
2934if eval "$MISSING --run true"; then
2935 am_missing_run="$MISSING --run "
067d23c9 2936else
743c80a7
PE
2937 am_missing_run=
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2939$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
2940fi
2941
743c80a7
PE
2942if test x"${install_sh}" != xset; then
2943 case $am_aux_dir in
2944 *\ * | *\ *)
2945 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2946 *)
2947 install_sh="\${SHELL} $am_aux_dir/install-sh"
2948 esac
067d23c9
KY
2949fi
2950
743c80a7
PE
2951# Installed binaries are usually stripped using `strip' when the user
2952# run `make install-strip'. However `strip' might not be the right
2953# tool to use in cross-compilation environments, therefore Automake
2954# will honor the `STRIP' environment variable to overrule this program.
2955if test "$cross_compiling" != no; then
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2958set dummy ${ac_tool_prefix}strip; ac_word=$2
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
2961if ${ac_cv_prog_STRIP+:} false; then :
2962 $as_echo_n "(cached) " >&6
067d23c9 2963else
743c80a7
PE
2964 if test -n "$STRIP"; then
2965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2966else
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978done
2979 done
2980IFS=$as_save_IFS
067d23c9
KY
2981
2982fi
067d23c9 2983fi
743c80a7
PE
2984STRIP=$ac_cv_prog_STRIP
2985if test -n "$STRIP"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2987$as_echo "$STRIP" >&6; }
2988else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
067d23c9
KY
2991fi
2992
2993
067d23c9 2994fi
743c80a7
PE
2995if test -z "$ac_cv_prog_STRIP"; then
2996 ac_ct_STRIP=$STRIP
2997 # Extract the first word of "strip", so it can be a program name with args.
2998set dummy strip; ac_word=$2
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3002 $as_echo_n "(cached) " >&6
3003else
3004 if test -n "$ac_ct_STRIP"; then
3005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_STRIP="strip"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018done
3019 done
3020IFS=$as_save_IFS
3021
3022fi
3023fi
3024ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3025if test -n "$ac_ct_STRIP"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3027$as_echo "$ac_ct_STRIP" >&6; }
3028else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033 if test "x$ac_ct_STRIP" = x; then
3034 STRIP=":"
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037yes:)
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040ac_tool_warned=yes ;;
3041esac
3042 STRIP=$ac_ct_STRIP
3043 fi
3044else
3045 STRIP="$ac_cv_prog_STRIP"
3046fi
3047
3048fi
3049INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3050
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3052$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3053if test -z "$MKDIR_P"; then
3054 if ${ac_cv_path_mkdir+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_prog in mkdir gmkdir; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3065 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3066 'mkdir (GNU coreutils) '* | \
3067 'mkdir (coreutils) '* | \
3068 'mkdir (fileutils) '4.1*)
3069 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3070 break 3;;
3071 esac
3072 done
3073 done
3074 done
3075IFS=$as_save_IFS
3076
3077fi
3078
3079 test -d ./--version && rmdir ./--version
3080 if test "${ac_cv_path_mkdir+set}" = set; then
3081 MKDIR_P="$ac_cv_path_mkdir -p"
3082 else
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for MKDIR_P within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 MKDIR_P="$ac_install_sh -d"
3088 fi
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3091$as_echo "$MKDIR_P" >&6; }
3092
a451f14b 3093
743c80a7
PE
3094mkdir_p="$MKDIR_P"
3095case $mkdir_p in
3096 [\\/$]* | ?:[\\/]*) ;;
3097 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098esac
3099
3100for ac_prog in gawk mawk nawk awk
3101do
3102 # Extract the first word of "$ac_prog", so it can be a program name with args.
3103set dummy $ac_prog; ac_word=$2
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105$as_echo_n "checking for $ac_word... " >&6; }
3106if ${ac_cv_prog_AWK+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108else
3109 if test -n "$AWK"; then
3110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3111else
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_AWK="$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123done
3124 done
3125IFS=$as_save_IFS
3126
3127fi
3128fi
3129AWK=$ac_cv_prog_AWK
3130if test -n "$AWK"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3132$as_echo "$AWK" >&6; }
3133else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136fi
3137
3138
3139 test -n "$AWK" && break
3140done
3141
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3143$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144set x ${MAKE-make}
3145ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3146if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148else
3149 cat >conftest.make <<\_ACEOF
3150SHELL = /bin/sh
3151all:
3152 @echo '@@@%%%=$(MAKE)=@@@%%%'
3153_ACEOF
3154# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3155case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156 *@@@%%%=?*=@@@%%%*)
3157 eval ac_cv_prog_make_${ac_make}_set=yes;;
3158 *)
3159 eval ac_cv_prog_make_${ac_make}_set=no;;
3160esac
3161rm -f conftest.make
3162fi
3163if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
3166 SET_MAKE=
3167else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170 SET_MAKE="MAKE=${MAKE-make}"
3171fi
3172
3173rm -rf .tst 2>/dev/null
3174mkdir .tst 2>/dev/null
3175if test -d .tst; then
3176 am__leading_dot=.
3177else
3178 am__leading_dot=_
3179fi
3180rmdir .tst 2>/dev/null
3181
3182if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status; then
3188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3189 fi
3190fi
3191
3192# test whether we have cygpath
3193if test -z "$CYGPATH_W"; then
3194 if (cygpath --version) >/dev/null 2>/dev/null; then
3195 CYGPATH_W='cygpath -w'
3196 else
3197 CYGPATH_W=echo
3198 fi
3199fi
3200
3201
3202# Define the identity of the package.
3203 PACKAGE='emacs'
3204 VERSION='24.0.50'
3205
3206
3207cat >>confdefs.h <<_ACEOF
3208#define PACKAGE "$PACKAGE"
3209_ACEOF
3210
3211
3212cat >>confdefs.h <<_ACEOF
3213#define VERSION "$VERSION"
3214_ACEOF
3215
3216# Some tools Automake needs.
3217
3218ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219
3220
3221AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222
3223
3224AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225
3226
3227AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228
3229
3230MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3231
3232# We need awk for the "check" target. The system "awk" is bad on
3233# some platforms.
3234# Always define AMTAR for backward compatibility.
3235
3236AMTAR=${AMTAR-"${am_missing_run}tar"}
3237
3238am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3239
3240
3241
3242
3243
3244
3245
3246
3247lispdir='${datadir}/emacs/${version}/lisp'
3248locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3249'${datadir}/emacs/site-lisp'
3250lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3251etcdir='${datadir}/emacs/${version}/etc'
3252archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3253docdir='${datadir}/emacs/${version}/etc'
3254gamedir='${localstatedir}/games/emacs'
3255
3256
3257
3258
3259# Check whether --with-pop was given.
3260if test "${with_pop+set}" = set; then :
3261 withval=$with_pop;
3262else
3263 with_pop=yes
3264fi
3265
3266if test "$with_pop" = yes; then
3267 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3268
3269fi
3270
3271
3272# Check whether --with-kerberos was given.
3273if test "${with_kerberos+set}" = set; then :
3274 withval=$with_kerberos;
3275else
3276 with_kerberos=no
3277fi
3278
3279if test "$with_kerberos" != no; then
3280 $as_echo "#define KERBEROS 1" >>confdefs.h
3281
3282fi
3283
3284
3285# Check whether --with-kerberos5 was given.
3286if test "${with_kerberos5+set}" = set; then :
3287 withval=$with_kerberos5;
3288else
3289 with_kerberos5=no
3290fi
3291
3292if test "${with_kerberos5}" != no; then
3293 if test "${with_kerberos}" = no; then
3294 with_kerberos=yes
3295 $as_echo "#define KERBEROS 1" >>confdefs.h
3296
3297 fi
3298
3299$as_echo "#define KERBEROS5 1" >>confdefs.h
3300
3301fi
3302
3303
3304# Check whether --with-hesiod was given.
3305if test "${with_hesiod+set}" = set; then :
3306 withval=$with_hesiod;
3307else
3308 with_hesiod=no
3309fi
3310
3311if test "$with_hesiod" != no; then
3312
3313$as_echo "#define HESIOD 1" >>confdefs.h
3314
3315fi
3316
3317
3318# Check whether --with-mmdf was given.
3319if test "${with_mmdf+set}" = set; then :
3320 withval=$with_mmdf;
3321else
3322 with_mmdf=no
3323fi
3324
3325if test "$with_mmdf" != no; then
3326
3327$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3328
3329fi
3330
3331
3332# Check whether --with-mail-unlink was given.
3333if test "${with_mail_unlink+set}" = set; then :
3334 withval=$with_mail_unlink;
3335else
3336 with_mail_unlink=no
3337fi
3338
3339if test "$with_mail_unlink" != no; then
3340
3341$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3342
3343fi
3344
3345
3346# Check whether --with-mailhost was given.
3347if test "${with_mailhost+set}" = set; then :
3348 withval=$with_mailhost;
3349cat >>confdefs.h <<_ACEOF
3350#define MAILHOST "$withval"
3351_ACEOF
3352
3353fi
3354
3355
3356
067d23c9
KY
3357# Check whether --with-sound was given.
3358if test "${with_sound+set}" = set; then :
3359 withval=$with_sound;
3360else
3361 with_sound=yes
3362fi
3363
3364
3365
3366# Check whether --with-sync-input was given.
3367if test "${with_sync_input+set}" = set; then :
3368 withval=$with_sync_input;
3369else
3370 with_sync_input=yes
3371fi
3372
3373if test "$with_sync_input" = yes; then
3374
3375$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3376
3377fi
3378
3379
3380# Check whether --with-x-toolkit was given.
3381if test "${with_x_toolkit+set}" = set; then :
3382 withval=$with_x_toolkit; case "${withval}" in
3383 y | ye | yes ) val=gtk ;;
3384 n | no ) val=no ;;
3385 l | lu | luc | luci | lucid ) val=lucid ;;
3386 a | at | ath | athe | athen | athena ) val=athena ;;
3387 m | mo | mot | moti | motif ) val=motif ;;
3388 g | gt | gtk ) val=gtk ;;
3389 gtk3 ) val=gtk3 ;;
3390 * )
2018939f 3391as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3392this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3393\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3394 ;;
3395 esac
3396 with_x_toolkit=$val
3397
3398fi
3399
3400
3401
3402# Check whether --with-xpm was given.
3403if test "${with_xpm+set}" = set; then :
3404 withval=$with_xpm;
3405else
3406 with_xpm=yes
3407fi
3408
3409
3410# Check whether --with-jpeg was given.
3411if test "${with_jpeg+set}" = set; then :
3412 withval=$with_jpeg;
3413else
3414 with_jpeg=yes
3415fi
3416
3417
3418# Check whether --with-tiff was given.
3419if test "${with_tiff+set}" = set; then :
3420 withval=$with_tiff;
3421else
3422 with_tiff=yes
3423fi
3424
3425
3426# Check whether --with-gif was given.
3427if test "${with_gif+set}" = set; then :
3428 withval=$with_gif;
3429else
3430 with_gif=yes
3431fi
3432
3433
3434# Check whether --with-png was given.
3435if test "${with_png+set}" = set; then :
3436 withval=$with_png;
3437else
3438 with_png=yes
3439fi
3440
3441
3442# Check whether --with-rsvg was given.
3443if test "${with_rsvg+set}" = set; then :
3444 withval=$with_rsvg;
3445else
3446 with_rsvg=yes
3447fi
3448
3449
3450# Check whether --with-xml2 was given.
3451if test "${with_xml2+set}" = set; then :
3452 withval=$with_xml2;
3453else
3454 with_xml2=yes
3455fi
3456
3457
3458# Check whether --with-imagemagick was given.
3459if test "${with_imagemagick+set}" = set; then :
3460 withval=$with_imagemagick;
3461else
3462 with_imagemagick=yes
3463fi
3464
3465
3466
3467# Check whether --with-xft was given.
3468if test "${with_xft+set}" = set; then :
3469 withval=$with_xft;
3470else
3471 with_xft=yes
3472fi
3473
3474
3475# Check whether --with-libotf was given.
3476if test "${with_libotf+set}" = set; then :
3477 withval=$with_libotf;
3478else
3479 with_libotf=yes
3480fi
3481
3482
3483# Check whether --with-m17n-flt was given.
3484if test "${with_m17n_flt+set}" = set; then :
3485 withval=$with_m17n_flt;
3486else
3487 with_m17n_flt=yes
3488fi
3489
3490
3491
3492# Check whether --with-toolkit-scroll-bars was given.
3493if test "${with_toolkit_scroll_bars+set}" = set; then :
3494 withval=$with_toolkit_scroll_bars;
3495else
3496 with_toolkit_scroll_bars=yes
3497fi
3498
3499
3500# Check whether --with-xaw3d was given.
3501if test "${with_xaw3d+set}" = set; then :
3502 withval=$with_xaw3d;
3503else
3504 with_xaw3d=yes
3505fi
3506
3507
3508# Check whether --with-xim was given.
3509if test "${with_xim+set}" = set; then :
3510 withval=$with_xim;
3511else
3512 with_xim=yes
3513fi
3514
3515
3516# Check whether --with-ns was given.
3517if test "${with_ns+set}" = set; then :
3518 withval=$with_ns;
3519else
3520 with_ns=no
3521fi
3522
3523
3524
3525# Check whether --with-gpm was given.
3526if test "${with_gpm+set}" = set; then :
3527 withval=$with_gpm;
3528else
3529 with_gpm=yes
3530fi
3531
3532
3533# Check whether --with-dbus was given.
3534if test "${with_dbus+set}" = set; then :
3535 withval=$with_dbus;
3536else
3537 with_dbus=yes
3538fi
3539
3540
3541# Check whether --with-gconf was given.
3542if test "${with_gconf+set}" = set; then :
3543 withval=$with_gconf;
3544else
3545 with_gconf=yes
3546fi
3547
3548
3549# Check whether --with-selinux was given.
3550if test "${with_selinux+set}" = set; then :
3551 withval=$with_selinux;
3552else
3553 with_selinux=yes
3554fi
3555
3556
3557# Check whether --with-gnutls was given.
3558if test "${with_gnutls+set}" = set; then :
3559 withval=$with_gnutls;
3560else
3561 with_gnutls=yes
3562fi
3563
3564
3565## For the times when you want to build Emacs but don't have
3566## a suitable makeinfo, and can live without the manuals.
3567
3568# Check whether --with-makeinfo was given.
3569if test "${with_makeinfo+set}" = set; then :
3570 withval=$with_makeinfo;
3571else
3572 with_makeinfo=yes
3573fi
3574
3575
3576## This is an option because I do not know if all info/man support
3577## compressed files, nor how to test if they do so.
3578
3579# Check whether --with-compress-info was given.
3580if test "${with_compress_info+set}" = set; then :
3581 withval=$with_compress_info;
3582else
3583 with_compress_info=yes
3584fi
3585
3586if test $with_compress_info = yes; then
3587 GZIP_INFO=yes
3588else
3589 GZIP_INFO=
3590fi
3591
3592
3593
3594# Check whether --with-pkg-config-prog was given.
3595if test "${with_pkg_config_prog+set}" = set; then :
3596 withval=$with_pkg_config_prog;
3597fi
3598
3599if test "X${with_pkg_config_prog}" != X; then
3600 if test "${with_pkg_config_prog}" != yes; then
3601 PKG_CONFIG="${with_pkg_config_prog}"
3602 fi
3603fi
3604
3605CRT_DIR=
3606
3607# Check whether --with-crt-dir was given.
3608if test "${with_crt_dir+set}" = set; then :
3609 withval=$with_crt_dir;
3610fi
3611
3612CRT_DIR="${with_crt_dir}"
3613
3614
4fc5868a
UM
3615# Check whether --with-gameuser was given.
3616if test "${with_gameuser+set}" = set; then :
3617 withval=$with_gameuser;
3618fi
3619
3620test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3621 && gameuser="${with_gameuser}"
3622test "X$gameuser" = X && gameuser=games
3623
3624
067d23c9
KY
3625# Check whether --with-gnustep-conf was given.
3626if test "${with_gnustep_conf+set}" = set; then :
3627 withval=$with_gnustep_conf;
3628fi
3629
3630test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3631 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3632test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3633 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3634
3635# Check whether --enable-ns-self-contained was given.
3636if test "${enable_ns_self_contained+set}" = set; then :
3637 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3638else
3639 EN_NS_SELF_CONTAINED=yes
3640fi
3641
3642
3643# Check whether --enable-asserts was given.
3644if test "${enable_asserts+set}" = set; then :
3645 enableval=$enable_asserts; USE_XASSERTS=$enableval
3646else
3647 USE_XASSERTS=no
3648fi
3649
3650
3651# Check whether --enable-maintainer-mode was given.
3652if test "${enable_maintainer_mode+set}" = set; then :
3653 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3654else
3655 USE_MAINTAINER_MODE=no
3656fi
3657
3658if test $USE_MAINTAINER_MODE = yes; then
3659 MAINT=
3660else
3661 MAINT=#
3662fi
3663
3664
3665# Check whether --enable-locallisppath was given.
3666if test "${enable_locallisppath+set}" = set; then :
3667 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3668 locallisppath=
3669elif test "${enableval}" != "yes"; then
3670 locallisppath=${enableval}
3671fi
3672fi
3673
3674
3675# Check whether --enable-checking was given.
3676if test "${enable_checking+set}" = set; then :
3677 enableval=$enable_checking; ac_checking_flags="${enableval}"
3678fi
3679
3680IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3681for check in $ac_checking_flags
3682do
3683 case $check in
3684 # these set all the flags to specific states
3685 yes) ac_enable_checking=1 ;;
3686 no) ac_enable_checking= ;
3687 ac_gc_check_stringbytes= ;
3688 ac_gc_check_string_overrun= ;
3689 ac_gc_check_string_free_list= ;
3690 ac_xmalloc_overrun= ;
3691 ac_gc_check_cons_list= ;;
3692 all) ac_enable_checking=1 ;
3693 ac_gc_check_stringbytes=1 ;
3694 ac_gc_check_string_overrun=1 ;
3695 ac_gc_check_string_free_list=1 ;
3696 ac_xmalloc_overrun=1 ;
3697 ac_gc_check_cons_list=1 ;;
3698 # these enable particular checks
3699 stringbytes) ac_gc_check_stringbytes=1 ;;
3700 stringoverrun) ac_gc_check_string_overrun=1 ;;
3701 stringfreelist) ac_gc_check_string_free_list=1 ;;
3702 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3703 conslist) ac_gc_check_cons_list=1 ;;
2018939f 3704 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
3705 esac
3706done
3707IFS="$ac_save_IFS"
3708
3709if test x$ac_enable_checking != x ; then
3710
3711$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3712
3713fi
3714if test x$ac_gc_check_stringbytes != x ; then
3715
3716$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3717
3718fi
3719if test x$ac_gc_check_stringoverrun != x ; then
3720
3721$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3722
3723fi
3724if test x$ac_gc_check_string_free_list != x ; then
3725
3726$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3727
3728fi
3729if test x$ac_xmalloc_overrun != x ; then
3730
3731$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3732
3733fi
3734if test x$ac_gc_check_cons_list != x ; then
3735
3736$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3737
3738fi
3739
3740# Check whether --enable-use-lisp-union-type was given.
3741if test "${enable_use_lisp_union_type+set}" = set; then :
3742 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3743
3744$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3745
3746fi
3747fi
3748
3749
3750
3751# Check whether --enable-profiling was given.
3752if test "${enable_profiling+set}" = set; then :
3753 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3754fi
3755
3756if test x$ac_enable_profiling != x ; then
3757 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3758else
3759 PROFILING_CFLAGS=
3760fi
3761
3762
3763# Check whether --enable-autodepend was given.
3764if test "${enable_autodepend+set}" = set; then :
3765 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3766else
3767 ac_enable_autodepend=yes
3768fi
3769
3770
3771#### Make srcdir absolute, if it isn't already. It's important to
3772#### avoid running the path through pwd unnecessarily, since pwd can
3773#### give you automounter prefixes, which can go away. We do all this
3774#### so Emacs can find its files when run uninstalled.
3775## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3776unset CDPATH
3777case "${srcdir}" in
3778 /* ) ;;
3779 . )
3780 ## We may be able to use the $PWD environment variable to make this
3781 ## absolute. But sometimes PWD is inaccurate.
3782 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3783 ## but that tested only for a well-formed and valid PWD,
3784 ## it did not object when PWD was well-formed and valid but just wrong.
3785 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3786 then
3787 srcdir="$PWD"
3788 else
3789 srcdir="`(cd ${srcdir}; pwd)`"
3790 fi
3791 ;;
3792 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3793esac
3794
3795#### Check if the source directory already has a configured system in it.
3796if test `pwd` != `(cd ${srcdir} && pwd)` \
3797 && test -f "${srcdir}/src/config.h" ; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3799 as a build directory right now; it has been configured in its own
3800 right. To configure in another directory as well, you MUST
3801 use GNU make. If you do not have GNU make, then you must
3802 now do \`make distclean' in ${srcdir},
3803 and then run $0 again." >&5
3804$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3805 as a build directory right now; it has been configured in its own
3806 right. To configure in another directory as well, you MUST
3807 use GNU make. If you do not have GNU make, then you must
3808 now do \`make distclean' in ${srcdir},
3809 and then run $0 again." >&2;}
3810fi
3811
3812#### Given the configuration name, set machfile and opsysfile to the
3813#### names of the m/*.h and s/*.h files we should use.
3814
3815### Canonicalize the configuration name.
3816
067d23c9
KY
3817# Make sure we can run config.sub.
3818$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 3819 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
3820
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3822$as_echo_n "checking build system type... " >&6; }
2018939f 3823if ${ac_cv_build+:} false; then :
067d23c9
KY
3824 $as_echo_n "(cached) " >&6
3825else
3826 ac_build_alias=$build_alias
3827test "x$ac_build_alias" = x &&
3828 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3829test "x$ac_build_alias" = x &&
2018939f 3830 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 3831ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 3832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
3833
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3836$as_echo "$ac_cv_build" >&6; }
3837case $ac_cv_build in
3838*-*-*) ;;
2018939f 3839*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
3840esac
3841build=$ac_cv_build
3842ac_save_IFS=$IFS; IFS='-'
3843set x $ac_cv_build
3844shift
3845build_cpu=$1
3846build_vendor=$2
3847shift; shift
3848# Remember, the first character of IFS is used to create $*,
3849# except with old shells:
3850build_os=$*
3851IFS=$ac_save_IFS
3852case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3853
3854
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3856$as_echo_n "checking host system type... " >&6; }
2018939f 3857if ${ac_cv_host+:} false; then :
067d23c9
KY
3858 $as_echo_n "(cached) " >&6
3859else
3860 if test "x$host_alias" = x; then
3861 ac_cv_host=$ac_cv_build
3862else
3863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 3864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
3865fi
3866
3867fi
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3869$as_echo "$ac_cv_host" >&6; }
3870case $ac_cv_host in
3871*-*-*) ;;
2018939f 3872*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
3873esac
3874host=$ac_cv_host
3875ac_save_IFS=$IFS; IFS='-'
3876set x $ac_cv_host
3877shift
3878host_cpu=$1
3879host_vendor=$2
3880shift; shift
3881# Remember, the first character of IFS is used to create $*,
3882# except with old shells:
3883host_os=$*
3884IFS=$ac_save_IFS
3885case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3886
3887
3888canonical=$host
3889configuration=${host_alias-${build_alias-$host}}
3890
3891
3892
3893### If you add support for a new configuration, add code to this
3894### switch statement to recognize your configuration name and select
3895### the appropriate operating system and machine description files.
3896
3897### You would hope that you could choose an m/*.h file pretty much
3898### based on the machine portion of the configuration name, and an s/*.h
3899### file based on the operating system portion. However, it turns out
3900### that each m/*.h file is pretty manufacturer-specific - for
3901### example mips.h is MIPS
3902### So we basically have to have a special case for each
3903### configuration name.
3904###
3905### As far as handling version numbers on operating systems is
3906### concerned, make sure things will fail in a fixable way. If
3907### /etc/MACHINES doesn't say anything about version numbers, be
3908### prepared to handle anything reasonably. If version numbers
3909### matter, be sure /etc/MACHINES says something about it.
3910
3911machine='' opsys='' unported=no
3912case "${canonical}" in
3913
d6a003a8
AS
3914 ## GNU/Linux ports
3915 *-*-linux-gnu*)
3916 opsys=gnu-linux
3917 case ${canonical} in
3918 alpha*) machine=alpha ;;
3919 s390-*) machine=ibms390 ;;
3920 s390x-*) machine=ibms390x ;;
3921 powerpc*) machine=macppc ;;
3922 sparc*) machine=sparc ;;
3923 ia64*) machine=ia64 ;;
3924 m68k*) machine=m68k ;;
3925 x86_64*) machine=amdx86-64 ;;
3926 esac
3927 ;;
3928
067d23c9
KY
3929 ## FreeBSD ports
3930 *-*-freebsd* )
3931 opsys=freebsd
3932 case "${canonical}" in
3933 alpha*) machine=alpha ;;
3934 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3935 ia64-*) machine=ia64 ;;
3936 i[3456]86-*) machine=intel386 ;;
3937 powerpc-*) machine=macppc ;;
3938 sparc-*) machine=sparc ;;
3939 sparc64-*) machine=sparc ;;
3940 esac
3941 ;;
3942
3943 ## FreeBSD kernel + glibc based userland
3944 *-*-kfreebsd*gnu* )
3945 opsys=gnu-kfreebsd
3946 case "${canonical}" in
3947 alpha*) machine=alpha ;;
3948 amd64-*|x86_64-*) machine=amdx86-64 ;;
3949 ia64-*) machine=ia64 ;;
3950 i[3456]86-*) machine=intel386 ;;
3951 powerpc-*) machine=macppc ;;
3952 sparc-*) machine=sparc ;;
3953 sparc64-*) machine=sparc ;;
3954 esac
3955 ;;
3956
3957 ## NetBSD ports
3958 *-*-netbsd* )
3959 opsys=netbsd
3960 case "${canonical}" in
3961 alpha*) machine=alpha ;;
3962 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3963 i[3456]86-*) machine=intel386 ;;
3964 m68k-*) machine=m68k ;;
3965 powerpc-*) machine=macppc ;;
067d23c9
KY
3966 sparc*-) machine=sparc ;;
3967 vax-*) machine=vax ;;
3968 esac
3969 ;;
3970
3971 ## OpenBSD ports
3972 *-*-openbsd* )
3973 opsys=openbsd
3974 case "${canonical}" in
3975 alpha*) machine=alpha ;;
3976 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
3977 i386-*) machine=intel386 ;;
3978 powerpc-*) machine=macppc ;;
3979 sparc*) machine=sparc ;;
3980 vax-*) machine=vax ;;
3981 esac
3982 ;;
3983
067d23c9
KY
3984 ## Apple Darwin / Mac OS X
3985 *-apple-darwin* )
3986 case "${canonical}" in
3987 i[3456]86-* ) machine=intel386 ;;
3988 powerpc-* ) machine=macppc ;;
3989 x86_64-* ) machine=amdx86-64 ;;
3990 * ) unported=yes ;;
3991 esac
3992 opsys=darwin
3993 # Define CPP as follows to make autoconf work correctly.
3994 CPP="${CC-cc} -E -no-cpp-precomp"
3995 # Use fink packages if available.
3996 if test -d /sw/include && test -d /sw/lib; then
3997 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3998 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3999 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4000 fi
4001 ;;
4002
4003 ## HP 9000 series 700 and 800, running HP/UX
4004 hppa*-hp-hpux10.2* )
d6a003a8 4005 opsys=hpux10-20
067d23c9
KY
4006 ;;
4007 hppa*-hp-hpux1[1-9]* )
d6a003a8 4008 opsys=hpux11
067d23c9
KY
4009 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4010 ;;
4011
067d23c9 4012 ## IBM machines
067d23c9
KY
4013 rs6000-ibm-aix4.[23]* )
4014 machine=ibmrs6000 opsys=aix4-2
4015 ;;
4016 powerpc-ibm-aix4.[23]* )
4017 machine=ibmrs6000 opsys=aix4-2
4018 ;;
4019 rs6000-ibm-aix[56]* )
4020 machine=ibmrs6000 opsys=aix4-2
4021 ;;
4022 powerpc-ibm-aix[56]* )
4023 machine=ibmrs6000 opsys=aix4-2
4024 ;;
4025
067d23c9
KY
4026 ## Silicon Graphics machines
4027 ## Iris 4D
4028 mips-sgi-irix6.5 )
4029 machine=iris4d opsys=irix6-5
4030 # Without defining _LANGUAGE_C, things get masked out in the headers
4031 # so that, for instance, grepping for `free' in stdlib.h fails and
4032 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4033 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4034 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4035 ;;
4036
4037 ## Suns
067d23c9
KY
4038 *-sun-solaris* \
4039 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4040 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4041 case "${canonical}" in
4042 i[3456]86-*-* ) machine=intel386 ;;
4043 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4044 sparc* ) machine=sparc ;;
4045 * ) unported=yes ;;
4046 esac
4047 case "${canonical}" in
4048 *-sunos5.6* | *-solaris2.6* )
4049 opsys=sol2-6
4050 NON_GNU_CPP=/usr/ccs/lib/cpp
4051 RANLIB="ar -ts"
4052 ;;
4053 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4054 opsys=sol2-6
4055 emacs_check_sunpro_c=yes
4056 NON_GNU_CPP=/usr/ccs/lib/cpp
4057 ;;
4058 *-sunos5* | *-solaris* )
4059 opsys=sol2-10
4060 emacs_check_sunpro_c=yes
4061 NON_GNU_CPP=/usr/ccs/lib/cpp
4062 ;;
4063 esac
4064 ## Watch out for a compiler that we know will not work.
4065 case "${canonical}" in
4066 *-solaris* | *-sunos5* )
4067 if [ "x$CC" = x/usr/ucb/cc ]; then
4068 ## /usr/ucb/cc doesn't work;
4069 ## we should find some other compiler that does work.
4070 unset CC
4071 fi
4072 ;;
4073 *) ;;
4074 esac
4075 ;;
4076
067d23c9
KY
4077 ## Intel 386 machines where we don't care about the manufacturer.
4078 i[3456]86-*-* )
4079 machine=intel386
4080 case "${canonical}" in
4081 *-cygwin ) opsys=cygwin ;;
4082 *-darwin* ) opsys=darwin
4083 CPP="${CC-cc} -E -no-cpp-precomp"
4084 ;;
067d23c9
KY
4085 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4086 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4087 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4088 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4089 esac
4090 ;;
4091
067d23c9
KY
4092 * )
4093 unported=yes
4094 ;;
4095esac
4096
4097### If the code above didn't choose an operating system, just choose
4098### an operating system based on the configuration name. You really
4099### only want to use this when you have no idea what the right
4100### operating system is; if you know what operating systems a machine
4101### runs, it's cleaner to make it explicit in the case statement
4102### above.
4103if test x"${opsys}" = x; then
4104 case "${canonical}" in
4105 *-gnu* ) opsys=gnu ;;
4106 * )
4107 unported=yes
4108 ;;
4109 esac
4110fi
4111
4112
4113
4114if test $unported = yes; then
2018939f 4115 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4116Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4117fi
4118
d6a003a8
AS
4119if test -n "$machine"; then
4120 machfile="m/${machine}.h"
4121else
4122 machfile=
4123fi
067d23c9
KY
4124opsysfile="s/${opsys}.h"
4125
4126
4127#### Choose a compiler.
4128test -n "$CC" && cc_specified=yes
4129
4130# Save the value of CFLAGS that the user specified.
4131SPECIFIED_CFLAGS="$CFLAGS"
4132
4133ac_ext=c
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140set dummy ${ac_tool_prefix}gcc; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
2018939f 4143if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4144 $as_echo_n "(cached) " >&6
4145else
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160done
4161 done
4162IFS=$as_save_IFS
4163
4164fi
4165fi
4166CC=$ac_cv_prog_CC
4167if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169$as_echo "$CC" >&6; }
4170else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
4173fi
4174
4175
4176fi
4177if test -z "$ac_cv_prog_CC"; then
4178 ac_ct_CC=$CC
4179 # Extract the first word of "gcc", so it can be a program name with args.
4180set dummy gcc; ac_word=$2
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
2018939f 4183if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4184 $as_echo_n "(cached) " >&6
4185else
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_ac_ct_CC="gcc"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200done
4201 done
4202IFS=$as_save_IFS
4203
4204fi
4205fi
4206ac_ct_CC=$ac_cv_prog_ac_ct_CC
4207if test -n "$ac_ct_CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209$as_echo "$ac_ct_CC" >&6; }
4210else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
4213fi
4214
4215 if test "x$ac_ct_CC" = x; then
4216 CC=""
4217 else
4218 case $cross_compiling:$ac_tool_warned in
4219yes:)
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222ac_tool_warned=yes ;;
4223esac
4224 CC=$ac_ct_CC
4225 fi
4226else
4227 CC="$ac_cv_prog_CC"
4228fi
4229
4230if test -z "$CC"; then
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233set dummy ${ac_tool_prefix}cc; ac_word=$2
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
2018939f 4236if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4237 $as_echo_n "(cached) " >&6
4238else
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_CC="${ac_tool_prefix}cc"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253done
4254 done
4255IFS=$as_save_IFS
4256
4257fi
4258fi
4259CC=$ac_cv_prog_CC
4260if test -n "$CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4262$as_echo "$CC" >&6; }
4263else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
4266fi
4267
4268
4269 fi
4270fi
4271if test -z "$CC"; then
4272 # Extract the first word of "cc", so it can be a program name with args.
4273set dummy cc; ac_word=$2
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
2018939f 4276if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4277 $as_echo_n "(cached) " >&6
4278else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281else
4282 ac_prog_rejected=no
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4291 ac_prog_rejected=yes
4292 continue
4293 fi
4294 ac_cv_prog_CC="cc"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298done
4299 done
4300IFS=$as_save_IFS
4301
4302if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy $ac_cv_prog_CC
4305 shift
4306 if test $# != 0; then
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4310 shift
4311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4312 fi
4313fi
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319$as_echo "$CC" >&6; }
4320else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323fi
4324
4325
4326fi
4327if test -z "$CC"; then
4328 if test -n "$ac_tool_prefix"; then
4329 for ac_prog in cl.exe
4330 do
4331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334$as_echo_n "checking for $ac_word... " >&6; }
2018939f 4335if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4336 $as_echo_n "(cached) " >&6
4337else
4338 if test -n "$CC"; then
4339 ac_cv_prog_CC="$CC" # Let the user override the test.
4340else
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4351 fi
4352done
4353 done
4354IFS=$as_save_IFS
4355
4356fi
4357fi
4358CC=$ac_cv_prog_CC
4359if test -n "$CC"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4361$as_echo "$CC" >&6; }
4362else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364$as_echo "no" >&6; }
4365fi
4366
4367
4368 test -n "$CC" && break
4369 done
4370fi
4371if test -z "$CC"; then
4372 ac_ct_CC=$CC
4373 for ac_prog in cl.exe
4374do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376set dummy $ac_prog; ac_word=$2
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378$as_echo_n "checking for $ac_word... " >&6; }
2018939f 4379if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4380 $as_echo_n "(cached) " >&6
4381else
4382 if test -n "$ac_ct_CC"; then
4383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_ac_ct_CC="$ac_prog"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396done
4397 done
4398IFS=$as_save_IFS
4399
4400fi
4401fi
4402ac_ct_CC=$ac_cv_prog_ac_ct_CC
4403if test -n "$ac_ct_CC"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4405$as_echo "$ac_ct_CC" >&6; }
4406else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
4409fi
4410
4411
4412 test -n "$ac_ct_CC" && break
4413done
4414
4415 if test "x$ac_ct_CC" = x; then
4416 CC=""
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419yes:)
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422ac_tool_warned=yes ;;
4423esac
4424 CC=$ac_ct_CC
4425 fi
4426fi
4427
4428fi
4429
4430
4431test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f
AS
4433as_fn_error $? "no acceptable C compiler found in \$PATH
4434See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4435
4436# Provide some information about the compiler.
4437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4438set X $ac_compile
4439ac_compiler=$2
4440for ac_option in --version -v -V -qversion; do
4441 { { ac_try="$ac_compiler $ac_option >&5"
4442case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447$as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4449 ac_status=$?
4450 if test -s conftest.err; then
4451 sed '10a\
4452... rest of stderr output deleted ...
4453 10q' conftest.err >conftest.er1
4454 cat conftest.er1 >&5
4455 fi
4456 rm -f conftest.er1 conftest.err
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4459done
4460
4461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h. */
4463
4464int
4465main ()
4466{
4467
4468 ;
4469 return 0;
4470}
4471_ACEOF
4472ac_clean_files_save=$ac_clean_files
4473ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4474# Try to create an executable without -o first, disregard a.out.
4475# It will help us diagnose broken compilers, and finding out an intuition
4476# of exeext.
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4478$as_echo_n "checking whether the C compiler works... " >&6; }
4479ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4480
4481# The possible output files:
4482ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4483
4484ac_rmfiles=
4485for ac_file in $ac_files
4486do
4487 case $ac_file in
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4490 esac
4491done
4492rm -f $ac_rmfiles
4493
4494if { { ac_try="$ac_link_default"
4495case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link_default") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4506# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4507# in a Makefile. We should not override ac_cv_exeext if it was cached,
4508# so that the user can short-circuit this test for compilers unknown to
4509# Autoconf.
4510for ac_file in $ac_files ''
4511do
4512 test -f "$ac_file" || continue
4513 case $ac_file in
4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4515 ;;
4516 [ab].out )
4517 # We found the default executable, but exeext='' is most
4518 # certainly right.
4519 break;;
4520 *.* )
4521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4522 then :; else
4523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 fi
4525 # We set ac_cv_exeext here because the later test for it is not
4526 # safe: cross compilers may not add the suffix if given an `-o'
4527 # argument, so we may need to know it at that point already.
4528 # Even if this section looks crufty: it has the advantage of
4529 # actually working.
4530 break;;
4531 * )
4532 break;;
4533 esac
4534done
4535test "$ac_cv_exeext" = no && ac_cv_exeext=
4536
4537else
4538 ac_file=''
4539fi
4540if test -z "$ac_file"; then :
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543$as_echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f
AS
4548as_fn_error 77 "C compiler cannot create executables
4549See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4550else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552$as_echo "yes" >&6; }
4553fi
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4555$as_echo_n "checking for C compiler default output file name... " >&6; }
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4557$as_echo "$ac_file" >&6; }
4558ac_exeext=$ac_cv_exeext
4559
4560rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4561ac_clean_files=$ac_clean_files_save
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4563$as_echo_n "checking for suffix of executables... " >&6; }
4564if { { ac_try="$ac_link"
4565case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_link") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4576# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4577# work properly (i.e., refer to `conftest.exe'), while it won't with
4578# `rm'.
4579for ac_file in conftest.exe conftest conftest.*; do
4580 test -f "$ac_file" || continue
4581 case $ac_file in
4582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4584 break;;
4585 * ) break;;
4586 esac
4587done
4588else
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f
AS
4591as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4592See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4593fi
4594rm -f conftest conftest$ac_cv_exeext
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4596$as_echo "$ac_cv_exeext" >&6; }
4597
4598rm -f conftest.$ac_ext
4599EXEEXT=$ac_cv_exeext
4600ac_exeext=$EXEEXT
4601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603#include <stdio.h>
4604int
4605main ()
4606{
4607FILE *f = fopen ("conftest.out", "w");
4608 return ferror (f) || fclose (f) != 0;
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614ac_clean_files="$ac_clean_files conftest.out"
4615# Check that the compiler produces executables we can run. If not, either
4616# the compiler is broken, or we cross compile.
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4618$as_echo_n "checking whether we are cross compiling... " >&6; }
4619if test "$cross_compiling" != yes; then
4620 { { ac_try="$ac_link"
4621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }
4631 if { ac_try='./conftest$ac_cv_exeext'
4632 { { case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637$as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_try") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; }; then
4642 cross_compiling=no
4643 else
4644 if test "$cross_compiling" = maybe; then
4645 cross_compiling=yes
4646 else
4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4649as_fn_error $? "cannot run C compiled programs.
067d23c9 4650If you meant to cross compile, use \`--host'.
2018939f 4651See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4652 fi
4653 fi
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4656$as_echo "$cross_compiling" >&6; }
4657
4658rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4659ac_clean_files=$ac_clean_files_save
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4661$as_echo_n "checking for suffix of object files... " >&6; }
2018939f 4662if ${ac_cv_objext+:} false; then :
067d23c9
KY
4663 $as_echo_n "(cached) " >&6
4664else
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h. */
4667
4668int
4669main ()
4670{
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676rm -f conftest.o conftest.obj
4677if { { ac_try="$ac_compile"
4678case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683$as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compile") 2>&5
4685 ac_status=$?
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }; then :
4688 for ac_file in conftest.o conftest.obj conftest.*; do
4689 test -f "$ac_file" || continue;
4690 case $ac_file in
4691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4693 break;;
4694 esac
4695done
4696else
4697 $as_echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f
AS
4702as_fn_error $? "cannot compute suffix of object files: cannot compile
4703See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4704fi
4705rm -f conftest.$ac_cv_objext conftest.$ac_ext
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4708$as_echo "$ac_cv_objext" >&6; }
4709OBJEXT=$ac_cv_objext
4710ac_objext=$OBJEXT
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2018939f 4713if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
4714 $as_echo_n "(cached) " >&6
4715else
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717/* end confdefs.h. */
4718
4719int
4720main ()
4721{
4722#ifndef __GNUC__
4723 choke me
4724#endif
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_compiler_gnu=yes
4732else
4733 ac_compiler_gnu=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741if test $ac_compiler_gnu = yes; then
4742 GCC=yes
4743else
4744 GCC=
4745fi
4746ac_test_CFLAGS=${CFLAGS+set}
4747ac_save_CFLAGS=$CFLAGS
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749$as_echo_n "checking whether $CC accepts -g... " >&6; }
2018939f 4750if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
4751 $as_echo_n "(cached) " >&6
4752else
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4755 ac_cv_prog_cc_g=no
4756 CFLAGS="-g"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h. */
4759
4760int
4761main ()
4762{
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
4768if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_prog_cc_g=yes
4770else
4771 CFLAGS=""
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
4774
4775int
4776main ()
4777{
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783if ac_fn_c_try_compile "$LINENO"; then :
4784
4785else
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h. */
4790
4791int
4792main ()
4793{
4794
4795 ;
4796 return 0;
4797}
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810$as_echo "$ac_cv_prog_cc_g" >&6; }
4811if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4815 CFLAGS="-g -O2"
4816 else
4817 CFLAGS="-g"
4818 fi
4819else
4820 if test "$GCC" = yes; then
4821 CFLAGS="-O2"
4822 else
4823 CFLAGS=
4824 fi
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2018939f 4828if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
4829 $as_echo_n "(cached) " >&6
4830else
4831 ac_cv_prog_cc_c89=no
4832ac_save_CC=$CC
4833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h. */
4835#include <stdarg.h>
4836#include <stdio.h>
4837#include <sys/types.h>
4838#include <sys/stat.h>
4839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4840struct buf { int x; };
4841FILE * (*rcsopen) (struct buf *, struct stat *, int);
4842static char *e (p, i)
4843 char **p;
4844 int i;
4845{
4846 return p[i];
4847}
4848static char *f (char * (*g) (char **, int), char **p, ...)
4849{
4850 char *s;
4851 va_list v;
4852 va_start (v,p);
4853 s = g (p, va_arg (v,int));
4854 va_end (v);
4855 return s;
4856}
4857
4858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4859 function prototypes and stuff, but not '\xHH' hex character constants.
4860 These don't provoke an error unfortunately, instead are silently treated
4861 as 'x'. The following induces an error, until -std is added to get
4862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4863 array size at least. It's necessary to write '\x00'==0 to get something
4864 that's true only with -std. */
4865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866
4867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4868 inside strings and character constants. */
4869#define FOO(x) 'x'
4870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871
4872int test (int i, double x);
4873struct s1 {int (*f) (int a);};
4874struct s2 {int (*f) (double a);};
4875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876int argc;
4877char **argv;
4878int
4879main ()
4880{
4881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 ;
4883 return 0;
4884}
4885_ACEOF
4886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888do
4889 CC="$ac_save_CC $ac_arg"
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_c89=$ac_arg
4892fi
4893rm -f core conftest.err conftest.$ac_objext
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895done
743c80a7
PE
4896rm -f conftest.$ac_ext
4897CC=$ac_save_CC
4898
4899fi
4900# AC_CACHE_VAL
4901case "x$ac_cv_prog_cc_c89" in
4902 x)
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4904$as_echo "none needed" >&6; } ;;
4905 xno)
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4907$as_echo "unsupported" >&6; } ;;
4908 *)
4909 CC="$CC $ac_cv_prog_cc_c89"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4912esac
4913if test "x$ac_cv_prog_cc_c89" != xno; then :
4914
4915fi
4916
4917ac_ext=c
4918ac_cpp='$CPP $CPPFLAGS'
4919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922DEPDIR="${am__leading_dot}deps"
4923
4924ac_config_commands="$ac_config_commands depfiles"
4925
4926
4927am_make=${MAKE-make}
4928cat > confinc << 'END'
4929am__doit:
4930 @echo this is the am__doit target
4931.PHONY: am__doit
4932END
4933# If we don't find an include directive, just comment out the code.
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4935$as_echo_n "checking for style of include used by $am_make... " >&6; }
4936am__include="#"
4937am__quote=
4938_am_result=none
4939# First try GNU make style include.
4940echo "include confinc" > confmf
4941# Ignore all kinds of additional output from `make'.
4942case `$am_make -s -f confmf 2> /dev/null` in #(
4943*the\ am__doit\ target*)
4944 am__include=include
4945 am__quote=
4946 _am_result=GNU
4947 ;;
4948esac
4949# Now try BSD make style include.
4950if test "$am__include" = "#"; then
4951 echo '.include "confinc"' > confmf
4952 case `$am_make -s -f confmf 2> /dev/null` in #(
4953 *the\ am__doit\ target*)
4954 am__include=.include
4955 am__quote="\""
4956 _am_result=BSD
4957 ;;
4958 esac
4959fi
4960
4961
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4963$as_echo "$_am_result" >&6; }
4964rm -f confinc confmf
4965
4966# Check whether --enable-dependency-tracking was given.
4967if test "${enable_dependency_tracking+set}" = set; then :
4968 enableval=$enable_dependency_tracking;
4969fi
4970
4971if test "x$enable_dependency_tracking" != xno; then
4972 am_depcomp="$ac_aux_dir/depcomp"
4973 AMDEPBACKSLASH='\'
4974fi
4975 if test "x$enable_dependency_tracking" != xno; then
4976 AMDEP_TRUE=
4977 AMDEP_FALSE='#'
4978else
4979 AMDEP_TRUE='#'
4980 AMDEP_FALSE=
4981fi
4982
4983
4984
4985depcc="$CC" am_compiler_list=
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4988$as_echo_n "checking dependency style of $depcc... " >&6; }
4989if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991else
4992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4993 # We make a subdir and do the tests there. Otherwise we can end up
4994 # making bogus files that we don't know about and never remove. For
4995 # instance it was reported that on HP-UX the gcc test will end up
4996 # making a dummy file named `D' -- because `-MD' means `put the output
4997 # in D'.
4998 mkdir conftest.dir
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5002 cd conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5008 # directory.
5009 mkdir sub
5010
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 fi
5015 am__universal=false
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5018 esac
5019
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5024 #
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5028 : > sub/conftest.c
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032 # Solaris 8's {/usr,}/bin/sh.
5033 touch sub/conftst$i.h
5034 done
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5036
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5043 case $depmode in
5044 gcc)
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5047 ;;
5048 nosideeffect)
5049 # after this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested
5051 if test "x$enable_dependency_tracking" = xyes; then
5052 continue
5053 else
5054 break
5055 fi
5056 ;;
5057 msvisualcpp | msvcmsys)
5058 # This compiler won't grok `-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5062 am__minus_obj=
5063 ;;
5064 none) break ;;
5065 esac
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5085 break
5086 fi
5087 fi
5088 done
5089
5090 cd ..
5091 rm -rf conftest.dir
5092else
5093 am_cv_CC_dependencies_compiler_type=none
5094fi
5095
5096fi
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5100
5101 if
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5104 am__fastdepCC_TRUE=
5105 am__fastdepCC_FALSE='#'
5106else
5107 am__fastdepCC_TRUE='#'
5108 am__fastdepCC_FALSE=
5109fi
5110
5111
5112if test "x$CC" != xcc; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5114$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5115else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5117$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5118fi
5119set dummy $CC; ac_cc=`$as_echo "$2" |
5120 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5121if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123else
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h. */
5126
5127int
5128main ()
5129{
5130
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135# Make sure it works both with $CC and with simple cc.
5136# We do the test twice because some compilers refuse to overwrite an
5137# existing .o file with -o, though they will create one.
5138ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5139rm -f conftest2.*
5140if { { case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5145$as_echo "$ac_try_echo"; } >&5
5146 (eval "$ac_try") 2>&5
5147 ac_status=$?
5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; } &&
5150 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153esac
5154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5155$as_echo "$ac_try_echo"; } >&5
5156 (eval "$ac_try") 2>&5
5157 ac_status=$?
5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5159 test $ac_status = 0; };
5160then
5161 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5162 if test "x$CC" != xcc; then
5163 # Test first that cc exists at all.
5164 if { ac_try='cc -c conftest.$ac_ext >&5'
5165 { { case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168esac
5169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170$as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_try") 2>&5
5172 ac_status=$?
5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174 test $ac_status = 0; }; }; then
5175 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5176 rm -f conftest2.*
5177 if { { case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180esac
5181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182$as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; } &&
5187 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190esac
5191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5192$as_echo "$ac_try_echo"; } >&5
5193 (eval "$ac_try") 2>&5
5194 ac_status=$?
5195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5196 test $ac_status = 0; };
5197 then
5198 # cc works too.
5199 :
5200 else
5201 # cc exists but doesn't like -o.
5202 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5203 fi
5204 fi
5205 fi
5206else
5207 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5208fi
5209rm -f core conftest*
5210
5211fi
5212if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214$as_echo "yes" >&6; }
5215else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218
5219$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5220
5221fi
5222
5223# FIXME: we rely on the cache variable name because
5224# there is no other way.
5225set dummy $CC
5226am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5227eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5228if test "$am_t" != yes; then
5229 # Losing compiler, so override with the script.
5230 # FIXME: It is wrong to rewrite CC.
5231 # But if we don't then we get into trouble of one sort or another.
5232 # A longer-term fix would be to have automake use am__CC in this case,
5233 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5234 CC="$am_aux_dir/compile $CC"
5235fi
5236
5237
5238
5239# Initialize gnulib right after verifying that the C compiler works.
5240if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if ${ac_cv_prog_RANLIB+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247else
5248 if test -n "$RANLIB"; then
5249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262done
5263 done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268RANLIB=$ac_cv_prog_RANLIB
5269if test -n "$RANLIB"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5271$as_echo "$RANLIB" >&6; }
5272else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277
5278fi
5279if test -z "$ac_cv_prog_RANLIB"; then
5280 ac_ct_RANLIB=$RANLIB
5281 # Extract the first word of "ranlib", so it can be a program name with args.
5282set dummy ranlib; ac_word=$2
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
5285if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287else
5288 if test -n "$ac_ct_RANLIB"; then
5289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_RANLIB="ranlib"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302done
5303 done
5304IFS=$as_save_IFS
067d23c9
KY
5305
5306fi
743c80a7
PE
5307fi
5308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5309if test -n "$ac_ct_RANLIB"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5311$as_echo "$ac_ct_RANLIB" >&6; }
5312else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
067d23c9 5316
743c80a7
PE
5317 if test "x$ac_ct_RANLIB" = x; then
5318 RANLIB=":"
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321yes:)
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324ac_tool_warned=yes ;;
5325esac
5326 RANLIB=$ac_ct_RANLIB
5327 fi
5328else
5329 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5330fi
5331
743c80a7 5332
067d23c9
KY
5333ac_ext=c
5334ac_cpp='$CPP $CPPFLAGS'
5335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339$as_echo_n "checking how to run the C preprocessor... " >&6; }
5340# On Suns, sometimes $CPP names a directory.
5341if test -n "$CPP" && test -d "$CPP"; then
5342 CPP=
5343fi
5344if test -z "$CPP"; then
2018939f 5345 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5346 $as_echo_n "(cached) " >&6
5347else
5348 # Double quotes because CPP needs to be expanded
5349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5350 do
5351 ac_preproc_ok=false
5352for ac_c_preproc_warn_flag in '' yes
5353do
5354 # Use a header file that comes with gcc, so configuring glibc
5355 # with a fresh cross-compiler works.
5356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357 # <limits.h> exists even on freestanding compilers.
5358 # On the NeXT, cc -E runs the code through the compiler's parser,
5359 # not just through cpp. "Syntax error" is here to catch this case.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362#ifdef __STDC__
5363# include <limits.h>
5364#else
5365# include <assert.h>
5366#endif
5367 Syntax error
5368_ACEOF
5369if ac_fn_c_try_cpp "$LINENO"; then :
5370
5371else
5372 # Broken: fails on valid input.
5373continue
5374fi
2018939f 5375rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5376
5377 # OK, works on sane cases. Now check whether nonexistent headers
5378 # can be detected and how.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
5381#include <ac_nonexistent.h>
5382_ACEOF
5383if ac_fn_c_try_cpp "$LINENO"; then :
5384 # Broken: success on invalid input.
5385continue
5386else
5387 # Passes both tests.
5388ac_preproc_ok=:
5389break
5390fi
2018939f 5391rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5392
5393done
5394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5395rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5396if $ac_preproc_ok; then :
5397 break
5398fi
5399
5400 done
5401 ac_cv_prog_CPP=$CPP
5402
5403fi
5404 CPP=$ac_cv_prog_CPP
5405else
5406 ac_cv_prog_CPP=$CPP
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5409$as_echo "$CPP" >&6; }
5410ac_preproc_ok=false
5411for ac_c_preproc_warn_flag in '' yes
5412do
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h. */
5421#ifdef __STDC__
5422# include <limits.h>
5423#else
5424# include <assert.h>
5425#endif
5426 Syntax error
5427_ACEOF
5428if ac_fn_c_try_cpp "$LINENO"; then :
5429
5430else
5431 # Broken: fails on valid input.
5432continue
5433fi
2018939f 5434rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5435
5436 # OK, works on sane cases. Now check whether nonexistent headers
5437 # can be detected and how.
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h. */
5440#include <ac_nonexistent.h>
5441_ACEOF
5442if ac_fn_c_try_cpp "$LINENO"; then :
5443 # Broken: success on invalid input.
5444continue
5445else
5446 # Passes both tests.
5447ac_preproc_ok=:
5448break
5449fi
2018939f 5450rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5451
5452done
5453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5454rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5455if $ac_preproc_ok; then :
5456
5457else
5458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f
AS
5460as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5461See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5462fi
5463
5464ac_ext=c
5465ac_cpp='$CPP $CPPFLAGS'
5466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5472$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2018939f 5473if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5474 $as_echo_n "(cached) " >&6
5475else
5476 if test -z "$GREP"; then
5477 ac_path_GREP_found=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_prog in grep ggrep; do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5487 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5488# Check for GNU ac_path_GREP and select it if it is found.
5489 # Check for GNU $ac_path_GREP
5490case `"$ac_path_GREP" --version 2>&1` in
5491*GNU*)
5492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5493*)
5494 ac_count=0
5495 $as_echo_n 0123456789 >"conftest.in"
5496 while :
5497 do
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo 'GREP' >> "conftest.nl"
5502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504 as_fn_arith $ac_count + 1 && ac_count=$as_val
5505 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_GREP="$ac_path_GREP"
5508 ac_path_GREP_max=$ac_count
5509 fi
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5512 done
5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514esac
5515
5516 $ac_path_GREP_found && break 3
5517 done
5518 done
5519 done
5520IFS=$as_save_IFS
5521 if test -z "$ac_cv_path_GREP"; then
2018939f 5522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5523 fi
5524else
5525 ac_cv_path_GREP=$GREP
5526fi
5527
5528fi
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5530$as_echo "$ac_cv_path_GREP" >&6; }
5531 GREP="$ac_cv_path_GREP"
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5535$as_echo_n "checking for egrep... " >&6; }
2018939f 5536if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5537 $as_echo_n "(cached) " >&6
5538else
5539 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5540 then ac_cv_path_EGREP="$GREP -E"
5541 else
5542 if test -z "$EGREP"; then
5543 ac_path_EGREP_found=false
5544 # Loop through the user's path and test for each of PROGNAME-LIST
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_prog in egrep; do
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5553 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5554# Check for GNU ac_path_EGREP and select it if it is found.
5555 # Check for GNU $ac_path_EGREP
5556case `"$ac_path_EGREP" --version 2>&1` in
5557*GNU*)
5558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5559*)
5560 ac_count=0
5561 $as_echo_n 0123456789 >"conftest.in"
5562 while :
5563 do
5564 cat "conftest.in" "conftest.in" >"conftest.tmp"
5565 mv "conftest.tmp" "conftest.in"
5566 cp "conftest.in" "conftest.nl"
5567 $as_echo 'EGREP' >> "conftest.nl"
5568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5570 as_fn_arith $ac_count + 1 && ac_count=$as_val
5571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5572 # Best one so far, save it but keep looking for a better one
5573 ac_cv_path_EGREP="$ac_path_EGREP"
5574 ac_path_EGREP_max=$ac_count
5575 fi
5576 # 10*(2^10) chars as input seems more than enough
5577 test $ac_count -gt 10 && break
5578 done
5579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5580esac
5581
5582 $ac_path_EGREP_found && break 3
5583 done
5584 done
5585 done
5586IFS=$as_save_IFS
5587 if test -z "$ac_cv_path_EGREP"; then
2018939f 5588 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5589 fi
5590else
5591 ac_cv_path_EGREP=$EGREP
5592fi
5593
5594 fi
5595fi
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5597$as_echo "$ac_cv_path_EGREP" >&6; }
5598 EGREP="$ac_cv_path_EGREP"
5599
5600
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5602$as_echo_n "checking for ANSI C header files... " >&6; }
2018939f 5603if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5604 $as_echo_n "(cached) " >&6
5605else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607/* end confdefs.h. */
5608#include <stdlib.h>
5609#include <stdarg.h>
5610#include <string.h>
5611#include <float.h>
5612
5613int
5614main ()
5615{
5616
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621if ac_fn_c_try_compile "$LINENO"; then :
5622 ac_cv_header_stdc=yes
5623else
5624 ac_cv_header_stdc=no
5625fi
5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
5628if test $ac_cv_header_stdc = yes; then
5629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h. */
5632#include <string.h>
5633
5634_ACEOF
5635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 $EGREP "memchr" >/dev/null 2>&1; then :
5637
5638else
5639 ac_cv_header_stdc=no
5640fi
5641rm -f conftest*
5642
5643fi
5644
5645if test $ac_cv_header_stdc = yes; then
5646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h. */
5649#include <stdlib.h>
5650
5651_ACEOF
5652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "free" >/dev/null 2>&1; then :
5654
5655else
5656 ac_cv_header_stdc=no
5657fi
5658rm -f conftest*
5659
5660fi
5661
5662if test $ac_cv_header_stdc = yes; then
5663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5664 if test "$cross_compiling" = yes; then :
5665 :
5666else
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h. */
5669#include <ctype.h>
5670#include <stdlib.h>
5671#if ((' ' & 0x0FF) == 0x020)
5672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5674#else
5675# define ISLOWER(c) \
5676 (('a' <= (c) && (c) <= 'i') \
5677 || ('j' <= (c) && (c) <= 'r') \
5678 || ('s' <= (c) && (c) <= 'z'))
5679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5680#endif
5681
5682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5683int
5684main ()
5685{
5686 int i;
5687 for (i = 0; i < 256; i++)
5688 if (XOR (islower (i), ISLOWER (i))
5689 || toupper (i) != TOUPPER (i))
5690 return 2;
5691 return 0;
5692}
5693_ACEOF
5694if ac_fn_c_try_run "$LINENO"; then :
5695
5696else
5697 ac_cv_header_stdc=no
5698fi
5699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5700 conftest.$ac_objext conftest.beam conftest.$ac_ext
5701fi
5702
5703fi
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5706$as_echo "$ac_cv_header_stdc" >&6; }
5707if test $ac_cv_header_stdc = yes; then
5708
5709$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5710
5711fi
5712
5713# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5715 inttypes.h stdint.h unistd.h
5716do :
5717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5718ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5719"
2018939f 5720if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
5721 cat >>confdefs.h <<_ACEOF
5722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5723_ACEOF
5724
5725fi
5726
5727done
5728
5729
5730
1fd182f0
PE
5731
5732
067d23c9 5733 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
2018939f 5734if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
5735 MINIX=yes
5736else
5737 MINIX=
5738fi
5739
5740
5741 if test "$MINIX" = yes; then
5742
5743$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5744
5745
5746$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5747
5748
5749$as_echo "#define _MINIX 1" >>confdefs.h
5750
5751 fi
5752
1fd182f0
PE
5753 case "$host_os" in
5754 hpux*)
5755
5756$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5757
5758 ;;
5759 esac
5760
067d23c9
KY
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5763$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
2018939f 5764if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
5765 $as_echo_n "(cached) " >&6
5766else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h. */
5769
1fd182f0
PE
5770# define __EXTENSIONS__ 1
5771 $ac_includes_default
067d23c9
KY
5772int
5773main ()
5774{
5775
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781 ac_cv_safe_to_define___extensions__=yes
5782else
5783 ac_cv_safe_to_define___extensions__=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5788$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5789 test $ac_cv_safe_to_define___extensions__ = yes &&
5790 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5791
5792 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5793
5794 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5795
5796 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5797
5798 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5799
5800
5801
1fd182f0
PE
5802
5803
5804
5805
5806
5807
5808
5809 # Code from module arg-nonnull:
5810 # Code from module c++defs:
f737437b 5811 # Code from module dtoastr:
1fd182f0
PE
5812 # Code from module extensions:
5813
e275c824
PE
5814 # Code from module getopt-gnu:
5815 # Code from module getopt-posix:
5816 # Code from module gettext-h:
1fd182f0
PE
5817 # Code from module include_next:
5818 # Code from module intprops:
5819 # Code from module mktime:
5820 # Code from module multiarch:
5821 # Code from module stddef:
5822 # Code from module time:
5823 # Code from module time_r:
e275c824 5824 # Code from module unistd:
1fd182f0
PE
5825 # Code from module warn-on-use:
5826
5827
5828# On Suns, sometimes $CPP names a directory.
5829if test -n "$CPP" && test -d "$CPP"; then
5830 CPP=
5831fi
5832
5833## If not using gcc, and on Solaris, and no CPP specified, see if
5834## using a Sun compiler, which needs -Xs to prevent whitespace.
5835if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5836 test x"$CPP" = x; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5838$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5839 if ${emacs_cv_sunpro_c+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844
5845int
5846main ()
5847{
5848#ifndef __SUNPRO_C
5849fail;
5850#endif
5851
5852 ;
5853 return 0;
5854}
5855_ACEOF
5856if ac_fn_c_try_link "$LINENO"; then :
5857 emacs_cv_sunpro_c=yes
5858else
5859 emacs_cv_sunpro_c=no
5860fi
5861rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5863fi
5864
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5866$as_echo "$emacs_cv_sunpro_c" >&6; }
5867
5868 if test x"$emacs_cv_sunpro_c" = xyes; then
5869 NON_GNU_CPP="$CC -E -Xs"
5870 fi
5871fi
5872
5873#### Some systems specify a CPP to use unless we are using GCC.
5874#### Now that we know whether we are using GCC, we can decide whether
5875#### to use that one.
5876if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5877then
5878 CPP="$NON_GNU_CPP"
5879fi
5880
5881#### Some systems specify a CC to use unless we are using GCC.
5882#### Now that we know whether we are using GCC, we can decide whether
5883#### to use that one.
5884if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5885 test x$cc_specified != xyes
5886then
5887 CC="$NON_GNU_CC"
5888fi
5889
5890if test x$GCC = xyes; then
5891 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5892else
5893 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5894fi
5895
067d23c9
KY
5896### Use -Wno-pointer-sign if the compiler supports it
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5898$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5899SAVE_CFLAGS="$CFLAGS"
5900CFLAGS="$CFLAGS -Wno-pointer-sign"
5901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h. */
5903
5904int
5905main ()
5906{
5907
5908 ;
5909 return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"; then :
5913 has_option=yes
5914else
5915 has_option=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918if test $has_option = yes; then
5919 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5922$as_echo "$has_option" >&6; }
5923CFLAGS="$SAVE_CFLAGS"
5924unset has_option
5925unset SAVE_CFLAGS
5926
5927### Use -Wdeclaration-after-statement if the compiler supports it
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5929$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5930SAVE_CFLAGS="$CFLAGS"
5931CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h. */
5934
5935int
5936main ()
5937{
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_compile "$LINENO"; then :
5944 has_option=yes
5945else
5946 has_option=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949if test $has_option = yes; then
5950 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5953$as_echo "$has_option" >&6; }
5954CFLAGS="$SAVE_CFLAGS"
5955unset has_option
5956unset SAVE_CFLAGS
5957
5958### Use -Wold-style-definition if the compiler supports it
5959# This can be removed when conversion to standard C is finished.
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5961$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5962SAVE_CFLAGS="$CFLAGS"
5963CFLAGS="$CFLAGS -Wold-style-definition"
5964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975if ac_fn_c_try_compile "$LINENO"; then :
5976 has_option=yes
5977else
5978 has_option=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981if test $has_option = yes; then
5982 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5985$as_echo "$has_option" >&6; }
5986CFLAGS="$SAVE_CFLAGS"
5987unset has_option
5988unset SAVE_CFLAGS
5989
5990### Use -Wimplicit-function-declaration if the compiler supports it
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
5992$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
5993SAVE_CFLAGS="$CFLAGS"
5994CFLAGS="$CFLAGS -Wimplicit-function-declaration"
5995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h. */
5997
5998int
5999main ()
6000{
6001
6002 ;
6003 return 0;
6004}
6005_ACEOF
6006if ac_fn_c_try_compile "$LINENO"; then :
6007 has_option=yes
6008else
6009 has_option=no
6010fi
6011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012if test $has_option = yes; then
6013 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6016$as_echo "$has_option" >&6; }
6017CFLAGS="$SAVE_CFLAGS"
6018unset has_option
6019unset SAVE_CFLAGS
6020
6021
6022
6023
6024#### Some other nice autoconf tests.
6025
6026ac_ext=c
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032$as_echo_n "checking how to run the C preprocessor... " >&6; }
6033# On Suns, sometimes $CPP names a directory.
6034if test -n "$CPP" && test -d "$CPP"; then
6035 CPP=
6036fi
6037if test -z "$CPP"; then
2018939f 6038 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6039 $as_echo_n "(cached) " >&6
6040else
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6043 do
6044 ac_preproc_ok=false
6045for ac_c_preproc_warn_flag in '' yes
6046do
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h. */
6055#ifdef __STDC__
6056# include <limits.h>
6057#else
6058# include <assert.h>
6059#endif
6060 Syntax error
6061_ACEOF
6062if ac_fn_c_try_cpp "$LINENO"; then :
6063
6064else
6065 # Broken: fails on valid input.
6066continue
6067fi
2018939f 6068rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6069
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h. */
6074#include <ac_nonexistent.h>
6075_ACEOF
6076if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6078continue
6079else
6080 # Passes both tests.
6081ac_preproc_ok=:
6082break
6083fi
2018939f 6084rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6085
6086done
6087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6088rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6089if $ac_preproc_ok; then :
6090 break
6091fi
6092
6093 done
6094 ac_cv_prog_CPP=$CPP
6095
6096fi
6097 CPP=$ac_cv_prog_CPP
6098else
6099 ac_cv_prog_CPP=$CPP
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102$as_echo "$CPP" >&6; }
6103ac_preproc_ok=false
6104for ac_c_preproc_warn_flag in '' yes
6105do
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h. */
6114#ifdef __STDC__
6115# include <limits.h>
6116#else
6117# include <assert.h>
6118#endif
6119 Syntax error
6120_ACEOF
6121if ac_fn_c_try_cpp "$LINENO"; then :
6122
6123else
6124 # Broken: fails on valid input.
6125continue
6126fi
2018939f 6127rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6128
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h. */
6133#include <ac_nonexistent.h>
6134_ACEOF
6135if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6137continue
6138else
6139 # Passes both tests.
6140ac_preproc_ok=:
6141break
6142fi
2018939f 6143rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6144
6145done
6146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6147rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6148if $ac_preproc_ok; then :
6149
6150else
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f
AS
6153as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6154See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6155fi
6156
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
067d23c9
KY
6163
6164if test "x$RANLIB" = x; then
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6170if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6171 $as_echo_n "(cached) " >&6
6172else
6173 if test -n "$RANLIB"; then
6174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187done
6188 done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193RANLIB=$ac_cv_prog_RANLIB
6194if test -n "$RANLIB"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196$as_echo "$RANLIB" >&6; }
6197else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202
6203fi
6204if test -z "$ac_cv_prog_RANLIB"; then
6205 ac_ct_RANLIB=$RANLIB
6206 # Extract the first word of "ranlib", so it can be a program name with args.
6207set dummy ranlib; ac_word=$2
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6210if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6211 $as_echo_n "(cached) " >&6
6212else
6213 if test -n "$ac_ct_RANLIB"; then
6214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_RANLIB="ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227done
6228 done
6229IFS=$as_save_IFS
6230
6231fi
6232fi
6233ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234if test -n "$ac_ct_RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236$as_echo "$ac_ct_RANLIB" >&6; }
6237else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239$as_echo "no" >&6; }
6240fi
6241
6242 if test "x$ac_ct_RANLIB" = x; then
6243 RANLIB=":"
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246yes:)
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249ac_tool_warned=yes ;;
6250esac
6251 RANLIB=$ac_ct_RANLIB
6252 fi
6253else
6254 RANLIB="$ac_cv_prog_RANLIB"
6255fi
6256
6257fi
6258
6259## Although we're running on an amd64 kernel, we're actually compiling for
6260## the x86 architecture. The user should probably have provided an
6261## explicit --build to `configure', but if everything else than the kernel
6262## is running in i386 mode, we can help them out.
6263if test "$machine" = "amdx86-64"; then
6264 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
2018939f 6265if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6266
6267fi
6268
6269 if test "$ac_cv_have_decl_i386" = "yes"; then
6270 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6271 machine=intel386
6272 machfile="m/${machine}.h"
6273 fi
6274fi
6275
6276# Extract the first word of "install-info", so it can be a program name with args.
6277set dummy install-info; ac_word=$2
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6280if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6281 $as_echo_n "(cached) " >&6
6282else
6283 case $INSTALL_INFO in
6284 [\\/]* | ?:[\\/]*)
6285 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6286 ;;
6287 *)
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300 done
6301IFS=$as_save_IFS
6302
6303 ;;
6304esac
6305fi
6306INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6307if test -n "$INSTALL_INFO"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6309$as_echo "$INSTALL_INFO" >&6; }
6310else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315
6316# Extract the first word of "install-info", so it can be a program name with args.
6317set dummy install-info; ac_word=$2
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6320if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6321 $as_echo_n "(cached) " >&6
6322else
6323 case $INSTALL_INFO in
6324 [\\/]* | ?:[\\/]*)
6325 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6326 ;;
6327 *)
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in /usr/sbin
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340 done
6341IFS=$as_save_IFS
6342
6343 ;;
6344esac
6345fi
6346INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6347if test -n "$INSTALL_INFO"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6349$as_echo "$INSTALL_INFO" >&6; }
6350else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355
6356# Extract the first word of "install-info", so it can be a program name with args.
6357set dummy install-info; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6360if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6361 $as_echo_n "(cached) " >&6
6362else
6363 case $INSTALL_INFO in
6364 [\\/]* | ?:[\\/]*)
6365 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6366 ;;
6367 *)
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in /sbin
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380 done
6381IFS=$as_save_IFS
6382
6383 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6384 ;;
6385esac
6386fi
6387INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6388if test -n "$INSTALL_INFO"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6390$as_echo "$INSTALL_INFO" >&6; }
6391else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396
6397# Extract the first word of "gzip", so it can be a program name with args.
6398set dummy gzip; ac_word=$2
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6401if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6402 $as_echo_n "(cached) " >&6
6403else
6404 case $GZIP_PROG in
6405 [\\/]* | ?:[\\/]*)
6406 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6407 ;;
6408 *)
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420done
6421 done
6422IFS=$as_save_IFS
6423
6424 ;;
6425esac
6426fi
6427GZIP_PROG=$ac_cv_path_GZIP_PROG
6428if test -n "$GZIP_PROG"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6430$as_echo "$GZIP_PROG" >&6; }
6431else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433$as_echo "no" >&6; }
6434fi
6435
6436
6437
6438
6439## Need makeinfo >= 4.6 (?) to build the manuals.
6440# Extract the first word of "makeinfo", so it can be a program name with args.
6441set dummy makeinfo; ac_word=$2
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443$as_echo_n "checking for $ac_word... " >&6; }
2018939f 6444if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6445 $as_echo_n "(cached) " >&6
6446else
6447 case $MAKEINFO in
6448 [\\/]* | ?:[\\/]*)
6449 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6450 ;;
6451 *)
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464 done
6465IFS=$as_save_IFS
6466
6467 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6468 ;;
6469esac
6470fi
6471MAKEINFO=$ac_cv_path_MAKEINFO
6472if test -n "$MAKEINFO"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6474$as_echo "$MAKEINFO" >&6; }
6475else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481if test "$MAKEINFO" != "no" && \
6482 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
6483 MAKEINFO=no
6484fi
6485
6486## Makeinfo is unusual. For a released Emacs, the manuals are
6487## pre-built, and not deleted by the normal clean rules. makeinfo is
6488## therefore in the category of "special tools" not normally required, which
6489## configure does not have to check for (eg autoconf itself).
6490## In a Bazaar checkout on the other hand, the manuals are not included.
6491## So makeinfo is a requirement to build from Bazaar, and configure
6492## should test for it as it does for any other build requirement.
6493## We use the presence of $srcdir/info/emacs to distinguish a release,
6494## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6495HAVE_MAKEINFO=yes
6496
067d23c9 6497if test "$MAKEINFO" = "no"; then
96f129d5 6498 MAKEINFO=makeinfo
067d23c9 6499 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6500 HAVE_MAKEINFO=no
067d23c9 6501 elif test ! -e $srcdir/info/emacs; then
2018939f 6502 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6503source tree does not seem to have pre-built manuals in the \`info' directory.
6504Either install a suitable version of makeinfo, or re-run configure
6505with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6506 fi
6507fi
6508
6509
96f129d5 6510
067d23c9
KY
6511if test x$GCC = xyes; then
6512 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6513 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6514else
6515 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6516 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6517fi
6518
6519
6520late_LDFLAGS=$LDFLAGS
6521if test x$GCC = xyes; then
6522 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6523else
6524 LDFLAGS="$LDFLAGS -znocombreloc"
6525fi
6526
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6528$as_echo_n "checking for -znocombreloc... " >&6; }
6529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h. */
6531
6532int
6533main ()
6534{
6535
6536 ;
6537 return 0;
6538}
6539_ACEOF
6540if ac_fn_c_try_link "$LINENO"; then :
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542$as_echo "yes" >&6; }
6543else
6544 LDFLAGS=$late_LDFLAGS
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546$as_echo "no" >&6; }
6547fi
6548rm -f core conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550
6551
6552# The value of CPP is a quoted variable reference, so we need to do this
6553# to get its actual value...
6554CPP=`eval "echo $CPP"`
6555
6556
6557CANNOT_DUMP=no
6558case "$opsys" in
6559 your-opsys-here)
6560 CANNOT_DUMP=yes
6561
6562$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6563
6564 ;;
6565esac
6566
6567
6568
6569UNEXEC_OBJ=unexelf.o
6570case "$opsys" in
6571 # MSDOS uses unexcoff.o
6572 # MSWindows uses unexw32.o
6573 aix4-2)
6574 UNEXEC_OBJ=unexaix.o
6575 ;;
6576 cygwin)
6577 UNEXEC_OBJ=unexcw.o
6578 ;;
6579 darwin)
6580 UNEXEC_OBJ=unexmacosx.o
6581 ;;
6582 hpux10-20 | hpux11)
6583 UNEXEC_OBJ=unexhp9k800.o
6584 ;;
6585 sol2-10)
6586 # Use the Solaris dldump() function, called from unexsol.c, to dump
6587 # emacs, instead of the generic ELF dump code found in unexelf.c.
6588 # The resulting binary has a complete symbol table, and is better
6589 # for debugging and other observability tools (debuggers, pstack, etc).
6590 #
6591 # If you encounter a problem using dldump(), please consider sending
6592 # a message to the OpenSolaris tools-linking mailing list:
6593 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6594 #
6595 # It is likely that dldump() works with older Solaris too, but this has
6596 # not been tested, so for now this change is for Solaris 10 or newer.
6597 UNEXEC_OBJ=unexsol.o
6598 ;;
6599esac
6600
6601LD_SWITCH_SYSTEM=
6602case "$opsys" in
6603 freebsd)
6604 ## Let `ld' find image libs and similar things in /usr/local/lib.
6605 ## The system compiler, GCC, has apparently been modified to not
6606 ## look there, contrary to what a stock GCC would do.
6607 LD_SWITCH_SYSTEM=-L/usr/local/lib
6608 ;;
6609
6610 gnu-linux)
6611 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6612 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6613 ;;
6614
6615 netbsd)
6616 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6617 ;;
6618
6619 openbsd)
6620 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6621 ## otherwise Emacs dumps core on elf systems.
6622 LD_SWITCH_SYSTEM="-Z"
6623 ;;
6624esac
6625
6626
6627ac_link="$ac_link $LD_SWITCH_SYSTEM"
6628
6629## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6630## which has not been defined yet. When this was handled with cpp,
6631## it was expanded to null when configure sourced the s/*.h file.
6632## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6633## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6634## (or somesuch), but because it is supposed to go at the _front_
6635## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6636## Compare with the gnu-linux case below, which added to the end
6637## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6638## LD_SWITCH_SYSTEM_TEMACS.
6639case "$opsys" in
6640 netbsd|openbsd)
6641 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6642 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6643esac
6644
6645
6646C_SWITCH_MACHINE=
6647if test "$machine" = "alpha"; then
6648 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
2018939f 6649if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6650
6651fi
6652
6653 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6654 ## With ELF, make sure that all common symbols get allocated to in the
6655 ## data section. Otherwise, the dump of temacs may miss variables in
6656 ## the shared library that have been initialized. For example, with
6657 ## GNU libc, __malloc_initialized would normally be resolved to the
6658 ## shared library's .bss section, which is fatal.
6659 if test "x$GCC" = "xyes"; then
6660 C_SWITCH_MACHINE="-fno-common"
6661 else
2018939f 6662 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6663 fi
6664 else
6665 UNEXEC_OBJ=unexalpha.o
6666 fi
6667fi
6668
6669
6670
6671
6672C_SWITCH_SYSTEM=
6673## Some programs in src produce warnings saying certain subprograms
6674## are too complex and need a MAXMEM value greater than 2000 for
6675## additional optimization. --nils@exp-math.uni-essen.de
6676test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6677 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6678## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6679## It is redundant in glibc2, since we define _GNU_SOURCE.
6680
6681
6682
6683LIBS_SYSTEM=
6684case "$opsys" in
6685 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6686 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6687
6688 freebsd) LIBS_SYSTEM="-lutil" ;;
6689
6690 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6691
6692 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6693
6694 ## Motif needs -lgen.
6695 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6696esac
6697
6698
6699
6700### Make sure subsequent tests use flags consistent with the build flags.
6701
6702if test x"${OVERRIDE_CPPFLAGS}" != x; then
6703 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6704else
6705 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6706fi
6707
6708
6709
6710# Check whether --enable-largefile was given.
6711if test "${enable_largefile+set}" = set; then :
6712 enableval=$enable_largefile;
6713fi
6714
6715if test "$enable_largefile" != no; then
6716
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6718$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
2018939f 6719if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
6720 $as_echo_n "(cached) " >&6
6721else
6722 ac_cv_sys_largefile_CC=no
6723 if test "$GCC" != yes; then
6724 ac_save_CC=$CC
6725 while :; do
6726 # IRIX 6.2 and later do not support large files by default,
6727 # so use the C compiler's -n32 option if that helps.
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h. */
6730#include <sys/types.h>
6731 /* Check that off_t can represent 2**63 - 1 correctly.
6732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6733 since some C++ compilers masquerading as C compilers
6734 incorrectly reject 9223372036854775807. */
6735#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6737 && LARGE_OFF_T % 2147483647 == 1)
6738 ? 1 : -1];
6739int
6740main ()
6741{
6742
6743 ;
6744 return 0;
6745}
6746_ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 break
6749fi
6750rm -f core conftest.err conftest.$ac_objext
6751 CC="$CC -n32"
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 ac_cv_sys_largefile_CC=' -n32'; break
6754fi
6755rm -f core conftest.err conftest.$ac_objext
6756 break
6757 done
6758 CC=$ac_save_CC
6759 rm -f conftest.$ac_ext
6760 fi
6761fi
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6763$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6764 if test "$ac_cv_sys_largefile_CC" != no; then
6765 CC=$CC$ac_cv_sys_largefile_CC
6766 fi
6767
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6769$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
2018939f 6770if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
6771 $as_echo_n "(cached) " >&6
6772else
6773 while :; do
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h. */
6776#include <sys/types.h>
6777 /* Check that off_t can represent 2**63 - 1 correctly.
6778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6779 since some C++ compilers masquerading as C compilers
6780 incorrectly reject 9223372036854775807. */
6781#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6783 && LARGE_OFF_T % 2147483647 == 1)
6784 ? 1 : -1];
6785int
6786main ()
6787{
6788
6789 ;
6790 return 0;
6791}
6792_ACEOF
6793if ac_fn_c_try_compile "$LINENO"; then :
6794 ac_cv_sys_file_offset_bits=no; break
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798/* end confdefs.h. */
6799#define _FILE_OFFSET_BITS 64
6800#include <sys/types.h>
6801 /* Check that off_t can represent 2**63 - 1 correctly.
6802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6803 since some C++ compilers masquerading as C compilers
6804 incorrectly reject 9223372036854775807. */
6805#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6807 && LARGE_OFF_T % 2147483647 == 1)
6808 ? 1 : -1];
6809int
6810main ()
6811{
6812
6813 ;
6814 return 0;
6815}
6816_ACEOF
6817if ac_fn_c_try_compile "$LINENO"; then :
6818 ac_cv_sys_file_offset_bits=64; break
6819fi
6820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 ac_cv_sys_file_offset_bits=unknown
6822 break
6823done
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6826$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6827case $ac_cv_sys_file_offset_bits in #(
6828 no | unknown) ;;
6829 *)
6830cat >>confdefs.h <<_ACEOF
6831#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6832_ACEOF
6833;;
6834esac
6835rm -rf conftest*
6836 if test $ac_cv_sys_file_offset_bits = unknown; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6838$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
2018939f 6839if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
6840 $as_echo_n "(cached) " >&6
6841else
6842 while :; do
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h. */
6845#include <sys/types.h>
6846 /* Check that off_t can represent 2**63 - 1 correctly.
6847 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6848 since some C++ compilers masquerading as C compilers
6849 incorrectly reject 9223372036854775807. */
6850#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6851 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6852 && LARGE_OFF_T % 2147483647 == 1)
6853 ? 1 : -1];
6854int
6855main ()
6856{
6857
6858 ;
6859 return 0;
6860}
6861_ACEOF
6862if ac_fn_c_try_compile "$LINENO"; then :
6863 ac_cv_sys_large_files=no; break
6864fi
6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h. */
6868#define _LARGE_FILES 1
6869#include <sys/types.h>
6870 /* Check that off_t can represent 2**63 - 1 correctly.
6871 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6872 since some C++ compilers masquerading as C compilers
6873 incorrectly reject 9223372036854775807. */
6874#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6875 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6876 && LARGE_OFF_T % 2147483647 == 1)
6877 ? 1 : -1];
6878int
6879main ()
6880{
6881
6882 ;
6883 return 0;
6884}
6885_ACEOF
6886if ac_fn_c_try_compile "$LINENO"; then :
6887 ac_cv_sys_large_files=1; break
6888fi
6889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 ac_cv_sys_large_files=unknown
6891 break
6892done
6893fi
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6895$as_echo "$ac_cv_sys_large_files" >&6; }
6896case $ac_cv_sys_large_files in #(
6897 no | unknown) ;;
6898 *)
6899cat >>confdefs.h <<_ACEOF
6900#define _LARGE_FILES $ac_cv_sys_large_files
6901_ACEOF
6902;;
6903esac
6904rm -rf conftest*
6905 fi
6906fi
6907
6908
6909
6910## If user specified a crt-dir, use that unconditionally.
6911if test "X$CRT_DIR" = "X"; then
6912
6913 case "$canonical" in
6914 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6915 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6916 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6917 ## For anything else (eg /usr/lib32), it is up the user to specify
6918 ## the location (bug#5655).
6919 ## Test for crtn.o, not just the directory, because sometimes the
6920 ## directory exists but does not have the relevant files (bug#1287).
6921 ## FIXME better to test for binary compatibility somehow.
6922 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6923 ;;
6924
6925 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6926 esac
6927
6928 case "$opsys" in
6929 hpux10-20) CRT_DIR=/lib ;;
6930 esac
6931
6932 ## Default is /usr/lib.
6933 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6934
6935else
6936
6937 ## Some platforms don't use any of these files, so it is not
6938 ## appropriate to put this test outside the if block.
6939 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 6940 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
6941
6942fi
6943
6944
6945
6946LIB_MATH=-lm
6947LIB_STANDARD=
6948START_FILES=
6949
6950case $opsys in
6951 cygwin )
6952 LIB_MATH=
6953 START_FILES='pre-crt0.o'
6954 ;;
6955 darwin )
6956 ## Adding -lm confuses the dynamic linker, so omit it.
6957 LIB_MATH=
6958 START_FILES='pre-crt0.o'
6959 ;;
6960 freebsd )
6961 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6962 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6963 ;;
6964 gnu-linux | gnu-kfreebsd )
6965 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6966 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6967 ;;
6968 hpux10-20 | hpux11 )
6969 LIB_STANDARD=-lc
6970 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6971 ;;
6972 netbsd | openbsd )
6973 if test -f $CRT_DIR/crti.o; then
6974 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6975 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6976 else
6977 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6978 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6979 fi
6980 ;;
6981esac
6982
6983
6984
6985
6986
6987
6988
6989if test "${with_sound}" != "no"; then
6990 # Sound support for GNU/Linux and the free BSDs.
6991 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6992do :
6993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6994ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 6995if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
6996 cat >>confdefs.h <<_ACEOF
6997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6998_ACEOF
6999 have_sound_header=yes
7000fi
7001
7002done
7003
7004 # Emulation library used on NetBSD.
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7006$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
2018939f 7007if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7008 $as_echo_n "(cached) " >&6
7009else
7010 ac_check_lib_save_LIBS=$LIBS
7011LIBS="-lossaudio $LIBS"
7012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h. */
7014
7015/* Override any GCC internal prototype to avoid an error.
7016 Use char because int might match the return type of a GCC
7017 builtin and then its argument prototype would still apply. */
7018#ifdef __cplusplus
7019extern "C"
7020#endif
7021char _oss_ioctl ();
7022int
7023main ()
7024{
7025return _oss_ioctl ();
7026 ;
7027 return 0;
7028}
7029_ACEOF
7030if ac_fn_c_try_link "$LINENO"; then :
7031 ac_cv_lib_ossaudio__oss_ioctl=yes
7032else
7033 ac_cv_lib_ossaudio__oss_ioctl=no
7034fi
7035rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037LIBS=$ac_check_lib_save_LIBS
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7040$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
2018939f 7041if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7042 LIBSOUND=-lossaudio
7043else
7044 LIBSOUND=
7045fi
7046
7047
7048
7049 ALSA_REQUIRED=1.0.0
7050 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7051
7052 succeeded=no
7053
7054 # Extract the first word of "pkg-config", so it can be a program name with args.
7055set dummy pkg-config; ac_word=$2
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
2018939f 7058if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7059 $as_echo_n "(cached) " >&6
7060else
7061 case $PKG_CONFIG in
7062 [\\/]* | ?:[\\/]*)
7063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7064 ;;
7065 *)
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078 done
7079IFS=$as_save_IFS
7080
7081 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7082 ;;
7083esac
7084fi
7085PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7086if test -n "$PKG_CONFIG"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7088$as_echo "$PKG_CONFIG" >&6; }
7089else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091$as_echo "no" >&6; }
7092fi
7093
7094
7095
7096 if test "$PKG_CONFIG" = "no" ; then
7097 HAVE_ALSA=no
7098 else
7099 PKG_CONFIG_MIN_VERSION=0.9.0
7100 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7102$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7103
7104 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7106$as_echo "yes" >&6; }
7107 succeeded=yes
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7110$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7111 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7113$as_echo "$ALSA_CFLAGS" >&6; }
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7116$as_echo_n "checking ALSA_LIBS... " >&6; }
7117 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7119$as_echo "$ALSA_LIBS" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }
7123 ALSA_CFLAGS=""
7124 ALSA_LIBS=""
7125 ## If we have a custom action on failure, don't print errors, but
7126 ## do set a variable so people can do so.
7127 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7128
7129 fi
7130
7131
7132
7133 else
7134 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7135 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7136 fi
7137 fi
7138
7139 if test $succeeded = yes; then
7140 HAVE_ALSA=yes
7141 else
7142 HAVE_ALSA=no
7143 fi
7144
7145 if test $HAVE_ALSA = yes; then
7146 SAVE_CFLAGS="$CFLAGS"
7147 SAVE_LDFLAGS="$LDFLAGS"
7148 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7149 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h. */
7152#include <asoundlib.h>
7153int
7154main ()
7155{
7156snd_lib_error_set_handler (0);
7157 ;
7158 return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_compile "$LINENO"; then :
7162 emacs_alsa_normal=yes
7163else
7164 emacs_alsa_normal=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 if test "$emacs_alsa_normal" != yes; then
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h. */
7170#include <alsa/asoundlib.h>
7171int
7172main ()
7173{
7174snd_lib_error_set_handler (0);
7175 ;
7176 return 0;
7177}
7178_ACEOF
7179if ac_fn_c_try_compile "$LINENO"; then :
7180 emacs_alsa_subdir=yes
7181else
7182 emacs_alsa_subdir=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 if test "$emacs_alsa_subdir" != yes; then
2018939f 7186 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7187 fi
7188 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7189 fi
7190
7191 CFLAGS="$SAVE_CFLAGS"
7192 LDFLAGS="$SAVE_LDFLAGS"
7193 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7194 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7195
7196$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7197
7198 fi
7199
7200 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7201 case "$opsys" in
7202 gnu-linux|freebsd|netbsd)
7203
7204$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7205
7206 ;;
7207 esac
7208 fi
7209
7210
7211fi
7212
7213for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7214 linux/version.h sys/systeminfo.h limits.h \
7215 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7216 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7217 sys/utsname.h pwd.h utmp.h dirent.h util.h
7218do :
7219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7221if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7222 cat >>confdefs.h <<_ACEOF
7223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7224_ACEOF
7225
7226fi
7227
7228done
7229
7230
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7232$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h. */
7235#include <sys/personality.h>
7236int
7237main ()
7238{
7239personality (PER_LINUX32)
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_c_try_compile "$LINENO"; then :
7245 emacs_cv_personality_linux32=yes
7246else
7247 emacs_cv_personality_linux32=no
7248fi
7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7251$as_echo "$emacs_cv_personality_linux32" >&6; }
7252
7253if test $emacs_cv_personality_linux32 = yes; then
7254
7255$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7256
7257fi
7258
7259for ac_header in term.h
7260do :
7261 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
2018939f 7262if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7263 cat >>confdefs.h <<_ACEOF
7264#define HAVE_TERM_H 1
7265_ACEOF
7266
7267fi
7268
7269done
7270
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7272$as_echo_n "checking for ANSI C header files... " >&6; }
2018939f 7273if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7274 $as_echo_n "(cached) " >&6
7275else
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277/* end confdefs.h. */
7278#include <stdlib.h>
7279#include <stdarg.h>
7280#include <string.h>
7281#include <float.h>
7282
7283int
7284main ()
7285{
7286
7287 ;
7288 return 0;
7289}
7290_ACEOF
7291if ac_fn_c_try_compile "$LINENO"; then :
7292 ac_cv_header_stdc=yes
7293else
7294 ac_cv_header_stdc=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297
7298if test $ac_cv_header_stdc = yes; then
7299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h. */
7302#include <string.h>
7303
7304_ACEOF
7305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306 $EGREP "memchr" >/dev/null 2>&1; then :
7307
7308else
7309 ac_cv_header_stdc=no
7310fi
7311rm -f conftest*
7312
7313fi
7314
7315if test $ac_cv_header_stdc = yes; then
7316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h. */
7319#include <stdlib.h>
7320
7321_ACEOF
7322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7323 $EGREP "free" >/dev/null 2>&1; then :
7324
7325else
7326 ac_cv_header_stdc=no
7327fi
7328rm -f conftest*
7329
7330fi
7331
7332if test $ac_cv_header_stdc = yes; then
7333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7334 if test "$cross_compiling" = yes; then :
7335 :
7336else
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h. */
7339#include <ctype.h>
7340#include <stdlib.h>
7341#if ((' ' & 0x0FF) == 0x020)
7342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7344#else
7345# define ISLOWER(c) \
7346 (('a' <= (c) && (c) <= 'i') \
7347 || ('j' <= (c) && (c) <= 'r') \
7348 || ('s' <= (c) && (c) <= 'z'))
7349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7350#endif
7351
7352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7353int
7354main ()
7355{
7356 int i;
7357 for (i = 0; i < 256; i++)
7358 if (XOR (islower (i), ISLOWER (i))
7359 || toupper (i) != TOUPPER (i))
7360 return 2;
7361 return 0;
7362}
7363_ACEOF
7364if ac_fn_c_try_run "$LINENO"; then :
7365
7366else
7367 ac_cv_header_stdc=no
7368fi
7369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7370 conftest.$ac_objext conftest.beam conftest.$ac_ext
7371fi
7372
7373fi
7374fi
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7376$as_echo "$ac_cv_header_stdc" >&6; }
7377if test $ac_cv_header_stdc = yes; then
7378
7379$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7380
7381fi
7382
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7384$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
2018939f 7385if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7386 $as_echo_n "(cached) " >&6
7387else
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390#include <sys/types.h>
7391#include <sys/time.h>
7392#include <time.h>
7393
7394int
7395main ()
7396{
7397if ((struct tm *) 0)
7398return 0;
7399 ;
7400 return 0;
7401}
7402_ACEOF
7403if ac_fn_c_try_compile "$LINENO"; then :
7404 ac_cv_header_time=yes
7405else
7406 ac_cv_header_time=no
7407fi
7408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409fi
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7411$as_echo "$ac_cv_header_time" >&6; }
7412if test $ac_cv_header_time = yes; then
7413
7414$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7415
7416fi
7417
7418ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
2018939f 7419if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7420 ac_have_decl=1
7421else
7422 ac_have_decl=0
7423fi
7424
7425cat >>confdefs.h <<_ACEOF
7426#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7427_ACEOF
7428
7429if test $ac_cv_have_decl_sys_siglist != yes; then
7430 # For Tru64, at least:
7431 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
2018939f 7432if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7433 ac_have_decl=1
7434else
7435 ac_have_decl=0
7436fi
7437
7438cat >>confdefs.h <<_ACEOF
7439#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7440_ACEOF
7441
7442 if test $ac_cv_have_decl___sys_siglist = yes; then
7443
7444$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7445
7446 fi
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7449$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
2018939f 7450if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7451 $as_echo_n "(cached) " >&6
7452else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h. */
7455#include <sys/types.h>
7456#include <sys/wait.h>
7457#ifndef WEXITSTATUS
7458# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7459#endif
7460#ifndef WIFEXITED
7461# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7462#endif
7463
7464int
7465main ()
7466{
7467 int s;
7468 wait (&s);
7469 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7470 ;
7471 return 0;
7472}
7473_ACEOF
7474if ac_fn_c_try_compile "$LINENO"; then :
7475 ac_cv_header_sys_wait_h=yes
7476else
7477 ac_cv_header_sys_wait_h=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7482$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7483if test $ac_cv_header_sys_wait_h = yes; then
7484
7485$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7486
7487fi
7488
7489
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7491$as_echo_n "checking for struct utimbuf... " >&6; }
2018939f 7492if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7493 $as_echo_n "(cached) " >&6
7494else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h. */
7497#ifdef TIME_WITH_SYS_TIME
7498#include <sys/time.h>
7499#include <time.h>
7500#else
7501#ifdef HAVE_SYS_TIME_H
7502#include <sys/time.h>
7503#else
7504#include <time.h>
7505#endif
7506#endif
7507#ifdef HAVE_UTIME_H
7508#include <utime.h>
7509#endif
7510int
7511main ()
7512{
7513static struct utimbuf x; x.actime = x.modtime;
7514 ;
7515 return 0;
7516}
7517_ACEOF
7518if ac_fn_c_try_compile "$LINENO"; then :
7519 emacs_cv_struct_utimbuf=yes
7520else
7521 emacs_cv_struct_utimbuf=no
7522fi
7523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7526$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7527if test $emacs_cv_struct_utimbuf = yes; then
7528
7529$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7530
7531fi
7532
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7534$as_echo_n "checking return type of signal handlers... " >&6; }
2018939f 7535if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7536 $as_echo_n "(cached) " >&6
7537else
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h. */
7540#include <sys/types.h>
7541#include <signal.h>
7542
7543int
7544main ()
7545{
7546return *(signal (0, 0)) (0) == 1;
7547 ;
7548 return 0;
7549}
7550_ACEOF
7551if ac_fn_c_try_compile "$LINENO"; then :
7552 ac_cv_type_signal=int
7553else
7554 ac_cv_type_signal=void
7555fi
7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557fi
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7559$as_echo "$ac_cv_type_signal" >&6; }
7560
7561cat >>confdefs.h <<_ACEOF
7562#define RETSIGTYPE $ac_cv_type_signal
7563_ACEOF
7564
7565
7566
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7568$as_echo_n "checking for speed_t... " >&6; }
2018939f 7569if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7570 $as_echo_n "(cached) " >&6
7571else
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h. */
7574#include <termios.h>
7575int
7576main ()
7577{
7578speed_t x = 1;
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583if ac_fn_c_try_compile "$LINENO"; then :
7584 emacs_cv_speed_t=yes
7585else
7586 emacs_cv_speed_t=no
7587fi
7588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7591$as_echo "$emacs_cv_speed_t" >&6; }
7592if test $emacs_cv_speed_t = yes; then
7593
7594$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7595
7596fi
7597
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7599$as_echo_n "checking for struct timeval... " >&6; }
2018939f 7600if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7601 $as_echo_n "(cached) " >&6
7602else
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604/* end confdefs.h. */
7605#ifdef TIME_WITH_SYS_TIME
7606#include <sys/time.h>
7607#include <time.h>
7608#else
7609#ifdef HAVE_SYS_TIME_H
7610#include <sys/time.h>
7611#else
7612#include <time.h>
7613#endif
7614#endif
7615int
7616main ()
7617{
7618static struct timeval x; x.tv_sec = x.tv_usec;
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623if ac_fn_c_try_compile "$LINENO"; then :
7624 emacs_cv_struct_timeval=yes
7625else
7626 emacs_cv_struct_timeval=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629fi
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7631$as_echo "$emacs_cv_struct_timeval" >&6; }
7632HAVE_TIMEVAL=$emacs_cv_struct_timeval
7633if test $emacs_cv_struct_timeval = yes; then
7634
7635$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7636
7637fi
7638
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7640$as_echo_n "checking for struct exception... " >&6; }
2018939f 7641if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7642 $as_echo_n "(cached) " >&6
7643else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645/* end confdefs.h. */
7646#include <math.h>
7647int
7648main ()
7649{
7650static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7651 ;
7652 return 0;
7653}
7654_ACEOF
7655if ac_fn_c_try_compile "$LINENO"; then :
7656 emacs_cv_struct_exception=yes
7657else
7658 emacs_cv_struct_exception=no
7659fi
7660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661fi
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7663$as_echo "$emacs_cv_struct_exception" >&6; }
7664HAVE_EXCEPTION=$emacs_cv_struct_exception
7665if test $emacs_cv_struct_exception != yes; then
7666
7667$as_echo "#define NO_MATHERR 1" >>confdefs.h
7668
7669fi
7670
7671for ac_header in sys/socket.h
7672do :
7673 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
2018939f 7674if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7675 cat >>confdefs.h <<_ACEOF
7676#define HAVE_SYS_SOCKET_H 1
7677_ACEOF
7678
7679fi
7680
7681done
7682
7683for ac_header in net/if.h
7684do :
7685 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7686#if HAVE_SYS_SOCKET_H
7687#include <sys/socket.h>
7688#endif
7689"
2018939f 7690if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7691 cat >>confdefs.h <<_ACEOF
7692#define HAVE_NET_IF_H 1
7693_ACEOF
7694
7695fi
7696
7697done
7698
7699
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7701$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
2018939f 7702if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
7703 $as_echo_n "(cached) " >&6
7704else
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h. */
7707#include <sys/types.h>
7708#include <time.h>
7709
7710int
7711main ()
7712{
7713struct tm tm;
7714 int *p = &tm.tm_sec;
7715 return !p;
7716 ;
7717 return 0;
7718}
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"; then :
7721 ac_cv_struct_tm=time.h
7722else
7723 ac_cv_struct_tm=sys/time.h
7724fi
7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726fi
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7728$as_echo "$ac_cv_struct_tm" >&6; }
7729if test $ac_cv_struct_tm = sys/time.h; then
7730
7731$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7732
7733fi
7734
7735ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7736#include <$ac_cv_struct_tm>
7737
7738"
2018939f 7739if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
7740
7741cat >>confdefs.h <<_ACEOF
7742#define HAVE_STRUCT_TM_TM_ZONE 1
7743_ACEOF
7744
7745
7746fi
7747
7748if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7749
7750$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7751
7752else
7753 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7754"
2018939f 7755if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
7756 ac_have_decl=1
7757else
7758 ac_have_decl=0
7759fi
7760
7761cat >>confdefs.h <<_ACEOF
7762#define HAVE_DECL_TZNAME $ac_have_decl
7763_ACEOF
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7766$as_echo_n "checking for tzname... " >&6; }
2018939f 7767if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
7768 $as_echo_n "(cached) " >&6
7769else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771/* end confdefs.h. */
7772#include <time.h>
7773#if !HAVE_DECL_TZNAME
7774extern char *tzname[];
7775#endif
7776
7777int
7778main ()
7779{
7780return tzname[0][0];
7781 ;
7782 return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_link "$LINENO"; then :
7786 ac_cv_var_tzname=yes
7787else
7788 ac_cv_var_tzname=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792fi
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7794$as_echo "$ac_cv_var_tzname" >&6; }
7795 if test $ac_cv_var_tzname = yes; then
7796
7797$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7798
7799 fi
7800fi
7801
7802ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7803"
2018939f 7804if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
7805
7806$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7807
7808fi
7809
7810ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7811#if HAVE_SYS_SOCKET_H
7812#include <sys/socket.h>
7813#endif
7814#if HAVE_NET_IF_H
7815#include <net/if.h>
7816#endif
7817"
2018939f 7818if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
7819
7820cat >>confdefs.h <<_ACEOF
7821#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7822_ACEOF
7823
7824
7825fi
7826ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7827#if HAVE_SYS_SOCKET_H
7828#include <sys/socket.h>
7829#endif
7830#if HAVE_NET_IF_H
7831#include <net/if.h>
7832#endif
7833"
2018939f 7834if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
7835
7836cat >>confdefs.h <<_ACEOF
7837#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7838_ACEOF
7839
7840
7841fi
7842ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7843#if HAVE_SYS_SOCKET_H
7844#include <sys/socket.h>
7845#endif
7846#if HAVE_NET_IF_H
7847#include <net/if.h>
7848#endif
7849"
2018939f 7850if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
7851
7852cat >>confdefs.h <<_ACEOF
7853#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7854_ACEOF
7855
7856
7857fi
7858ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7859#if HAVE_SYS_SOCKET_H
7860#include <sys/socket.h>
7861#endif
7862#if HAVE_NET_IF_H
7863#include <net/if.h>
7864#endif
7865"
2018939f 7866if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
7867
7868cat >>confdefs.h <<_ACEOF
7869#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7870_ACEOF
7871
7872
7873fi
7874ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7875#if HAVE_SYS_SOCKET_H
7876#include <sys/socket.h>
7877#endif
7878#if HAVE_NET_IF_H
7879#include <net/if.h>
7880#endif
7881"
2018939f 7882if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
7883
7884cat >>confdefs.h <<_ACEOF
7885#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7886_ACEOF
7887
7888
7889fi
7890
7891
7892
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7894$as_echo_n "checking for function prototypes... " >&6; }
7895if test "$ac_cv_prog_cc_c89" != no; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7897$as_echo "yes" >&6; }
7898
7899$as_echo "#define PROTOTYPES 1" >>confdefs.h
7900
7901
7902$as_echo "#define __PROTOTYPES 1" >>confdefs.h
7903
7904else
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
7907fi
7908
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7910$as_echo_n "checking for working volatile... " >&6; }
2018939f 7911if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
7912 $as_echo_n "(cached) " >&6
7913else
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h. */
7916
7917int
7918main ()
7919{
7920
7921volatile int x;
7922int * volatile y = (int *) 0;
7923return !x && !y;
7924 ;
7925 return 0;
7926}
7927_ACEOF
7928if ac_fn_c_try_compile "$LINENO"; then :
7929 ac_cv_c_volatile=yes
7930else
7931 ac_cv_c_volatile=no
7932fi
7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7936$as_echo "$ac_cv_c_volatile" >&6; }
7937if test $ac_cv_c_volatile = no; then
7938
7939$as_echo "#define volatile /**/" >>confdefs.h
7940
7941fi
7942
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7944$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
2018939f 7945if ${ac_cv_c_const+:} false; then :
067d23c9
KY
7946 $as_echo_n "(cached) " >&6
7947else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950
7951int
7952main ()
7953{
7954/* FIXME: Include the comments suggested by Paul. */
7955#ifndef __cplusplus
7956 /* Ultrix mips cc rejects this. */
7957 typedef int charset[2];
7958 const charset cs;
7959 /* SunOS 4.1.1 cc rejects this. */
7960 char const *const *pcpcc;
7961 char **ppc;
7962 /* NEC SVR4.0.2 mips cc rejects this. */
7963 struct point {int x, y;};
7964 static struct point const zero = {0,0};
7965 /* AIX XL C 1.02.0.0 rejects this.
7966 It does not let you subtract one const X* pointer from another in
7967 an arm of an if-expression whose if-part is not a constant
7968 expression */
7969 const char *g = "string";
7970 pcpcc = &g + (g ? g-g : 0);
7971 /* HPUX 7.0 cc rejects these. */
7972 ++pcpcc;
7973 ppc = (char**) pcpcc;
7974 pcpcc = (char const *const *) ppc;
7975 { /* SCO 3.2v4 cc rejects this. */
7976 char *t;
7977 char const *s = 0 ? (char *) 0 : (char const *) 0;
7978
7979 *t++ = 0;
7980 if (s) return 0;
7981 }
7982 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7983 int x[] = {25, 17};
7984 const int *foo = &x[0];
7985 ++foo;
7986 }
7987 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7988 typedef const int *iptr;
7989 iptr p = 0;
7990 ++p;
7991 }
7992 { /* AIX XL C 1.02.0.0 rejects this saying
7993 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7994 struct s { int j; const int *ap[3]; };
7995 struct s *b; b->j = 5;
7996 }
7997 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7998 const int foo = 10;
7999 if (!foo) return 0;
8000 }
8001 return !cs[0] && !zero.x;
8002#endif
8003
8004 ;
8005 return 0;
8006}
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009 ac_cv_c_const=yes
8010else
8011 ac_cv_c_const=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8016$as_echo "$ac_cv_c_const" >&6; }
8017if test $ac_cv_c_const = no; then
8018
8019$as_echo "#define const /**/" >>confdefs.h
8020
8021fi
8022
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8024$as_echo_n "checking for void * support... " >&6; }
2018939f 8025if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8026 $as_echo_n "(cached) " >&6
8027else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h. */
8030
8031int
8032main ()
8033{
8034void * foo;
8035 ;
8036 return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_compile "$LINENO"; then :
8040 emacs_cv_void_star=yes
8041else
8042 emacs_cv_void_star=no
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8047$as_echo "$emacs_cv_void_star" >&6; }
8048if test $emacs_cv_void_star = yes; then
8049 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8050
8051else
8052 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8053
8054fi
8055
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8057$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
2018939f 8058if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8059 $as_echo_n "(cached) " >&6
8060else
8061 ac_cv_c_bigendian=unknown
8062 # See if we're dealing with a universal compiler.
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h. */
8065#ifndef __APPLE_CC__
8066 not a universal capable compiler
8067 #endif
8068 typedef int dummy;
8069
8070_ACEOF
8071if ac_fn_c_try_compile "$LINENO"; then :
8072
8073 # Check for potential -arch flags. It is not universal unless
8074 # there are at least two -arch flags with different values.
8075 ac_arch=
8076 ac_prev=
8077 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8078 if test -n "$ac_prev"; then
8079 case $ac_word in
8080 i?86 | x86_64 | ppc | ppc64)
8081 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8082 ac_arch=$ac_word
8083 else
8084 ac_cv_c_bigendian=universal
8085 break
8086 fi
8087 ;;
8088 esac
8089 ac_prev=
8090 elif test "x$ac_word" = "x-arch"; then
8091 ac_prev=arch
8092 fi
8093 done
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 if test $ac_cv_c_bigendian = unknown; then
8097 # See if sys/param.h defines the BYTE_ORDER macro.
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h. */
8100#include <sys/types.h>
8101 #include <sys/param.h>
8102
8103int
8104main ()
8105{
8106#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8107 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8108 && LITTLE_ENDIAN)
8109 bogus endian macros
8110 #endif
8111
8112 ;
8113 return 0;
8114}
8115_ACEOF
8116if ac_fn_c_try_compile "$LINENO"; then :
8117 # It does; now see whether it defined to BIG_ENDIAN or not.
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h. */
8120#include <sys/types.h>
8121 #include <sys/param.h>
8122
8123int
8124main ()
8125{
8126#if BYTE_ORDER != BIG_ENDIAN
8127 not big endian
8128 #endif
8129
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134if ac_fn_c_try_compile "$LINENO"; then :
8135 ac_cv_c_bigendian=yes
8136else
8137 ac_cv_c_bigendian=no
8138fi
8139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140fi
8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 if test $ac_cv_c_bigendian = unknown; then
8144 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h. */
8147#include <limits.h>
8148
8149int
8150main ()
8151{
8152#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8153 bogus endian macros
8154 #endif
8155
8156 ;
8157 return 0;
8158}
8159_ACEOF
8160if ac_fn_c_try_compile "$LINENO"; then :
8161 # It does; now see whether it defined to _BIG_ENDIAN or not.
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163/* end confdefs.h. */
8164#include <limits.h>
8165
8166int
8167main ()
8168{
8169#ifndef _BIG_ENDIAN
8170 not big endian
8171 #endif
8172
8173 ;
8174 return 0;
8175}
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178 ac_cv_c_bigendian=yes
8179else
8180 ac_cv_c_bigendian=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 fi
8186 if test $ac_cv_c_bigendian = unknown; then
8187 # Compile a test program.
8188 if test "$cross_compiling" = yes; then :
8189 # Try to guess by grepping values from an object file.
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191/* end confdefs.h. */
8192short int ascii_mm[] =
8193 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8194 short int ascii_ii[] =
8195 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8196 int use_ascii (int i) {
8197 return ascii_mm[i] + ascii_ii[i];
8198 }
8199 short int ebcdic_ii[] =
8200 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8201 short int ebcdic_mm[] =
8202 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8203 int use_ebcdic (int i) {
8204 return ebcdic_mm[i] + ebcdic_ii[i];
8205 }
8206 extern int foo;
8207
8208int
8209main ()
8210{
8211return use_ascii (foo) == use_ebcdic (foo);
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_compile "$LINENO"; then :
8217 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8218 ac_cv_c_bigendian=yes
8219 fi
8220 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8221 if test "$ac_cv_c_bigendian" = unknown; then
8222 ac_cv_c_bigendian=no
8223 else
8224 # finding both strings is unlikely to happen, but who knows?
8225 ac_cv_c_bigendian=unknown
8226 fi
8227 fi
8228fi
8229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h. */
8233$ac_includes_default
8234int
8235main ()
8236{
8237
8238 /* Are we little or big endian? From Harbison&Steele. */
8239 union
8240 {
8241 long int l;
8242 char c[sizeof (long int)];
8243 } u;
8244 u.l = 1;
8245 return u.c[sizeof (long int) - 1] == 1;
8246
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_run "$LINENO"; then :
8252 ac_cv_c_bigendian=no
8253else
8254 ac_cv_c_bigendian=yes
8255fi
8256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8257 conftest.$ac_objext conftest.beam conftest.$ac_ext
8258fi
8259
8260 fi
8261fi
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8263$as_echo "$ac_cv_c_bigendian" >&6; }
8264 case $ac_cv_c_bigendian in #(
8265 yes)
8266 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8267;; #(
8268 no)
8269 ;; #(
8270 universal)
8271
8272$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8273
8274 ;; #(
8275 *)
2018939f 8276 as_fn_error $? "unknown endianness
067d23c9
KY
8277 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8278 esac
8279
8280
7cae64b4
PE
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8282$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8283if ${emacs_cv_attribute_aligned+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288char __attribute__ ((__aligned__ (1 << 3))) c;
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_compile "$LINENO"; then :
8298 emacs_cv_attribute_aligned=yes
8299else
8300 emacs_cv_attribute_aligned=no
8301fi
8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303fi
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8305$as_echo "$emacs_cv_attribute_aligned" >&6; }
8306if test $emacs_cv_attribute_aligned = yes; then
8307
8308$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8309
8310fi
8311
067d23c9
KY
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8313$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8314set x ${MAKE-make}
8315ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2018939f 8316if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8317 $as_echo_n "(cached) " >&6
8318else
8319 cat >conftest.make <<\_ACEOF
8320SHELL = /bin/sh
8321all:
8322 @echo '@@@%%%=$(MAKE)=@@@%%%'
8323_ACEOF
2018939f 8324# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8325case `${MAKE-make} -f conftest.make 2>/dev/null` in
8326 *@@@%%%=?*=@@@%%%*)
8327 eval ac_cv_prog_make_${ac_make}_set=yes;;
8328 *)
8329 eval ac_cv_prog_make_${ac_make}_set=no;;
8330esac
8331rm -f conftest.make
8332fi
8333if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335$as_echo "yes" >&6; }
8336 SET_MAKE=
8337else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339$as_echo "no" >&6; }
8340 SET_MAKE="MAKE=${MAKE-make}"
8341fi
8342
8343
8344DEPFLAGS=
8345MKDEPDIR=":"
8346deps_frag=deps.mk
8347if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8349$as_echo_n "checking whether we are using GNU Make... " >&6; }
8350 HAVE_GNU_MAKE=no
8351 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8352 if test "x$testval" != x; then
8353 HAVE_GNU_MAKE=yes
8354 else
8355 ac_enable_autodepend=no
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8358$as_echo "$HAVE_GNU_MAKE" >&6; }
8359 if test $HAVE_GNU_MAKE = yes; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8361$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8362 SAVE_CFLAGS="$CFLAGS"
8363 CFLAGS="$CFLAGS -MMD -MF deps.d"
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h. */
8366
8367int
8368main ()
8369{
8370
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_compile "$LINENO"; then :
8376
8377else
8378 ac_enable_autodepend=no
8379fi
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 CFLAGS="$SAVE_CFLAGS"
8382 test -f deps.d || ac_enable_autodepend=no
8383 rm -rf deps.d
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8385$as_echo "$ac_enable_autodepend" >&6; }
8386 fi
8387 if test $ac_enable_autodepend = yes; then
8388 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8389 ## In parallel builds, another make might create depdir between
8390 ## the first test and mkdir, so stick another test on the end.
8391 ## Or use mkinstalldirs? mkdir -p is not portable.
8392 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8393 deps_frag=autodeps.mk
8394 fi
8395fi
8396deps_frag=$srcdir/src/$deps_frag
8397
8398
8399
8400
8401
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8403$as_echo_n "checking for long file names... " >&6; }
2018939f 8404if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8405 $as_echo_n "(cached) " >&6
8406else
8407 ac_cv_sys_long_file_names=yes
8408# Test for long file names in all the places we know might matter:
8409# . the current directory, where building will happen
8410# $prefix/lib where we will be installing things
8411# $exec_prefix/lib likewise
8412# $TMPDIR if set, where it might want to write temporary files
8413# /tmp where it might want to write temporary files
8414# /var/tmp likewise
8415# /usr/tmp likewise
8416for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8417 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8418 # in the usual case where exec_prefix is '${prefix}'.
8419 case $ac_dir in #(
8420 . | /* | ?:[\\/]*) ;; #(
8421 *) continue;;
8422 esac
8423 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8424 ac_xdir=$ac_dir/cf$$
8425 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8426 ac_tf1=$ac_xdir/conftest9012345
8427 ac_tf2=$ac_xdir/conftest9012346
8428 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8429 ac_cv_sys_long_file_names=no
8430 rm -f -r "$ac_xdir" 2>/dev/null
8431 test $ac_cv_sys_long_file_names = no && break
8432done
8433fi
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8435$as_echo "$ac_cv_sys_long_file_names" >&6; }
8436if test $ac_cv_sys_long_file_names = yes; then
8437
8438$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8439
8440fi
8441
8442
8443#### Choose a window system.
8444
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8446$as_echo_n "checking for X... " >&6; }
8447
8448
8449# Check whether --with-x was given.
8450if test "${with_x+set}" = set; then :
8451 withval=$with_x;
8452fi
8453
8454# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8455if test "x$with_x" = xno; then
8456 # The user explicitly disabled X.
8457 have_x=disabled
8458else
8459 case $x_includes,$x_libraries in #(
2018939f
AS
8460 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8461 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8462 $as_echo_n "(cached) " >&6
8463else
8464 # One or both of the vars are not set, and there is no cached value.
8465ac_x_includes=no ac_x_libraries=no
8466rm -f -r conftest.dir
8467if mkdir conftest.dir; then
8468 cd conftest.dir
8469 cat >Imakefile <<'_ACEOF'
8470incroot:
8471 @echo incroot='${INCROOT}'
8472usrlibdir:
8473 @echo usrlibdir='${USRLIBDIR}'
8474libdir:
8475 @echo libdir='${LIBDIR}'
8476_ACEOF
8477 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8478 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8479 for ac_var in incroot usrlibdir libdir; do
8480 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8481 done
8482 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8483 for ac_extension in a so sl dylib la dll; do
8484 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8485 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8486 ac_im_usrlibdir=$ac_im_libdir; break
8487 fi
8488 done
8489 # Screen out bogus values from the imake configuration. They are
8490 # bogus both because they are the default anyway, and because
8491 # using them would break gcc on systems where it needs fixed includes.
8492 case $ac_im_incroot in
8493 /usr/include) ac_x_includes= ;;
8494 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8495 esac
8496 case $ac_im_usrlibdir in
8497 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8498 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8499 esac
8500 fi
8501 cd ..
8502 rm -f -r conftest.dir
8503fi
8504
8505# Standard set of common directories for X headers.
8506# Check X11 before X11Rn because it is often a symlink to the current release.
8507ac_x_header_dirs='
8508/usr/X11/include
8509/usr/X11R7/include
8510/usr/X11R6/include
8511/usr/X11R5/include
8512/usr/X11R4/include
8513
8514/usr/include/X11
8515/usr/include/X11R7
8516/usr/include/X11R6
8517/usr/include/X11R5
8518/usr/include/X11R4
8519
8520/usr/local/X11/include
8521/usr/local/X11R7/include
8522/usr/local/X11R6/include
8523/usr/local/X11R5/include
8524/usr/local/X11R4/include
8525
8526/usr/local/include/X11
8527/usr/local/include/X11R7
8528/usr/local/include/X11R6
8529/usr/local/include/X11R5
8530/usr/local/include/X11R4
8531
8532/usr/X386/include
8533/usr/x386/include
8534/usr/XFree86/include/X11
8535
8536/usr/include
8537/usr/local/include
8538/usr/unsupported/include
8539/usr/athena/include
8540/usr/local/x11r5/include
8541/usr/lpp/Xamples/include
8542
8543/usr/openwin/include
8544/usr/openwin/share/include'
8545
8546if test "$ac_x_includes" = no; then
8547 # Guess where to find include files, by looking for Xlib.h.
8548 # First, try using that file with no special directory specified.
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h. */
8551#include <X11/Xlib.h>
8552_ACEOF
8553if ac_fn_c_try_cpp "$LINENO"; then :
8554 # We can compile using X headers with no special include directory.
8555ac_x_includes=
8556else
8557 for ac_dir in $ac_x_header_dirs; do
8558 if test -r "$ac_dir/X11/Xlib.h"; then
8559 ac_x_includes=$ac_dir
8560 break
8561 fi
8562done
8563fi
2018939f 8564rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8565fi # $ac_x_includes = no
8566
8567if test "$ac_x_libraries" = no; then
8568 # Check for the libraries.
8569 # See if we find them without any special options.
8570 # Don't add to $LIBS permanently.
8571 ac_save_LIBS=$LIBS
8572 LIBS="-lX11 $LIBS"
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574/* end confdefs.h. */
8575#include <X11/Xlib.h>
8576int
8577main ()
8578{
8579XrmInitialize ()
8580 ;
8581 return 0;
8582}
8583_ACEOF
8584if ac_fn_c_try_link "$LINENO"; then :
8585 LIBS=$ac_save_LIBS
8586# We can link X programs with no special library path.
8587ac_x_libraries=
8588else
8589 LIBS=$ac_save_LIBS
8590for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8591do
8592 # Don't even attempt the hair of trying to link an X program!
8593 for ac_extension in a so sl dylib la dll; do
8594 if test -r "$ac_dir/libX11.$ac_extension"; then
8595 ac_x_libraries=$ac_dir
8596 break 2
8597 fi
8598 done
8599done
8600fi
8601rm -f core conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603fi # $ac_x_libraries = no
8604
8605case $ac_x_includes,$ac_x_libraries in #(
8606 no,* | *,no | *\'*)
8607 # Didn't find X, or a directory has "'" in its name.
8608 ac_cv_have_x="have_x=no";; #(
8609 *)
8610 # Record where we found X for the cache.
8611 ac_cv_have_x="have_x=yes\
8612 ac_x_includes='$ac_x_includes'\
8613 ac_x_libraries='$ac_x_libraries'"
8614esac
8615fi
8616;; #(
8617 *) have_x=yes;;
8618 esac
8619 eval "$ac_cv_have_x"
8620fi # $with_x != no
8621
8622if test "$have_x" != yes; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8624$as_echo "$have_x" >&6; }
8625 no_x=yes
8626else
8627 # If each of the values was on the command line, it overrides each guess.
8628 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8629 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8630 # Update the cache value to reflect the command line values.
8631 ac_cv_have_x="have_x=yes\
8632 ac_x_includes='$x_includes'\
8633 ac_x_libraries='$x_libraries'"
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8635$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8636fi
8637
8638if test "$no_x" = yes; then
8639 window_system=none
8640else
8641 window_system=x11
8642fi
8643
8644## Workaround for bug in autoconf <= 2.62.
8645## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8646## No need to do anything special for these standard directories.
8647if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8648
8649 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8650
8651fi
8652
8653LD_SWITCH_X_SITE_AUX=
8654LD_SWITCH_X_SITE_AUX_RPATH=
8655if test "${x_libraries}" != NONE; then
8656 if test -n "${x_libraries}"; then
8657 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8658 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8659 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8660 fi
8661 x_default_search_path=""
8662 x_search_path=${x_libraries}
8663 if test -z "${x_search_path}"; then
8664 x_search_path=/usr/lib
8665 fi
8666 for x_library in `echo ${x_search_path}: | \
8667 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8668 x_search_path="\
8669${x_library}/X11/%L/%T/%N%C%S:\
8670${x_library}/X11/%l/%T/%N%C%S:\
8671${x_library}/X11/%T/%N%C%S:\
8672${x_library}/X11/%L/%T/%N%S:\
8673${x_library}/X11/%l/%T/%N%S:\
8674${x_library}/X11/%T/%N%S"
8675 if test x"${x_default_search_path}" = x; then
8676 x_default_search_path=${x_search_path}
8677 else
8678 x_default_search_path="${x_search_path}:${x_default_search_path}"
8679 fi
8680 done
8681fi
8682
8683
8684
8685if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8686 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8687fi
8688
8689if test x"${x_includes}" = x; then
8690 bitmapdir=/usr/include/X11/bitmaps
8691else
8692 # accumulate include directories that have X11 bitmap subdirectories
8693 bmd_acc="dummyval"
8694 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8695 if test -d "${bmd}/X11/bitmaps"; then
8696 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8697 fi
8698 if test -d "${bmd}/bitmaps"; then
8699 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8700 fi
8701 done
8702 if test ${bmd_acc} != "dummyval"; then
8703 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8704 fi
8705fi
8706
8707HAVE_NS=no
8708NS_IMPL_COCOA=no
8709NS_IMPL_GNUSTEP=no
8710tmp_CPPFLAGS="$CPPFLAGS"
8711tmp_CFLAGS="$CFLAGS"
8712CPPFLAGS="$CPPFLAGS -x objective-c"
8713CFLAGS="$CFLAGS -x objective-c"
8714TEMACS_LDFLAGS2="\${LDFLAGS}"
8715if test "${with_ns}" != no; then
8716 if test "${opsys}" = darwin; then
8717 NS_IMPL_COCOA=yes
8718 ns_appdir=`pwd`/nextstep/Emacs.app
8719 ns_appbindir=${ns_appdir}/Contents/MacOS/
8720 ns_appresdir=${ns_appdir}/Contents/Resources
8721 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8722 elif test -f $GNUSTEP_CONFIG_FILE; then
8723 NS_IMPL_GNUSTEP=yes
8724 ns_appdir=`pwd`/nextstep/Emacs.app
8725 ns_appbindir=${ns_appdir}/
8726 ns_appresdir=${ns_appdir}/Resources
8727 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8728 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8729 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8730 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8731 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8732 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8733 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8734 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8735 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8736 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8737 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8738 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8739 LIB_STANDARD=
8740 START_FILES=
8741 TEMACS_LDFLAGS2=
8742 fi
8743 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
2018939f 8744if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
8745 HAVE_NS=yes
8746else
2018939f 8747 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
8748 files are missing or cannot be compiled." "$LINENO" 5
8749fi
8750
8751
8752 NS_HAVE_NSINTEGER=yes
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h. */
8755#include <Foundation/NSObjCRuntime.h>
8756int
8757main ()
8758{
8759NSInteger i;
8760 ;
8761 return 0;
8762}
8763_ACEOF
8764if ac_fn_c_try_compile "$LINENO"; then :
8765 ns_have_nsinteger=yes
8766else
8767 ns_have_nsinteger=no
8768fi
8769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 if test $ns_have_nsinteger = no; then
8771 NS_HAVE_NSINTEGER=no
8772 fi
8773fi
8774
8775
8776ns_frag=/dev/null
8777NS_OBJ=
8778NS_SUPPORT=
8779if test "${HAVE_NS}" = yes; then
8780 window_system=nextstep
8781 with_xft=no
8782 # set up packaging dirs
8783 exec_prefix=${ns_appbindir}
8784 libexecdir=${ns_appbindir}/libexec
8785 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8786 prefix=${ns_appresdir}
8787 fi
8788 ns_frag=$srcdir/src/ns.mk
8789 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8790 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8791fi
8792CFLAGS="$tmp_CFLAGS"
8793CPPFLAGS="$tmp_CPPFLAGS"
8794
8795
8796
8797
8798
8799case "${window_system}" in
8800 x11 )
8801 HAVE_X_WINDOWS=yes
8802 HAVE_X11=yes
8803 case "${with_x_toolkit}" in
8804 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8805 motif ) USE_X_TOOLKIT=MOTIF ;;
8806 gtk ) with_gtk=yes
8807 USE_X_TOOLKIT=none ;;
8808 gtk3 ) with_gtk3=yes
8809 USE_X_TOOLKIT=none ;;
8810 no ) USE_X_TOOLKIT=none ;;
8811 * ) USE_X_TOOLKIT=maybe ;;
8812 esac
8813 ;;
8814 nextstep | none )
8815 HAVE_X_WINDOWS=no
8816 HAVE_X11=no
8817 USE_X_TOOLKIT=none
8818 ;;
8819esac
8820
8821if test "$window_system" = none && test "X$with_x" != "Xno"; then
8822 # Extract the first word of "X", so it can be a program name with args.
8823set dummy X; ac_word=$2
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825$as_echo_n "checking for $ac_word... " >&6; }
2018939f 8826if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
8827 $as_echo_n "(cached) " >&6
8828else
8829 if test -n "$HAVE_XSERVER"; then
8830 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8831else
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_prog_HAVE_XSERVER="true"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843done
8844 done
8845IFS=$as_save_IFS
8846
8847 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8848fi
8849fi
8850HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8851if test -n "$HAVE_XSERVER"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8853$as_echo "$HAVE_XSERVER" >&6; }
8854else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
8857fi
8858
8859
8860 if test "$HAVE_XSERVER" = true ||
8861 test -n "$DISPLAY" ||
8862 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 8863 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
8864were found. You should install the relevant development files for X
8865and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8866sure you have development files for image handling, i.e.
8867tiff, gif, jpeg, png and xpm.
8868If you are sure you want Emacs compiled without X window support, pass
8869 --without-x
8870to configure." "$LINENO" 5
8871 fi
8872fi
8873
8874### If we're using X11, we should use the X menu package.
8875HAVE_MENUS=no
8876case ${HAVE_X11} in
8877 yes ) HAVE_MENUS=yes ;;
8878esac
8879
8880# Do the opsystem or machine files prohibit the use of the GNU malloc?
8881# Assume not, until told otherwise.
8882GNU_MALLOC=yes
8883doug_lea_malloc=yes
8884ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
2018939f 8885if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
8886
8887else
8888 doug_lea_malloc=no
8889fi
8890
8891ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
2018939f 8892if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
8893
8894else
8895 doug_lea_malloc=no
8896fi
8897
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8899$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
2018939f 8900if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
8901 $as_echo_n "(cached) " >&6
8902else
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h. */
8905extern void (* __after_morecore_hook)();
8906int
8907main ()
8908{
8909__after_morecore_hook = 0
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914if ac_fn_c_try_link "$LINENO"; then :
8915 emacs_cv_var___after_morecore_hook=yes
8916else
8917 emacs_cv_var___after_morecore_hook=no
8918fi
8919rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921fi
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8923$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8924if test $emacs_cv_var___after_morecore_hook = no; then
8925 doug_lea_malloc=no
8926fi
8927
8928
8929system_malloc=no
8930case "$opsys" in
8931 ## darwin ld insists on the use of malloc routines in the System framework.
8932 darwin|sol2-10) system_malloc=yes ;;
8933esac
8934
8935if test "${system_malloc}" = "yes"; then
8936
8937$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8938
8939 GNU_MALLOC=no
8940 GNU_MALLOC_reason="
8941 (The GNU allocators don't work with this system configuration.)"
8942 GMALLOC_OBJ=
8943 VMLIMIT_OBJ=
8944else
8945 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8946 VMLIMIT_OBJ=vm-limit.o
8947fi
8948
8949
8950
8951if test "$doug_lea_malloc" = "yes" ; then
8952 if test "$GNU_MALLOC" = yes ; then
8953 GNU_MALLOC_reason="
8954 (Using Doug Lea's new malloc from the GNU C Library.)"
8955 fi
8956
8957$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8958
8959
8960 ## Use mmap directly for allocating larger buffers.
8961 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8962 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8963 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8964 case "$opsys" in
8965 gnu*) REL_ALLOC=no ;;
8966 esac
8967fi
8968
8969if test x"${REL_ALLOC}" = x; then
8970 REL_ALLOC=${GNU_MALLOC}
8971fi
8972
8973use_mmap_for_buffers=no
8974case "$opsys" in
8975 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8976esac
8977
8978
8979
8980
8981 for ac_header in $ac_header_list
8982do :
8983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8984ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8985"
2018939f 8986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
8987 cat >>confdefs.h <<_ACEOF
8988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8989_ACEOF
8990
8991fi
8992
8993done
8994
8995
8996
8997
8998
8999
9000
9001
9002for ac_func in getpagesize
9003do :
9004 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
2018939f 9005if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9006 cat >>confdefs.h <<_ACEOF
9007#define HAVE_GETPAGESIZE 1
9008_ACEOF
9009
9010fi
9011done
9012
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9014$as_echo_n "checking for working mmap... " >&6; }
2018939f 9015if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9016 $as_echo_n "(cached) " >&6
9017else
9018 if test "$cross_compiling" = yes; then :
9019 ac_cv_func_mmap_fixed_mapped=no
9020else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h. */
9023$ac_includes_default
9024/* malloc might have been renamed as rpl_malloc. */
9025#undef malloc
9026
9027/* Thanks to Mike Haertel and Jim Avera for this test.
9028 Here is a matrix of mmap possibilities:
9029 mmap private not fixed
9030 mmap private fixed at somewhere currently unmapped
9031 mmap private fixed at somewhere already mapped
9032 mmap shared not fixed
9033 mmap shared fixed at somewhere currently unmapped
9034 mmap shared fixed at somewhere already mapped
9035 For private mappings, we should verify that changes cannot be read()
9036 back from the file, nor mmap's back from the file at a different
9037 address. (There have been systems where private was not correctly
9038 implemented like the infamous i386 svr4.0, and systems where the
9039 VM page cache was not coherent with the file system buffer cache
9040 like early versions of FreeBSD and possibly contemporary NetBSD.)
9041 For shared mappings, we should conversely verify that changes get
9042 propagated back to all the places they're supposed to be.
9043
9044 Grep wants private fixed already mapped.
9045 The main things grep needs to know about mmap are:
9046 * does it exist and is it safe to write into the mmap'd area
9047 * how to use it (BSD variants) */
9048
9049#include <fcntl.h>
9050#include <sys/mman.h>
9051
9052#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9053char *malloc ();
9054#endif
9055
9056/* This mess was copied from the GNU getpagesize.h. */
9057#ifndef HAVE_GETPAGESIZE
9058# ifdef _SC_PAGESIZE
9059# define getpagesize() sysconf(_SC_PAGESIZE)
9060# else /* no _SC_PAGESIZE */
9061# ifdef HAVE_SYS_PARAM_H
9062# include <sys/param.h>
9063# ifdef EXEC_PAGESIZE
9064# define getpagesize() EXEC_PAGESIZE
9065# else /* no EXEC_PAGESIZE */
9066# ifdef NBPG
9067# define getpagesize() NBPG * CLSIZE
9068# ifndef CLSIZE
9069# define CLSIZE 1
9070# endif /* no CLSIZE */
9071# else /* no NBPG */
9072# ifdef NBPC
9073# define getpagesize() NBPC
9074# else /* no NBPC */
9075# ifdef PAGESIZE
9076# define getpagesize() PAGESIZE
9077# endif /* PAGESIZE */
9078# endif /* no NBPC */
9079# endif /* no NBPG */
9080# endif /* no EXEC_PAGESIZE */
9081# else /* no HAVE_SYS_PARAM_H */
9082# define getpagesize() 8192 /* punt totally */
9083# endif /* no HAVE_SYS_PARAM_H */
9084# endif /* no _SC_PAGESIZE */
9085
9086#endif /* no HAVE_GETPAGESIZE */
9087
9088int
9089main ()
9090{
9091 char *data, *data2, *data3;
2018939f 9092 const char *cdata2;
067d23c9
KY
9093 int i, pagesize;
9094 int fd, fd2;
9095
9096 pagesize = getpagesize ();
9097
9098 /* First, make a file with some known garbage in it. */
9099 data = (char *) malloc (pagesize);
9100 if (!data)
9101 return 1;
9102 for (i = 0; i < pagesize; ++i)
9103 *(data + i) = rand ();
9104 umask (0);
9105 fd = creat ("conftest.mmap", 0600);
9106 if (fd < 0)
9107 return 2;
9108 if (write (fd, data, pagesize) != pagesize)
9109 return 3;
9110 close (fd);
9111
9112 /* Next, check that the tail of a page is zero-filled. File must have
9113 non-zero length, otherwise we risk SIGBUS for entire page. */
9114 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9115 if (fd2 < 0)
9116 return 4;
2018939f
AS
9117 cdata2 = "";
9118 if (write (fd2, cdata2, 1) != 1)
067d23c9 9119 return 5;
2018939f 9120 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9121 if (data2 == MAP_FAILED)
9122 return 6;
9123 for (i = 0; i < pagesize; ++i)
9124 if (*(data2 + i))
9125 return 7;
9126 close (fd2);
9127 if (munmap (data2, pagesize))
9128 return 8;
9129
9130 /* Next, try to mmap the file at a fixed address which already has
9131 something else allocated at it. If we can, also make sure that
9132 we see the same garbage. */
9133 fd = open ("conftest.mmap", O_RDWR);
9134 if (fd < 0)
9135 return 9;
9136 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9137 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9138 return 10;
9139 for (i = 0; i < pagesize; ++i)
9140 if (*(data + i) != *(data2 + i))
9141 return 11;
9142
9143 /* Finally, make sure that changes to the mapped area do not
9144 percolate back to the file as seen by read(). (This is a bug on
9145 some variants of i386 svr4.0.) */
9146 for (i = 0; i < pagesize; ++i)
9147 *(data2 + i) = *(data2 + i) + 1;
9148 data3 = (char *) malloc (pagesize);
9149 if (!data3)
9150 return 12;
9151 if (read (fd, data3, pagesize) != pagesize)
9152 return 13;
9153 for (i = 0; i < pagesize; ++i)
9154 if (*(data + i) != *(data3 + i))
9155 return 14;
9156 close (fd);
9157 return 0;
9158}
9159_ACEOF
9160if ac_fn_c_try_run "$LINENO"; then :
9161 ac_cv_func_mmap_fixed_mapped=yes
9162else
9163 ac_cv_func_mmap_fixed_mapped=no
9164fi
9165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9166 conftest.$ac_objext conftest.beam conftest.$ac_ext
9167fi
9168
9169fi
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9171$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9172if test $ac_cv_func_mmap_fixed_mapped = yes; then
9173
9174$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9175
9176fi
9177rm -f conftest.mmap conftest.txt
9178
9179if test $use_mmap_for_buffers = yes; then
9180
9181$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9182
9183 REL_ALLOC=no
9184fi
9185
9186LIBS="$LIBS_SYSTEM $LIBS"
9187
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9189$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
2018939f 9190if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9191 $as_echo_n "(cached) " >&6
9192else
9193 ac_check_lib_save_LIBS=$LIBS
9194LIBS="-ldnet $LIBS"
9195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h. */
9197
9198/* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201#ifdef __cplusplus
9202extern "C"
9203#endif
9204char dnet_ntoa ();
9205int
9206main ()
9207{
9208return dnet_ntoa ();
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_link "$LINENO"; then :
9214 ac_cv_lib_dnet_dnet_ntoa=yes
9215else
9216 ac_cv_lib_dnet_dnet_ntoa=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220LIBS=$ac_check_lib_save_LIBS
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9223$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
2018939f 9224if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9225 cat >>confdefs.h <<_ACEOF
9226#define HAVE_LIBDNET 1
9227_ACEOF
9228
9229 LIBS="-ldnet $LIBS"
9230
9231fi
9232
9233
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9235$as_echo_n "checking for main in -lXbsd... " >&6; }
2018939f 9236if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9237 $as_echo_n "(cached) " >&6
9238else
9239 ac_check_lib_save_LIBS=$LIBS
9240LIBS="-lXbsd $LIBS"
9241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h. */
9243
9244
9245int
9246main ()
9247{
9248return main ();
9249 ;
9250 return 0;
9251}
9252_ACEOF
9253if ac_fn_c_try_link "$LINENO"; then :
9254 ac_cv_lib_Xbsd_main=yes
9255else
9256 ac_cv_lib_Xbsd_main=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260LIBS=$ac_check_lib_save_LIBS
9261fi
9262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9263$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
2018939f 9264if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9265 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9266fi
9267
9268
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9270$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
2018939f 9271if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9272 $as_echo_n "(cached) " >&6
9273else
9274 ac_check_lib_save_LIBS=$LIBS
9275LIBS="-lpthreads $LIBS"
9276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277/* end confdefs.h. */
9278
9279/* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9282#ifdef __cplusplus
9283extern "C"
9284#endif
9285char cma_open ();
9286int
9287main ()
9288{
9289return cma_open ();
9290 ;
9291 return 0;
9292}
9293_ACEOF
9294if ac_fn_c_try_link "$LINENO"; then :
9295 ac_cv_lib_pthreads_cma_open=yes
9296else
9297 ac_cv_lib_pthreads_cma_open=no
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301LIBS=$ac_check_lib_save_LIBS
9302fi
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9304$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
2018939f 9305if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9306 cat >>confdefs.h <<_ACEOF
9307#define HAVE_LIBPTHREADS 1
9308_ACEOF
9309
9310 LIBS="-lpthreads $LIBS"
9311
9312fi
9313
9314
9315## Note: when using cpp in s/aix4.2.h, this definition depended on
9316## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9317## the system file was sourced. Hence the value of LIBS_SYSTEM
9318## added to LIBS in configure would never contain the pthreads part,
9319## but the value used in Makefiles might. FIXME?
9320##
9321## -lpthreads seems to be necessary for Xlib in X11R6, and should
9322## be harmless on older versions of X where it happens to exist.
9323test "$opsys" = "aix4-2" && \
9324 test $ac_cv_lib_pthreads_cma_open = yes && \
9325 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9326
9327
9328case ${host_os} in
9329aix*)
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9331$as_echo_n "checking for -bbigtoc option... " >&6; }
2018939f 9332if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9333 $as_echo_n "(cached) " >&6
9334else
9335
9336 case $GCC in
9337 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9338 *) gdb_cv_bigtoc=-bbigtoc ;;
9339 esac
9340
9341 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h. */
9344
9345int
9346main ()
9347{
9348int i;
9349 ;
9350 return 0;
9351}
9352_ACEOF
9353if ac_fn_c_try_link "$LINENO"; then :
9354
9355else
9356 gdb_cv_bigtoc=
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9363$as_echo "$gdb_cv_bigtoc" >&6; }
9364 ;;
9365esac
9366
9367# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9368# used for the tests that follow. We set them back to REAL_CFLAGS and
9369# REAL_CPPFLAGS later on.
9370
9371REAL_CFLAGS="$CFLAGS"
9372REAL_CPPFLAGS="$CPPFLAGS"
9373
9374if test "${HAVE_X11}" = "yes"; then
9375 DEFS="$C_SWITCH_X_SITE $DEFS"
9376 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9377 LIBS="-lX11 $LIBS"
9378 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9379 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9380
9381 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9382 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9383 # but it's more convenient here to set LD_RUN_PATH
9384 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9385 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9386 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9387 export LD_RUN_PATH
9388 fi
9389
9390 if test "${opsys}" = "gnu-linux"; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9392$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h. */
9395
9396int
9397main ()
9398{
9399XOpenDisplay ("foo");
9400 ;
9401 return 0;
9402}
9403_ACEOF
9404if ac_fn_c_try_link "$LINENO"; then :
9405 xlinux_first_failure=no
9406else
9407 xlinux_first_failure=yes
9408fi
9409rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 if test "${xlinux_first_failure}" = "yes"; then
9412 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9413 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9414 OLD_CPPFLAGS="$CPPFLAGS"
9415 OLD_LIBS="$LIBS"
9416 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9417 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9418 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9419 LIBS="$LIBS -b i486-linuxaout"
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h. */
9422
9423int
9424main ()
9425{
9426XOpenDisplay ("foo");
9427 ;
9428 return 0;
9429}
9430_ACEOF
9431if ac_fn_c_try_link "$LINENO"; then :
9432 xlinux_second_failure=no
9433else
9434 xlinux_second_failure=yes
9435fi
9436rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 if test "${xlinux_second_failure}" = "yes"; then
9439 # If we get the same failure with -b, there is no use adding -b.
9440 # So take it out. This plays safe.
9441 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9442 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9443 CPPFLAGS="$OLD_CPPFLAGS"
9444 LIBS="$OLD_LIBS"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9449$as_echo "yes" >&6; }
9450 fi
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453$as_echo "no" >&6; }
9454 fi
9455 fi
9456
9457 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9458 # header files included from there.
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9460$as_echo_n "checking for Xkb... " >&6; }
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h. */
9463#include <X11/Xlib.h>
9464#include <X11/XKBlib.h>
9465int
9466main ()
9467{
9468XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9469 ;
9470 return 0;
9471}
9472_ACEOF
9473if ac_fn_c_try_link "$LINENO"; then :
9474 emacs_xkb=yes
9475else
9476 emacs_xkb=no
9477fi
9478rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9481$as_echo "$emacs_xkb" >&6; }
9482 if test $emacs_xkb = yes; then
9483
9484$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9485
9486 fi
9487
9488 for ac_func in XrmSetDatabase XScreenResourceString \
9489XScreenNumberOfScreen XSetWMProtocols
9490do :
9491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9492ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9493if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9494 cat >>confdefs.h <<_ACEOF
9495#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9496_ACEOF
9497
9498fi
9499done
9500
9501fi
9502
9503if test "${window_system}" = "x11"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9505$as_echo_n "checking X11 version 6... " >&6; }
2018939f 9506 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9507 $as_echo_n "(cached) " >&6
9508else
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h. */
9511#include <X11/Xlib.h>
9512int
9513main ()
9514{
9515#if XlibSpecificationRelease < 6
9516fail;
9517#endif
9518
9519 ;
9520 return 0;
9521}
9522_ACEOF
9523if ac_fn_c_try_link "$LINENO"; then :
9524 emacs_cv_x11_version_6=yes
9525else
9526 emacs_cv_x11_version_6=no
9527fi
9528rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530fi
9531
9532 if test $emacs_cv_x11_version_6 = yes; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9534$as_echo "6 or newer" >&6; }
9535
9536$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9537
9538
9539$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9540
9541 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9542 ## XIM support.
9543 case "$opsys" in
9544 sol2-*) : ;;
9545 *)
9546$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9547
9548 ;;
9549 esac
9550 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9552$as_echo "before 6" >&6; }
9553 fi
9554fi
9555
9556
9557### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9558HAVE_RSVG=no
9559if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9560 if test "${with_rsvg}" != "no"; then
9561 RSVG_REQUIRED=2.11.0
9562 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9563
9564
9565 succeeded=no
9566
9567 # Extract the first word of "pkg-config", so it can be a program name with args.
9568set dummy pkg-config; ac_word=$2
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570$as_echo_n "checking for $ac_word... " >&6; }
2018939f 9571if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9572 $as_echo_n "(cached) " >&6
9573else
9574 case $PKG_CONFIG in
9575 [\\/]* | ?:[\\/]*)
9576 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9577 ;;
9578 *)
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580for as_dir in $PATH
9581do
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9589 fi
9590done
9591 done
9592IFS=$as_save_IFS
9593
9594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9595 ;;
9596esac
9597fi
9598PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9599if test -n "$PKG_CONFIG"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9601$as_echo "$PKG_CONFIG" >&6; }
9602else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604$as_echo "no" >&6; }
9605fi
9606
9607
9608
9609 if test "$PKG_CONFIG" = "no" ; then
9610 :
9611 else
9612 PKG_CONFIG_MIN_VERSION=0.9.0
9613 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9615$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9616
9617 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9619$as_echo "yes" >&6; }
9620 succeeded=yes
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9623$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9624 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9626$as_echo "$RSVG_CFLAGS" >&6; }
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9629$as_echo_n "checking RSVG_LIBS... " >&6; }
9630 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9632$as_echo "$RSVG_LIBS" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635$as_echo "no" >&6; }
9636 RSVG_CFLAGS=""
9637 RSVG_LIBS=""
9638 ## If we have a custom action on failure, don't print errors, but
9639 ## do set a variable so people can do so.
9640 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9641
9642 fi
9643
9644
9645
9646 else
9647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9649 fi
9650 fi
9651
9652 if test $succeeded = yes; then
9653 HAVE_RSVG=yes
9654 else
9655 :
9656 fi
9657
9658
9659
9660
9661 if test $HAVE_RSVG = yes; then
9662
9663$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9664
9665 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9666 LIBS="$RSVG_LIBS $LIBS"
9667 fi
9668 fi
9669fi
9670
9671HAVE_IMAGEMAGICK=no
9672if test "${HAVE_X11}" = "yes"; then
9673 if test "${with_imagemagick}" != "no"; then
9674 IMAGEMAGICK_MODULE="Wand"
9675
9676 succeeded=no
9677
9678 # Extract the first word of "pkg-config", so it can be a program name with args.
9679set dummy pkg-config; ac_word=$2
9680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9681$as_echo_n "checking for $ac_word... " >&6; }
2018939f 9682if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9683 $as_echo_n "(cached) " >&6
9684else
9685 case $PKG_CONFIG in
9686 [\\/]* | ?:[\\/]*)
9687 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9688 ;;
9689 *)
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 break 2
9700 fi
9701done
9702 done
9703IFS=$as_save_IFS
9704
9705 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9706 ;;
9707esac
9708fi
9709PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9710if test -n "$PKG_CONFIG"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9712$as_echo "$PKG_CONFIG" >&6; }
9713else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715$as_echo "no" >&6; }
9716fi
9717
9718
9719
9720 if test "$PKG_CONFIG" = "no" ; then
9721 :
9722 else
9723 PKG_CONFIG_MIN_VERSION=0.9.0
9724 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9726$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9727
9728 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9730$as_echo "yes" >&6; }
9731 succeeded=yes
9732
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9734$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9735 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9737$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9738
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9740$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9741 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9743$as_echo "$IMAGEMAGICK_LIBS" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
9747 IMAGEMAGICK_CFLAGS=""
9748 IMAGEMAGICK_LIBS=""
9749 ## If we have a custom action on failure, don't print errors, but
9750 ## do set a variable so people can do so.
9751 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9752
9753 fi
9754
9755
9756
9757 else
9758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9760 fi
9761 fi
9762
9763 if test $succeeded = yes; then
9764 HAVE_IMAGEMAGICK=yes
9765 else
9766 :
9767 fi
9768
9769
9770
9771
9772 if test $HAVE_IMAGEMAGICK = yes; then
9773
9774$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9775
9776 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9777 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9778 for ac_func in MagickExportImagePixels
9779do :
9780 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
2018939f 9781if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
9782 cat >>confdefs.h <<_ACEOF
9783#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9784_ACEOF
9785
9786fi
9787done
9788
9789 fi
9790 fi
9791fi
9792
9793
9794HAVE_GTK=no
9795if test "${with_gtk3}" = "yes"; then
9796 GLIB_REQUIRED=2.6
9797 GTK_REQUIRED=2.90
9798 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9799
9800
9801 succeeded=no
9802
9803 # Extract the first word of "pkg-config", so it can be a program name with args.
9804set dummy pkg-config; ac_word=$2
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806$as_echo_n "checking for $ac_word... " >&6; }
2018939f 9807if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9808 $as_echo_n "(cached) " >&6
9809else
9810 case $PKG_CONFIG in
9811 [\\/]* | ?:[\\/]*)
9812 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9813 ;;
9814 *)
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827 done
9828IFS=$as_save_IFS
9829
9830 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9831 ;;
9832esac
9833fi
9834PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9835if test -n "$PKG_CONFIG"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9837$as_echo "$PKG_CONFIG" >&6; }
9838else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840$as_echo "no" >&6; }
9841fi
9842
9843
9844
9845 if test "$PKG_CONFIG" = "no" ; then
9846 pkg_check_gtk=no
9847 else
9848 PKG_CONFIG_MIN_VERSION=0.9.0
9849 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9851$as_echo_n "checking for $GTK_MODULES... " >&6; }
9852
9853 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9855$as_echo "yes" >&6; }
9856 succeeded=yes
9857
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9859$as_echo_n "checking GTK_CFLAGS... " >&6; }
9860 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9862$as_echo "$GTK_CFLAGS" >&6; }
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9865$as_echo_n "checking GTK_LIBS... " >&6; }
9866 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9868$as_echo "$GTK_LIBS" >&6; }
9869 else
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
9872 GTK_CFLAGS=""
9873 GTK_LIBS=""
9874 ## If we have a custom action on failure, don't print errors, but
9875 ## do set a variable so people can do so.
9876 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9877
9878 fi
9879
9880
9881
9882 else
9883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9885 fi
9886 fi
9887
9888 if test $succeeded = yes; then
9889 pkg_check_gtk=yes
9890 else
9891 pkg_check_gtk=no
9892 fi
9893
9894 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 9895 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
9896 fi
9897fi
9898
9899if test "$pkg_check_gtk" != "yes"; then
9900 HAVE_GTK=no
9901if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9902 GLIB_REQUIRED=2.6
9903 GTK_REQUIRED=2.6
9904 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9905
9906
9907 succeeded=no
9908
9909 # Extract the first word of "pkg-config", so it can be a program name with args.
9910set dummy pkg-config; ac_word=$2
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912$as_echo_n "checking for $ac_word... " >&6; }
2018939f 9913if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9914 $as_echo_n "(cached) " >&6
9915else
9916 case $PKG_CONFIG in
9917 [\\/]* | ?:[\\/]*)
9918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9919 ;;
9920 *)
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922for as_dir in $PATH
9923do
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9931 fi
9932done
9933 done
9934IFS=$as_save_IFS
9935
9936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9937 ;;
9938esac
9939fi
9940PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9941if test -n "$PKG_CONFIG"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9943$as_echo "$PKG_CONFIG" >&6; }
9944else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
9947fi
9948
9949
9950
9951 if test "$PKG_CONFIG" = "no" ; then
9952 pkg_check_gtk=no
9953 else
9954 PKG_CONFIG_MIN_VERSION=0.9.0
9955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9957$as_echo_n "checking for $GTK_MODULES... " >&6; }
9958
9959 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9961$as_echo "yes" >&6; }
9962 succeeded=yes
9963
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9965$as_echo_n "checking GTK_CFLAGS... " >&6; }
9966 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9968$as_echo "$GTK_CFLAGS" >&6; }
9969
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9971$as_echo_n "checking GTK_LIBS... " >&6; }
9972 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9974$as_echo "$GTK_LIBS" >&6; }
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977$as_echo "no" >&6; }
9978 GTK_CFLAGS=""
9979 GTK_LIBS=""
9980 ## If we have a custom action on failure, don't print errors, but
9981 ## do set a variable so people can do so.
9982 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9983
9984 fi
9985
9986
9987
9988 else
9989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9991 fi
9992 fi
9993
9994 if test $succeeded = yes; then
9995 pkg_check_gtk=yes
9996 else
9997 pkg_check_gtk=no
9998 fi
9999
10000 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10001 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10002 fi
10003fi
10004fi
10005
10006GTK_OBJ=
10007if test x"$pkg_check_gtk" = xyes; then
10008
10009
10010
10011 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10012 CFLAGS="$CFLAGS $GTK_CFLAGS"
10013 LIBS="$GTK_LIBS $LIBS"
10014 GTK_COMPILES=no
10015 for ac_func in gtk_main
10016do :
10017 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
2018939f 10018if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10019 cat >>confdefs.h <<_ACEOF
10020#define HAVE_GTK_MAIN 1
10021_ACEOF
10022 GTK_COMPILES=yes
10023fi
10024done
10025
10026 if test "${GTK_COMPILES}" != "yes"; then
10027 if test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10028 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10029 fi
10030 else
10031 HAVE_GTK=yes
10032
10033$as_echo "#define USE_GTK 1" >>confdefs.h
10034
10035 GTK_OBJ=gtkutil.o
10036 USE_X_TOOLKIT=none
10037 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10038 :
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10041 closing open displays. This is no problem if you just use
10042 one display, but if you use more than one and close one of them
10043 Emacs may crash." >&5
10044$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10045 closing open displays. This is no problem if you just use
10046 one display, but if you use more than one and close one of them
10047 Emacs may crash." >&2;}
10048 sleep 3
10049 fi
10050 fi
10051
10052fi
10053
10054
10055
10056if test "${HAVE_GTK}" = "yes"; then
10057
10058 if test "$with_toolkit_scroll_bars" != no; then
10059 with_toolkit_scroll_bars=yes
10060 fi
10061
10062 HAVE_GTK_FILE_SELECTION=no
10063 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10064#include <gtk/gtk.h>
10065"
2018939f 10066if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10067 HAVE_GTK_FILE_SELECTION=yes
10068else
10069 HAVE_GTK_FILE_SELECTION=no
10070fi
10071
10072 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10073 for ac_func in gtk_file_selection_new
10074do :
10075 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
2018939f 10076if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10077 cat >>confdefs.h <<_ACEOF
10078#define HAVE_GTK_FILE_SELECTION_NEW 1
10079_ACEOF
10080
10081fi
10082done
10083
10084 fi
10085
10086 HAVE_GTK_AND_PTHREAD=no
10087 for ac_header in pthread.h
10088do :
10089 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
2018939f 10090if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10091 cat >>confdefs.h <<_ACEOF
10092#define HAVE_PTHREAD_H 1
10093_ACEOF
10094
10095fi
10096
10097done
10098
10099 if test "$ac_cv_header_pthread_h"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10101$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
2018939f 10102if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10103 $as_echo_n "(cached) " >&6
10104else
10105 ac_check_lib_save_LIBS=$LIBS
10106LIBS="-lpthread $LIBS"
10107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h. */
10109
10110/* Override any GCC internal prototype to avoid an error.
10111 Use char because int might match the return type of a GCC
10112 builtin and then its argument prototype would still apply. */
10113#ifdef __cplusplus
10114extern "C"
10115#endif
10116char pthread_self ();
10117int
10118main ()
10119{
10120return pthread_self ();
10121 ;
10122 return 0;
10123}
10124_ACEOF
10125if ac_fn_c_try_link "$LINENO"; then :
10126 ac_cv_lib_pthread_pthread_self=yes
10127else
10128 ac_cv_lib_pthread_pthread_self=no
10129fi
10130rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132LIBS=$ac_check_lib_save_LIBS
10133fi
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10135$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
2018939f 10136if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10137 HAVE_GTK_AND_PTHREAD=yes
10138fi
10139
10140 fi
10141 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10142 case "${canonical}" in
10143 *-hpux*) ;;
10144 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10145 esac
10146
10147$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10148
10149 fi
10150
10151 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10152 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10153 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10154 gtk_orientable_set_orientation
10155do :
10156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10157ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 10158if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10159 cat >>confdefs.h <<_ACEOF
10160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10161_ACEOF
10162
10163fi
10164done
10165
10166
10167fi
10168
10169HAVE_DBUS=no
10170DBUS_OBJ=
10171if test "${with_dbus}" = "yes"; then
10172
10173 succeeded=no
10174
10175 # Extract the first word of "pkg-config", so it can be a program name with args.
10176set dummy pkg-config; ac_word=$2
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178$as_echo_n "checking for $ac_word... " >&6; }
2018939f 10179if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10180 $as_echo_n "(cached) " >&6
10181else
10182 case $PKG_CONFIG in
10183 [\\/]* | ?:[\\/]*)
10184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10185 ;;
10186 *)
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199 done
10200IFS=$as_save_IFS
10201
10202 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10203 ;;
10204esac
10205fi
10206PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10207if test -n "$PKG_CONFIG"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10209$as_echo "$PKG_CONFIG" >&6; }
10210else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212$as_echo "no" >&6; }
10213fi
10214
10215
10216
10217 if test "$PKG_CONFIG" = "no" ; then
10218 HAVE_DBUS=no
10219 else
10220 PKG_CONFIG_MIN_VERSION=0.9.0
10221 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10223$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10224
10225 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10227$as_echo "yes" >&6; }
10228 succeeded=yes
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10231$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10232 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10234$as_echo "$DBUS_CFLAGS" >&6; }
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10237$as_echo_n "checking DBUS_LIBS... " >&6; }
10238 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10240$as_echo "$DBUS_LIBS" >&6; }
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
10244 DBUS_CFLAGS=""
10245 DBUS_LIBS=""
10246 ## If we have a custom action on failure, don't print errors, but
10247 ## do set a variable so people can do so.
10248 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10249
10250 fi
10251
10252
10253
10254 else
10255 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10256 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10257 fi
10258 fi
10259
10260 if test $succeeded = yes; then
10261 HAVE_DBUS=yes
10262 else
10263 HAVE_DBUS=no
10264 fi
10265
10266 if test "$HAVE_DBUS" = yes; then
10267 LIBS="$LIBS $DBUS_LIBS"
10268
10269$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10270
10271 for ac_func in dbus_watch_get_unix_fd
10272do :
10273 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
2018939f 10274if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10275 cat >>confdefs.h <<_ACEOF
10276#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10277_ACEOF
10278
10279fi
10280done
10281
10282 DBUS_OBJ=dbusbind.o
10283 fi
10284fi
10285
10286
10287HAVE_GCONF=no
10288if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10289
10290 succeeded=no
10291
10292 # Extract the first word of "pkg-config", so it can be a program name with args.
10293set dummy pkg-config; ac_word=$2
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
2018939f 10296if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10297 $as_echo_n "(cached) " >&6
10298else
10299 case $PKG_CONFIG in
10300 [\\/]* | ?:[\\/]*)
10301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10302 ;;
10303 *)
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305for as_dir in $PATH
10306do
10307 IFS=$as_save_IFS
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10311 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313 break 2
10314 fi
10315done
10316 done
10317IFS=$as_save_IFS
10318
10319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10320 ;;
10321esac
10322fi
10323PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10324if test -n "$PKG_CONFIG"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10326$as_echo "$PKG_CONFIG" >&6; }
10327else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329$as_echo "no" >&6; }
10330fi
10331
10332
10333
10334 if test "$PKG_CONFIG" = "no" ; then
10335 HAVE_GCONF=no
10336 else
10337 PKG_CONFIG_MIN_VERSION=0.9.0
10338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10340$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10341
10342 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344$as_echo "yes" >&6; }
10345 succeeded=yes
10346
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10348$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10349 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10351$as_echo "$GCONF_CFLAGS" >&6; }
10352
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10354$as_echo_n "checking GCONF_LIBS... " >&6; }
10355 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10357$as_echo "$GCONF_LIBS" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
10361 GCONF_CFLAGS=""
10362 GCONF_LIBS=""
10363 ## If we have a custom action on failure, don't print errors, but
10364 ## do set a variable so people can do so.
10365 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10366
10367 fi
10368
10369
10370
10371 else
10372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10374 fi
10375 fi
10376
10377 if test $succeeded = yes; then
10378 HAVE_GCONF=yes
10379 else
10380 HAVE_GCONF=no
10381 fi
10382
10383 if test "$HAVE_GCONF" = yes; then
10384
10385$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10386
10387 for ac_func in g_type_init
10388do :
10389 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
2018939f 10390if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10391 cat >>confdefs.h <<_ACEOF
10392#define HAVE_G_TYPE_INIT 1
10393_ACEOF
10394
10395fi
10396done
10397
10398 fi
10399fi
10400
10401HAVE_LIBSELINUX=no
10402LIBSELINUX_LIBS=
10403if test "${with_selinux}" = "yes"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10405$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
2018939f 10406if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10407 $as_echo_n "(cached) " >&6
10408else
10409 ac_check_lib_save_LIBS=$LIBS
10410LIBS="-lselinux $LIBS"
10411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h. */
10413
10414/* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417#ifdef __cplusplus
10418extern "C"
10419#endif
10420char lgetfilecon ();
10421int
10422main ()
10423{
10424return lgetfilecon ();
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_selinux_lgetfilecon=yes
10431else
10432 ac_cv_lib_selinux_lgetfilecon=no
10433fi
10434rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436LIBS=$ac_check_lib_save_LIBS
10437fi
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10439$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
2018939f 10440if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10441 HAVE_LIBSELINUX=yes
10442else
10443 HAVE_LIBSELINUX=no
10444fi
10445
10446 if test "$HAVE_LIBSELINUX" = yes; then
10447
10448$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10449
10450 LIBSELINUX_LIBS=-lselinux
10451 fi
10452fi
10453
10454
10455HAVE_GNUTLS=no
10456if test "${with_gnutls}" = "yes" ; then
10457
10458 succeeded=no
10459
10460 # Extract the first word of "pkg-config", so it can be a program name with args.
10461set dummy pkg-config; ac_word=$2
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463$as_echo_n "checking for $ac_word... " >&6; }
2018939f 10464if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10465 $as_echo_n "(cached) " >&6
10466else
10467 case $PKG_CONFIG in
10468 [\\/]* | ?:[\\/]*)
10469 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10470 ;;
10471 *)
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483done
10484 done
10485IFS=$as_save_IFS
10486
10487 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10488 ;;
10489esac
10490fi
10491PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10492if test -n "$PKG_CONFIG"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10494$as_echo "$PKG_CONFIG" >&6; }
10495else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
10498fi
10499
10500
10501
10502 if test "$PKG_CONFIG" = "no" ; then
10503 HAVE_GNUTLS=no
10504 else
10505 PKG_CONFIG_MIN_VERSION=0.9.0
10506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10508$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10509
10510 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512$as_echo "yes" >&6; }
10513 succeeded=yes
10514
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10516$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10517 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10519$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10522$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10523 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10525$as_echo "$LIBGNUTLS_LIBS" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528$as_echo "no" >&6; }
10529 LIBGNUTLS_CFLAGS=""
10530 LIBGNUTLS_LIBS=""
10531 ## If we have a custom action on failure, don't print errors, but
10532 ## do set a variable so people can do so.
10533 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10534
10535 fi
10536
10537
10538
10539 else
10540 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10541 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10542 fi
10543 fi
10544
10545 if test $succeeded = yes; then
10546 HAVE_GNUTLS=yes
10547 else
10548 HAVE_GNUTLS=no
10549 fi
10550
10551 if test "${HAVE_GNUTLS}" = "yes"; then
10552
10553$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10554
10555 fi
10556fi
10557
10558
10559
10560HAVE_XAW3D=no
10561LUCID_LIBW=
10562if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10563 if test "$with_xaw3d" != no; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10565$as_echo_n "checking for xaw3d... " >&6; }
2018939f 10566 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10567 $as_echo_n "(cached) " >&6
10568else
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h. */
10571
10572#include <X11/Intrinsic.h>
10573#include <X11/Xaw3d/Simple.h>
10574int
10575main ()
10576{
10577
10578 ;
10579 return 0;
10580}
10581_ACEOF
10582if ac_fn_c_try_link "$LINENO"; then :
10583 emacs_cv_xaw3d=yes
10584else
10585 emacs_cv_xaw3d=no
10586fi
10587rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589fi
10590
10591 else
10592 emacs_cv_xaw3d=no
10593 fi
10594 if test $emacs_cv_xaw3d = yes; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10596$as_echo "yes; using Lucid toolkit" >&6; }
10597 USE_X_TOOLKIT=LUCID
10598 HAVE_XAW3D=yes
10599 LUCID_LIBW=-lXaw3d
10600
10601$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10602
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605$as_echo "no" >&6; }
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10607$as_echo_n "checking for libXaw... " >&6; }
2018939f 10608 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10609 $as_echo_n "(cached) " >&6
10610else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612/* end confdefs.h. */
10613
10614#include <X11/Intrinsic.h>
10615#include <X11/Xaw/Simple.h>
10616int
10617main ()
10618{
10619
10620 ;
10621 return 0;
10622}
10623_ACEOF
10624if ac_fn_c_try_link "$LINENO"; then :
10625 emacs_cv_xaw=yes
10626else
10627 emacs_cv_xaw=no
10628fi
10629rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631fi
10632
10633 if test $emacs_cv_xaw = yes; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10635$as_echo "yes; using Lucid toolkit" >&6; }
10636 USE_X_TOOLKIT=LUCID
10637 LUCID_LIBW=-lXaw
10638 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
2018939f 10639 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10642$as_echo "no; do not use toolkit by default" >&6; }
10643 USE_X_TOOLKIT=none
10644 fi
10645 fi
10646fi
10647
10648X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10649
10650LIBXTR6=
10651if test "${USE_X_TOOLKIT}" != "none"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10653$as_echo_n "checking X11 toolkit version... " >&6; }
2018939f 10654 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
10655 $as_echo_n "(cached) " >&6
10656else
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658/* end confdefs.h. */
10659#include <X11/Intrinsic.h>
10660int
10661main ()
10662{
10663#if XtSpecificationRelease < 6
10664fail;
10665#endif
10666
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672 emacs_cv_x11_toolkit_version_6=yes
10673else
10674 emacs_cv_x11_toolkit_version_6=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678fi
10679
10680 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10681 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10683$as_echo "6 or newer" >&6; }
10684
10685$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10686
10687 LIBXTR6="-lSM -lICE"
10688 case "$opsys" in
10689 ## Use libw.a along with X11R6 Xt.
10690 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10691 esac
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10694$as_echo "before 6" >&6; }
10695 fi
10696
10697 OLDLIBS="$LIBS"
10698 if test x$HAVE_X11XTR6 = xyes; then
10699 LIBS="-lXt -lSM -lICE $LIBS"
10700 else
10701 LIBS="-lXt $LIBS"
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10704$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
2018939f 10705if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
10706 $as_echo_n "(cached) " >&6
10707else
10708 ac_check_lib_save_LIBS=$LIBS
10709LIBS="-lXmu $LIBS"
10710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711/* end confdefs.h. */
10712
10713/* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716#ifdef __cplusplus
10717extern "C"
10718#endif
10719char XmuConvertStandardSelection ();
10720int
10721main ()
10722{
10723return XmuConvertStandardSelection ();
10724 ;
10725 return 0;
10726}
10727_ACEOF
10728if ac_fn_c_try_link "$LINENO"; then :
10729 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10730else
10731 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10732fi
10733rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735LIBS=$ac_check_lib_save_LIBS
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10738$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
2018939f 10739if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
10740 cat >>confdefs.h <<_ACEOF
10741#define HAVE_LIBXMU 1
10742_ACEOF
10743
10744 LIBS="-lXmu $LIBS"
10745
10746fi
10747
10748 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10749fi
10750
10751
10752LIBXMU=-lXmu
d6a003a8
AS
10753case $opsys in
10754 ## These systems don't supply Xmu.
067d23c9
KY
10755 hpux* | aix4-2 )
10756 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10757 ;;
10758esac
10759
10760
10761# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10762if test "${HAVE_X11}" = "yes"; then
10763 if test "${USE_X_TOOLKIT}" != "none"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10765$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
2018939f 10766if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
10767 $as_echo_n "(cached) " >&6
10768else
10769 ac_check_lib_save_LIBS=$LIBS
10770LIBS="-lXext $LIBS"
10771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h. */
10773
10774/* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777#ifdef __cplusplus
10778extern "C"
10779#endif
10780char XShapeQueryExtension ();
10781int
10782main ()
10783{
10784return XShapeQueryExtension ();
10785 ;
10786 return 0;
10787}
10788_ACEOF
10789if ac_fn_c_try_link "$LINENO"; then :
10790 ac_cv_lib_Xext_XShapeQueryExtension=yes
10791else
10792 ac_cv_lib_Xext_XShapeQueryExtension=no
10793fi
10794rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796LIBS=$ac_check_lib_save_LIBS
10797fi
10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10799$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
2018939f 10800if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
10801 cat >>confdefs.h <<_ACEOF
10802#define HAVE_LIBXEXT 1
10803_ACEOF
10804
10805 LIBS="-lXext $LIBS"
10806
10807fi
10808
10809 fi
10810fi
10811
10812LIBXP=
10813if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10815$as_echo_n "checking for Motif version 2.1... " >&6; }
2018939f 10816if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
10817 $as_echo_n "(cached) " >&6
10818else
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820/* end confdefs.h. */
10821#include <Xm/Xm.h>
10822int
10823main ()
10824{
10825#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10826int x = 5;
10827#else
10828Motif version prior to 2.1.
10829#endif
10830 ;
10831 return 0;
10832}
10833_ACEOF
10834if ac_fn_c_try_compile "$LINENO"; then :
10835 emacs_cv_motif_version_2_1=yes
10836else
10837 emacs_cv_motif_version_2_1=no
10838fi
10839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840fi
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10842$as_echo "$emacs_cv_motif_version_2_1" >&6; }
10843 if test $emacs_cv_motif_version_2_1 = yes; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10845$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
2018939f 10846if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
10847 $as_echo_n "(cached) " >&6
10848else
10849 ac_check_lib_save_LIBS=$LIBS
10850LIBS="-lXp $LIBS"
10851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852/* end confdefs.h. */
10853
10854/* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char XpCreateContext ();
10861int
10862main ()
10863{
10864return XpCreateContext ();
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_Xp_XpCreateContext=yes
10871else
10872 ac_cv_lib_Xp_XpCreateContext=no
10873fi
10874rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876LIBS=$ac_check_lib_save_LIBS
10877fi
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10879$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
2018939f 10880if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
10881 LIBXP=-lXp
10882fi
10883
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10886$as_echo_n "checking for LessTif where some systems put it... " >&6; }
2018939f 10887if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
10888 $as_echo_n "(cached) " >&6
10889else
10890 # We put this in CFLAGS temporarily to precede other -I options
10891 # that might be in CFLAGS temporarily.
10892 # We put this in CPPFLAGS where it precedes the other -I options.
10893 OLD_CPPFLAGS=$CPPFLAGS
10894 OLD_CFLAGS=$CFLAGS
10895 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10896 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898/* end confdefs.h. */
10899#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10900int
10901main ()
10902{
10903int x = 5;
10904 ;
10905 return 0;
10906}
10907_ACEOF
10908if ac_fn_c_try_compile "$LINENO"; then :
10909 emacs_cv_lesstif=yes
10910else
10911 emacs_cv_lesstif=no
10912fi
10913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914fi
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10916$as_echo "$emacs_cv_lesstif" >&6; }
10917 if test $emacs_cv_lesstif = yes; then
10918 # Make sure this -I option remains in CPPFLAGS after it is set
10919 # back to REAL_CPPFLAGS.
10920 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10921 # have those other -I options anyway. Ultimately, having this
10922 # directory ultimately in CPPFLAGS will be enough.
10923 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10924 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10925 else
10926 CFLAGS=$OLD_CFLAGS
10927 CPPFLAGS=$OLD_CPPFLAGS
10928 fi
10929 fi
10930fi
10931
10932
10933USE_TOOLKIT_SCROLL_BARS=no
10934if test "${with_toolkit_scroll_bars}" != "no"; then
10935 if test "${USE_X_TOOLKIT}" != "none"; then
10936 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10937 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10938
10939 HAVE_XAW3D=no
10940 USE_TOOLKIT_SCROLL_BARS=yes
10941 elif test "${HAVE_XAW3D}" = "yes"; then
10942 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10943
10944 USE_TOOLKIT_SCROLL_BARS=yes
10945 fi
10946 elif test "${HAVE_GTK}" = "yes"; then
10947 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10948
10949 USE_TOOLKIT_SCROLL_BARS=yes
10950 elif test "${HAVE_NS}" = "yes"; then
10951 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10952
10953 USE_TOOLKIT_SCROLL_BARS=yes
10954 fi
10955fi
10956
10957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h. */
10959
10960 #include <X11/Xlib.h>
10961 #include <X11/Xresource.h>
10962int
10963main ()
10964{
10965XIMProc callback;
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970if ac_fn_c_try_compile "$LINENO"; then :
10971 HAVE_XIM=yes
10972
10973$as_echo "#define HAVE_XIM 1" >>confdefs.h
10974
10975else
10976 HAVE_XIM=no
10977fi
10978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979
10980
10981if test "${with_xim}" != "no"; then
10982
10983$as_echo "#define USE_XIM 1" >>confdefs.h
10984
10985fi
10986
10987
10988if test "${HAVE_XIM}" != "no"; then
10989 late_CFLAGS=$CFLAGS
10990 if test "$GCC" = yes; then
10991 CFLAGS="$CFLAGS --pedantic-errors"
10992 fi
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994/* end confdefs.h. */
10995
10996#include <X11/Xlib.h>
10997#include <X11/Xresource.h>
10998int
10999main ()
11000{
11001Display *display;
11002XrmDatabase db;
11003char *res_name;
11004char *res_class;
11005XIMProc callback;
11006XPointer *client_data;
11007#ifndef __GNUC__
11008/* If we're not using GCC, it's probably not XFree86, and this is
11009 probably right, but we can't use something like --pedantic-errors. */
11010extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11011 char*, XIMProc, XPointer*);
11012#endif
11013(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11014 client_data);
11015 ;
11016 return 0;
11017}
11018_ACEOF
11019if ac_fn_c_try_compile "$LINENO"; then :
11020 emacs_cv_arg6_star=yes
11021fi
11022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 if test "$emacs_cv_arg6_star" = yes; then
11024 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11025
11026 else
11027 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11028
11029 fi
11030 CFLAGS=$late_CFLAGS
11031fi
11032
11033### Start of font-backend (under any platform) section.
11034# (nothing here yet -- this is a placeholder)
11035### End of font-backend (under any platform) section.
11036
11037### Start of font-backend (under X11) section.
11038if test "${HAVE_X11}" = "yes"; then
11039
11040 succeeded=no
11041
11042 # Extract the first word of "pkg-config", so it can be a program name with args.
11043set dummy pkg-config; ac_word=$2
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045$as_echo_n "checking for $ac_word... " >&6; }
2018939f 11046if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11047 $as_echo_n "(cached) " >&6
11048else
11049 case $PKG_CONFIG in
11050 [\\/]* | ?:[\\/]*)
11051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11052 ;;
11053 *)
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $PATH
11056do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065done
11066 done
11067IFS=$as_save_IFS
11068
11069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11070 ;;
11071esac
11072fi
11073PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11074if test -n "$PKG_CONFIG"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11076$as_echo "$PKG_CONFIG" >&6; }
11077else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
11080fi
11081
11082
11083
11084 if test "$PKG_CONFIG" = "no" ; then
11085 HAVE_FC=no
11086 else
11087 PKG_CONFIG_MIN_VERSION=0.9.0
11088 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11090$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11091
11092 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11094$as_echo "yes" >&6; }
11095 succeeded=yes
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11098$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11099 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11101$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11102
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11104$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11105 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11107$as_echo "$FONTCONFIG_LIBS" >&6; }
11108 else
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110$as_echo "no" >&6; }
11111 FONTCONFIG_CFLAGS=""
11112 FONTCONFIG_LIBS=""
11113 ## If we have a custom action on failure, don't print errors, but
11114 ## do set a variable so people can do so.
11115 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11116
11117 fi
11118
11119
11120
11121 else
11122 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11123 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11124 fi
11125 fi
11126
11127 if test $succeeded = yes; then
11128 HAVE_FC=yes
11129 else
11130 HAVE_FC=no
11131 fi
11132
11133
11134 ## Use -lXft if available, unless `--with-xft=no'.
11135 HAVE_XFT=maybe
11136 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11137 with_xft="no";
11138 fi
11139 if test "x${with_xft}" != "xno"; then
11140
11141
11142 succeeded=no
11143
11144 # Extract the first word of "pkg-config", so it can be a program name with args.
11145set dummy pkg-config; ac_word=$2
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11147$as_echo_n "checking for $ac_word... " >&6; }
2018939f 11148if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11149 $as_echo_n "(cached) " >&6
11150else
11151 case $PKG_CONFIG in
11152 [\\/]* | ?:[\\/]*)
11153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11154 ;;
11155 *)
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157for as_dir in $PATH
11158do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167done
11168 done
11169IFS=$as_save_IFS
11170
11171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11172 ;;
11173esac
11174fi
11175PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11176if test -n "$PKG_CONFIG"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11178$as_echo "$PKG_CONFIG" >&6; }
11179else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
11182fi
11183
11184
11185
11186 if test "$PKG_CONFIG" = "no" ; then
11187 HAVE_XFT=no
11188 else
11189 PKG_CONFIG_MIN_VERSION=0.9.0
11190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11192$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11193
11194 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196$as_echo "yes" >&6; }
11197 succeeded=yes
11198
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11200$as_echo_n "checking XFT_CFLAGS... " >&6; }
11201 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11203$as_echo "$XFT_CFLAGS" >&6; }
11204
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11206$as_echo_n "checking XFT_LIBS... " >&6; }
11207 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11209$as_echo "$XFT_LIBS" >&6; }
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213 XFT_CFLAGS=""
11214 XFT_LIBS=""
11215 ## If we have a custom action on failure, don't print errors, but
11216 ## do set a variable so people can do so.
11217 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11218
11219 fi
11220
11221
11222
11223 else
11224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11226 fi
11227 fi
11228
11229 if test $succeeded = yes; then
11230 :
11231 else
11232 HAVE_XFT=no
11233 fi
11234
11235 ## Because xftfont.c uses XRenderQueryExtension, we also
11236 ## need to link to -lXrender.
11237 HAVE_XRENDER=no
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11239$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
2018939f 11240if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11241 $as_echo_n "(cached) " >&6
11242else
11243 ac_check_lib_save_LIBS=$LIBS
11244LIBS="-lXrender $LIBS"
11245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246/* end confdefs.h. */
11247
11248/* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251#ifdef __cplusplus
11252extern "C"
11253#endif
11254char XRenderQueryExtension ();
11255int
11256main ()
11257{
11258return XRenderQueryExtension ();
11259 ;
11260 return 0;
11261}
11262_ACEOF
11263if ac_fn_c_try_link "$LINENO"; then :
11264 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11265else
11266 ac_cv_lib_Xrender_XRenderQueryExtension=no
11267fi
11268rm -f core conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270LIBS=$ac_check_lib_save_LIBS
11271fi
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11273$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
2018939f 11274if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11275 HAVE_XRENDER=yes
11276fi
11277
11278 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11279 OLD_CPPFLAGS="$CPPFLAGS"
11280 OLD_CFLAGS="$CFLAGS"
11281 OLD_LIBS="$LIBS"
11282 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11283 CFLAGS="$CFLAGS $XFT_CFLAGS"
11284 XFT_LIBS="-lXrender $XFT_LIBS"
11285 LIBS="$XFT_LIBS $LIBS"
11286 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
2018939f 11287if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11289$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
2018939f 11290if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11291 $as_echo_n "(cached) " >&6
11292else
11293 ac_check_lib_save_LIBS=$LIBS
11294LIBS="-lXft $XFT_LIBS $LIBS"
11295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h. */
11297
11298/* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301#ifdef __cplusplus
11302extern "C"
11303#endif
11304char XftFontOpen ();
11305int
11306main ()
11307{
11308return XftFontOpen ();
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_Xft_XftFontOpen=yes
11315else
11316 ac_cv_lib_Xft_XftFontOpen=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320LIBS=$ac_check_lib_save_LIBS
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11323$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
2018939f 11324if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11325 HAVE_XFT=yes
11326fi
11327
11328fi
11329
11330
11331
11332 if test "${HAVE_XFT}" = "yes"; then
11333
11334$as_echo "#define HAVE_XFT 1" >>confdefs.h
11335
11336
11337 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11338 else
11339 CPPFLAGS="$OLD_CPPFLAGS"
11340 CFLAGS="$OLD_CFLAGS"
11341 LIBS="$OLD_LIBS"
11342 fi # "${HAVE_XFT}" = "yes"
11343 fi # "$HAVE_XFT" != no
11344 fi # "x${with_xft}" != "xno"
11345
11346 if test "$HAVE_XFT" != "yes"; then
11347 HAVE_XFT=no
11348 fi
11349
11350
11351 HAVE_FREETYPE=no
11352 ## We used to allow building with FreeType and without Xft.
11353 ## However, the ftx font backend driver is not in good shape.
11354 if test "${HAVE_XFT}" = "yes"; then
11355 HAVE_FREETYPE=yes
11356 FONTCONFIG_CFLAGS=
11357 FONTCONFIG_LIBS=
11358 fi
11359
11360 HAVE_LIBOTF=no
11361 if test "${HAVE_FREETYPE}" = "yes"; then
11362
11363$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11364
11365 if test "${with_libotf}" != "no"; then
11366
11367 succeeded=no
11368
11369 # Extract the first word of "pkg-config", so it can be a program name with args.
11370set dummy pkg-config; ac_word=$2
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372$as_echo_n "checking for $ac_word... " >&6; }
2018939f 11373if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11374 $as_echo_n "(cached) " >&6
11375else
11376 case $PKG_CONFIG in
11377 [\\/]* | ?:[\\/]*)
11378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11379 ;;
11380 *)
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382for as_dir in $PATH
11383do
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392done
11393 done
11394IFS=$as_save_IFS
11395
11396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11397 ;;
11398esac
11399fi
11400PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11401if test -n "$PKG_CONFIG"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11403$as_echo "$PKG_CONFIG" >&6; }
11404else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
11407fi
11408
11409
11410
11411 if test "$PKG_CONFIG" = "no" ; then
11412 HAVE_LIBOTF=no
11413 else
11414 PKG_CONFIG_MIN_VERSION=0.9.0
11415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11417$as_echo_n "checking for libotf... " >&6; }
11418
11419 if $PKG_CONFIG --exists "libotf" 2>&5; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421$as_echo "yes" >&6; }
11422 succeeded=yes
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11425$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11426 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11428$as_echo "$LIBOTF_CFLAGS" >&6; }
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11431$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11432 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11434$as_echo "$LIBOTF_LIBS" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
11438 LIBOTF_CFLAGS=""
11439 LIBOTF_LIBS=""
11440 ## If we have a custom action on failure, don't print errors, but
11441 ## do set a variable so people can do so.
11442 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11443
11444 fi
11445
11446
11447
11448 else
11449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11451 fi
11452 fi
11453
11454 if test $succeeded = yes; then
11455 HAVE_LIBOTF=yes
11456 else
11457 HAVE_LIBOTF=no
11458 fi
11459
11460 if test "$HAVE_LIBOTF" = "yes"; then
11461
11462$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11465$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
2018939f 11466if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11467 $as_echo_n "(cached) " >&6
11468else
11469 ac_check_lib_save_LIBS=$LIBS
11470LIBS="-lotf $LIBS"
11471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h. */
11473
11474/* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11477#ifdef __cplusplus
11478extern "C"
11479#endif
11480char OTF_get_variation_glyphs ();
11481int
11482main ()
11483{
11484return OTF_get_variation_glyphs ();
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489if ac_fn_c_try_link "$LINENO"; then :
11490 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11491else
11492 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11493fi
11494rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496LIBS=$ac_check_lib_save_LIBS
11497fi
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11499$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
2018939f 11500if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11501 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11502else
11503 HAVE_OTF_GET_VARIATION_GLYPHS=no
11504fi
11505
11506 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11507
11508$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11509
11510 fi
11511 fi
11512 fi
11513 fi
11514
11515 HAVE_M17N_FLT=no
11516 if test "${HAVE_LIBOTF}" = yes; then
11517 if test "${with_m17n_flt}" != "no"; then
11518
11519 succeeded=no
11520
11521 # Extract the first word of "pkg-config", so it can be a program name with args.
11522set dummy pkg-config; ac_word=$2
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
2018939f 11525if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11526 $as_echo_n "(cached) " >&6
11527else
11528 case $PKG_CONFIG in
11529 [\\/]* | ?:[\\/]*)
11530 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11531 ;;
11532 *)
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534for as_dir in $PATH
11535do
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11540 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11543 fi
11544done
11545 done
11546IFS=$as_save_IFS
11547
11548 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11549 ;;
11550esac
11551fi
11552PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11553if test -n "$PKG_CONFIG"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11555$as_echo "$PKG_CONFIG" >&6; }
11556else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
11559fi
11560
11561
11562
11563 if test "$PKG_CONFIG" = "no" ; then
11564 HAVE_M17N_FLT=no
11565 else
11566 PKG_CONFIG_MIN_VERSION=0.9.0
11567 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11569$as_echo_n "checking for m17n-flt... " >&6; }
11570
11571 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11573$as_echo "yes" >&6; }
11574 succeeded=yes
11575
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11577$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11578 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11580$as_echo "$M17N_FLT_CFLAGS" >&6; }
11581
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11583$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11584 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11586$as_echo "$M17N_FLT_LIBS" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11589$as_echo "no" >&6; }
11590 M17N_FLT_CFLAGS=""
11591 M17N_FLT_LIBS=""
11592 ## If we have a custom action on failure, don't print errors, but
11593 ## do set a variable so people can do so.
11594 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11595
11596 fi
11597
11598
11599
11600 else
11601 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11602 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11603 fi
11604 fi
11605
11606 if test $succeeded = yes; then
11607 HAVE_M17N_FLT=yes
11608 else
11609 HAVE_M17N_FLT=no
11610 fi
11611
11612 if test "$HAVE_M17N_FLT" = "yes"; then
11613
11614$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11615
11616 fi
11617 fi
11618 fi
11619else
11620 HAVE_XFT=no
11621 HAVE_FREETYPE=no
11622 HAVE_LIBOTF=no
11623 HAVE_M17N_FLT=no
11624fi
11625
11626### End of font-backend (under X11) section.
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637### Use -lXpm if available, unless `--with-xpm=no'.
11638HAVE_XPM=no
11639LIBXPM=
11640if test "${HAVE_X11}" = "yes"; then
11641 if test "${with_xpm}" != "no"; then
11642 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
2018939f 11643if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11645$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
2018939f 11646if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11647 $as_echo_n "(cached) " >&6
11648else
11649 ac_check_lib_save_LIBS=$LIBS
11650LIBS="-lXpm -lX11 $LIBS"
11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h. */
11653
11654/* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657#ifdef __cplusplus
11658extern "C"
11659#endif
11660char XpmReadFileToPixmap ();
11661int
11662main ()
11663{
11664return XpmReadFileToPixmap ();
11665 ;
11666 return 0;
11667}
11668_ACEOF
11669if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11671else
11672 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11673fi
11674rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676LIBS=$ac_check_lib_save_LIBS
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11679$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
2018939f 11680if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
11681 HAVE_XPM=yes
11682fi
11683
11684fi
11685
11686
11687 if test "${HAVE_XPM}" = "yes"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11689$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691/* end confdefs.h. */
11692#include "X11/xpm.h"
11693#ifndef XpmReturnAllocPixels
11694no_return_alloc_pixels
11695#endif
11696
11697_ACEOF
11698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11699 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11700 HAVE_XPM=no
11701else
11702 HAVE_XPM=yes
11703fi
11704rm -f conftest*
11705
11706
11707 if test "${HAVE_XPM}" = "yes"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709$as_echo "yes" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
11713 fi
11714 fi
11715 fi
11716
11717 if test "${HAVE_XPM}" = "yes"; then
11718
11719$as_echo "#define HAVE_XPM 1" >>confdefs.h
11720
11721 LIBXPM=-lXpm
11722 fi
11723fi
11724
11725
11726### Use -ljpeg if available, unless `--with-jpeg=no'.
11727HAVE_JPEG=no
11728LIBJPEG=
11729if test "${HAVE_X11}" = "yes"; then
11730 if test "${with_jpeg}" != "no"; then
11731 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
2018939f 11732if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11734$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
2018939f 11735if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
11736 $as_echo_n "(cached) " >&6
11737else
11738 ac_check_lib_save_LIBS=$LIBS
11739LIBS="-ljpeg $LIBS"
11740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741/* end confdefs.h. */
11742
11743/* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746#ifdef __cplusplus
11747extern "C"
11748#endif
11749char jpeg_destroy_compress ();
11750int
11751main ()
11752{
11753return jpeg_destroy_compress ();
11754 ;
11755 return 0;
11756}
11757_ACEOF
11758if ac_fn_c_try_link "$LINENO"; then :
11759 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11760else
11761 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11762fi
11763rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11765LIBS=$ac_check_lib_save_LIBS
11766fi
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11768$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
2018939f 11769if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
11770 HAVE_JPEG=yes
11771fi
11772
11773fi
11774
11775
11776 fi
11777
11778 if test "${HAVE_JPEG}" = "yes"; then
11779 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11780
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h. */
11783#include <jpeglib.h>
11784 version=JPEG_LIB_VERSION
11785
11786_ACEOF
11787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11788 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11789 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11790
11791else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11793$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11794 HAVE_JPEG=no
11795fi
11796rm -f conftest*
11797
11798 fi
11799 if test "${HAVE_JPEG}" = "yes"; then
11800 LIBJPEG=-ljpeg
11801 fi
11802fi
11803
11804
11805### Use -lpng if available, unless `--with-png=no'.
11806HAVE_PNG=no
11807LIBPNG=
11808if test "${HAVE_X11}" = "yes"; then
11809 if test "${with_png}" != "no"; then
11810 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11811 # in /usr/include/libpng.
11812 for ac_header in png.h libpng/png.h
11813do :
11814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11815ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 11816if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
11817 cat >>confdefs.h <<_ACEOF
11818#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11819_ACEOF
11820
11821fi
11822
11823done
11824
11825 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11827$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
2018939f 11828if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
11829 $as_echo_n "(cached) " >&6
11830else
11831 ac_check_lib_save_LIBS=$LIBS
11832LIBS="-lpng -lz -lm $LIBS"
11833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834/* end confdefs.h. */
11835
11836/* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11839#ifdef __cplusplus
11840extern "C"
11841#endif
11842char png_get_channels ();
11843int
11844main ()
11845{
11846return png_get_channels ();
11847 ;
11848 return 0;
11849}
11850_ACEOF
11851if ac_fn_c_try_link "$LINENO"; then :
11852 ac_cv_lib_png_png_get_channels=yes
11853else
11854 ac_cv_lib_png_png_get_channels=no
11855fi
11856rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858LIBS=$ac_check_lib_save_LIBS
11859fi
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11861$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
2018939f 11862if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
11863 HAVE_PNG=yes
11864fi
11865
11866 fi
11867 fi
11868
11869 if test "${HAVE_PNG}" = "yes"; then
11870
11871$as_echo "#define HAVE_PNG 1" >>confdefs.h
11872
11873 LIBPNG="-lpng -lz -lm"
11874 fi
11875fi
11876
11877
11878### Use -ltiff if available, unless `--with-tiff=no'.
11879HAVE_TIFF=no
11880LIBTIFF=
11881if test "${HAVE_X11}" = "yes"; then
11882 if test "${with_tiff}" != "no"; then
11883 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
2018939f 11884if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
11885 tifflibs="-lz -lm"
11886 # At least one tiff package requires the jpeg library.
11887 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11889$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
2018939f 11890if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
11891 $as_echo_n "(cached) " >&6
11892else
11893 ac_check_lib_save_LIBS=$LIBS
11894LIBS="-ltiff $tifflibs $LIBS"
11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h. */
11897
11898/* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char TIFFGetVersion ();
11905int
11906main ()
11907{
11908return TIFFGetVersion ();
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913if ac_fn_c_try_link "$LINENO"; then :
11914 ac_cv_lib_tiff_TIFFGetVersion=yes
11915else
11916 ac_cv_lib_tiff_TIFFGetVersion=no
11917fi
11918rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920LIBS=$ac_check_lib_save_LIBS
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11923$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
2018939f 11924if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
11925 HAVE_TIFF=yes
11926fi
11927
11928fi
11929
11930
11931 fi
11932
11933 if test "${HAVE_TIFF}" = "yes"; then
11934
11935$as_echo "#define HAVE_TIFF 1" >>confdefs.h
11936
11937 LIBTIFF=-ltiff
11938 fi
11939fi
11940
11941
11942### Use -lgif or -lungif if available, unless `--with-gif=no'.
11943HAVE_GIF=no
11944LIBGIF=
11945if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11946 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
2018939f 11947if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
11948 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11949# Earlier versions can crash Emacs.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
11951$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
2018939f 11952if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
11953 $as_echo_n "(cached) " >&6
11954else
11955 ac_check_lib_save_LIBS=$LIBS
11956LIBS="-lgif $LIBS"
11957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958/* end confdefs.h. */
11959
11960/* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11963#ifdef __cplusplus
11964extern "C"
11965#endif
11966char EGifPutExtensionLast ();
11967int
11968main ()
11969{
11970return EGifPutExtensionLast ();
11971 ;
11972 return 0;
11973}
11974_ACEOF
11975if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_lib_gif_EGifPutExtensionLast=yes
11977else
11978 ac_cv_lib_gif_EGifPutExtensionLast=no
11979fi
11980rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982LIBS=$ac_check_lib_save_LIBS
11983fi
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
11985$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
2018939f 11986if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
11987 HAVE_GIF=yes
11988else
11989 HAVE_GIF=maybe
11990fi
11991
11992fi
11993
11994
11995
11996 if test "$HAVE_GIF" = yes; then
11997 LIBGIF=-lgif
11998 elif test "$HAVE_GIF" = maybe; then
11999# If gif_lib.h but no libgif, try libungif.
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12001$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
2018939f 12002if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12003 $as_echo_n "(cached) " >&6
12004else
12005 ac_check_lib_save_LIBS=$LIBS
12006LIBS="-lungif $LIBS"
12007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008/* end confdefs.h. */
12009
12010/* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013#ifdef __cplusplus
12014extern "C"
12015#endif
12016char EGifPutExtensionLast ();
12017int
12018main ()
12019{
12020return EGifPutExtensionLast ();
12021 ;
12022 return 0;
12023}
12024_ACEOF
12025if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12027else
12028 ac_cv_lib_ungif_EGifPutExtensionLast=no
12029fi
12030rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032LIBS=$ac_check_lib_save_LIBS
12033fi
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12035$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
2018939f 12036if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12037 HAVE_GIF=yes
12038else
12039 HAVE_GIF=no
12040fi
12041
12042 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12043 fi
12044
12045 if test "${HAVE_GIF}" = "yes"; then
12046
12047$as_echo "#define HAVE_GIF 1" >>confdefs.h
12048
12049 fi
12050fi
12051
12052
12053if test "${HAVE_X11}" = "yes"; then
12054 MISSING=""
12055 WITH_NO=""
12056 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12057 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12058 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12059 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12060 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12061 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12062 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12063 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12064 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12065 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12066
12067 if test "X${MISSING}" != X; then
2018939f 12068 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12069 $MISSING
12070Maybe some development libraries/packages are missing?
12071If you don't want to link with them give
12072 $WITH_NO
12073as options to configure" "$LINENO" 5
12074 fi
12075fi
12076
12077### Use -lgpm if available, unless `--with-gpm=no'.
12078HAVE_GPM=no
12079LIBGPM=
12080MOUSE_SUPPORT=
12081if test "${with_gpm}" != "no"; then
12082 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
2018939f 12083if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12085$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
2018939f 12086if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12087 $as_echo_n "(cached) " >&6
12088else
12089 ac_check_lib_save_LIBS=$LIBS
12090LIBS="-lgpm $LIBS"
12091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092/* end confdefs.h. */
12093
12094/* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097#ifdef __cplusplus
12098extern "C"
12099#endif
12100char Gpm_Open ();
12101int
12102main ()
12103{
12104return Gpm_Open ();
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_link "$LINENO"; then :
12110 ac_cv_lib_gpm_Gpm_Open=yes
12111else
12112 ac_cv_lib_gpm_Gpm_Open=no
12113fi
12114rm -f core conftest.err conftest.$ac_objext \
12115 conftest$ac_exeext conftest.$ac_ext
12116LIBS=$ac_check_lib_save_LIBS
12117fi
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12119$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
2018939f 12120if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12121 HAVE_GPM=yes
12122fi
12123
12124fi
12125
12126
12127
12128 if test "${HAVE_GPM}" = "yes"; then
12129
12130$as_echo "#define HAVE_GPM 1" >>confdefs.h
12131
12132 LIBGPM=-lgpm
12133 ## May be reset below.
12134 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12135 fi
12136fi
12137
12138
12139ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
2018939f 12140if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12141
12142$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12143
12144fi
12145
12146
12147
12148C_SWITCH_X_SYSTEM=
12149### Use NeXTstep API to implement GUI.
12150if test "${HAVE_NS}" = "yes"; then
12151
12152$as_echo "#define HAVE_NS 1" >>confdefs.h
12153
12154 if test "${NS_IMPL_COCOA}" = "yes"; then
12155
12156$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12157
12158 GNU_OBJC_CFLAGS=
12159 fi
12160 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12161
12162$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12163
12164 # See also .m.o rule in Makefile.in */
12165 # FIXME: are all these flags really needed? Document here why. */
12166 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12167 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12168 fi
12169 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12170
12171$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12172
12173 fi
12174 # We also have mouse menus.
12175 HAVE_MENUS=yes
12176 OTHER_FILES=ns-app
12177fi
12178
12179
12180### Use session management (-lSM -lICE) if available
12181HAVE_X_SM=no
12182LIBXSM=
12183if test "${HAVE_X11}" = "yes"; then
12184 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
2018939f 12185if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12187$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
2018939f 12188if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12189 $as_echo_n "(cached) " >&6
12190else
12191 ac_check_lib_save_LIBS=$LIBS
12192LIBS="-lSM -lICE $LIBS"
12193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194/* end confdefs.h. */
12195
12196/* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199#ifdef __cplusplus
12200extern "C"
12201#endif
12202char SmcOpenConnection ();
12203int
12204main ()
12205{
12206return SmcOpenConnection ();
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211if ac_fn_c_try_link "$LINENO"; then :
12212 ac_cv_lib_SM_SmcOpenConnection=yes
12213else
12214 ac_cv_lib_SM_SmcOpenConnection=no
12215fi
12216rm -f core conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
12218LIBS=$ac_check_lib_save_LIBS
12219fi
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12221$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
2018939f 12222if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12223 HAVE_X_SM=yes
12224fi
12225
12226fi
12227
12228
12229
12230 if test "${HAVE_X_SM}" = "yes"; then
12231
12232$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12233
12234 LIBXSM="-lSM -lICE"
12235 case "$LIBS" in
12236 *-lSM*) ;;
12237 *) LIBS="$LIBXSM $LIBS" ;;
12238 esac
12239 fi
12240fi
12241
12242
12243### Use libxml (-lxml2) if available
12244if test "${with_xml2}" != "no"; then
12245 ### I'm not sure what the version number should be, so I just guessed.
12246
12247 succeeded=no
12248
12249 # Extract the first word of "pkg-config", so it can be a program name with args.
12250set dummy pkg-config; ac_word=$2
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
2018939f 12253if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12254 $as_echo_n "(cached) " >&6
12255else
12256 case $PKG_CONFIG in
12257 [\\/]* | ?:[\\/]*)
12258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12259 ;;
12260 *)
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $PATH
12263do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12271 fi
12272done
12273 done
12274IFS=$as_save_IFS
12275
12276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12277 ;;
12278esac
12279fi
12280PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12281if test -n "$PKG_CONFIG"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12283$as_echo "$PKG_CONFIG" >&6; }
12284else
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286$as_echo "no" >&6; }
12287fi
12288
12289
12290
12291 if test "$PKG_CONFIG" = "no" ; then
12292 HAVE_LIBXML2=no
12293 else
12294 PKG_CONFIG_MIN_VERSION=0.9.0
12295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12297$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12298
dab73760 12299 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12301$as_echo "yes" >&6; }
12302 succeeded=yes
12303
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12305$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12306 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12308$as_echo "$LIBXML2_CFLAGS" >&6; }
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12311$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12312 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12314$as_echo "$LIBXML2_LIBS" >&6; }
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317$as_echo "no" >&6; }
12318 LIBXML2_CFLAGS=""
12319 LIBXML2_LIBS=""
12320 ## If we have a custom action on failure, don't print errors, but
12321 ## do set a variable so people can do so.
dab73760 12322 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12323
12324 fi
12325
12326
12327
12328 else
12329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12331 fi
12332 fi
12333
12334 if test $succeeded = yes; then
12335 HAVE_LIBXML2=yes
12336 else
12337 HAVE_LIBXML2=no
12338 fi
12339
12340 if test "${HAVE_LIBXML2}" = "yes"; then
12341 LIBS="$LIBXML2_LIBS $LIBS"
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12343$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
2018939f 12344if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12345 $as_echo_n "(cached) " >&6
12346else
12347 ac_check_lib_save_LIBS=$LIBS
12348LIBS="-lxml2 $LIBS"
12349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h. */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char htmlReadMemory ();
12359int
12360main ()
12361{
12362return htmlReadMemory ();
12363 ;
12364 return 0;
12365}
12366_ACEOF
12367if ac_fn_c_try_link "$LINENO"; then :
12368 ac_cv_lib_xml2_htmlReadMemory=yes
12369else
12370 ac_cv_lib_xml2_htmlReadMemory=no
12371fi
12372rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374LIBS=$ac_check_lib_save_LIBS
12375fi
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12377$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
2018939f 12378if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12379 HAVE_LIBXML2=yes
12380else
12381 HAVE_LIBXML2=no
12382fi
12383
12384 if test "${HAVE_LIBXML2}" = "yes"; then
12385
12386$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12387
12388 else
12389 LIBXML2_LIBS=""
12390 LIBXML2_CFLAGS=""
12391 fi
12392 fi
12393fi
12394
12395
12396
12397# If netdb.h doesn't declare h_errno, we must declare it by hand.
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12399$as_echo_n "checking whether netdb declares h_errno... " >&6; }
2018939f 12400if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12401 $as_echo_n "(cached) " >&6
12402else
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404/* end confdefs.h. */
12405#include <netdb.h>
12406int
12407main ()
12408{
12409return h_errno;
12410 ;
12411 return 0;
12412}
12413_ACEOF
12414if ac_fn_c_try_link "$LINENO"; then :
12415 emacs_cv_netdb_declares_h_errno=yes
12416else
12417 emacs_cv_netdb_declares_h_errno=no
12418fi
12419rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421fi
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12423$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12424if test $emacs_cv_netdb_declares_h_errno = yes; then
12425
12426$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12427
12428fi
12429
2018939f
AS
12430ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12431if test "x$ac_cv_type_size_t" = xyes; then :
12432
12433else
12434
12435cat >>confdefs.h <<_ACEOF
12436#define size_t unsigned int
12437_ACEOF
12438
12439fi
12440
067d23c9
KY
12441# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12442# for constant arguments. Useless!
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12444$as_echo_n "checking for working alloca.h... " >&6; }
2018939f 12445if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12446 $as_echo_n "(cached) " >&6
12447else
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h. */
12450#include <alloca.h>
12451int
12452main ()
12453{
12454char *p = (char *) alloca (2 * sizeof (int));
12455 if (p) return 0;
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460if ac_fn_c_try_link "$LINENO"; then :
12461 ac_cv_working_alloca_h=yes
12462else
12463 ac_cv_working_alloca_h=no
12464fi
12465rm -f core conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12469$as_echo "$ac_cv_working_alloca_h" >&6; }
12470if test $ac_cv_working_alloca_h = yes; then
12471
12472$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12473
12474fi
12475
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12477$as_echo_n "checking for alloca... " >&6; }
2018939f 12478if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12479 $as_echo_n "(cached) " >&6
12480else
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482/* end confdefs.h. */
12483#ifdef __GNUC__
12484# define alloca __builtin_alloca
12485#else
12486# ifdef _MSC_VER
12487# include <malloc.h>
12488# define alloca _alloca
12489# else
12490# ifdef HAVE_ALLOCA_H
12491# include <alloca.h>
12492# else
12493# ifdef _AIX
12494 #pragma alloca
12495# else
12496# ifndef alloca /* predefined by HP cc +Olibcalls */
2018939f 12497void *alloca (size_t);
067d23c9
KY
12498# endif
12499# endif
12500# endif
12501# endif
12502#endif
12503
12504int
12505main ()
12506{
12507char *p = (char *) alloca (1);
12508 if (p) return 0;
12509 ;
12510 return 0;
12511}
12512_ACEOF
12513if ac_fn_c_try_link "$LINENO"; then :
12514 ac_cv_func_alloca_works=yes
12515else
12516 ac_cv_func_alloca_works=no
12517fi
12518rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12520fi
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12522$as_echo "$ac_cv_func_alloca_works" >&6; }
12523
12524if test $ac_cv_func_alloca_works = yes; then
12525
12526$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12527
12528else
12529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12530# that cause trouble. Some versions do not even contain alloca or
12531# contain a buggy version. If you still want to use their alloca,
12532# use ar to extract alloca.o from them instead of compiling alloca.c.
12533
12534ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12535
12536$as_echo "#define C_ALLOCA 1" >>confdefs.h
12537
12538
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12540$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
2018939f 12541if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12542 $as_echo_n "(cached) " >&6
12543else
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545/* end confdefs.h. */
12546#if defined CRAY && ! defined CRAY2
12547webecray
12548#else
12549wenotbecray
12550#endif
12551
12552_ACEOF
12553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12554 $EGREP "webecray" >/dev/null 2>&1; then :
12555 ac_cv_os_cray=yes
12556else
12557 ac_cv_os_cray=no
12558fi
12559rm -f conftest*
12560
12561fi
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12563$as_echo "$ac_cv_os_cray" >&6; }
12564if test $ac_cv_os_cray = yes; then
12565 for ac_func in _getb67 GETB67 getb67; do
12566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12569
12570cat >>confdefs.h <<_ACEOF
12571#define CRAY_STACKSEG_END $ac_func
12572_ACEOF
12573
12574 break
12575fi
12576
12577 done
12578fi
12579
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12581$as_echo_n "checking stack direction for C alloca... " >&6; }
2018939f 12582if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12583 $as_echo_n "(cached) " >&6
12584else
12585 if test "$cross_compiling" = yes; then :
12586 ac_cv_c_stack_direction=0
12587else
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589/* end confdefs.h. */
12590$ac_includes_default
12591int
12592find_stack_direction ()
12593{
12594 static char *addr = 0;
12595 auto char dummy;
12596 if (addr == 0)
12597 {
12598 addr = &dummy;
12599 return find_stack_direction ();
12600 }
12601 else
12602 return (&dummy > addr) ? 1 : -1;
12603}
12604
12605int
12606main ()
12607{
12608 return find_stack_direction () < 0;
12609}
12610_ACEOF
12611if ac_fn_c_try_run "$LINENO"; then :
12612 ac_cv_c_stack_direction=1
12613else
12614 ac_cv_c_stack_direction=-1
12615fi
12616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12617 conftest.$ac_objext conftest.beam conftest.$ac_ext
12618fi
12619
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12622$as_echo "$ac_cv_c_stack_direction" >&6; }
12623cat >>confdefs.h <<_ACEOF
12624#define STACK_DIRECTION $ac_cv_c_stack_direction
12625_ACEOF
12626
12627
12628fi
12629
12630
12631if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12632 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12633fi
12634
12635# fmod, logb, and frexp are found in -lm on most systems.
12636# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12638$as_echo_n "checking for sqrt in -lm... " >&6; }
2018939f 12639if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12640 $as_echo_n "(cached) " >&6
12641else
12642 ac_check_lib_save_LIBS=$LIBS
12643LIBS="-lm $LIBS"
12644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645/* end confdefs.h. */
12646
12647/* Override any GCC internal prototype to avoid an error.
12648 Use char because int might match the return type of a GCC
12649 builtin and then its argument prototype would still apply. */
12650#ifdef __cplusplus
12651extern "C"
12652#endif
12653char sqrt ();
12654int
12655main ()
12656{
12657return sqrt ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662if ac_fn_c_try_link "$LINENO"; then :
12663 ac_cv_lib_m_sqrt=yes
12664else
12665 ac_cv_lib_m_sqrt=no
12666fi
12667rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669LIBS=$ac_check_lib_save_LIBS
12670fi
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12672$as_echo "$ac_cv_lib_m_sqrt" >&6; }
2018939f 12673if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
12674 cat >>confdefs.h <<_ACEOF
12675#define HAVE_LIBM 1
12676_ACEOF
12677
12678 LIBS="-lm $LIBS"
12679
12680fi
12681
12682
12683# Check for mail-locking functions in a "mail" library. Probably this should
12684# have the same check as for liblockfile below.
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12686$as_echo_n "checking for maillock in -lmail... " >&6; }
2018939f 12687if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
12688 $as_echo_n "(cached) " >&6
12689else
12690 ac_check_lib_save_LIBS=$LIBS
12691LIBS="-lmail $LIBS"
12692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h. */
12694
12695/* Override any GCC internal prototype to avoid an error.
12696 Use char because int might match the return type of a GCC
12697 builtin and then its argument prototype would still apply. */
12698#ifdef __cplusplus
12699extern "C"
12700#endif
12701char maillock ();
12702int
12703main ()
12704{
12705return maillock ();
12706 ;
12707 return 0;
12708}
12709_ACEOF
12710if ac_fn_c_try_link "$LINENO"; then :
12711 ac_cv_lib_mail_maillock=yes
12712else
12713 ac_cv_lib_mail_maillock=no
12714fi
12715rm -f core conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext conftest.$ac_ext
12717LIBS=$ac_check_lib_save_LIBS
12718fi
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12720$as_echo "$ac_cv_lib_mail_maillock" >&6; }
2018939f 12721if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
12722 have_mail=yes
12723else
12724 have_mail=no
12725fi
12726
12727if test $have_mail = yes; then
12728 LIBS_MAIL=-lmail
12729 LIBS="$LIBS_MAIL $LIBS"
12730
12731$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12732
12733else
12734 LIBS_MAIL=
12735fi
12736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12737$as_echo_n "checking for maillock in -llockfile... " >&6; }
2018939f 12738if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
12739 $as_echo_n "(cached) " >&6
12740else
12741 ac_check_lib_save_LIBS=$LIBS
12742LIBS="-llockfile $LIBS"
12743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744/* end confdefs.h. */
12745
12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749#ifdef __cplusplus
12750extern "C"
12751#endif
12752char maillock ();
12753int
12754main ()
12755{
12756return maillock ();
12757 ;
12758 return 0;
12759}
12760_ACEOF
12761if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_lockfile_maillock=yes
12763else
12764 ac_cv_lib_lockfile_maillock=no
12765fi
12766rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768LIBS=$ac_check_lib_save_LIBS
12769fi
12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12771$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
2018939f 12772if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
12773 have_lockfile=yes
12774else
12775 have_lockfile=no
12776fi
12777
12778if test $have_lockfile = yes; then
12779 LIBS_MAIL=-llockfile
12780 LIBS="$LIBS_MAIL $LIBS"
12781
12782$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12783
12784else
12785# If we have the shared liblockfile, assume we must use it for mail
12786# locking (e.g. Debian). If we couldn't link against liblockfile
12787# (no liblockfile.a installed), ensure that we don't need to.
12788 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12789set dummy liblockfile.so; ac_word=$2
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791$as_echo_n "checking for $ac_word... " >&6; }
2018939f 12792if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
12793 $as_echo_n "(cached) " >&6
12794else
12795 if test -n "$liblockfile"; then
12796 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12797else
12798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12800for as_dir in $as_dummy
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806 ac_cv_prog_liblockfile="yes"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12809 fi
12810done
12811 done
12812IFS=$as_save_IFS
12813
12814 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12815fi
12816fi
12817liblockfile=$ac_cv_prog_liblockfile
12818if test -n "$liblockfile"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12820$as_echo "$liblockfile" >&6; }
12821else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
12824fi
12825
12826
12827 if test $ac_cv_prog_liblockfile = yes; then
2018939f 12828 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
12829This probably means that movemail could lose mail.
12830There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12831 fi
12832fi
12833for ac_func in touchlock
12834do :
12835 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
2018939f 12836if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
12837 cat >>confdefs.h <<_ACEOF
12838#define HAVE_TOUCHLOCK 1
12839_ACEOF
12840
12841fi
12842done
12843
12844for ac_header in maillock.h
12845do :
12846 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
2018939f 12847if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
12848 cat >>confdefs.h <<_ACEOF
12849#define HAVE_MAILLOCK_H 1
12850_ACEOF
12851
12852fi
12853
12854done
12855
12856
12857
12858## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12859## interlock access to the mail spool. The alternative is a lock file named
12860## /usr/spool/mail/$USER.lock.
12861mail_lock=no
12862case "$opsys" in
12863 aix4-2) mail_lock="lockf" ;;
12864
12865 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12866
12867 ## On GNU/Linux systems, both methods are used by various mail programs.
12868 ## I assume most people are using newer mailers that have heard of flock.
12869 ## Change this if you need to.
12870 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12871 ## configure gets the right answers, and that means *NOT* using flock.
12872 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12873 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12874 ## Debian maintainer hasn't provided a clean fix for Emacs.
12875 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12876 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12877 ## correct logic. -- fx
12878 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12879 ## liblockfile is a Free Software replacement for libmail, used on
12880 ## Debian systems and elsewhere. -rfr.
12881 gnu-*)
12882 mail_lock="flock"
12883 if test $have_mail = yes || test $have_lockfile = yes; then
12884 test $ac_cv_header_maillock_h = yes && mail_lock=no
12885 fi
12886 ;;
12887esac
12888
12889BLESSMAIL_TARGET=
12890case "$mail_lock" in
12891 flock)
12892$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12893 ;;
12894
12895 lockf)
12896$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12897 ;;
12898
12899 *) BLESSMAIL_TARGET="need-blessmail" ;;
12900esac
12901
12902
12903
12904for ac_func in gethostname getdomainname dup2 \
12905rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12906random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 12907strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
12908utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12909__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12910sendto recvfrom getsockopt setsockopt getsockname getpeername \
12911gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12912memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12913cfmakeraw cfsetspeed isnan copysign __executable_start
12914do :
12915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12916ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12917if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12918 cat >>confdefs.h <<_ACEOF
12919#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12920_ACEOF
12921
12922fi
12923done
12924
12925
2018939f
AS
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12927$as_echo_n "checking for __builtin_unwind_init... " >&6; }
12928if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930else
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932/* end confdefs.h. */
12933
12934int
12935main ()
12936{
12937__builtin_unwind_init ();
12938 ;
12939 return 0;
12940}
12941_ACEOF
12942if ac_fn_c_try_link "$LINENO"; then :
12943 emacs_cv_func___builtin_unwind_init=yes
12944else
12945 emacs_cv_func___builtin_unwind_init=no
12946fi
12947rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949fi
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
12951$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
12952if test $emacs_cv_func___builtin_unwind_init = yes; then
12953
12954$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
12955
12956fi
12957
067d23c9
KY
12958for ac_header in sys/un.h
12959do :
12960 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
2018939f 12961if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
12962 cat >>confdefs.h <<_ACEOF
12963#define HAVE_SYS_UN_H 1
12964_ACEOF
12965
12966fi
12967
12968done
12969
12970
1fd182f0 12971ac_have_func=no # yes means we've found a way to get the load average.
067d23c9
KY
12972
12973# Make sure getloadavg.c is where it belongs, at configure-time.
12974test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
2018939f 12975 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
067d23c9
KY
12976
12977ac_save_LIBS=$LIBS
12978
12979# Check for getloadavg, but be sure not to touch the cache variable.
12980(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
2018939f 12981if test "x$ac_cv_func_getloadavg" = xyes; then :
067d23c9
KY
12982 exit 0
12983else
12984 exit 1
12985fi
12986) && ac_have_func=yes
12987
12988# On HPUX9, an unprivileged user can get load averages through this function.
12989for ac_func in pstat_getdynamic
12990do :
12991 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
2018939f 12992if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
067d23c9
KY
12993 cat >>confdefs.h <<_ACEOF
12994#define HAVE_PSTAT_GETDYNAMIC 1
12995_ACEOF
12996
12997fi
12998done
12999
13000
13001# Solaris has libkstat which does not require root.
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13003$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
2018939f 13004if ${ac_cv_lib_kstat_kstat_open+:} false; then :
067d23c9
KY
13005 $as_echo_n "(cached) " >&6
13006else
13007 ac_check_lib_save_LIBS=$LIBS
13008LIBS="-lkstat $LIBS"
13009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h. */
13011
13012/* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018char kstat_open ();
13019int
13020main ()
13021{
13022return kstat_open ();
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027if ac_fn_c_try_link "$LINENO"; then :
13028 ac_cv_lib_kstat_kstat_open=yes
13029else
13030 ac_cv_lib_kstat_kstat_open=no
13031fi
13032rm -f core conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13034LIBS=$ac_check_lib_save_LIBS
13035fi
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13037$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
2018939f 13038if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
067d23c9
KY
13039 cat >>confdefs.h <<_ACEOF
13040#define HAVE_LIBKSTAT 1
13041_ACEOF
13042
13043 LIBS="-lkstat $LIBS"
13044
13045fi
13046
13047test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13048
13049# Some systems with -lutil have (and need) -lkvm as well, some do not.
13050# On Solaris, -lkvm requires nlist from -lelf, so check that first
13051# to get the right answer into the cache.
13052# For kstat on solaris, we need libelf to force the definition of SVR4 below.
13053if test $ac_have_func = no; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13055$as_echo_n "checking for elf_begin in -lelf... " >&6; }
2018939f 13056if ${ac_cv_lib_elf_elf_begin+:} false; then :
067d23c9
KY
13057 $as_echo_n "(cached) " >&6
13058else
13059 ac_check_lib_save_LIBS=$LIBS
13060LIBS="-lelf $LIBS"
13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062/* end confdefs.h. */
13063
13064/* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13067#ifdef __cplusplus
13068extern "C"
13069#endif
13070char elf_begin ();
13071int
13072main ()
13073{
13074return elf_begin ();
13075 ;
13076 return 0;
13077}
13078_ACEOF
13079if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_lib_elf_elf_begin=yes
13081else
13082 ac_cv_lib_elf_elf_begin=no
13083fi
13084rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086LIBS=$ac_check_lib_save_LIBS
13087fi
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13089$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
2018939f 13090if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
067d23c9
KY
13091 LIBS="-lelf $LIBS"
13092fi
13093
13094fi
13095if test $ac_have_func = no; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13097$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
2018939f 13098if ${ac_cv_lib_kvm_kvm_open+:} false; then :
067d23c9
KY
13099 $as_echo_n "(cached) " >&6
13100else
13101 ac_check_lib_save_LIBS=$LIBS
13102LIBS="-lkvm $LIBS"
13103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104/* end confdefs.h. */
13105
13106/* Override any GCC internal prototype to avoid an error.
13107 Use char because int might match the return type of a GCC
13108 builtin and then its argument prototype would still apply. */
13109#ifdef __cplusplus
13110extern "C"
13111#endif
13112char kvm_open ();
13113int
13114main ()
13115{
13116return kvm_open ();
13117 ;
13118 return 0;
13119}
13120_ACEOF
13121if ac_fn_c_try_link "$LINENO"; then :
13122 ac_cv_lib_kvm_kvm_open=yes
13123else
13124 ac_cv_lib_kvm_kvm_open=no
13125fi
13126rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128LIBS=$ac_check_lib_save_LIBS
13129fi
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13131$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
2018939f 13132if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
067d23c9
KY
13133 LIBS="-lkvm $LIBS"
13134fi
13135
13136 # Check for the 4.4BSD definition of getloadavg.
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13138$as_echo_n "checking for getloadavg in -lutil... " >&6; }
2018939f 13139if ${ac_cv_lib_util_getloadavg+:} false; then :
067d23c9
KY
13140 $as_echo_n "(cached) " >&6
13141else
13142 ac_check_lib_save_LIBS=$LIBS
13143LIBS="-lutil $LIBS"
13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145/* end confdefs.h. */
13146
13147/* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13150#ifdef __cplusplus
13151extern "C"
13152#endif
13153char getloadavg ();
13154int
13155main ()
13156{
13157return getloadavg ();
13158 ;
13159 return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_link "$LINENO"; then :
13163 ac_cv_lib_util_getloadavg=yes
13164else
13165 ac_cv_lib_util_getloadavg=no
13166fi
13167rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169LIBS=$ac_check_lib_save_LIBS
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13172$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
2018939f 13173if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
067d23c9
KY
13174 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13175fi
13176
13177fi
13178
13179if test $ac_have_func = no; then
13180 # There is a commonly available library for RS/6000 AIX.
13181 # Since it is not a standard part of AIX, it might be installed locally.
13182 ac_getloadavg_LIBS=$LIBS
13183 LIBS="-L/usr/local/lib $LIBS"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13185$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
2018939f 13186if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
067d23c9
KY
13187 $as_echo_n "(cached) " >&6
13188else
13189 ac_check_lib_save_LIBS=$LIBS
13190LIBS="-lgetloadavg $LIBS"
13191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h. */
13193
13194/* Override any GCC internal prototype to avoid an error.
13195 Use char because int might match the return type of a GCC
13196 builtin and then its argument prototype would still apply. */
13197#ifdef __cplusplus
13198extern "C"
13199#endif
13200char getloadavg ();
13201int
13202main ()
13203{
13204return getloadavg ();
13205 ;
13206 return 0;
13207}
13208_ACEOF
13209if ac_fn_c_try_link "$LINENO"; then :
13210 ac_cv_lib_getloadavg_getloadavg=yes
13211else
13212 ac_cv_lib_getloadavg_getloadavg=no
13213fi
13214rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13216LIBS=$ac_check_lib_save_LIBS
13217fi
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13219$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
2018939f 13220if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
067d23c9
KY
13221 LIBS="-lgetloadavg $LIBS"
13222else
13223 LIBS=$ac_getloadavg_LIBS
13224fi
13225
13226fi
13227
13228# Make sure it is really in the library, if we think we found it,
13229# otherwise set up the replacement function.
13230for ac_func in getloadavg
13231do :
13232 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
2018939f 13233if test "x$ac_cv_func_getloadavg" = xyes; then :
067d23c9
KY
13234 cat >>confdefs.h <<_ACEOF
13235#define HAVE_GETLOADAVG 1
13236_ACEOF
13237
13238else
13239 case " $LIBOBJS " in
13240 *" getloadavg.$ac_objext "* ) ;;
13241 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13242 ;;
13243esac
13244
13245
13246$as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13247
13248# Figure out what our getloadavg.c needs.
13249ac_have_func=no
13250ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
2018939f 13251if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
067d23c9
KY
13252 ac_have_func=yes
13253
13254$as_echo "#define DGUX 1" >>confdefs.h
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13257$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
2018939f 13258if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
067d23c9
KY
13259 $as_echo_n "(cached) " >&6
13260else
13261 ac_check_lib_save_LIBS=$LIBS
13262LIBS="-ldgc $LIBS"
13263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h. */
13265
13266/* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13269#ifdef __cplusplus
13270extern "C"
13271#endif
13272char dg_sys_info ();
13273int
13274main ()
13275{
13276return dg_sys_info ();
13277 ;
13278 return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_lib_dgc_dg_sys_info=yes
13283else
13284 ac_cv_lib_dgc_dg_sys_info=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288LIBS=$ac_check_lib_save_LIBS
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13291$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
2018939f 13292if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
067d23c9
KY
13293 cat >>confdefs.h <<_ACEOF
13294#define HAVE_LIBDGC 1
13295_ACEOF
13296
13297 LIBS="-ldgc $LIBS"
13298
13299fi
13300
13301fi
13302
13303
13304
13305ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
2018939f 13306if test "x$ac_cv_header_locale_h" = xyes; then :
067d23c9
KY
13307
13308fi
13309
13310
13311for ac_func in setlocale
13312do :
13313 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
2018939f 13314if test "x$ac_cv_func_setlocale" = xyes; then :
067d23c9
KY
13315 cat >>confdefs.h <<_ACEOF
13316#define HAVE_SETLOCALE 1
13317_ACEOF
13318
13319fi
13320done
13321
13322
13323# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13324# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13325# Irix 4.0.5F has the header but not the library.
2018939f
AS
13326if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13327 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
067d23c9
KY
13328 ac_have_func=yes
13329
13330$as_echo "#define SVR4 1" >>confdefs.h
13331
13332fi
13333
13334if test $ac_have_func = no; then
13335 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
2018939f 13336if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
067d23c9
KY
13337 ac_have_func=yes
13338
13339$as_echo "#define UMAX 1" >>confdefs.h
13340
13341
13342$as_echo "#define UMAX4_3 1" >>confdefs.h
13343
13344fi
13345
13346
13347fi
13348
13349if test $ac_have_func = no; then
13350 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
2018939f 13351if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
067d23c9
KY
13352 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13353
13354fi
13355
13356
13357fi
13358
13359if test $ac_have_func = no; then
13360 for ac_header in mach/mach.h
13361do :
13362 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
2018939f 13363if test "x$ac_cv_header_mach_mach_h" = xyes; then :
067d23c9
KY
13364 cat >>confdefs.h <<_ACEOF
13365#define HAVE_MACH_MACH_H 1
13366_ACEOF
13367
13368fi
13369
13370done
13371
13372fi
13373
13374for ac_header in nlist.h
13375do :
13376 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
2018939f 13377if test "x$ac_cv_header_nlist_h" = xyes; then :
067d23c9
KY
13378 cat >>confdefs.h <<_ACEOF
13379#define HAVE_NLIST_H 1
13380_ACEOF
13381 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13382"
2018939f 13383if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
067d23c9
KY
13384
13385cat >>confdefs.h <<_ACEOF
13386#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13387_ACEOF
13388
13389
13390$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13391
13392fi
13393
13394
13395fi
13396
13397done
13398
13399fi
13400done
13401
13402
13403# Some definitions of getloadavg require that the program be installed setgid.
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13405$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
2018939f 13406if ${ac_cv_func_getloadavg_setgid+:} false; then :
067d23c9
KY
13407 $as_echo_n "(cached) " >&6
13408else
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410/* end confdefs.h. */
13411#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13412#ifdef LDAV_PRIVILEGED
13413Yowza Am I SETGID yet
13414#endif
13415_ACEOF
13416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13417 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13418 ac_cv_func_getloadavg_setgid=yes
13419else
13420 ac_cv_func_getloadavg_setgid=no
13421fi
13422rm -f conftest*
13423
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13426$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13427if test $ac_cv_func_getloadavg_setgid = yes; then
13428 NEED_SETGID=true
13429
13430$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13431
13432else
13433 NEED_SETGID=false
13434fi
13435
13436if test $ac_cv_func_getloadavg_setgid = yes; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13438$as_echo_n "checking group of /dev/kmem... " >&6; }
2018939f 13439if ${ac_cv_group_kmem+:} false; then :
067d23c9
KY
13440 $as_echo_n "(cached) " >&6
13441else
13442 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13443 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13444 # If we got an error (system does not support symlinks), try without -L.
13445 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13446 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13447 | sed -ne 's/[ ][ ]*/ /g;
13448 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13449 / /s/.* //;p;'`
13450
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13453$as_echo "$ac_cv_group_kmem" >&6; }
13454 KMEM_GROUP=$ac_cv_group_kmem
13455fi
13456if test "x$ac_save_LIBS" = x; then
13457 GETLOADAVG_LIBS=$LIBS
13458else
13459 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13460fi
13461LIBS=$ac_save_LIBS
13462
13463
13464
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13466$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
2018939f 13467if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13468 $as_echo_n "(cached) " >&6
13469else
13470 while :; do
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472/* end confdefs.h. */
13473#include <sys/types.h> /* for off_t */
13474 #include <stdio.h>
13475int
13476main ()
13477{
13478int (*fp) (FILE *, off_t, int) = fseeko;
13479 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13480 ;
13481 return 0;
13482}
13483_ACEOF
13484if ac_fn_c_try_link "$LINENO"; then :
13485 ac_cv_sys_largefile_source=no; break
13486fi
13487rm -f core conftest.err conftest.$ac_objext \
13488 conftest$ac_exeext conftest.$ac_ext
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h. */
13491#define _LARGEFILE_SOURCE 1
13492#include <sys/types.h> /* for off_t */
13493 #include <stdio.h>
13494int
13495main ()
13496{
13497int (*fp) (FILE *, off_t, int) = fseeko;
13498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503if ac_fn_c_try_link "$LINENO"; then :
13504 ac_cv_sys_largefile_source=1; break
13505fi
1fd182f0
PE
13506rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 ac_cv_sys_largefile_source=unknown
13509 break
13510done
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13513$as_echo "$ac_cv_sys_largefile_source" >&6; }
13514case $ac_cv_sys_largefile_source in #(
13515 no | unknown) ;;
13516 *)
13517cat >>confdefs.h <<_ACEOF
13518#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13519_ACEOF
13520;;
13521esac
13522rm -rf conftest*
13523
13524# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13525# in glibc 2.1.3, but that breaks too many other things.
13526# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13527if test $ac_cv_sys_largefile_source != unknown; then
13528
13529$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13530
13531fi
13532
13533
1fd182f0
PE
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13535$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13536if ${ac_cv_func_getpgrp_void+:} false; then :
13537 $as_echo_n "(cached) " >&6
13538else
13539 # Use it with a single arg.
13540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541/* end confdefs.h. */
13542$ac_includes_default
13543int
13544main ()
13545{
13546getpgrp (0);
13547 ;
13548 return 0;
13549}
13550_ACEOF
13551if ac_fn_c_try_compile "$LINENO"; then :
13552 ac_cv_func_getpgrp_void=no
13553else
13554 ac_cv_func_getpgrp_void=yes
13555fi
13556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13557
13558fi
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13560$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13561if test $ac_cv_func_getpgrp_void = yes; then
13562
13563$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13564
13565fi
13566
13567
13568# Configure gnulib.
13569
13570
13571
13572
13573 LIBC_FATAL_STDERR_=1
13574 export LIBC_FATAL_STDERR_
13575
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13578$as_echo_n "checking whether strtold conforms to C99... " >&6; }
13579if ${gl_cv_func_c99_strtold+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581else
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583/* end confdefs.h. */
13584/* On HP-UX before 11.23, strtold returns a struct instead of
13585 long double. Reject implementations like that, by requiring
13586 compatibility with the C99 prototype. */
13587 #include <stdlib.h>
13588 static long double (*p) (char const *, char **) = strtold;
13589 static long double
13590 test (char const *nptr, char **endptr)
13591 {
13592 long double r;
13593 r = strtold (nptr, endptr);
13594 return r;
13595 }
13596int
13597main ()
13598{
13599return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13600 ;
13601 return 0;
13602}
13603_ACEOF
13604if ac_fn_c_try_link "$LINENO"; then :
13605 gl_cv_func_c99_strtold=yes
13606else
13607 gl_cv_func_c99_strtold=no
13608fi
13609rm -f core conftest.err conftest.$ac_objext \
13610 conftest$ac_exeext conftest.$ac_ext
13611fi
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13613$as_echo "$gl_cv_func_c99_strtold" >&6; }
13614 if test $gl_cv_func_c99_strtold = yes; then
13615
13616$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13617
13618 fi
13619
13620
e275c824
PE
13621 GNULIB_CHOWN=0;
13622 GNULIB_CLOSE=0;
13623 GNULIB_DUP2=0;
13624 GNULIB_DUP3=0;
13625 GNULIB_ENVIRON=0;
13626 GNULIB_EUIDACCESS=0;
13627 GNULIB_FACCESSAT=0;
13628 GNULIB_FCHDIR=0;
13629 GNULIB_FCHOWNAT=0;
13630 GNULIB_FSYNC=0;
13631 GNULIB_FTRUNCATE=0;
13632 GNULIB_GETCWD=0;
13633 GNULIB_GETDOMAINNAME=0;
13634 GNULIB_GETDTABLESIZE=0;
13635 GNULIB_GETGROUPS=0;
13636 GNULIB_GETHOSTNAME=0;
13637 GNULIB_GETLOGIN=0;
13638 GNULIB_GETLOGIN_R=0;
13639 GNULIB_GETPAGESIZE=0;
13640 GNULIB_GETUSERSHELL=0;
13641 GNULIB_LCHOWN=0;
13642 GNULIB_LINK=0;
13643 GNULIB_LINKAT=0;
13644 GNULIB_LSEEK=0;
13645 GNULIB_PIPE=0;
13646 GNULIB_PIPE2=0;
13647 GNULIB_PREAD=0;
13648 GNULIB_PWRITE=0;
13649 GNULIB_READLINK=0;
13650 GNULIB_READLINKAT=0;
13651 GNULIB_RMDIR=0;
13652 GNULIB_SLEEP=0;
13653 GNULIB_SYMLINK=0;
13654 GNULIB_SYMLINKAT=0;
13655 GNULIB_TTYNAME_R=0;
13656 GNULIB_UNISTD_H_GETOPT=0;
13657 GNULIB_UNISTD_H_SIGPIPE=0;
13658 GNULIB_UNLINK=0;
13659 GNULIB_UNLINKAT=0;
13660 GNULIB_USLEEP=0;
13661 GNULIB_WRITE=0;
13662 HAVE_CHOWN=1;
13663 HAVE_DUP2=1;
13664 HAVE_DUP3=1;
13665 HAVE_EUIDACCESS=1;
13666 HAVE_FACCESSAT=1;
13667 HAVE_FCHDIR=1;
13668 HAVE_FCHOWNAT=1;
13669 HAVE_FSYNC=1;
13670 HAVE_FTRUNCATE=1;
13671 HAVE_GETDTABLESIZE=1;
13672 HAVE_GETGROUPS=1;
13673 HAVE_GETHOSTNAME=1;
13674 HAVE_GETLOGIN=1;
13675 HAVE_GETPAGESIZE=1;
13676 HAVE_LCHOWN=1;
13677 HAVE_LINK=1;
13678 HAVE_LINKAT=1;
13679 HAVE_PIPE=1;
13680 HAVE_PIPE2=1;
13681 HAVE_PREAD=1;
13682 HAVE_PWRITE=1;
13683 HAVE_READLINK=1;
13684 HAVE_READLINKAT=1;
13685 HAVE_SLEEP=1;
13686 HAVE_SYMLINK=1;
13687 HAVE_SYMLINKAT=1;
13688 HAVE_UNLINKAT=1;
13689 HAVE_USLEEP=1;
13690 HAVE_DECL_ENVIRON=1;
13691 HAVE_DECL_FCHDIR=1;
13692 HAVE_DECL_GETDOMAINNAME=1;
13693 HAVE_DECL_GETLOGIN_R=1;
13694 HAVE_DECL_GETPAGESIZE=1;
13695 HAVE_DECL_GETUSERSHELL=1;
13696 HAVE_DECL_TTYNAME_R=1;
13697 HAVE_OS_H=0;
13698 HAVE_SYS_PARAM_H=0;
13699 REPLACE_CHOWN=0;
13700 REPLACE_CLOSE=0;
13701 REPLACE_DUP=0;
13702 REPLACE_DUP2=0;
13703 REPLACE_FCHOWNAT=0;
13704 REPLACE_GETCWD=0;
13705 REPLACE_GETDOMAINNAME=0;
13706 REPLACE_GETLOGIN_R=0;
13707 REPLACE_GETGROUPS=0;
13708 REPLACE_GETPAGESIZE=0;
13709 REPLACE_LCHOWN=0;
13710 REPLACE_LINK=0;
13711 REPLACE_LINKAT=0;
13712 REPLACE_LSEEK=0;
13713 REPLACE_PREAD=0;
13714 REPLACE_PWRITE=0;
13715 REPLACE_READLINK=0;
13716 REPLACE_RMDIR=0;
13717 REPLACE_SLEEP=0;
13718 REPLACE_SYMLINK=0;
13719 REPLACE_TTYNAME_R=0;
13720 REPLACE_UNLINK=0;
13721 REPLACE_UNLINKAT=0;
13722 REPLACE_USLEEP=0;
13723 REPLACE_WRITE=0;
13724 UNISTD_H_HAVE_WINSOCK2_H=0;
13725 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
1fd182f0
PE
13726
13727
13728
13729
e275c824
PE
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13731$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13732if ${gl_cv_have_include_next+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734else
13735 rm -rf conftestd1a conftestd1b conftestd2
13736 mkdir conftestd1a conftestd1b conftestd2
13737 cat <<EOF > conftestd1a/conftest.h
13738#define DEFINED_IN_CONFTESTD1
13739#include_next <conftest.h>
13740#ifdef DEFINED_IN_CONFTESTD2
13741int foo;
13742#else
13743#error "include_next doesn't work"
13744#endif
13745EOF
13746 cat <<EOF > conftestd1b/conftest.h
13747#define DEFINED_IN_CONFTESTD1
13748#include <stdio.h>
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 > conftestd2/conftest.h
13757#ifndef DEFINED_IN_CONFTESTD1
13758#error "include_next test doesn't work"
13759#endif
13760#define DEFINED_IN_CONFTESTD2
13761EOF
13762 gl_save_CPPFLAGS="$CPPFLAGS"
13763 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h. */
13766#include <conftest.h>
1fd182f0 13767_ACEOF
e275c824
PE
13768if ac_fn_c_try_compile "$LINENO"; then :
13769 gl_cv_have_include_next=yes
13770else
13771 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13773/* end confdefs.h. */
e275c824 13774#include <conftest.h>
1fd182f0
PE
13775_ACEOF
13776if ac_fn_c_try_compile "$LINENO"; then :
e275c824
PE
13777 gl_cv_have_include_next=buggy
13778else
13779 gl_cv_have_include_next=no
1fd182f0
PE
13780fi
13781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 13782
e275c824
PE
13783fi
13784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 CPPFLAGS="$gl_save_CPPFLAGS"
13786 rm -rf conftestd1a conftestd1b conftestd2
1fd182f0 13787
e275c824
PE
13788fi
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13790$as_echo "$gl_cv_have_include_next" >&6; }
13791 PRAGMA_SYSTEM_HEADER=
13792 if test $gl_cv_have_include_next = yes; then
13793 INCLUDE_NEXT=include_next
13794 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13795 if test -n "$GCC"; then
13796 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13797 fi
1fd182f0 13798 else
e275c824
PE
13799 if test $gl_cv_have_include_next = buggy; then
13800 INCLUDE_NEXT=include
13801 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13802 else
13803 INCLUDE_NEXT=include
13804 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13805 fi
1fd182f0
PE
13806 fi
13807
13808
e275c824
PE
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13811$as_echo_n "checking whether system header files limit the line length... " >&6; }
13812if ${gl_cv_pragma_columns+:} false; then :
1fd182f0
PE
13813 $as_echo_n "(cached) " >&6
13814else
e275c824 13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 13816/* end confdefs.h. */
1fd182f0 13817
e275c824
PE
13818#ifdef __TANDEM
13819choke me
13820#endif
13821
13822_ACEOF
13823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13824 $EGREP "choke me" >/dev/null 2>&1; then :
13825 gl_cv_pragma_columns=yes
13826else
13827 gl_cv_pragma_columns=no
13828fi
13829rm -f conftest*
13830
13831
13832fi
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13834$as_echo "$gl_cv_pragma_columns" >&6; }
13835 if test $gl_cv_pragma_columns = yes; then
13836 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13837 else
13838 PRAGMA_COLUMNS=
13839 fi
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854 if test $gl_cv_have_include_next = yes; then
13855 gl_cv_next_getopt_h='<'getopt.h'>'
13856 else
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13858$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13859if ${gl_cv_next_getopt_h+:} false; then :
13860 $as_echo_n "(cached) " >&6
13861else
13862
13863 if test $ac_cv_header_getopt_h = yes; then
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865/* end confdefs.h. */
13866#include <getopt.h>
13867
13868_ACEOF
13869 case "$host_os" in
13870 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13871 *) gl_absname_cpp="$ac_cpp" ;;
13872 esac
13873 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13874 sed -n '\#/getopt.h#{
13875 s#.*"\(.*/getopt.h\)".*#\1#
13876 s#^/[^/]#//&#
13877 p
13878 q
13879 }'`'"'
13880 else
13881 gl_cv_next_getopt_h='<'getopt.h'>'
13882 fi
13883
13884fi
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13886$as_echo "$gl_cv_next_getopt_h" >&6; }
13887 fi
13888 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13889
13890 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13892 gl_next_as_first_directive='<'getopt.h'>'
13893 else
13894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13895 gl_next_as_first_directive=$gl_cv_next_getopt_h
13896 fi
13897 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13898
13899
13900
13901
13902 if test $ac_cv_header_getopt_h = yes; then
13903 HAVE_GETOPT_H=1
13904 else
13905 HAVE_GETOPT_H=0
13906 fi
13907
13908
13909 gl_replace_getopt=
13910
13911 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13912 for ac_header in getopt.h
13913do :
13914 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13915if test "x$ac_cv_header_getopt_h" = xyes; then :
13916 cat >>confdefs.h <<_ACEOF
13917#define HAVE_GETOPT_H 1
13918_ACEOF
13919
13920else
13921 gl_replace_getopt=yes
13922fi
13923
13924done
13925
13926 fi
13927
13928 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13929 for ac_func in getopt_long_only
13930do :
13931 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13932if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13933 cat >>confdefs.h <<_ACEOF
13934#define HAVE_GETOPT_LONG_ONLY 1
13935_ACEOF
13936
13937else
13938 gl_replace_getopt=yes
13939fi
13940done
13941
13942 fi
13943
13944 if test -z "$gl_replace_getopt"; then
13945 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
13946"
13947if test "x$ac_cv_have_decl_optreset" = xyes; then :
13948 ac_have_decl=1
13949else
13950 ac_have_decl=0
13951fi
13952
13953cat >>confdefs.h <<_ACEOF
13954#define HAVE_DECL_OPTRESET $ac_have_decl
13955_ACEOF
13956if test $ac_have_decl = 1; then :
13957
13958else
13959 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
13960"
13961if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
13962 ac_have_decl=1
13963else
13964 ac_have_decl=0
13965fi
13966
13967cat >>confdefs.h <<_ACEOF
13968#define HAVE_DECL_GETOPT_CLIP $ac_have_decl
13969_ACEOF
13970
13971
13972fi
13973
13974 fi
13975
13976 if test -z "$gl_replace_getopt"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13978$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13979if ${gl_cv_func_getopt_posix+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981else
13982
13983 if test "$cross_compiling" = yes; then :
13984 case "$host_os" in
13985 mingw*) gl_cv_func_getopt_posix="guessing no";;
13986 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13987 *) gl_cv_func_getopt_posix="guessing yes";;
13988 esac
13989
13990else
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h. */
13993
13994#include <unistd.h>
13995#include <stdlib.h>
13996#include <string.h>
13997
13998#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
13999# define OPTIND_MIN 0
14000#else
14001# define OPTIND_MIN 1
14002#endif
14003
14004int
14005main ()
14006{
14007 {
14008 int argc = 0;
14009 char *argv[10];
14010 int c;
14011
14012 argv[argc++] = "program";
14013 argv[argc++] = "-a";
14014 argv[argc++] = "foo";
14015 argv[argc++] = "bar";
14016 argv[argc] = NULL;
14017 optind = OPTIND_MIN;
14018 opterr = 0;
14019
14020 c = getopt (argc, argv, "ab");
14021 if (!(c == 'a'))
14022 return 1;
14023 c = getopt (argc, argv, "ab");
14024 if (!(c == -1))
14025 return 2;
14026 if (!(optind == 2))
14027 return 3;
14028 }
14029 /* Some internal state exists at this point. */
14030 {
14031 int argc = 0;
14032 char *argv[10];
14033 int c;
14034
14035 argv[argc++] = "program";
14036 argv[argc++] = "donald";
14037 argv[argc++] = "-p";
14038 argv[argc++] = "billy";
14039 argv[argc++] = "duck";
14040 argv[argc++] = "-a";
14041 argv[argc++] = "bar";
14042 argv[argc] = NULL;
14043 optind = OPTIND_MIN;
14044 opterr = 0;
14045
14046 c = getopt (argc, argv, "+abp:q:");
14047 if (!(c == -1))
14048 return 4;
14049 if (!(strcmp (argv[0], "program") == 0))
14050 return 5;
14051 if (!(strcmp (argv[1], "donald") == 0))
14052 return 6;
14053 if (!(strcmp (argv[2], "-p") == 0))
14054 return 7;
14055 if (!(strcmp (argv[3], "billy") == 0))
14056 return 8;
14057 if (!(strcmp (argv[4], "duck") == 0))
14058 return 9;
14059 if (!(strcmp (argv[5], "-a") == 0))
14060 return 10;
14061 if (!(strcmp (argv[6], "bar") == 0))
14062 return 11;
14063 if (!(optind == 1))
14064 return 12;
14065 }
14066 /* Detect MacOS 10.5, AIX 7.1 bug. */
14067 {
14068 char *argv[3] = { "program", "-ab", NULL };
14069 optind = OPTIND_MIN;
14070 opterr = 0;
14071 if (getopt (2, argv, "ab:") != 'a')
14072 return 13;
14073 if (getopt (2, argv, "ab:") != '?')
14074 return 14;
14075 if (optopt != 'b')
14076 return 15;
14077 if (optind != 2)
14078 return 16;
14079 }
14080
14081 return 0;
14082}
14083
14084_ACEOF
14085if ac_fn_c_try_run "$LINENO"; then :
14086 gl_cv_func_getopt_posix=yes
14087else
14088 gl_cv_func_getopt_posix=no
14089fi
14090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14091 conftest.$ac_objext conftest.beam conftest.$ac_ext
14092fi
14093
14094
14095fi
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14097$as_echo "$gl_cv_func_getopt_posix" >&6; }
14098 case "$gl_cv_func_getopt_posix" in
14099 *no) gl_replace_getopt=yes ;;
14100 esac
14101 fi
14102
14103 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14105$as_echo_n "checking for working GNU getopt function... " >&6; }
14106if ${gl_cv_func_getopt_gnu+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108else
14109 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14110 # optstring is necessary for programs like m4 that have POSIX-mandated
14111 # semantics for supporting options interspersed with files.
14112 # Also, since getopt_long is a GNU extension, we require optind=0.
14113 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14114 # so take care to revert to the correct (non-)export state.
14115 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14116 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14117 xx) gl_had_POSIXLY_CORRECT=exported ;;
14118 x) gl_had_POSIXLY_CORRECT=yes ;;
14119 *) gl_had_POSIXLY_CORRECT= ;;
14120 esac
14121 POSIXLY_CORRECT=1
14122 export POSIXLY_CORRECT
14123 if test "$cross_compiling" = yes; then :
14124 case $host_os:$ac_cv_have_decl_optreset in
14125 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14126 *:yes) gl_cv_func_getopt_gnu=no;;
14127 *) gl_cv_func_getopt_gnu=yes;;
14128 esac
14129
14130else
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132/* end confdefs.h. */
14133#include <getopt.h>
14134 #include <stddef.h>
14135 #include <string.h>
14136
14137int
14138main ()
14139{
14140
14141 int result = 0;
14142 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14143 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14144 OSF/1 5.1, Solaris 10. */
14145 {
14146 char *myargv[3];
14147 myargv[0] = "conftest";
14148 myargv[1] = "-+";
14149 myargv[2] = 0;
14150 opterr = 0;
14151 if (getopt (2, myargv, "+a") != '?')
14152 result |= 1;
14153 }
14154 /* This code succeeds on glibc 2.8, mingw,
14155 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14156 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14157 {
14158 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14159
14160 optind = 1;
14161 if (getopt (4, argv, "p::") != 'p')
14162 result |= 2;
14163 else if (optarg != NULL)
14164 result |= 4;
14165 else if (getopt (4, argv, "p::") != -1)
14166 result |= 6;
14167 else if (optind != 2)
14168 result |= 8;
14169 }
14170 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14171 {
14172 char *argv[] = { "program", "foo", "-p", NULL };
14173 optind = 0;
14174 if (getopt (3, argv, "-p") != 1)
14175 result |= 16;
14176 else if (getopt (3, argv, "-p") != 'p')
14177 result |= 32;
14178 }
14179 /* This code fails on glibc 2.11. */
14180 {
14181 char *argv[] = { "program", "-b", "-a", NULL };
14182 optind = opterr = 0;
14183 if (getopt (3, argv, "+:a:b") != 'b')
14184 result |= 64;
14185 else if (getopt (3, argv, "+:a:b") != ':')
14186 result |= 64;
14187 }
14188 return result;
14189
14190 ;
14191 return 0;
14192}
14193_ACEOF
14194if ac_fn_c_try_run "$LINENO"; then :
14195 gl_cv_func_getopt_gnu=yes
14196else
14197 gl_cv_func_getopt_gnu=no
14198fi
14199rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14200 conftest.$ac_objext conftest.beam conftest.$ac_ext
14201fi
14202
14203 case $gl_had_POSIXLY_CORRECT in
14204 exported) ;;
14205 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14206 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14207 esac
14208
14209fi
14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14211$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14212 if test "$gl_cv_func_getopt_gnu" = "no"; then
14213 gl_replace_getopt=yes
14214 fi
14215 fi
14216
14217ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14218if test "x$ac_cv_have_decl_getenv" = xyes; then :
14219 ac_have_decl=1
14220else
14221 ac_have_decl=0
14222fi
14223
14224cat >>confdefs.h <<_ACEOF
14225#define HAVE_DECL_GETENV $ac_have_decl
14226_ACEOF
14227
14228
14229
14230
14231
14232
14233 if test -n "$gl_replace_getopt"; then :
14234
14235
14236
14237 GETOPT_H=getopt.h
14238
14239$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14240
14241
14242
14243 GNULIB_UNISTD_H_GETOPT=1
14244
14245
14246
14247
14248
14249
14250
14251
14252 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14263
14264
14265
14266
14267
14268
14269fi
14270
14271
14272
14273 GNULIB_MKTIME=0;
14274 GNULIB_NANOSLEEP=0;
14275 GNULIB_STRPTIME=0;
14276 GNULIB_TIMEGM=0;
14277 GNULIB_TIME_R=0;
14278 HAVE_DECL_LOCALTIME_R=1;
14279 HAVE_NANOSLEEP=1;
14280 HAVE_STRPTIME=1;
14281 HAVE_TIMEGM=1;
14282 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14283 REPLACE_MKTIME=GNULIB_PORTCHECK;
14284 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14285 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14286
14287
14288
14289
14290 for ac_func in $ac_func_list
14291do :
14292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14294if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14295 cat >>confdefs.h <<_ACEOF
14296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14297_ACEOF
14298
14299fi
14300done
14301
14302
14303
14304
14305 gl_cv_c_multiarch=no
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307/* end confdefs.h. */
14308#ifndef __APPLE_CC__
14309 not a universal capable compiler
14310 #endif
14311 typedef int dummy;
14312
14313_ACEOF
14314if ac_fn_c_try_compile "$LINENO"; then :
14315
14316 arch=
14317 prev=
14318 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14319 if test -n "$prev"; then
14320 case $word in
14321 i?86 | x86_64 | ppc | ppc64)
14322 if test -z "$arch" || test "$arch" = "$word"; then
14323 arch="$word"
14324 else
14325 gl_cv_c_multiarch=yes
14326 fi
14327 ;;
14328 esac
14329 prev=
14330 else
14331 if test "x$word" = "x-arch"; then
14332 prev=arch
14333 fi
14334 fi
14335 done
14336
14337fi
14338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 if test $gl_cv_c_multiarch = yes; then
14340
14341$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14342
14343 APPLE_UNIVERSAL_BUILD=1
14344 else
14345 APPLE_UNIVERSAL_BUILD=0
14346 fi
14347
14348
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14350$as_echo_n "checking for inline... " >&6; }
14351if ${ac_cv_c_inline+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353else
14354 ac_cv_c_inline=no
14355for ac_kw in inline __inline__ __inline; do
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357/* end confdefs.h. */
14358#ifndef __cplusplus
14359typedef int foo_t;
14360static $ac_kw foo_t static_foo () {return 0; }
14361$ac_kw foo_t foo () {return 0; }
14362#endif
14363
14364_ACEOF
1fd182f0
PE
14365if ac_fn_c_try_compile "$LINENO"; then :
14366 ac_cv_c_inline=$ac_kw
14367fi
14368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 test "$ac_cv_c_inline" != no && break
14370done
14371
14372fi
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14374$as_echo "$ac_cv_c_inline" >&6; }
14375
14376case $ac_cv_c_inline in
14377 inline | yes) ;;
14378 *)
14379 case $ac_cv_c_inline in
14380 no) ac_val=;;
14381 *) ac_val=$ac_cv_c_inline;;
14382 esac
14383 cat >>confdefs.h <<_ACEOF
14384#ifndef __cplusplus
14385#define inline $ac_val
14386#endif
14387_ACEOF
14388 ;;
14389esac
14390
14391
14392 REPLACE_NULL=0;
14393 HAVE_WCHAR_T=1;
14394 STDDEF_H='';
14395
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14398$as_echo_n "checking for wchar_t... " >&6; }
14399if ${gt_cv_c_wchar_t+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401else
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403/* end confdefs.h. */
14404#include <stddef.h>
14405 wchar_t foo = (wchar_t)'\0';
14406int
14407main ()
14408{
14409
14410 ;
14411 return 0;
14412}
14413_ACEOF
14414if ac_fn_c_try_compile "$LINENO"; then :
14415 gt_cv_c_wchar_t=yes
14416else
14417 gt_cv_c_wchar_t=no
14418fi
14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420fi
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14422$as_echo "$gt_cv_c_wchar_t" >&6; }
14423 if test $gt_cv_c_wchar_t = yes; then
14424
14425$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14426
14427 fi
14428
14429
14430
1fd182f0
PE
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14432$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14433if ${ac_cv_c_restrict+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435else
14436 ac_cv_c_restrict=no
14437 # The order here caters to the fact that C++ does not require restrict.
14438 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h. */
14441typedef int * int_ptr;
14442 int foo (int_ptr $ac_kw ip) {
14443 return ip[0];
14444 }
14445int
14446main ()
14447{
14448int s[1];
14449 int * $ac_kw t = s;
14450 t[0] = 0;
14451 return foo(t)
14452 ;
14453 return 0;
14454}
14455_ACEOF
14456if ac_fn_c_try_compile "$LINENO"; then :
14457 ac_cv_c_restrict=$ac_kw
14458fi
14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 test "$ac_cv_c_restrict" != no && break
14461 done
14462
14463fi
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14465$as_echo "$ac_cv_c_restrict" >&6; }
14466
14467 case $ac_cv_c_restrict in
14468 restrict) ;;
14469 no) $as_echo "#define restrict /**/" >>confdefs.h
14470 ;;
14471 *) cat >>confdefs.h <<_ACEOF
14472#define restrict $ac_cv_c_restrict
14473_ACEOF
14474 ;;
14475 esac
14476
14477
14478
14479
14480
14481
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14484$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14485if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487else
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489/* end confdefs.h. */
14490#include <time.h>
14491
14492int
14493main ()
14494{
14495static struct timespec x; x.tv_sec = x.tv_nsec;
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500if ac_fn_c_try_compile "$LINENO"; then :
14501 gl_cv_sys_struct_timespec_in_time_h=yes
14502else
14503 gl_cv_sys_struct_timespec_in_time_h=no
14504fi
14505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506fi
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14508$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14509
14510 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14511 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14512 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14513 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14514 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14515 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14517$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14518if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520else
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522/* end confdefs.h. */
14523#include <sys/time.h>
14524
14525int
14526main ()
14527{
14528static struct timespec x; x.tv_sec = x.tv_nsec;
14529 ;
14530 return 0;
14531}
14532_ACEOF
14533if ac_fn_c_try_compile "$LINENO"; then :
14534 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14535else
14536 gl_cv_sys_struct_timespec_in_sys_time_h=no
14537fi
14538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539fi
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14541$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14542 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14543 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14544 else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14546$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14547if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14548 $as_echo_n "(cached) " >&6
14549else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551/* end confdefs.h. */
14552#include <pthread.h>
14553
14554int
14555main ()
14556{
14557static struct timespec x; x.tv_sec = x.tv_nsec;
14558 ;
14559 return 0;
14560}
14561_ACEOF
14562if ac_fn_c_try_compile "$LINENO"; then :
14563 gl_cv_sys_struct_timespec_in_pthread_h=yes
14564else
14565 gl_cv_sys_struct_timespec_in_pthread_h=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568fi
14569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14570$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14571 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14572 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14573 fi
14574 fi
14575 fi
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589 if test $gl_cv_have_include_next = yes; then
14590 gl_cv_next_time_h='<'time.h'>'
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14593$as_echo_n "checking absolute name of <time.h>... " >&6; }
14594if ${gl_cv_next_time_h+:} false; then :
14595 $as_echo_n "(cached) " >&6
14596else
14597
14598 if test $ac_cv_header_time_h = yes; then
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600/* end confdefs.h. */
14601#include <time.h>
14602
14603_ACEOF
14604 case "$host_os" in
14605 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14606 *) gl_absname_cpp="$ac_cpp" ;;
14607 esac
14608 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14609 sed -n '\#/time.h#{
14610 s#.*"\(.*/time.h\)".*#\1#
14611 s#^/[^/]#//&#
14612 p
14613 q
14614 }'`'"'
14615 else
14616 gl_cv_next_time_h='<'time.h'>'
14617 fi
14618
14619fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14621$as_echo "$gl_cv_next_time_h" >&6; }
14622 fi
14623 NEXT_TIME_H=$gl_cv_next_time_h
14624
14625 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14626 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14627 gl_next_as_first_directive='<'time.h'>'
14628 else
14629 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14630 gl_next_as_first_directive=$gl_cv_next_time_h
14631 fi
14632 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14633
14634
14635
14636
14637
14638ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14639if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14640 ac_have_decl=1
14641else
14642 ac_have_decl=0
14643fi
14644
14645cat >>confdefs.h <<_ACEOF
14646#define HAVE_DECL_LOCALTIME_R $ac_have_decl
14647_ACEOF
14648
14649
14650
14651
14652 if false; then
14653 GL_COND_LIBTOOL_TRUE=
14654 GL_COND_LIBTOOL_FALSE='#'
14655else
14656 GL_COND_LIBTOOL_TRUE='#'
14657 GL_COND_LIBTOOL_FALSE=
14658fi
14659
14660 gl_cond_libtool=false
14661 gl_libdeps=
14662 gl_ltlibdeps=
14663 gl_m4_base='m4'
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673 gl_source_base='lib'
14674 # Code from module arg-nonnull:
14675 # Code from module c++defs:
f737437b 14676 # Code from module dtoastr:
1fd182f0 14677
f737437b 14678 # Code from module extensions:
e275c824
PE
14679 # Code from module getopt-gnu:
14680
14681
14682
14683
14684
14685
14686
14687$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14688
14689
14690 # Code from module getopt-posix:
14691
14692
14693
14694
14695
14696 if test -n "$gl_replace_getopt"; then :
14697
14698
14699
14700 GETOPT_H=getopt.h
14701
14702$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14703
14704
14705
14706 GNULIB_UNISTD_H_GETOPT=1
14707
14708
14709
14710
14711
14712
14713
14714
14715 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14726
14727
14728
14729
14730
14731
14732fi
14733
14734
14735 # Code from module gettext-h:
14736
14737
1fd182f0
PE
14738 # Code from module include_next:
14739 # Code from module intprops:
14740 # Code from module mktime:
14741
14742
14743
14744
14745
14746if test $APPLE_UNIVERSAL_BUILD = 1; then
14747 # A universal build on Apple MacOS X platforms.
14748 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14749 # But we need a configuration result that is valid in both modes.
14750 ac_cv_func_working_mktime=no
14751fi
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14753$as_echo_n "checking for working mktime... " >&6; }
14754if ${ac_cv_func_working_mktime+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756else
14757 if test "$cross_compiling" = yes; then :
14758 ac_cv_func_working_mktime=no
14759else
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761/* end confdefs.h. */
14762/* Test program from Paul Eggert and Tony Leneis. */
14763#include <limits.h>
14764#include <stdlib.h>
14765#include <time.h>
14766
14767#ifdef HAVE_UNISTD_H
14768# include <unistd.h>
14769#endif
14770
14771#ifndef HAVE_ALARM
14772# define alarm(X) /* empty */
14773#endif
14774
14775/* Work around redefinition to rpl_putenv by other config tests. */
14776#undef putenv
14777
14778static time_t time_t_max;
14779static time_t time_t_min;
14780
14781/* Values we'll use to set the TZ environment variable. */
14782static char *tz_strings[] = {
14783 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14784 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14785};
14786#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14787
14788/* Return 0 if mktime fails to convert a date in the spring-forward gap.
14789 Based on a problem report from Andreas Jaeger. */
14790static int
14791spring_forward_gap ()
14792{
14793 /* glibc (up to about 1998-10-07) failed this test. */
14794 struct tm tm;
14795
14796 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14797 instead of "TZ=America/Vancouver" in order to detect the bug even
14798 on systems that don't support the Olson extension, or don't have the
14799 full zoneinfo tables installed. */
14800 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14801
14802 tm.tm_year = 98;
14803 tm.tm_mon = 3;
14804 tm.tm_mday = 5;
14805 tm.tm_hour = 2;
14806 tm.tm_min = 0;
14807 tm.tm_sec = 0;
14808 tm.tm_isdst = -1;
14809 return mktime (&tm) != (time_t) -1;
14810}
14811
14812static int
14813mktime_test1 (time_t now)
14814{
14815 struct tm *lt;
14816 return ! (lt = localtime (&now)) || mktime (lt) == now;
14817}
14818
14819static int
14820mktime_test (time_t now)
14821{
14822 return (mktime_test1 (now)
14823 && mktime_test1 ((time_t) (time_t_max - now))
14824 && mktime_test1 ((time_t) (time_t_min + now)));
14825}
14826
14827static int
14828irix_6_4_bug ()
14829{
14830 /* Based on code from Ariel Faigon. */
14831 struct tm tm;
14832 tm.tm_year = 96;
14833 tm.tm_mon = 3;
14834 tm.tm_mday = 0;
14835 tm.tm_hour = 0;
14836 tm.tm_min = 0;
14837 tm.tm_sec = 0;
14838 tm.tm_isdst = -1;
14839 mktime (&tm);
14840 return tm.tm_mon == 2 && tm.tm_mday == 31;
14841}
14842
14843static int
14844bigtime_test (int j)
14845{
14846 struct tm tm;
14847 time_t now;
14848 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14849 now = mktime (&tm);
14850 if (now != (time_t) -1)
14851 {
14852 struct tm *lt = localtime (&now);
14853 if (! (lt
14854 && lt->tm_year == tm.tm_year
14855 && lt->tm_mon == tm.tm_mon
14856 && lt->tm_mday == tm.tm_mday
14857 && lt->tm_hour == tm.tm_hour
14858 && lt->tm_min == tm.tm_min
14859 && lt->tm_sec == tm.tm_sec
14860 && lt->tm_yday == tm.tm_yday
14861 && lt->tm_wday == tm.tm_wday
14862 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14863 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14864 return 0;
14865 }
14866 return 1;
14867}
14868
14869static int
14870year_2050_test ()
14871{
14872 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
14873 ignoring leap seconds. */
14874 unsigned long int answer = 2527315200UL;
14875
14876 struct tm tm;
14877 time_t t;
14878 tm.tm_year = 2050 - 1900;
14879 tm.tm_mon = 2 - 1;
14880 tm.tm_mday = 1;
14881 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
14882 tm.tm_isdst = -1;
14883
14884 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14885 instead of "TZ=America/Vancouver" in order to detect the bug even
14886 on systems that don't support the Olson extension, or don't have the
14887 full zoneinfo tables installed. */
14888 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14889
14890 t = mktime (&tm);
14891
14892 /* Check that the result is either a failure, or close enough
14893 to the correct answer that we can assume the discrepancy is
14894 due to leap seconds. */
14895 return (t == (time_t) -1
14896 || (0 < t && answer - 120 <= t && t <= answer + 120));
14897}
14898
14899int
14900main ()
14901{
14902 int result = 0;
14903 time_t t, delta;
14904 int i, j;
14905
14906 /* This test makes some buggy mktime implementations loop.
14907 Give up after 60 seconds; a mktime slower than that
14908 isn't worth using anyway. */
14909 alarm (60);
14910
14911 for (;;)
14912 {
14913 t = (time_t_max << 1) + 1;
14914 if (t <= time_t_max)
14915 break;
14916 time_t_max = t;
14917 }
14918 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
14919
14920 delta = time_t_max / 997; /* a suitable prime number */
14921 for (i = 0; i < N_STRINGS; i++)
14922 {
14923 if (tz_strings[i])
14924 putenv (tz_strings[i]);
14925
14926 for (t = 0; t <= time_t_max - delta; t += delta)
14927 if (! mktime_test (t))
14928 result |= 1;
14929 if (! (mktime_test ((time_t) 1)
14930 && mktime_test ((time_t) (60 * 60))
14931 && mktime_test ((time_t) (60 * 60 * 24))))
14932 result |= 2;
14933
14934 for (j = 1; ; j <<= 1)
14935 if (! bigtime_test (j))
14936 result |= 4;
14937 else if (INT_MAX / 2 < j)
14938 break;
14939 if (! bigtime_test (INT_MAX))
14940 result |= 8;
14941 }
14942 if (! irix_6_4_bug ())
14943 result |= 16;
14944 if (! spring_forward_gap ())
14945 result |= 32;
14946 if (! year_2050_test ())
14947 result |= 64;
14948 return result;
14949}
14950_ACEOF
14951if ac_fn_c_try_run "$LINENO"; then :
14952 ac_cv_func_working_mktime=yes
14953else
14954 ac_cv_func_working_mktime=no
14955fi
14956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14957 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 14958fi
067d23c9 14959
1fd182f0
PE
14960fi
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
14962$as_echo "$ac_cv_func_working_mktime" >&6; }
14963if test $ac_cv_func_working_mktime = no; then
067d23c9 14964
067d23c9 14965
067d23c9
KY
14966
14967
067d23c9 14968
067d23c9
KY
14969
14970
14971
1fd182f0 14972 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 14973
1fd182f0 14974fi
067d23c9 14975
1fd182f0
PE
14976 if test $ac_cv_func_working_mktime = no; then
14977 REPLACE_MKTIME=1
067d23c9
KY
14978
14979
14980
1fd182f0
PE
14981 else
14982 REPLACE_MKTIME=0
14983 fi
067d23c9
KY
14984
14985
14986
067d23c9 14987
1fd182f0 14988 GNULIB_MKTIME=1
067d23c9
KY
14989
14990
14991
1fd182f0 14992$as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
067d23c9 14993
067d23c9 14994
067d23c9 14995
1fd182f0 14996 # Code from module multiarch:
067d23c9 14997
1fd182f0 14998 # Code from module stddef:
067d23c9 14999
067d23c9 15000
067d23c9 15001
1fd182f0
PE
15002 if test $gt_cv_c_wchar_t = no; then
15003 HAVE_WCHAR_T=0
15004 STDDEF_H=stddef.h
067d23c9 15005 fi
1fd182f0
PE
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15007$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15008if ${gl_cv_decl_null_works+:} false; then :
067d23c9 15009 $as_echo_n "(cached) " >&6
067d23c9
KY
15010else
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012/* end confdefs.h. */
1fd182f0
PE
15013#include <stddef.h>
15014 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15015
067d23c9
KY
15016int
15017main ()
15018{
15019
067d23c9
KY
15020 ;
15021 return 0;
15022}
15023_ACEOF
1fd182f0
PE
15024if ac_fn_c_try_compile "$LINENO"; then :
15025 gl_cv_decl_null_works=yes
067d23c9 15026else
1fd182f0 15027 gl_cv_decl_null_works=no
067d23c9 15028fi
1fd182f0 15029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 15030fi
1fd182f0
PE
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15032$as_echo "$gl_cv_decl_null_works" >&6; }
15033 if test $gl_cv_decl_null_works = no; then
15034 REPLACE_NULL=1
15035 STDDEF_H=stddef.h
15036 fi
15037 if test -n "$STDDEF_H"; then
15038
15039
15040
15041
15042
15043
15044 if test $gl_cv_have_include_next = yes; then
15045 gl_cv_next_stddef_h='<'stddef.h'>'
15046 else
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15048$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15049if ${gl_cv_next_stddef_h+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051else
15052
15053 if test $ac_cv_header_stddef_h = yes; then
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h. */
15056#include <stddef.h>
15057
15058_ACEOF
15059 case "$host_os" in
15060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15061 *) gl_absname_cpp="$ac_cpp" ;;
15062 esac
15063 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15064 sed -n '\#/stddef.h#{
15065 s#.*"\(.*/stddef.h\)".*#\1#
15066 s#^/[^/]#//&#
15067 p
15068 q
15069 }'`'"'
15070 else
15071 gl_cv_next_stddef_h='<'stddef.h'>'
15072 fi
067d23c9
KY
15073
15074fi
1fd182f0
PE
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15076$as_echo "$gl_cv_next_stddef_h" >&6; }
15077 fi
15078 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15079
15080 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15081 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15082 gl_next_as_first_directive='<'stddef.h'>'
15083 else
15084 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15085 gl_next_as_first_directive=$gl_cv_next_stddef_h
15086 fi
15087 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15088
15089
15090
067d23c9
KY
15091 fi
15092
1fd182f0 15093 # Code from module time:
067d23c9
KY
15094
15095
067d23c9 15096
1fd182f0 15097 # Code from module time_r:
067d23c9 15098
067d23c9 15099
067d23c9
KY
15100
15101
15102
067d23c9 15103
067d23c9 15104
1fd182f0
PE
15105 if test $ac_cv_have_decl_localtime_r = no; then
15106 HAVE_DECL_LOCALTIME_R=0
15107 fi
067d23c9
KY
15108
15109
1fd182f0
PE
15110 if test $ac_cv_func_localtime_r = yes; then
15111 HAVE_LOCALTIME_R=1
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15113$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15114if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
15115 $as_echo_n "(cached) " >&6
15116else
1fd182f0 15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 15118/* end confdefs.h. */
1fd182f0 15119#include <time.h>
067d23c9
KY
15120int
15121main ()
15122{
1fd182f0
PE
15123/* We don't need to append 'restrict's to the argument types,
15124 even though the POSIX signature has the 'restrict's,
15125 since C99 says they can't affect type compatibility. */
15126 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15127 if (ptr) return 0;
15128 /* Check the return type is a pointer.
15129 On HP-UX 10 it is 'int'. */
15130 *localtime_r (0, 0);
067d23c9
KY
15131 ;
15132 return 0;
15133}
1fd182f0 15134
067d23c9
KY
15135_ACEOF
15136if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 15137 gl_cv_time_r_posix=yes
067d23c9 15138else
1fd182f0 15139 gl_cv_time_r_posix=no
067d23c9
KY
15140fi
15141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142
15143fi
1fd182f0
PE
15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15145$as_echo "$gl_cv_time_r_posix" >&6; }
15146 if test $gl_cv_time_r_posix = yes; then
15147 REPLACE_LOCALTIME_R=0
15148 else
15149 REPLACE_LOCALTIME_R=1
15150 fi
15151 else
15152 HAVE_LOCALTIME_R=0
15153 fi
15154 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 15155
067d23c9
KY
15156
15157
743c80a7 15158
a451f14b
PE
15159
15160
15161
a451f14b 15162
1fd182f0 15163 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 15164
a451f14b 15165
1fd182f0 15166 :
a451f14b
PE
15167
15168 fi
15169
15170
743c80a7
PE
15171
15172
1fd182f0 15173 GNULIB_TIME_R=1
743c80a7
PE
15174
15175
15176
1fd182f0 15177$as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
a451f14b
PE
15178
15179
15180
e275c824
PE
15181 # Code from module unistd:
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192 if test $gl_cv_have_include_next = yes; then
15193 gl_cv_next_unistd_h='<'unistd.h'>'
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15196$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15197if ${gl_cv_next_unistd_h+:} false; then :
15198 $as_echo_n "(cached) " >&6
15199else
15200
15201 if test $ac_cv_header_unistd_h = yes; then
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h. */
15204#include <unistd.h>
15205
15206_ACEOF
15207 case "$host_os" in
15208 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15209 *) gl_absname_cpp="$ac_cpp" ;;
15210 esac
15211 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15212 sed -n '\#/unistd.h#{
15213 s#.*"\(.*/unistd.h\)".*#\1#
15214 s#^/[^/]#//&#
15215 p
15216 q
15217 }'`'"'
15218 else
15219 gl_cv_next_unistd_h='<'unistd.h'>'
15220 fi
15221
15222fi
15223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15224$as_echo "$gl_cv_next_unistd_h" >&6; }
15225 fi
15226 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15227
15228 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15230 gl_next_as_first_directive='<'unistd.h'>'
15231 else
15232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15233 gl_next_as_first_directive=$gl_cv_next_unistd_h
15234 fi
15235 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15236
15237
15238
15239
15240
15241 if test $ac_cv_header_unistd_h = yes; then
15242 HAVE_UNISTD_H=1
15243 else
15244 HAVE_UNISTD_H=0
15245 fi
15246
15247
15248
15249 for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
15250 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15252$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15253if eval \${$as_gl_Symbol+:} false; then :
15254 $as_echo_n "(cached) " >&6
15255else
15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h. */
15258#include <unistd.h>
15259/* Some systems declare various items in the wrong headers. */
15260#if !(defined __GLIBC__ && !defined __UCLIBC__)
15261# include <fcntl.h>
15262# include <stdio.h>
15263# include <stdlib.h>
15264# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15265# include <io.h>
15266# endif
15267#endif
15268
15269int
15270main ()
15271{
15272#undef $gl_func
15273 (void) $gl_func;
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278if ac_fn_c_try_compile "$LINENO"; then :
15279 eval "$as_gl_Symbol=yes"
15280else
15281 eval "$as_gl_Symbol=no"
15282fi
15283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284fi
15285eval ac_res=\$$as_gl_Symbol
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15287$as_echo "$ac_res" >&6; }
15288 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15289 cat >>confdefs.h <<_ACEOF
15290#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15291_ACEOF
15292
15293 eval ac_cv_have_decl_$gl_func=yes
15294fi
15295 done
15296
15297
1fd182f0
PE
15298 # Code from module warn-on-use:
15299 # End of code from modules
a451f14b 15300
a451f14b 15301
743c80a7
PE
15302
15303
15304
15305
15306
15307
15308
15309 gltests_libdeps=
15310 gltests_ltlibdeps=
15311
15312
15313
15314
15315
a451f14b
PE
15316
15317
15318
15319
743c80a7
PE
15320 gl_source_base='tests'
15321 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
15322
15323 gl_module_indicator_condition=$gltests_WITNESS
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333 LIBGNU_LIBDEPS="$gl_libdeps"
15334
15335 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15336
15337
15338
067d23c9
KY
15339for ac_func in strftime
15340do :
15341 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
2018939f 15342if test "x$ac_cv_func_strftime" = xyes; then :
067d23c9
KY
15343 cat >>confdefs.h <<_ACEOF
15344#define HAVE_STRFTIME 1
15345_ACEOF
15346
15347else
15348 # strftime is in -lintl on SCO UNIX.
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
15350$as_echo_n "checking for strftime in -lintl... " >&6; }
2018939f 15351if ${ac_cv_lib_intl_strftime+:} false; then :
067d23c9
KY
15352 $as_echo_n "(cached) " >&6
15353else
15354 ac_check_lib_save_LIBS=$LIBS
15355LIBS="-lintl $LIBS"
15356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h. */
15358
15359/* Override any GCC internal prototype to avoid an error.
15360 Use char because int might match the return type of a GCC
15361 builtin and then its argument prototype would still apply. */
15362#ifdef __cplusplus
15363extern "C"
15364#endif
15365char strftime ();
15366int
15367main ()
15368{
15369return strftime ();
15370 ;
15371 return 0;
15372}
15373_ACEOF
15374if ac_fn_c_try_link "$LINENO"; then :
15375 ac_cv_lib_intl_strftime=yes
15376else
15377 ac_cv_lib_intl_strftime=no
15378fi
15379rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381LIBS=$ac_check_lib_save_LIBS
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
15384$as_echo "$ac_cv_lib_intl_strftime" >&6; }
2018939f 15385if test "x$ac_cv_lib_intl_strftime" = xyes; then :
067d23c9
KY
15386 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
15387
15388LIBS="-lintl $LIBS"
15389fi
15390
15391fi
15392done
15393
15394
15395# UNIX98 PTYs.
15396for ac_func in grantpt
15397do :
15398 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
2018939f 15399if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
15400 cat >>confdefs.h <<_ACEOF
15401#define HAVE_GRANTPT 1
15402_ACEOF
15403
15404fi
15405done
15406
15407
15408# PTY-related GNU extensions.
15409for ac_func in getpt
15410do :
15411 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
2018939f 15412if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
15413 cat >>confdefs.h <<_ACEOF
15414#define HAVE_GETPT 1
15415_ACEOF
15416
15417fi
15418done
15419
15420
15421# Check this now, so that we will NOT find the above functions in ncurses.
15422# That is because we have not set up to link ncurses in lib-src.
15423# It's better to believe a function is not available
15424# than to expect to find it in ncurses.
15425# Also we need tputs and friends to be able to build at all.
15426have_tputs_et_al=true
15427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15428$as_echo_n "checking for library containing tputs... " >&6; }
2018939f 15429if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15430 $as_echo_n "(cached) " >&6
15431else
15432 ac_func_search_save_LIBS=$LIBS
15433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434/* end confdefs.h. */
15435
15436/* Override any GCC internal prototype to avoid an error.
15437 Use char because int might match the return type of a GCC
15438 builtin and then its argument prototype would still apply. */
15439#ifdef __cplusplus
15440extern "C"
15441#endif
15442char tputs ();
15443int
15444main ()
15445{
15446return tputs ();
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451for ac_lib in '' ncurses terminfo termcap; do
15452 if test -z "$ac_lib"; then
15453 ac_res="none required"
15454 else
15455 ac_res=-l$ac_lib
15456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15457 fi
15458 if ac_fn_c_try_link "$LINENO"; then :
15459 ac_cv_search_tputs=$ac_res
15460fi
15461rm -f core conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext
2018939f 15463 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15464 break
15465fi
15466done
2018939f 15467if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
15468
15469else
15470 ac_cv_search_tputs=no
15471fi
15472rm conftest.$ac_ext
15473LIBS=$ac_func_search_save_LIBS
15474fi
15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15476$as_echo "$ac_cv_search_tputs" >&6; }
15477ac_res=$ac_cv_search_tputs
15478if test "$ac_res" != no; then :
15479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15480
15481else
15482 have_tputs_et_al=false
15483fi
15484
15485if test "$have_tputs_et_al" != true; then
2018939f 15486 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
15487Maybe some development libraries/packages are missing? Try installing
15488libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15489fi
15490# Must define this when any termcap library is found.
15491
15492$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15493
15494## FIXME This was the cpp logic, but I am not sure it is right.
15495## The above test has not necessarily found libncurses.
15496HAVE_LIBNCURSES=yes
15497
15498## Use terminfo instead of termcap?
15499## Note only system files NOT using terminfo are:
15500## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15501## darwin|gnu without ncurses.
15502TERMINFO=no
15503LIBS_TERMCAP=
15504case "$opsys" in
15505 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15506 ## hpux10-20: Use the system provided termcap(3) library.
15507 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15508 ## is necessary. Otherwise Emacs dumps core when run -nw.
15509 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15510
15511 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15512 ## The ncurses library has been moved out of the System framework in
15513 ## Mac OS X 10.2. So if configure detects it, set the command-line
15514 ## option to use it.
15515 darwin|gnu*)
15516 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15517 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15518 TERMINFO=yes
15519 LIBS_TERMCAP="-lncurses"
15520 fi
15521 ;;
15522
15523 freebsd)
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15525$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
2018939f 15526 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
15527 $as_echo_n "(cached) " >&6
15528else
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530/* end confdefs.h. */
15531#include <osreldate.h>
15532int
15533main ()
15534{
15535#if __FreeBSD_version < 400000
15536fail;
15537#endif
15538
15539 ;
15540 return 0;
15541}
15542_ACEOF
15543if ac_fn_c_try_link "$LINENO"; then :
15544 emacs_cv_freebsd_terminfo=yes
15545else
15546 emacs_cv_freebsd_terminfo=no
15547fi
15548rm -f core conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15550fi
15551
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15554$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15555
15556 if test $emacs_cv_freebsd_terminfo = yes; then
15557 TERMINFO=yes
15558 LIBS_TERMCAP="-lncurses"
15559 else
15560 LIBS_TERMCAP="-ltermcap"
15561 fi
15562 ;;
15563
15564 netbsd)
15565 if test $ac_cv_search_tputs = -lterminfo; then
15566 TERMINFO=yes
15567 LIBS_TERMCAP="-lterminfo"
15568 else
15569 LIBS_TERMCAP="-ltermcap"
15570 fi
15571 ;;
15572
15573esac
15574
15575case "$opsys" in
15576 ## hpux: Make sure we get select from libc rather than from libcurses
15577 ## because libcurses on HPUX 10.10 has a broken version of select.
15578 ## We used to use -lc -lcurses, but this may be cleaner.
15579 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15580
15581 openbsd) LIBS_TERMCAP="-lncurses" ;;
15582
15583 ## Must use system termcap, if we use any termcap. It does special things.
15584 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15585esac
15586
15587TERMCAP_OBJ=tparam.o
15588if test $TERMINFO = yes; then
15589
15590$as_echo "#define TERMINFO 1" >>confdefs.h
15591
15592
15593 ## Default used to be -ltermcap. Add a case above if need something else.
15594 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15595
15596 TERMCAP_OBJ=terminfo.o
15597fi
15598
15599
15600
15601
15602# Do we have res_init, for detecting changes in /etc/resolv.conf?
15603resolv=no
15604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h. */
15606#include <netinet/in.h>
15607#include <arpa/nameser.h>
15608#include <resolv.h>
15609int
15610main ()
15611{
15612return res_init();
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617if ac_fn_c_try_link "$LINENO"; then :
15618 have_res_init=yes
15619else
15620 have_res_init=no
15621fi
15622rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624if test "$have_res_init" = no; then
15625 OLIBS="$LIBS"
15626 LIBS="$LIBS -lresolv"
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15628$as_echo_n "checking for res_init with -lresolv... " >&6; }
15629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630/* end confdefs.h. */
15631#include <netinet/in.h>
15632#include <arpa/nameser.h>
15633#include <resolv.h>
15634int
15635main ()
15636{
15637return res_init();
15638 ;
15639 return 0;
15640}
15641_ACEOF
15642if ac_fn_c_try_link "$LINENO"; then :
15643 have_res_init=yes
15644else
15645 have_res_init=no
15646fi
15647rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15650$as_echo "$have_res_init" >&6; }
15651 if test "$have_res_init" = yes ; then
15652 resolv=yes
15653 fi
15654 LIBS="$OLIBS"
15655fi
15656
15657if test "$have_res_init" = yes; then
15658
15659$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15660
15661fi
15662
15663# Do we need the Hesiod library to provide the support routines?
15664LIBHESIOD=
15665if test "$with_hesiod" != no ; then
15666 # Don't set $LIBS here -- see comments above. FIXME which comments?
15667 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
2018939f 15668if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
15669
15670else
15671 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
2018939f 15672if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
15673
15674else
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15676$as_echo_n "checking for res_send in -lresolv... " >&6; }
2018939f 15677if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
15678 $as_echo_n "(cached) " >&6
15679else
15680 ac_check_lib_save_LIBS=$LIBS
15681LIBS="-lresolv $LIBS"
15682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683/* end confdefs.h. */
15684
15685/* Override any GCC internal prototype to avoid an error.
15686 Use char because int might match the return type of a GCC
15687 builtin and then its argument prototype would still apply. */
15688#ifdef __cplusplus
15689extern "C"
15690#endif
15691char res_send ();
15692int
15693main ()
15694{
15695return res_send ();
15696 ;
15697 return 0;
15698}
15699_ACEOF
15700if ac_fn_c_try_link "$LINENO"; then :
15701 ac_cv_lib_resolv_res_send=yes
15702else
15703 ac_cv_lib_resolv_res_send=no
15704fi
15705rm -f core conftest.err conftest.$ac_objext \
15706 conftest$ac_exeext conftest.$ac_ext
15707LIBS=$ac_check_lib_save_LIBS
15708fi
15709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15710$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
2018939f 15711if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
15712 resolv=yes
15713else
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15715$as_echo_n "checking for __res_send in -lresolv... " >&6; }
2018939f 15716if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
15717 $as_echo_n "(cached) " >&6
15718else
15719 ac_check_lib_save_LIBS=$LIBS
15720LIBS="-lresolv $LIBS"
15721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722/* end confdefs.h. */
15723
15724/* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15727#ifdef __cplusplus
15728extern "C"
15729#endif
15730char __res_send ();
15731int
15732main ()
15733{
15734return __res_send ();
15735 ;
15736 return 0;
15737}
15738_ACEOF
15739if ac_fn_c_try_link "$LINENO"; then :
15740 ac_cv_lib_resolv___res_send=yes
15741else
15742 ac_cv_lib_resolv___res_send=no
15743fi
15744rm -f core conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746LIBS=$ac_check_lib_save_LIBS
15747fi
15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15749$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
2018939f 15750if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
15751 resolv=yes
15752fi
15753
15754fi
15755
15756fi
15757
15758fi
15759
15760 if test "$resolv" = yes ; then
15761 RESOLVLIB=-lresolv
15762 else
15763 RESOLVLIB=
15764 fi
15765 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
2018939f 15766if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
15767
15768else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15770$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
2018939f 15771if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
15772 $as_echo_n "(cached) " >&6
15773else
15774 ac_check_lib_save_LIBS=$LIBS
15775LIBS="-lhesiod $RESOLVLIB $LIBS"
15776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777/* end confdefs.h. */
15778
15779/* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15782#ifdef __cplusplus
15783extern "C"
15784#endif
15785char hes_getmailhost ();
15786int
15787main ()
15788{
15789return hes_getmailhost ();
15790 ;
15791 return 0;
15792}
15793_ACEOF
15794if ac_fn_c_try_link "$LINENO"; then :
15795 ac_cv_lib_hesiod_hes_getmailhost=yes
15796else
15797 ac_cv_lib_hesiod_hes_getmailhost=no
15798fi
15799rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801LIBS=$ac_check_lib_save_LIBS
15802fi
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15804$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
2018939f 15805if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
15806 hesiod=yes
15807else
15808 :
15809fi
15810
15811fi
15812
15813
15814 if test x"$hesiod" = xyes; then
15815
15816$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15817
15818 LIBHESIOD=-lhesiod
15819 fi
15820fi
15821
15822
15823# Do we need libresolv (due to res_init or Hesiod)?
15824if test "$resolv" = yes ; then
15825
15826$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15827
15828 LIBRESOLV=-lresolv
15829else
15830 LIBRESOLV=
15831fi
15832
15833
15834# These tell us which Kerberos-related libraries to use.
15835COM_ERRLIB=
15836CRYPTOLIB=
15837KRB5LIB=
15838DESLIB=
15839KRB4LIB=
15840
15841if test "${with_kerberos}" != no; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15843$as_echo_n "checking for com_err in -lcom_err... " >&6; }
2018939f 15844if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
15845 $as_echo_n "(cached) " >&6
15846else
15847 ac_check_lib_save_LIBS=$LIBS
15848LIBS="-lcom_err $LIBS"
15849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h. */
15851
15852/* Override any GCC internal prototype to avoid an error.
15853 Use char because int might match the return type of a GCC
15854 builtin and then its argument prototype would still apply. */
15855#ifdef __cplusplus
15856extern "C"
15857#endif
15858char com_err ();
15859int
15860main ()
15861{
15862return com_err ();
15863 ;
15864 return 0;
15865}
15866_ACEOF
15867if ac_fn_c_try_link "$LINENO"; then :
15868 ac_cv_lib_com_err_com_err=yes
15869else
15870 ac_cv_lib_com_err_com_err=no
15871fi
15872rm -f core conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
15874LIBS=$ac_check_lib_save_LIBS
15875fi
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15877$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
2018939f 15878if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
15879 have_com_err=yes
15880else
15881 have_com_err=no
15882fi
15883
15884 if test $have_com_err = yes; then
15885 COM_ERRLIB=-lcom_err
15886 LIBS="$COM_ERRLIB $LIBS"
15887
15888$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15889
15890 fi
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15892$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
2018939f 15893if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
15894 $as_echo_n "(cached) " >&6
15895else
15896 ac_check_lib_save_LIBS=$LIBS
15897LIBS="-lcrypto $LIBS"
15898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h. */
15900
15901/* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904#ifdef __cplusplus
15905extern "C"
15906#endif
15907char mit_des_cbc_encrypt ();
15908int
15909main ()
15910{
15911return mit_des_cbc_encrypt ();
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_link "$LINENO"; then :
15917 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15918else
15919 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15920fi
15921rm -f core conftest.err conftest.$ac_objext \
15922 conftest$ac_exeext conftest.$ac_ext
15923LIBS=$ac_check_lib_save_LIBS
15924fi
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15926$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
2018939f 15927if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
15928 have_crypto=yes
15929else
15930 have_crypto=no
15931fi
15932
15933 if test $have_crypto = yes; then
15934 CRYPTOLIB=-lcrypto
15935 LIBS="$CRYPTOLIB $LIBS"
15936
15937$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
15938
15939 fi
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15941$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
2018939f 15942if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
15943 $as_echo_n "(cached) " >&6
15944else
15945 ac_check_lib_save_LIBS=$LIBS
15946LIBS="-lk5crypto $LIBS"
15947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948/* end confdefs.h. */
15949
15950/* Override any GCC internal prototype to avoid an error.
15951 Use char because int might match the return type of a GCC
15952 builtin and then its argument prototype would still apply. */
15953#ifdef __cplusplus
15954extern "C"
15955#endif
15956char mit_des_cbc_encrypt ();
15957int
15958main ()
15959{
15960return mit_des_cbc_encrypt ();
15961 ;
15962 return 0;
15963}
15964_ACEOF
15965if ac_fn_c_try_link "$LINENO"; then :
15966 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15967else
15968 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15969fi
15970rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972LIBS=$ac_check_lib_save_LIBS
15973fi
15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15975$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
2018939f 15976if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
15977 have_k5crypto=yes
15978else
15979 have_k5crypto=no
15980fi
15981
15982 if test $have_k5crypto = yes; then
15983 CRYPTOLIB=-lk5crypto
15984 LIBS="$CRYPTOLIB $LIBS"
15985
15986$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
15987
15988 fi
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15990$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
2018939f 15991if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
15992 $as_echo_n "(cached) " >&6
15993else
15994 ac_check_lib_save_LIBS=$LIBS
15995LIBS="-lkrb5 $LIBS"
15996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h. */
15998
15999/* Override any GCC internal prototype to avoid an error.
16000 Use char because int might match the return type of a GCC
16001 builtin and then its argument prototype would still apply. */
16002#ifdef __cplusplus
16003extern "C"
16004#endif
16005char krb5_init_context ();
16006int
16007main ()
16008{
16009return krb5_init_context ();
16010 ;
16011 return 0;
16012}
16013_ACEOF
16014if ac_fn_c_try_link "$LINENO"; then :
16015 ac_cv_lib_krb5_krb5_init_context=yes
16016else
16017 ac_cv_lib_krb5_krb5_init_context=no
16018fi
16019rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021LIBS=$ac_check_lib_save_LIBS
16022fi
16023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16024$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
2018939f 16025if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
16026 have_krb5=yes
16027else
16028 have_krb5=no
16029fi
16030
16031 if test $have_krb5=yes; then
16032 KRB5LIB=-lkrb5
16033 LIBS="$KRB5LIB $LIBS"
16034
16035$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16036
16037 fi
16038 if test "${with_kerberos5}" = no; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16040$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
2018939f 16041if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
16042 $as_echo_n "(cached) " >&6
16043else
16044 ac_check_lib_save_LIBS=$LIBS
16045LIBS="-ldes425 $LIBS"
16046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047/* end confdefs.h. */
16048
16049/* Override any GCC internal prototype to avoid an error.
16050 Use char because int might match the return type of a GCC
16051 builtin and then its argument prototype would still apply. */
16052#ifdef __cplusplus
16053extern "C"
16054#endif
16055char des_cbc_encrypt ();
16056int
16057main ()
16058{
16059return des_cbc_encrypt ();
16060 ;
16061 return 0;
16062}
16063_ACEOF
16064if ac_fn_c_try_link "$LINENO"; then :
16065 ac_cv_lib_des425_des_cbc_encrypt=yes
16066else
16067 ac_cv_lib_des425_des_cbc_encrypt=no
16068fi
16069rm -f core conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
16071LIBS=$ac_check_lib_save_LIBS
16072fi
16073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16074$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
2018939f 16075if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16076 have_des425=yes
16077else
16078 have_des425=no
16079fi
16080
16081 if test $have_des425 = yes; then
16082 DESLIB=-ldes425
16083 LIBS="$DESLIB $LIBS"
16084
16085$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16086
16087 else
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16089$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
2018939f 16090if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
16091 $as_echo_n "(cached) " >&6
16092else
16093 ac_check_lib_save_LIBS=$LIBS
16094LIBS="-ldes $LIBS"
16095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096/* end confdefs.h. */
16097
16098/* Override any GCC internal prototype to avoid an error.
16099 Use char because int might match the return type of a GCC
16100 builtin and then its argument prototype would still apply. */
16101#ifdef __cplusplus
16102extern "C"
16103#endif
16104char des_cbc_encrypt ();
16105int
16106main ()
16107{
16108return des_cbc_encrypt ();
16109 ;
16110 return 0;
16111}
16112_ACEOF
16113if ac_fn_c_try_link "$LINENO"; then :
16114 ac_cv_lib_des_des_cbc_encrypt=yes
16115else
16116 ac_cv_lib_des_des_cbc_encrypt=no
16117fi
16118rm -f core conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120LIBS=$ac_check_lib_save_LIBS
16121fi
16122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16123$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
2018939f 16124if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
16125 have_des=yes
16126else
16127 have_des=no
16128fi
16129
16130 if test $have_des = yes; then
16131 DESLIB=-ldes
16132 LIBS="$DESLIB $LIBS"
16133
16134$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16135
16136 fi
16137 fi
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16139$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
2018939f 16140if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
16141 $as_echo_n "(cached) " >&6
16142else
16143 ac_check_lib_save_LIBS=$LIBS
16144LIBS="-lkrb4 $LIBS"
16145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146/* end confdefs.h. */
16147
16148/* Override any GCC internal prototype to avoid an error.
16149 Use char because int might match the return type of a GCC
16150 builtin and then its argument prototype would still apply. */
16151#ifdef __cplusplus
16152extern "C"
16153#endif
16154char krb_get_cred ();
16155int
16156main ()
16157{
16158return krb_get_cred ();
16159 ;
16160 return 0;
16161}
16162_ACEOF
16163if ac_fn_c_try_link "$LINENO"; then :
16164 ac_cv_lib_krb4_krb_get_cred=yes
16165else
16166 ac_cv_lib_krb4_krb_get_cred=no
16167fi
16168rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16170LIBS=$ac_check_lib_save_LIBS
16171fi
16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16173$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
2018939f 16174if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
16175 have_krb4=yes
16176else
16177 have_krb4=no
16178fi
16179
16180 if test $have_krb4 = yes; then
16181 KRB4LIB=-lkrb4
16182 LIBS="$KRB4LIB $LIBS"
16183
16184$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16185
16186 else
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16188$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
2018939f 16189if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
16190 $as_echo_n "(cached) " >&6
16191else
16192 ac_check_lib_save_LIBS=$LIBS
16193LIBS="-lkrb $LIBS"
16194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h. */
16196
16197/* Override any GCC internal prototype to avoid an error.
16198 Use char because int might match the return type of a GCC
16199 builtin and then its argument prototype would still apply. */
16200#ifdef __cplusplus
16201extern "C"
16202#endif
16203char krb_get_cred ();
16204int
16205main ()
16206{
16207return krb_get_cred ();
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212if ac_fn_c_try_link "$LINENO"; then :
16213 ac_cv_lib_krb_krb_get_cred=yes
16214else
16215 ac_cv_lib_krb_krb_get_cred=no
16216fi
16217rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16219LIBS=$ac_check_lib_save_LIBS
16220fi
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16222$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
2018939f 16223if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
16224 have_krb=yes
16225else
16226 have_krb=no
16227fi
16228
16229 if test $have_krb = yes; then
16230 KRB4LIB=-lkrb
16231 LIBS="$KRB4LIB $LIBS"
16232
16233$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16234
16235 fi
16236 fi
16237 fi
16238
16239 if test "${with_kerberos5}" != no; then
16240 for ac_header in krb5.h
16241do :
16242 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
2018939f 16243if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
16244 cat >>confdefs.h <<_ACEOF
16245#define HAVE_KRB5_H 1
16246_ACEOF
16247 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16248"
2018939f 16249if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
16250
16251cat >>confdefs.h <<_ACEOF
16252#define HAVE_KRB5_ERROR_TEXT 1
16253_ACEOF
16254
16255
16256fi
16257ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16258"
2018939f 16259if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
16260
16261cat >>confdefs.h <<_ACEOF
16262#define HAVE_KRB5_ERROR_E_TEXT 1
16263_ACEOF
16264
16265
16266fi
16267
16268fi
16269
16270done
16271
16272 else
16273 for ac_header in des.h
16274do :
16275 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
2018939f 16276if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
16277 cat >>confdefs.h <<_ACEOF
16278#define HAVE_DES_H 1
16279_ACEOF
16280
16281else
16282 for ac_header in kerberosIV/des.h
16283do :
16284 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
2018939f 16285if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
16286 cat >>confdefs.h <<_ACEOF
16287#define HAVE_KERBEROSIV_DES_H 1
16288_ACEOF
16289
16290else
16291 for ac_header in kerberos/des.h
16292do :
16293 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
2018939f 16294if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
16295 cat >>confdefs.h <<_ACEOF
16296#define HAVE_KERBEROS_DES_H 1
16297_ACEOF
16298
16299fi
16300
16301done
16302
16303fi
16304
16305done
16306
16307fi
16308
16309done
16310
16311 for ac_header in krb.h
16312do :
16313 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
2018939f 16314if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
16315 cat >>confdefs.h <<_ACEOF
16316#define HAVE_KRB_H 1
16317_ACEOF
16318
16319else
16320 for ac_header in kerberosIV/krb.h
16321do :
16322 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
2018939f 16323if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
16324 cat >>confdefs.h <<_ACEOF
16325#define HAVE_KERBEROSIV_KRB_H 1
16326_ACEOF
16327
16328else
16329 for ac_header in kerberos/krb.h
16330do :
16331 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
2018939f 16332if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
16333 cat >>confdefs.h <<_ACEOF
16334#define HAVE_KERBEROS_KRB_H 1
16335_ACEOF
16336
16337fi
16338
16339done
16340
16341fi
16342
16343done
16344
16345fi
16346
16347done
16348
16349 fi
16350 for ac_header in com_err.h
16351do :
16352 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
2018939f 16353if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
16354 cat >>confdefs.h <<_ACEOF
16355#define HAVE_COM_ERR_H 1
16356_ACEOF
16357
16358fi
16359
16360done
16361
16362fi
16363
16364
16365
16366
16367
16368
16369
16370# Solaris requires -lintl if you want strerror (which calls dgettext)
16371# to return localized messages.
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16373$as_echo_n "checking for dgettext in -lintl... " >&6; }
2018939f 16374if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
16375 $as_echo_n "(cached) " >&6
16376else
16377 ac_check_lib_save_LIBS=$LIBS
16378LIBS="-lintl $LIBS"
16379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380/* end confdefs.h. */
16381
16382/* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16385#ifdef __cplusplus
16386extern "C"
16387#endif
16388char dgettext ();
16389int
16390main ()
16391{
16392return dgettext ();
16393 ;
16394 return 0;
16395}
16396_ACEOF
16397if ac_fn_c_try_link "$LINENO"; then :
16398 ac_cv_lib_intl_dgettext=yes
16399else
16400 ac_cv_lib_intl_dgettext=no
16401fi
16402rm -f core conftest.err conftest.$ac_objext \
16403 conftest$ac_exeext conftest.$ac_ext
16404LIBS=$ac_check_lib_save_LIBS
16405fi
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16407$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
2018939f 16408if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
16409 cat >>confdefs.h <<_ACEOF
16410#define HAVE_LIBINTL 1
16411_ACEOF
16412
16413 LIBS="-lintl $LIBS"
16414
16415fi
16416
16417
16418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16419$as_echo_n "checking whether localtime caches TZ... " >&6; }
2018939f 16420if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
16421 $as_echo_n "(cached) " >&6
16422else
16423 if test x$ac_cv_func_tzset = xyes; then
16424if test "$cross_compiling" = yes; then :
16425 # If we have tzset, assume the worst when cross-compiling.
16426emacs_cv_localtime_cache=yes
16427else
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h. */
16430#include <time.h>
16431char TZ_GMT0[] = "TZ=GMT0";
16432char TZ_PST8[] = "TZ=PST8";
16433main()
16434{
16435 time_t now = time ((time_t *) 0);
16436 int hour_GMT0, hour_unset;
16437 if (putenv (TZ_GMT0) != 0)
16438 exit (1);
16439 hour_GMT0 = localtime (&now)->tm_hour;
16440 unsetenv("TZ");
16441 hour_unset = localtime (&now)->tm_hour;
16442 if (putenv (TZ_PST8) != 0)
16443 exit (1);
16444 if (localtime (&now)->tm_hour == hour_GMT0)
16445 exit (1);
16446 unsetenv("TZ");
16447 if (localtime (&now)->tm_hour != hour_unset)
16448 exit (1);
16449 exit (0);
16450}
16451_ACEOF
16452if ac_fn_c_try_run "$LINENO"; then :
16453 emacs_cv_localtime_cache=no
16454else
16455 emacs_cv_localtime_cache=yes
16456fi
16457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16458 conftest.$ac_objext conftest.beam conftest.$ac_ext
16459fi
16460
16461else
16462 # If we lack tzset, report that localtime does not cache TZ,
16463 # since we can't invalidate the cache if we don't have tzset.
16464 emacs_cv_localtime_cache=no
16465fi
16466fi
16467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16468$as_echo "$emacs_cv_localtime_cache" >&6; }
16469if test $emacs_cv_localtime_cache = yes; then
16470
16471$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16472
16473fi
16474
16475if test "x$HAVE_TIMEVAL" = xyes; then
16476 for ac_func in gettimeofday
16477do :
16478 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
2018939f 16479if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
16480 cat >>confdefs.h <<_ACEOF
16481#define HAVE_GETTIMEOFDAY 1
16482_ACEOF
16483
16484fi
16485done
16486
16487 if test $ac_cv_func_gettimeofday = yes; then
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16489$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
2018939f 16490if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
16491 $as_echo_n "(cached) " >&6
16492else
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h. */
16495
16496#ifdef TIME_WITH_SYS_TIME
16497#include <sys/time.h>
16498#include <time.h>
16499#else
16500#ifdef HAVE_SYS_TIME_H
16501#include <sys/time.h>
16502#else
16503#include <time.h>
16504#endif
16505#endif
16506int
16507main ()
16508{
16509struct timeval time;
16510 gettimeofday (&time, 0);
16511 ;
16512 return 0;
16513}
16514_ACEOF
16515if ac_fn_c_try_compile "$LINENO"; then :
16516 emacs_cv_gettimeofday_two_arguments=yes
16517else
16518 emacs_cv_gettimeofday_two_arguments=no
16519fi
16520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521fi
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16523$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16524 if test $emacs_cv_gettimeofday_two_arguments = no; then
16525
16526$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16527
16528 fi
16529 fi
16530fi
16531
16532ok_so_far=yes
16533ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
2018939f 16534if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
16535
16536else
16537 ok_so_far=no
16538fi
16539
16540if test $ok_so_far = yes; then
16541 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
2018939f 16542if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
16543
16544else
16545 ok_so_far=no
16546fi
16547
16548
16549fi
16550if test $ok_so_far = yes; then
16551 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
2018939f 16552if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
16553
16554else
16555 ok_so_far=no
16556fi
16557
16558
16559fi
16560if test $ok_so_far = yes; then
16561
16562$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16563
16564fi
16565
16566if test -f /usr/lpp/X11/bin/smt.exp; then
16567
16568$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16569
16570fi
16571
16572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16573$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16574if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16576$as_echo "yes" >&6; }
16577
16578$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16579
16580else
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16582$as_echo "no" >&6; }
16583fi
16584
16585ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
2018939f 16586if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
16587
16588else
16589
16590cat >>confdefs.h <<_ACEOF
16591#define pid_t int
16592_ACEOF
16593
16594fi
16595
16596for ac_header in vfork.h
16597do :
16598 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
2018939f 16599if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
16600 cat >>confdefs.h <<_ACEOF
16601#define HAVE_VFORK_H 1
16602_ACEOF
16603
16604fi
16605
16606done
16607
16608for ac_func in fork vfork
16609do :
16610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 16612if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
16613 cat >>confdefs.h <<_ACEOF
16614#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16615_ACEOF
16616
16617fi
16618done
16619
16620if test "x$ac_cv_func_fork" = xyes; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16622$as_echo_n "checking for working fork... " >&6; }
2018939f 16623if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
16624 $as_echo_n "(cached) " >&6
16625else
16626 if test "$cross_compiling" = yes; then :
16627 ac_cv_func_fork_works=cross
16628else
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h. */
16631$ac_includes_default
16632int
16633main ()
16634{
16635
16636 /* By Ruediger Kuhlmann. */
16637 return fork () < 0;
16638
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643if ac_fn_c_try_run "$LINENO"; then :
16644 ac_cv_func_fork_works=yes
16645else
16646 ac_cv_func_fork_works=no
16647fi
16648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16649 conftest.$ac_objext conftest.beam conftest.$ac_ext
16650fi
16651
16652fi
16653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16654$as_echo "$ac_cv_func_fork_works" >&6; }
16655
16656else
16657 ac_cv_func_fork_works=$ac_cv_func_fork
16658fi
16659if test "x$ac_cv_func_fork_works" = xcross; then
16660 case $host in
16661 *-*-amigaos* | *-*-msdosdjgpp*)
16662 # Override, as these systems have only a dummy fork() stub
16663 ac_cv_func_fork_works=no
16664 ;;
16665 *)
16666 ac_cv_func_fork_works=yes
16667 ;;
16668 esac
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16670$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16671fi
16672ac_cv_func_vfork_works=$ac_cv_func_vfork
16673if test "x$ac_cv_func_vfork" = xyes; then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16675$as_echo_n "checking for working vfork... " >&6; }
2018939f 16676if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
16677 $as_echo_n "(cached) " >&6
16678else
16679 if test "$cross_compiling" = yes; then :
16680 ac_cv_func_vfork_works=cross
16681else
16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683/* end confdefs.h. */
16684/* Thanks to Paul Eggert for this test. */
16685$ac_includes_default
16686#include <sys/wait.h>
16687#ifdef HAVE_VFORK_H
16688# include <vfork.h>
16689#endif
16690/* On some sparc systems, changes by the child to local and incoming
16691 argument registers are propagated back to the parent. The compiler
16692 is told about this with #include <vfork.h>, but some compilers
16693 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16694 static variable whose address is put into a register that is
16695 clobbered by the vfork. */
16696static void
16697#ifdef __cplusplus
16698sparc_address_test (int arg)
16699# else
16700sparc_address_test (arg) int arg;
16701#endif
16702{
16703 static pid_t child;
16704 if (!child) {
16705 child = vfork ();
16706 if (child < 0) {
16707 perror ("vfork");
16708 _exit(2);
16709 }
16710 if (!child) {
16711 arg = getpid();
16712 write(-1, "", 0);
16713 _exit (arg);
16714 }
16715 }
16716}
16717
16718int
16719main ()
16720{
16721 pid_t parent = getpid ();
16722 pid_t child;
16723
16724 sparc_address_test (0);
16725
16726 child = vfork ();
16727
16728 if (child == 0) {
16729 /* Here is another test for sparc vfork register problems. This
16730 test uses lots of local variables, at least as many local
16731 variables as main has allocated so far including compiler
16732 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16733 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16734 reuse the register of parent for one of the local variables,
16735 since it will think that parent can't possibly be used any more
16736 in this routine. Assigning to the local variable will thus
16737 munge parent in the parent process. */
16738 pid_t
16739 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16740 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16741 /* Convince the compiler that p..p7 are live; otherwise, it might
16742 use the same hardware register for all 8 local variables. */
16743 if (p != p1 || p != p2 || p != p3 || p != p4
16744 || p != p5 || p != p6 || p != p7)
16745 _exit(1);
16746
16747 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16748 from child file descriptors. If the child closes a descriptor
16749 before it execs or exits, this munges the parent's descriptor
16750 as well. Test for this by closing stdout in the child. */
16751 _exit(close(fileno(stdout)) != 0);
16752 } else {
16753 int status;
16754 struct stat st;
16755
16756 while (wait(&status) != child)
16757 ;
16758 return (
16759 /* Was there some problem with vforking? */
16760 child < 0
16761
16762 /* Did the child fail? (This shouldn't happen.) */
16763 || status
16764
16765 /* Did the vfork/compiler bug occur? */
16766 || parent != getpid()
16767
16768 /* Did the file descriptor bug occur? */
16769 || fstat(fileno(stdout), &st) != 0
16770 );
16771 }
16772}
16773_ACEOF
16774if ac_fn_c_try_run "$LINENO"; then :
16775 ac_cv_func_vfork_works=yes
16776else
16777 ac_cv_func_vfork_works=no
16778fi
16779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16780 conftest.$ac_objext conftest.beam conftest.$ac_ext
16781fi
16782
16783fi
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16785$as_echo "$ac_cv_func_vfork_works" >&6; }
16786
16787fi;
16788if test "x$ac_cv_func_fork_works" = xcross; then
16789 ac_cv_func_vfork_works=$ac_cv_func_vfork
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16791$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16792fi
16793
16794if test "x$ac_cv_func_vfork_works" = xyes; then
16795
16796$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16797
16798else
16799
16800$as_echo "#define vfork fork" >>confdefs.h
16801
16802fi
16803if test "x$ac_cv_func_fork_works" = xyes; then
16804
16805$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16806
16807fi
16808
16809
16810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16811$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
2018939f 16812if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
16813 $as_echo_n "(cached) " >&6
16814else
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h. */
16817#include <langinfo.h>
16818int
16819main ()
16820{
16821char* cs = nl_langinfo(CODESET);
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826if ac_fn_c_try_link "$LINENO"; then :
16827 emacs_cv_langinfo_codeset=yes
16828else
16829 emacs_cv_langinfo_codeset=no
16830fi
16831rm -f core conftest.err conftest.$ac_objext \
16832 conftest$ac_exeext conftest.$ac_ext
16833
16834fi
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16836$as_echo "$emacs_cv_langinfo_codeset" >&6; }
16837if test $emacs_cv_langinfo_codeset = yes; then
16838
16839$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16840
16841fi
16842
16843ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
2018939f 16844if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
16845
16846cat >>confdefs.h <<_ACEOF
16847#define HAVE_SIZE_T 1
16848_ACEOF
16849
16850
16851fi
16852
16853
16854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16855$as_echo_n "checking for mbstate_t... " >&6; }
2018939f 16856if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
16857 $as_echo_n "(cached) " >&6
16858else
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860/* end confdefs.h. */
16861$ac_includes_default
16862# include <wchar.h>
16863int
16864main ()
16865{
16866mbstate_t x; return sizeof x;
16867 ;
16868 return 0;
16869}
16870_ACEOF
16871if ac_fn_c_try_compile "$LINENO"; then :
16872 ac_cv_type_mbstate_t=yes
16873else
16874 ac_cv_type_mbstate_t=no
16875fi
16876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16879$as_echo "$ac_cv_type_mbstate_t" >&6; }
16880 if test $ac_cv_type_mbstate_t = yes; then
16881
16882$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16883
16884 else
16885
16886$as_echo "#define mbstate_t int" >>confdefs.h
16887
16888 fi
16889
067d23c9
KY
16890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16891$as_echo_n "checking for C restricted array declarations... " >&6; }
2018939f 16892if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
16893 $as_echo_n "(cached) " >&6
16894else
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896/* end confdefs.h. */
16897void fred (int x[__restrict]);
16898int
16899main ()
16900{
16901
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906if ac_fn_c_try_compile "$LINENO"; then :
16907 emacs_cv_c_restrict_arr=yes
16908else
16909 emacs_cv_c_restrict_arr=no
16910fi
16911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912fi
16913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16914$as_echo "$emacs_cv_c_restrict_arr" >&6; }
16915if test "$emacs_cv_c_restrict_arr" = yes; then
16916
16917$as_echo "#define __restrict_arr __restrict" >>confdefs.h
16918
16919fi
16920
16921
16922
16923# Set up the CFLAGS for real compilation, so we can substitute it.
16924CFLAGS="$REAL_CFLAGS"
16925CPPFLAGS="$REAL_CPPFLAGS"
16926
16927## Hack to detect a buggy GCC version.
16928if test "x$GCC" = xyes \
16929 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16930 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16931 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 16932 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
16933fi
16934
16935#### Find out which version of Emacs this is.
16936version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
16937 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16938if test x"${version}" = x; then
2018939f 16939 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
067d23c9
KY
16940fi
16941if test x"${version}" != x"$PACKAGE_VERSION"; then
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
16943$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
16944fi
16945
16946### Specify what sort of things we'll be editing into Makefile and config.h.
16947### Use configuration here uncanonicalized to avoid exceeding size limits.
16948
16949
16950## Unused?
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16972## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16973## end of LIBX_BASE, but nothing ever set it.
16974
16975
16976
16977
16978## Used in lwlib/Makefile.in.
16979
d6a003a8
AS
16980if test -n "${machfile}"; then
16981 M_FILE="\$(srcdir)/${machfile}"
16982else
16983 M_FILE=
16984fi
16985S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997cat >>confdefs.h <<_ACEOF
16998#define EMACS_CONFIGURATION "${canonical}"
16999_ACEOF
17000
17001
17002cat >>confdefs.h <<_ACEOF
17003#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17004_ACEOF
17005
d6a003a8 17006if test -n "$machfile"; then
067d23c9
KY
17007
17008cat >>confdefs.h <<_ACEOF
17009#define config_machfile "${machfile}"
17010_ACEOF
17011
d6a003a8 17012fi
067d23c9
KY
17013
17014cat >>confdefs.h <<_ACEOF
17015#define config_opsysfile "${opsysfile}"
17016_ACEOF
17017
17018
17019XMENU_OBJ=
17020XOBJ=
17021FONT_OBJ=
17022if test "${HAVE_X_WINDOWS}" = "yes" ; then
17023
17024$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17025
17026 XMENU_OBJ=xmenu.o
17027 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17028 FONT_OBJ=xfont.o
17029 if test "$HAVE_XFT" = "yes"; then
17030 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17031 elif test "$HAVE_FREETYPE" = "yes"; then
17032 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17033 fi
17034
17035fi
17036
17037
17038
17039
17040WIDGET_OBJ=
17041MOTIF_LIBW=
17042if test "${USE_X_TOOLKIT}" != "none" ; then
17043 WIDGET_OBJ=widget.o
17044
17045$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17046
17047 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17048
17049$as_echo "#define USE_LUCID 1" >>confdefs.h
17050
17051 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17052
17053$as_echo "#define USE_MOTIF 1" >>confdefs.h
17054
17055 MOTIF_LIBW=-lXm
17056 case "$opsys" in
17057 gnu-linux)
17058 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17059 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17060 ;;
17061
17062 unixware)
17063 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17064 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17065 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17066 ;;
17067
17068 aix4-2)
17069 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17070 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17071 ;;
17072 esac
17073 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17074 fi
17075fi
17076
17077
17078TOOLKIT_LIBW=
17079case "$USE_X_TOOLKIT" in
17080 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17081 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17082 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17083esac
17084
17085
17086if test "$USE_X_TOOLKIT" = "none"; then
17087 LIBXT_OTHER="\$(LIBXSM)"
17088 OLDXMENU_TARGET="really-oldXMenu"
17089else
17090 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17091 OLDXMENU_TARGET="really-lwlib"
17092fi
17093
17094
17095## The X Menu stuff is present in the X10 distribution, but missing
17096## from X11. If we have X10, just use the installed library;
17097## otherwise, use our own copy.
17098if test "${HAVE_X11}" = "yes" ; then
17099
17100$as_echo "#define HAVE_X11 1" >>confdefs.h
17101
17102
17103 if test "$USE_X_TOOLKIT" = "none"; then
17104 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17105 else
17106 OLDXMENU="\${lwlibdir}/liblw.a"
17107 fi
17108 LIBXMENU="\$(OLDXMENU)"
17109 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17110 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17111else
17112 ## For a syntactically valid Makefile; not actually used for anything.
17113 ## See comments in src/Makefile.in.
17114 OLDXMENU=nothing
17115 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17116 if test "${HAVE_X_WINDOWS}" = "yes"; then
17117 LIBXMENU="-lXMenu"
17118 else
17119 LIBXMENU=
17120 fi
17121 LIBX_OTHER=
17122 OLDXMENU_DEPS=
17123fi
17124
17125if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17126 OLDXMENU_TARGET=
17127 OLDXMENU=nothing
17128 LIBXMENU=
17129 OLDXMENU_DEPS=
17130fi
17131
17132
17133
17134
17135
17136
17137
17138if test "${HAVE_MENUS}" = "yes" ; then
17139
17140$as_echo "#define HAVE_MENUS 1" >>confdefs.h
17141
17142fi
17143
17144if test "${GNU_MALLOC}" = "yes" ; then
17145
17146$as_echo "#define GNU_MALLOC 1" >>confdefs.h
17147
17148fi
17149
17150RALLOC_OBJ=
17151if test "${REL_ALLOC}" = "yes" ; then
17152
17153$as_echo "#define REL_ALLOC 1" >>confdefs.h
17154
17155
17156 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17157fi
17158
17159
17160if test "$opsys" = "cygwin"; then
17161 CYGWIN_OBJ="sheap.o"
17162 ## Cygwin differs because of its unexec().
17163 PRE_ALLOC_OBJ=
17164 POST_ALLOC_OBJ=lastfile.o
17165else
17166 CYGWIN_OBJ=
17167 PRE_ALLOC_OBJ=lastfile.o
17168 POST_ALLOC_OBJ=
17169fi
17170
17171
17172
17173
17174
17175case "$opsys" in
17176 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17177
17178 darwin)
17179 ## The -headerpad option tells ld (see man page) to leave room at the
17180 ## end of the header for adding load commands. Needed for dumping.
17181 ## 0x690 is the total size of 30 segment load commands (at 56
17182 ## each); under Cocoa 31 commands are required.
17183 if test "$HAVE_NS" = "yes"; then
17184 libs_nsgui="-framework AppKit"
17185 headerpad_extra=6C8
17186 else
17187 libs_nsgui=
17188 headerpad_extra=690
17189 fi
17190 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17191
17192 ## This is here because src/Makefile.in did some extra fiddling around
17193 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17194 ## #ifndef LD_SWITCH_SYSTEM
17195 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17196 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17197 ## not using gcc, darwin system not on an alpha (ie darwin, since
17198 ## darwin + alpha does not occur).
17199 ## Because this was done in src/Makefile.in, the resulting part of
17200 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17201 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17202 ## rather than LD_SWITCH_SYSTEM.
17203 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17204 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17205 ;;
17206
17207 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17208 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17209 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17210 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17211 ## had different values in configure (in ac_link) and src/Makefile.in.
17212 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17213 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17214
17215 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17216esac
17217
17218if test "$NS_IMPL_GNUSTEP" = "yes"; then
17219 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17220fi
17221
17222
17223
17224
17225LD_FIRSTFLAG=
17226ORDINARY_LINK=
17227case "$opsys" in
17228 ## gnu: GNU needs its own crt0.
17229 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17230
17231 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17232 ## library search parth, i.e. it won't search /usr/lib for libc and
17233 ## friends. Using -nostartfiles instead avoids this problem, and
17234 ## will also work on earlier NetBSD releases.
17235 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17236
17237 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17238 ## MkLinux/LinuxPPC needs this.
17239 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17240 gnu-*)
17241 case "$machine" in
17242 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17243 esac
17244 ;;
17245esac
17246
17247
17248if test "x$ORDINARY_LINK" = "xyes"; then
17249
17250 LD_FIRSTFLAG=""
17251
17252$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17253
17254
17255## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17256## freebsd, gnu-* not on macppc|ibms390x.
17257elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17258
17259 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17260 ## places that are difficult to figure out at make time. Fortunately,
17261 ## these same versions allow you to pass arbitrary flags on to the
17262 ## linker, so there is no reason not to use it as a linker.
17263 ##
17264 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17265 ## searching for libraries in its internal directories, so we have to
17266 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17267 LD_FIRSTFLAG="-nostdlib"
17268fi
17269
17270## FIXME? What setting of EDIT_LDFLAGS should this have?
17271test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17272
17273
17274
17275
17276## FIXME? The logic here is not precisely the same as that above.
17277## There is no check here for a pre-defined LD_FIRSTFLAG.
17278## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17279LIB_GCC=
17280if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17281
17282 case "$opsys" in
17283 freebsd|netbsd|openbsd) LIB_GCC= ;;
17284
17285 gnu-*)
17286 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17287 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
17288 case $host_cpu in
17289 arm*)
067d23c9 17290 LIB_GCC="-lgcc_s"
d6a003a8
AS
17291 ;;
17292 *)
067d23c9
KY
17293 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17294 ## immediately undefine it again and redefine it to empty.
17295 ## Was the C_SWITCH_X_SITE part really necessary?
17296## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17297 LIB_GCC=
d6a003a8
AS
17298 ;;
17299 esac
067d23c9
KY
17300 ;;
17301
17302 ## Ask GCC where to find libgcc.a.
17303 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17304 esac
17305fi
17306
17307
17308TOOLTIP_SUPPORT=
17309WINDOW_SUPPORT=
17310## If we're using X11/GNUstep, define some consequences.
17311if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17312
17313$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17314
17315
17316$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17317
17318 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17319 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17320
17321 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17322 test "$HAVE_X_WINDOWS" = "yes" && \
17323 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17324
17325fi
17326
17327
17328
17329
17330
17331
17332
17333#### Report on what we decided to do.
17334#### Report GTK as a toolkit, even if it doesn't use Xt.
17335#### It makes printing result more understandable as using GTK sets
17336#### toolkit_scroll_bars to yes by default.
17337if test "${HAVE_GTK}" = "yes"; then
17338 USE_X_TOOLKIT=GTK
17339fi
17340
2b7f50d8
AS
17341and_machfile=
17342if test -n "$machfile"; then
17343 and_machfile=" and \`${machfile}'"
17344fi
17345
067d23c9
KY
17346echo "
17347Configured for \`${canonical}'.
17348
17349 Where should the build process find the source code? ${srcdir}
17350 What operating system and machine description files should Emacs use?
2b7f50d8 17351 \`${opsysfile}'${and_machfile}
067d23c9
KY
17352 What compiler should emacs be built with? ${CC} ${CFLAGS}
17353 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17354 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17355 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17356 What window system should Emacs use? ${window_system}
17357 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17358
17359if test -n "${x_includes}"; then
17360echo " Where do we find X Windows header files? ${x_includes}"
17361else
17362echo " Where do we find X Windows header files? Standard dirs"
17363fi
17364if test -n "${x_libraries}"; then
17365echo " Where do we find X Windows libraries? ${x_libraries}"
17366else
17367echo " Where do we find X Windows libraries? Standard dirs"
17368fi
17369
17370echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17371echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17372echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17373echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17374echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17375echo " Does Emacs use -lpng? ${HAVE_PNG}"
17376echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17377echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17378
17379echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17380echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17381echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17382echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17383echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17384echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17385
17386echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17387echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17388echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17389echo " Does Emacs use -lxft? ${HAVE_XFT}"
17390
17391echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17392echo
17393
17394if test $USE_XASSERTS = yes; then
17395 echo " Compiling with asserts turned on."
17396 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17397fi
17398
17399echo
17400
17401if test "$HAVE_NS" = "yes"; then
17402 echo
17403 echo "You must run \"make install\" in order to test the built application.
17404The installed application will go to nextstep/Emacs.app and can be
17405run or moved from there."
17406 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17407 echo "The application will be fully self-contained."
17408 else
17409 echo "The lisp resources for the application will be installed under ${prefix}.
17410You may need to run \"make install\" with sudo. The application will fail
17411to run if these resources are not installed."
17412 fi
17413 echo
17414fi
17415
17416
17417# Remove any trailing slashes in these variables.
17418test "${prefix}" != NONE &&
17419 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17420test "${exec_prefix}" != NONE &&
17421 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17422
193770ee 17423ac_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
17424
17425ac_config_commands="$ac_config_commands default"
17426
17427cat >confcache <<\_ACEOF
17428# This file is a shell script that caches the results of configure
17429# tests run on this system so they can be shared between configure
17430# scripts and configure runs, see configure's option --config-cache.
17431# It is not useful on other systems. If it contains results you don't
17432# want to keep, you may remove or edit it.
17433#
17434# config.status only pays attention to the cache file if you give it
17435# the --recheck option to rerun configure.
17436#
17437# `ac_cv_env_foo' variables (set or unset) will be overridden when
17438# loading this file, other *unset* `ac_cv_foo' will be assigned the
17439# following values.
17440
17441_ACEOF
17442
17443# The following way of writing the cache mishandles newlines in values,
17444# but we know of no workaround that is simple, portable, and efficient.
17445# So, we kill variables containing newlines.
17446# Ultrix sh set writes to stderr and can't be redirected directly,
17447# and sets the high bit in the cache file unless we assign to the vars.
17448(
17449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17450 eval ac_val=\$$ac_var
17451 case $ac_val in #(
17452 *${as_nl}*)
17453 case $ac_var in #(
17454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17455$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17456 esac
17457 case $ac_var in #(
17458 _ | IFS | as_nl) ;; #(
17459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17460 *) { eval $ac_var=; unset $ac_var;} ;;
17461 esac ;;
17462 esac
17463 done
17464
17465 (set) 2>&1 |
17466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17467 *${as_nl}ac_space=\ *)
17468 # `set' does not quote correctly, so add quotes: double-quote
17469 # substitution turns \\\\ into \\, and sed turns \\ into \.
17470 sed -n \
17471 "s/'/'\\\\''/g;
17472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17473 ;; #(
17474 *)
17475 # `set' quotes correctly as required by POSIX, so do not add quotes.
17476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17477 ;;
17478 esac |
17479 sort
17480) |
17481 sed '
17482 /^ac_cv_env_/b end
17483 t clear
17484 :clear
17485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17486 t end
17487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17488 :end' >>confcache
17489if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17490 if test -w "$cache_file"; then
2018939f 17491 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17493$as_echo "$as_me: updating cache $cache_file" >&6;}
2018939f
AS
17494 if test ! -f "$cache_file" || test -h "$cache_file"; then
17495 cat confcache >"$cache_file"
17496 else
17497 case $cache_file in #(
17498 */* | ?:*)
17499 mv -f confcache "$cache_file"$$ &&
17500 mv -f "$cache_file"$$ "$cache_file" ;; #(
17501 *)
17502 mv -f confcache "$cache_file" ;;
17503 esac
17504 fi
17505 fi
067d23c9
KY
17506 else
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17508$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17509 fi
17510fi
17511rm -f confcache
17512
17513test "x$prefix" = xNONE && prefix=$ac_default_prefix
17514# Let make expand exec_prefix.
17515test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17516
17517DEFS=-DHAVE_CONFIG_H
17518
17519ac_libobjs=
17520ac_ltlibobjs=
2018939f 17521U=
067d23c9
KY
17522for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17523 # 1. Remove the extension, and $U if already installed.
17524 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17525 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17526 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17527 # will be set to the directory where LIBOBJS objects are built.
17528 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17529 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17530done
17531LIBOBJS=$ac_libobjs
17532
17533LTLIBOBJS=$ac_ltlibobjs
17534
17535
743c80a7
PE
17536 if test -n "$EXEEXT"; then
17537 am__EXEEXT_TRUE=
17538 am__EXEEXT_FALSE='#'
17539else
17540 am__EXEEXT_TRUE='#'
17541 am__EXEEXT_FALSE=
17542fi
17543
17544if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17545 as_fn_error $? "conditional \"AMDEP\" was never defined.
17546Usually this means the macro was only invoked conditionally." "$LINENO" 5
17547fi
17548if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17549 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17550Usually this means the macro was only invoked conditionally." "$LINENO" 5
17551fi
17552
17553if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17554 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17555Usually this means the macro was only invoked conditionally." "$LINENO" 5
17556fi
17557
17558 gl_libobjs=
17559 gl_ltlibobjs=
17560 if test -n "$gl_LIBOBJS"; then
17561 # Remove the extension.
17562 sed_drop_objext='s/\.o$//;s/\.obj$//'
17563 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17564 gl_libobjs="$gl_libobjs $i.$ac_objext"
17565 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17566 done
17567 fi
17568 gl_LIBOBJS=$gl_libobjs
17569
17570 gl_LTLIBOBJS=$gl_ltlibobjs
17571
17572
17573
17574 gltests_libobjs=
17575 gltests_ltlibobjs=
17576 if test -n "$gltests_LIBOBJS"; then
17577 # Remove the extension.
17578 sed_drop_objext='s/\.o$//;s/\.obj$//'
17579 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17580 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17581 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17582 done
17583 fi
17584 gltests_LIBOBJS=$gltests_libobjs
17585
17586 gltests_LTLIBOBJS=$gltests_ltlibobjs
17587
067d23c9
KY
17588
17589
2018939f 17590: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
17591ac_write_fail=0
17592ac_clean_files_save=$ac_clean_files
17593ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17594{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17595$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17596as_write_fail=0
17597cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17598#! $SHELL
17599# Generated by $as_me.
17600# Run this file to recreate the current configuration.
17601# Compiler output produced by configure, useful for debugging
17602# configure, is in config.log if it exists.
17603
17604debug=false
17605ac_cs_recheck=false
17606ac_cs_silent=false
17607
17608SHELL=\${CONFIG_SHELL-$SHELL}
17609export SHELL
17610_ASEOF
17611cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17612## -------------------- ##
17613## M4sh Initialization. ##
17614## -------------------- ##
17615
17616# Be more Bourne compatible
17617DUALCASE=1; export DUALCASE # for MKS sh
17618if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17619 emulate sh
17620 NULLCMD=:
17621 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17622 # is contrary to our usage. Disable this feature.
17623 alias -g '${1+"$@"}'='"$@"'
17624 setopt NO_GLOB_SUBST
17625else
17626 case `(set -o) 2>/dev/null` in #(
17627 *posix*) :
17628 set -o posix ;; #(
17629 *) :
17630 ;;
17631esac
17632fi
17633
17634
17635as_nl='
17636'
17637export as_nl
17638# Printing a long string crashes Solaris 7 /usr/bin/printf.
17639as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17640as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17641as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17642# Prefer a ksh shell builtin over an external printf program on Solaris,
17643# but without wasting forks for bash or zsh.
17644if test -z "$BASH_VERSION$ZSH_VERSION" \
17645 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17646 as_echo='print -r --'
17647 as_echo_n='print -rn --'
17648elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17649 as_echo='printf %s\n'
17650 as_echo_n='printf %s'
17651else
17652 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17653 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17654 as_echo_n='/usr/ucb/echo -n'
17655 else
17656 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17657 as_echo_n_body='eval
17658 arg=$1;
17659 case $arg in #(
17660 *"$as_nl"*)
17661 expr "X$arg" : "X\\(.*\\)$as_nl";
17662 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17663 esac;
17664 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17665 '
17666 export as_echo_n_body
17667 as_echo_n='sh -c $as_echo_n_body as_echo'
17668 fi
17669 export as_echo_body
17670 as_echo='sh -c $as_echo_body as_echo'
17671fi
17672
17673# The user is always right.
17674if test "${PATH_SEPARATOR+set}" != set; then
17675 PATH_SEPARATOR=:
17676 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17677 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17678 PATH_SEPARATOR=';'
17679 }
17680fi
17681
17682
17683# IFS
17684# We need space, tab and new line, in precisely that order. Quoting is
17685# there to prevent editors from complaining about space-tab.
17686# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17687# splitting by setting IFS to empty value.)
17688IFS=" "" $as_nl"
17689
17690# Find who we are. Look in the path if we contain no directory separator.
2018939f 17691as_myself=
067d23c9
KY
17692case $0 in #((
17693 *[\\/]* ) as_myself=$0 ;;
17694 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695for as_dir in $PATH
17696do
17697 IFS=$as_save_IFS
17698 test -z "$as_dir" && as_dir=.
17699 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17700 done
17701IFS=$as_save_IFS
17702
17703 ;;
17704esac
17705# We did not find ourselves, most probably we were run as `sh COMMAND'
17706# in which case we are not to be found in the path.
17707if test "x$as_myself" = x; then
17708 as_myself=$0
17709fi
17710if test ! -f "$as_myself"; then
17711 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17712 exit 1
17713fi
17714
17715# Unset variables that we do not need and which cause bugs (e.g. in
17716# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17717# suppresses any "Segmentation fault" message there. '((' could
17718# trigger a bug in pdksh 5.2.14.
17719for as_var in BASH_ENV ENV MAIL MAILPATH
17720do eval test x\${$as_var+set} = xset \
17721 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17722done
17723PS1='$ '
17724PS2='> '
17725PS4='+ '
17726
17727# NLS nuisances.
17728LC_ALL=C
17729export LC_ALL
17730LANGUAGE=C
17731export LANGUAGE
17732
17733# CDPATH.
17734(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17735
17736
2018939f
AS
17737# as_fn_error STATUS ERROR [LINENO LOG_FD]
17738# ----------------------------------------
067d23c9
KY
17739# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17740# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 17741# script with STATUS, using 1 if that was 0.
067d23c9
KY
17742as_fn_error ()
17743{
2018939f
AS
17744 as_status=$1; test $as_status -eq 0 && as_status=1
17745 if test "$4"; then
17746 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17747 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 17748 fi
2018939f 17749 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
17750 as_fn_exit $as_status
17751} # as_fn_error
17752
17753
17754# as_fn_set_status STATUS
17755# -----------------------
17756# Set $? to STATUS, without forking.
17757as_fn_set_status ()
17758{
17759 return $1
17760} # as_fn_set_status
17761
17762# as_fn_exit STATUS
17763# -----------------
17764# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17765as_fn_exit ()
17766{
17767 set +e
17768 as_fn_set_status $1
17769 exit $1
17770} # as_fn_exit
17771
17772# as_fn_unset VAR
17773# ---------------
17774# Portably unset VAR.
17775as_fn_unset ()
17776{
17777 { eval $1=; unset $1;}
17778}
17779as_unset=as_fn_unset
17780# as_fn_append VAR VALUE
17781# ----------------------
17782# Append the text in VALUE to the end of the definition contained in VAR. Take
17783# advantage of any shell optimizations that allow amortized linear growth over
17784# repeated appends, instead of the typical quadratic growth present in naive
17785# implementations.
17786if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17787 eval 'as_fn_append ()
17788 {
17789 eval $1+=\$2
17790 }'
17791else
17792 as_fn_append ()
17793 {
17794 eval $1=\$$1\$2
17795 }
17796fi # as_fn_append
17797
17798# as_fn_arith ARG...
17799# ------------------
17800# Perform arithmetic evaluation on the ARGs, and store the result in the
17801# global $as_val. Take advantage of shells that can avoid forks. The arguments
17802# must be portable across $(()) and expr.
17803if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17804 eval 'as_fn_arith ()
17805 {
17806 as_val=$(( $* ))
17807 }'
17808else
17809 as_fn_arith ()
17810 {
17811 as_val=`expr "$@" || test $? -eq 1`
17812 }
17813fi # as_fn_arith
17814
17815
17816if expr a : '\(a\)' >/dev/null 2>&1 &&
17817 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17818 as_expr=expr
17819else
17820 as_expr=false
17821fi
17822
17823if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17824 as_basename=basename
17825else
17826 as_basename=false
17827fi
17828
17829if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17830 as_dirname=dirname
17831else
17832 as_dirname=false
17833fi
17834
17835as_me=`$as_basename -- "$0" ||
17836$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17837 X"$0" : 'X\(//\)$' \| \
17838 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17839$as_echo X/"$0" |
17840 sed '/^.*\/\([^/][^/]*\)\/*$/{
17841 s//\1/
17842 q
17843 }
17844 /^X\/\(\/\/\)$/{
17845 s//\1/
17846 q
17847 }
17848 /^X\/\(\/\).*/{
17849 s//\1/
17850 q
17851 }
17852 s/.*/./; q'`
17853
17854# Avoid depending upon Character Ranges.
17855as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17856as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17857as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17858as_cr_digits='0123456789'
17859as_cr_alnum=$as_cr_Letters$as_cr_digits
17860
17861ECHO_C= ECHO_N= ECHO_T=
17862case `echo -n x` in #(((((
17863-n*)
17864 case `echo 'xy\c'` in
17865 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17866 xy) ECHO_C='\c';;
17867 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17868 ECHO_T=' ';;
17869 esac;;
17870*)
17871 ECHO_N='-n';;
17872esac
17873
17874rm -f conf$$ conf$$.exe conf$$.file
17875if test -d conf$$.dir; then
17876 rm -f conf$$.dir/conf$$.file
17877else
17878 rm -f conf$$.dir
17879 mkdir conf$$.dir 2>/dev/null
17880fi
17881if (echo >conf$$.file) 2>/dev/null; then
17882 if ln -s conf$$.file conf$$ 2>/dev/null; then
17883 as_ln_s='ln -s'
17884 # ... but there are two gotchas:
17885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17887 # In both cases, we have to default to `cp -p'.
17888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17889 as_ln_s='cp -p'
17890 elif ln conf$$.file conf$$ 2>/dev/null; then
17891 as_ln_s=ln
17892 else
17893 as_ln_s='cp -p'
17894 fi
17895else
17896 as_ln_s='cp -p'
17897fi
17898rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17899rmdir conf$$.dir 2>/dev/null
17900
17901
17902# as_fn_mkdir_p
17903# -------------
17904# Create "$as_dir" as a directory, including parents if necessary.
17905as_fn_mkdir_p ()
17906{
17907
17908 case $as_dir in #(
17909 -*) as_dir=./$as_dir;;
17910 esac
17911 test -d "$as_dir" || eval $as_mkdir_p || {
17912 as_dirs=
17913 while :; do
17914 case $as_dir in #(
17915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17916 *) as_qdir=$as_dir;;
17917 esac
17918 as_dirs="'$as_qdir' $as_dirs"
17919 as_dir=`$as_dirname -- "$as_dir" ||
17920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17921 X"$as_dir" : 'X\(//\)[^/]' \| \
17922 X"$as_dir" : 'X\(//\)$' \| \
17923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17924$as_echo X"$as_dir" |
17925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17926 s//\1/
17927 q
17928 }
17929 /^X\(\/\/\)[^/].*/{
17930 s//\1/
17931 q
17932 }
17933 /^X\(\/\/\)$/{
17934 s//\1/
17935 q
17936 }
17937 /^X\(\/\).*/{
17938 s//\1/
17939 q
17940 }
17941 s/.*/./; q'`
17942 test -d "$as_dir" && break
17943 done
17944 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 17945 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
17946
17947
17948} # as_fn_mkdir_p
17949if mkdir -p . 2>/dev/null; then
17950 as_mkdir_p='mkdir -p "$as_dir"'
17951else
17952 test -d ./-p && rmdir ./-p
17953 as_mkdir_p=false
17954fi
17955
17956if test -x / >/dev/null 2>&1; then
17957 as_test_x='test -x'
17958else
17959 if ls -dL / >/dev/null 2>&1; then
17960 as_ls_L_option=L
17961 else
17962 as_ls_L_option=
17963 fi
17964 as_test_x='
17965 eval sh -c '\''
17966 if test -d "$1"; then
17967 test -d "$1/.";
17968 else
17969 case $1 in #(
17970 -*)set "./$1";;
17971 esac;
17972 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17973 ???[sx]*):;;*)false;;esac;fi
17974 '\'' sh
17975 '
17976fi
17977as_executable_p=$as_test_x
17978
17979# Sed expression to map a string onto a valid CPP name.
17980as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17981
17982# Sed expression to map a string onto a valid variable name.
17983as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17984
17985
17986exec 6>&1
17987## ----------------------------------- ##
17988## Main body of $CONFIG_STATUS script. ##
17989## ----------------------------------- ##
17990_ASEOF
17991test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17992
17993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17994# Save the log message, to keep $0 and so on meaningful, and to
17995# report actual input values of CONFIG_FILES etc. instead of their
17996# values after options handling.
17997ac_log="
17998This file was extended by emacs $as_me 24.0.50, which was
2018939f 17999generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
18000
18001 CONFIG_FILES = $CONFIG_FILES
18002 CONFIG_HEADERS = $CONFIG_HEADERS
18003 CONFIG_LINKS = $CONFIG_LINKS
18004 CONFIG_COMMANDS = $CONFIG_COMMANDS
18005 $ $0 $@
18006
18007on `(hostname || uname -n) 2>/dev/null | sed 1q`
18008"
18009
18010_ACEOF
18011
18012case $ac_config_files in *"
18013"*) set x $ac_config_files; shift; ac_config_files=$*;;
18014esac
18015
18016case $ac_config_headers in *"
18017"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18018esac
18019
18020
18021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18022# Files that config.status was made for.
18023config_files="$ac_config_files"
18024config_headers="$ac_config_headers"
18025config_commands="$ac_config_commands"
18026
18027_ACEOF
18028
18029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18030ac_cs_usage="\
18031\`$as_me' instantiates files and other configuration actions
18032from templates according to the current configuration. Unless the files
18033and actions are specified as TAGs, all are instantiated by default.
18034
18035Usage: $0 [OPTION]... [TAG]...
18036
18037 -h, --help print this help, then exit
18038 -V, --version print version number and configuration settings, then exit
18039 --config print configuration, then exit
18040 -q, --quiet, --silent
18041 do not print progress messages
18042 -d, --debug don't remove temporary files
18043 --recheck update $as_me by reconfiguring in the same conditions
18044 --file=FILE[:TEMPLATE]
18045 instantiate the configuration file FILE
18046 --header=FILE[:TEMPLATE]
18047 instantiate the configuration header FILE
18048
18049Configuration files:
18050$config_files
18051
18052Configuration headers:
18053$config_headers
18054
18055Configuration commands:
18056$config_commands
18057
18058Report bugs to the package provider."
18059
18060_ACEOF
18061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18062ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18063ac_cs_version="\\
18064emacs config.status 24.0.50
2018939f 18065configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
18066 with options \\"\$ac_cs_config\\"
18067
2018939f 18068Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
18069This config.status script is free software; the Free Software Foundation
18070gives unlimited permission to copy, distribute and modify it."
18071
18072ac_pwd='$ac_pwd'
18073srcdir='$srcdir'
18074INSTALL='$INSTALL'
743c80a7
PE
18075MKDIR_P='$MKDIR_P'
18076AWK='$AWK'
067d23c9
KY
18077test -n "\$AWK" || AWK=awk
18078_ACEOF
18079
18080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18081# The default lists apply if the user does not specify any file.
18082ac_need_defaults=:
18083while test $# != 0
18084do
18085 case $1 in
2018939f 18086 --*=?*)
067d23c9
KY
18087 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18088 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18089 ac_shift=:
18090 ;;
2018939f
AS
18091 --*=)
18092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18093 ac_optarg=
18094 ac_shift=:
18095 ;;
067d23c9
KY
18096 *)
18097 ac_option=$1
18098 ac_optarg=$2
18099 ac_shift=shift
18100 ;;
18101 esac
18102
18103 case $ac_option in
18104 # Handling of the options.
18105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18106 ac_cs_recheck=: ;;
18107 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18108 $as_echo "$ac_cs_version"; exit ;;
18109 --config | --confi | --conf | --con | --co | --c )
18110 $as_echo "$ac_cs_config"; exit ;;
18111 --debug | --debu | --deb | --de | --d | -d )
18112 debug=: ;;
18113 --file | --fil | --fi | --f )
18114 $ac_shift
18115 case $ac_optarg in
18116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 18117 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
18118 esac
18119 as_fn_append CONFIG_FILES " '$ac_optarg'"
18120 ac_need_defaults=false;;
18121 --header | --heade | --head | --hea )
18122 $ac_shift
18123 case $ac_optarg in
18124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18125 esac
18126 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18127 ac_need_defaults=false;;
18128 --he | --h)
18129 # Conflict between --help and --header
2018939f 18130 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
18131Try \`$0 --help' for more information.";;
18132 --help | --hel | -h )
18133 $as_echo "$ac_cs_usage"; exit ;;
18134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18135 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18136 ac_cs_silent=: ;;
18137
18138 # This is an error.
2018939f 18139 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
18140Try \`$0 --help' for more information." ;;
18141
18142 *) as_fn_append ac_config_targets " $1"
18143 ac_need_defaults=false ;;
18144
18145 esac
18146 shift
18147done
18148
18149ac_configure_extra_args=
18150
18151if $ac_cs_silent; then
18152 exec 6>/dev/null
18153 ac_configure_extra_args="$ac_configure_extra_args --silent"
18154fi
18155
18156_ACEOF
18157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18158if \$ac_cs_recheck; then
18159 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18160 shift
18161 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18162 CONFIG_SHELL='$SHELL'
18163 export CONFIG_SHELL
18164 exec "\$@"
18165fi
18166
18167_ACEOF
18168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18169exec 5>>config.log
18170{
18171 echo
18172 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18173## Running $as_me. ##
18174_ASBOX
18175 $as_echo "$ac_log"
18176} >&5
18177
18178_ACEOF
18179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18180#
18181# INIT-COMMANDS
18182#
743c80a7 18183AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
18184GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18185
18186_ACEOF
18187
18188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18189
18190# Handling of arguments.
18191for ac_config_target in $ac_config_targets
18192do
18193 case $ac_config_target in
18194 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 18195 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 18196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 18197 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
18198 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18199 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18200 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18201 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18202 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18203 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18204 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18205 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18206 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18207 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 18208 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
067d23c9
KY
18209 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18210
2018939f 18211 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
18212 esac
18213done
18214
18215
18216# If the user did not use the arguments to specify the items to instantiate,
18217# then the envvar interface is used. Set only those that are not.
18218# We use the long form for the default assignment because of an extremely
18219# bizarre bug on SunOS 4.1.3.
18220if $ac_need_defaults; then
18221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18224fi
18225
18226# Have a temporary directory for convenience. Make it in the build tree
18227# simply because there is no reason against having it here, and in addition,
18228# creating and moving files from /tmp can sometimes cause problems.
18229# Hook for its removal unless debugging.
18230# Note that there is a small window in which the directory will not be cleaned:
18231# after its creation but before its name has been assigned to `$tmp'.
18232$debug ||
18233{
2018939f 18234 tmp= ac_tmp=
067d23c9 18235 trap 'exit_status=$?
2018939f
AS
18236 : "${ac_tmp:=$tmp}"
18237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
18238' 0
18239 trap 'as_fn_exit 1' 1 2 13 15
18240}
18241# Create a (secure) tmp directory for tmp files.
18242
18243{
18244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2018939f 18245 test -d "$tmp"
067d23c9
KY
18246} ||
18247{
18248 tmp=./conf$$-$RANDOM
18249 (umask 077 && mkdir "$tmp")
2018939f
AS
18250} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18251ac_tmp=$tmp
067d23c9
KY
18252
18253# Set up the scripts for CONFIG_FILES section.
18254# No need to generate them if there are no CONFIG_FILES.
18255# This happens for instance with `./config.status config.h'.
18256if test -n "$CONFIG_FILES"; then
18257
18258if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18259 ac_cs_awk_getline=:
18260 ac_cs_awk_pipe_init=
18261 ac_cs_awk_read_file='
18262 while ((getline aline < (F[key])) > 0)
18263 print(aline)
18264 close(F[key])'
18265 ac_cs_awk_pipe_fini=
18266else
18267 ac_cs_awk_getline=false
18268 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18269 ac_cs_awk_read_file='
18270 print "|#_!!_#|"
18271 print "cat " F[key] " &&"
18272 '$ac_cs_awk_pipe_init
18273 # The final `:' finishes the AND list.
18274 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18275fi
18276ac_cr=`echo X | tr X '\015'`
18277# On cygwin, bash can eat \r inside `` if the user requested igncr.
18278# But we know of no other shell where ac_cr would be empty at this
18279# point, so we can use a bashism as a fallback.
18280if test "x$ac_cr" = x; then
18281 eval ac_cr=\$\'\\r\'
18282fi
18283ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18284if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 18285 ac_cs_awk_cr='\\r'
067d23c9
KY
18286else
18287 ac_cs_awk_cr=$ac_cr
18288fi
18289
2018939f 18290echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
18291_ACEOF
18292
18293# Create commands to substitute file output variables.
18294{
18295 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
2018939f 18296 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
18297 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18298 echo "_ACAWK" &&
18299 echo "_ACEOF"
18300} >conf$$files.sh &&
18301. ./conf$$files.sh ||
2018939f 18302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18303rm -f conf$$files.sh
18304
18305{
18306 echo "cat >conf$$subs.awk <<_ACEOF" &&
18307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18308 echo "_ACEOF"
18309} >conf$$subs.sh ||
2018939f
AS
18310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
18312ac_delim='%!_!# '
18313for ac_last_try in false false false false false :; do
18314 . ./conf$$subs.sh ||
2018939f 18315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18316
18317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18318 if test $ac_delim_n = $ac_delim_num; then
18319 break
18320 elif $ac_last_try; then
2018939f 18321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18322 else
18323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18324 fi
18325done
18326rm -f conf$$subs.sh
18327
18328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2018939f 18329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
18330_ACEOF
18331sed -n '
18332h
18333s/^/S["/; s/!.*/"]=/
18334p
18335g
18336s/^[^!]*!//
18337:repl
18338t repl
18339s/'"$ac_delim"'$//
18340t delim
18341:nl
18342h
18343s/\(.\{148\}\)..*/\1/
18344t more1
18345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18346p
18347n
18348b repl
18349:more1
18350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18351p
18352g
18353s/.\{148\}//
18354t nl
18355:delim
18356h
18357s/\(.\{148\}\)..*/\1/
18358t more2
18359s/["\\]/\\&/g; s/^/"/; s/$/"/
18360p
18361b
18362:more2
18363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18364p
18365g
18366s/.\{148\}//
18367t delim
18368' <conf$$subs.awk | sed '
18369/^[^""]/{
18370 N
18371 s/\n//
18372}
18373' >>$CONFIG_STATUS || ac_write_fail=1
18374rm -f conf$$subs.awk
18375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376_ACAWK
2018939f 18377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
18378 for (key in S) S_is_set[key] = 1
18379 FS = "\a"
18380 \$ac_cs_awk_pipe_init
18381}
18382{
18383 line = $ 0
18384 nfields = split(line, field, "@")
18385 substed = 0
18386 len = length(field[1])
18387 for (i = 2; i < nfields; i++) {
18388 key = field[i]
18389 keylen = length(key)
18390 if (S_is_set[key]) {
18391 value = S[key]
18392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18393 len += length(value) + length(field[++i])
18394 substed = 1
18395 } else
18396 len += 1 + keylen
18397 }
18398 if (nfields == 3 && !substed) {
18399 key = field[2]
18400 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18401 \$ac_cs_awk_read_file
18402 next
18403 }
18404 }
18405 print line
18406}
18407\$ac_cs_awk_pipe_fini
18408_ACAWK
18409_ACEOF
18410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18412 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18413else
18414 cat
2018939f
AS
18415fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18416 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
18417_ACEOF
18418
2018939f
AS
18419# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18420# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
18421# trailing colons and then remove the whole line if VPATH becomes empty
18422# (actually we leave an empty line to preserve line numbers).
18423if test "x$srcdir" = x.; then
2018939f
AS
18424 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18425h
18426s///
18427s/^/:/
18428s/[ ]*$/:/
18429s/:\$(srcdir):/:/g
18430s/:\${srcdir}:/:/g
18431s/:@srcdir@:/:/g
18432s/^:*//
067d23c9 18433s/:*$//
2018939f
AS
18434x
18435s/\(=[ ]*\).*/\1/
18436G
18437s/\n//
067d23c9
KY
18438s/^[^=]*=[ ]*$//
18439}'
18440fi
18441
18442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18443fi # test -n "$CONFIG_FILES"
18444
18445# Set up the scripts for CONFIG_HEADERS section.
18446# No need to generate them if there are no CONFIG_HEADERS.
18447# This happens for instance with `./config.status Makefile'.
18448if test -n "$CONFIG_HEADERS"; then
2018939f 18449cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
18450BEGIN {
18451_ACEOF
18452
18453# Transform confdefs.h into an awk script `defines.awk', embedded as
18454# here-document in config.status, that substitutes the proper values into
18455# config.h.in to produce config.h.
18456
18457# Create a delimiter string that does not exist in confdefs.h, to ease
18458# handling of long lines.
18459ac_delim='%!_!# '
18460for ac_last_try in false false :; do
2018939f
AS
18461 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18462 if test -z "$ac_tt"; then
067d23c9
KY
18463 break
18464 elif $ac_last_try; then
2018939f 18465 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
18466 else
18467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18468 fi
18469done
18470
18471# For the awk script, D is an array of macro values keyed by name,
18472# likewise P contains macro parameters if any. Preserve backslash
18473# newline sequences.
18474
18475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18476sed -n '
18477s/.\{148\}/&'"$ac_delim"'/g
18478t rset
18479:rset
18480s/^[ ]*#[ ]*define[ ][ ]*/ /
18481t def
18482d
18483:def
18484s/\\$//
18485t bsnl
18486s/["\\]/\\&/g
18487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18488D["\1"]=" \3"/p
18489s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18490d
18491:bsnl
18492s/["\\]/\\&/g
18493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18494D["\1"]=" \3\\\\\\n"\\/p
18495t cont
18496s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18497t cont
18498d
18499:cont
18500n
18501s/.\{148\}/&'"$ac_delim"'/g
18502t clear
18503:clear
18504s/\\$//
18505t bsnlc
18506s/["\\]/\\&/g; s/^/"/; s/$/"/p
18507d
18508:bsnlc
18509s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18510b cont
18511' <confdefs.h | sed '
18512s/'"$ac_delim"'/"\\\
18513"/g' >>$CONFIG_STATUS || ac_write_fail=1
18514
18515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18516 for (key in D) D_is_set[key] = 1
18517 FS = "\a"
18518}
18519/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18520 line = \$ 0
18521 split(line, arg, " ")
18522 if (arg[1] == "#") {
18523 defundef = arg[2]
18524 mac1 = arg[3]
18525 } else {
18526 defundef = substr(arg[1], 2)
18527 mac1 = arg[2]
18528 }
18529 split(mac1, mac2, "(") #)
18530 macro = mac2[1]
18531 prefix = substr(line, 1, index(line, defundef) - 1)
18532 if (D_is_set[macro]) {
18533 # Preserve the white space surrounding the "#".
18534 print prefix "define", macro P[macro] D[macro]
18535 next
18536 } else {
18537 # Replace #undef with comments. This is necessary, for example,
18538 # in the case of _POSIX_SOURCE, which is predefined and required
18539 # on some systems where configure will not decide to define it.
18540 if (defundef == "undef") {
18541 print "/*", prefix defundef, macro, "*/"
18542 next
18543 }
18544 }
18545}
18546{ print }
18547_ACAWK
18548_ACEOF
18549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 18550 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
18551fi # test -n "$CONFIG_HEADERS"
18552
18553
18554eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18555shift
18556for ac_tag
18557do
18558 case $ac_tag in
18559 :[FHLC]) ac_mode=$ac_tag; continue;;
18560 esac
18561 case $ac_mode$ac_tag in
18562 :[FHL]*:*);;
2018939f 18563 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
18564 :[FH]-) ac_tag=-:-;;
18565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18566 esac
18567 ac_save_IFS=$IFS
18568 IFS=:
18569 set x $ac_tag
18570 IFS=$ac_save_IFS
18571 shift
18572 ac_file=$1
18573 shift
18574
18575 case $ac_mode in
18576 :L) ac_source=$1;;
18577 :[FH])
18578 ac_file_inputs=
18579 for ac_f
18580 do
18581 case $ac_f in
2018939f 18582 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
18583 *) # Look for the file first in the build tree, then in the source tree
18584 # (if the path is not absolute). The absolute path cannot be DOS-style,
18585 # because $ac_f cannot contain `:'.
18586 test -f "$ac_f" ||
18587 case $ac_f in
18588 [\\/$]*) false;;
18589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18590 esac ||
2018939f 18591 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
18592 esac
18593 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18594 as_fn_append ac_file_inputs " '$ac_f'"
18595 done
18596
18597 # Let's still pretend it is `configure' which instantiates (i.e., don't
18598 # use $as_me), people would be surprised to read:
18599 # /* config.h. Generated by config.status. */
18600 configure_input='Generated from '`
18601 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18602 `' by configure.'
18603 if test x"$ac_file" != x-; then
18604 configure_input="$ac_file. $configure_input"
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18606$as_echo "$as_me: creating $ac_file" >&6;}
18607 fi
18608 # Neutralize special characters interpreted by sed in replacement strings.
18609 case $configure_input in #(
18610 *\&* | *\|* | *\\* )
18611 ac_sed_conf_input=`$as_echo "$configure_input" |
18612 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18613 *) ac_sed_conf_input=$configure_input;;
18614 esac
18615
18616 case $ac_tag in
2018939f
AS
18617 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
18619 esac
18620 ;;
18621 esac
18622
18623 ac_dir=`$as_dirname -- "$ac_file" ||
18624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18625 X"$ac_file" : 'X\(//\)[^/]' \| \
18626 X"$ac_file" : 'X\(//\)$' \| \
18627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18628$as_echo X"$ac_file" |
18629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18630 s//\1/
18631 q
18632 }
18633 /^X\(\/\/\)[^/].*/{
18634 s//\1/
18635 q
18636 }
18637 /^X\(\/\/\)$/{
18638 s//\1/
18639 q
18640 }
18641 /^X\(\/\).*/{
18642 s//\1/
18643 q
18644 }
18645 s/.*/./; q'`
18646 as_dir="$ac_dir"; as_fn_mkdir_p
18647 ac_builddir=.
18648
18649case "$ac_dir" in
18650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18651*)
18652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18653 # A ".." for each directory in $ac_dir_suffix.
18654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18655 case $ac_top_builddir_sub in
18656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18658 esac ;;
18659esac
18660ac_abs_top_builddir=$ac_pwd
18661ac_abs_builddir=$ac_pwd$ac_dir_suffix
18662# for backward compatibility:
18663ac_top_builddir=$ac_top_build_prefix
18664
18665case $srcdir in
18666 .) # We are building in place.
18667 ac_srcdir=.
18668 ac_top_srcdir=$ac_top_builddir_sub
18669 ac_abs_top_srcdir=$ac_pwd ;;
18670 [\\/]* | ?:[\\/]* ) # Absolute name.
18671 ac_srcdir=$srcdir$ac_dir_suffix;
18672 ac_top_srcdir=$srcdir
18673 ac_abs_top_srcdir=$srcdir ;;
18674 *) # Relative name.
18675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18676 ac_top_srcdir=$ac_top_build_prefix$srcdir
18677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18678esac
18679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18680
18681
18682 case $ac_mode in
18683 :F)
18684 #
18685 # CONFIG_FILE
18686 #
18687
18688 case $INSTALL in
18689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18690 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18691 esac
743c80a7
PE
18692 ac_MKDIR_P=$MKDIR_P
18693 case $MKDIR_P in
18694 [\\/$]* | ?:[\\/]* ) ;;
18695 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18696 esac
067d23c9
KY
18697_ACEOF
18698
18699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18700# If the template does not know about datarootdir, expand it.
18701# FIXME: This hack should be removed a few years after 2.60.
18702ac_datarootdir_hack=; ac_datarootdir_seen=
18703ac_sed_dataroot='
18704/datarootdir/ {
18705 p
18706 q
18707}
18708/@datadir@/p
18709/@docdir@/p
18710/@infodir@/p
18711/@localedir@/p
18712/@mandir@/p'
18713case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18714*datarootdir*) ac_datarootdir_seen=yes;;
18715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18717$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18718_ACEOF
18719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18720 ac_datarootdir_hack='
18721 s&@datadir@&$datadir&g
18722 s&@docdir@&$docdir&g
18723 s&@infodir@&$infodir&g
18724 s&@localedir@&$localedir&g
18725 s&@mandir@&$mandir&g
18726 s&\\\${datarootdir}&$datarootdir&g' ;;
18727esac
18728_ACEOF
18729
18730# Neutralize VPATH when `$srcdir' = `.'.
18731# Shell code in configure.ac might set extrasub.
18732# FIXME: do we really want to maintain this feature?
18733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18734ac_sed_extra="$ac_vpsub
18735$extrasub
18736_ACEOF
18737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18738:t
18739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18740s|@configure_input@|$ac_sed_conf_input|;t t
18741s&@top_builddir@&$ac_top_builddir_sub&;t t
18742s&@top_build_prefix@&$ac_top_build_prefix&;t t
18743s&@srcdir@&$ac_srcdir&;t t
18744s&@abs_srcdir@&$ac_abs_srcdir&;t t
18745s&@top_srcdir@&$ac_top_srcdir&;t t
18746s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18747s&@builddir@&$ac_builddir&;t t
18748s&@abs_builddir@&$ac_abs_builddir&;t t
18749s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18750s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 18751s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
18752$ac_datarootdir_hack
18753"
18754eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18755if $ac_cs_awk_getline; then
2018939f 18756 $AWK -f "$ac_tmp/subs.awk"
067d23c9 18757else
2018939f
AS
18758 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18759fi \
18760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18761
18762test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2018939f
AS
18763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18765 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 18767which seems to be undefined. Please make sure it is defined" >&5
067d23c9 18768$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 18769which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 18770
2018939f 18771 rm -f "$ac_tmp/stdin"
067d23c9 18772 case $ac_file in
2018939f
AS
18773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 18775 esac \
2018939f 18776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18777 ;;
18778 :H)
18779 #
18780 # CONFIG_HEADER
18781 #
18782 if test x"$ac_file" != x-; then
18783 {
18784 $as_echo "/* $configure_input */" \
2018939f
AS
18785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18786 } >"$ac_tmp/config.h" \
18787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18790$as_echo "$as_me: $ac_file is unchanged" >&6;}
18791 else
18792 rm -f "$ac_file"
2018939f
AS
18793 mv "$ac_tmp/config.h" "$ac_file" \
18794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
18795 fi
18796 else
18797 $as_echo "/* $configure_input */" \
2018939f
AS
18798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18799 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 18800 fi
743c80a7
PE
18801# Compute "$ac_file"'s index in $config_headers.
18802_am_arg="$ac_file"
18803_am_stamp_count=1
18804for _am_header in $config_headers :; do
18805 case $_am_header in
18806 $_am_arg | $_am_arg:* )
18807 break ;;
18808 * )
18809 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18810 esac
18811done
18812echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18813$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18814 X"$_am_arg" : 'X\(//\)[^/]' \| \
18815 X"$_am_arg" : 'X\(//\)$' \| \
18816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18817$as_echo X"$_am_arg" |
18818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18819 s//\1/
18820 q
18821 }
18822 /^X\(\/\/\)[^/].*/{
18823 s//\1/
18824 q
18825 }
18826 /^X\(\/\/\)$/{
18827 s//\1/
18828 q
18829 }
18830 /^X\(\/\).*/{
18831 s//\1/
18832 q
18833 }
18834 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
18835 ;;
18836
18837 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18838$as_echo "$as_me: executing $ac_file commands" >&6;}
18839 ;;
18840 esac
18841
18842
18843 case $ac_file$ac_mode in
743c80a7
PE
18844 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18845 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18846 # are listed without --file. Let's play safe and only enable the eval
18847 # if we detect the quoting.
18848 case $CONFIG_FILES in
18849 *\'*) eval set x "$CONFIG_FILES" ;;
18850 *) set x $CONFIG_FILES ;;
18851 esac
18852 shift
18853 for mf
18854 do
18855 # Strip MF so we end up with the name of the file.
18856 mf=`echo "$mf" | sed -e 's/:.*$//'`
18857 # Check whether this is an Automake generated Makefile or not.
18858 # We used to match only the files named `Makefile.in', but
18859 # some people rename them; so instead we look at the file content.
18860 # Grep'ing the first line is not enough: some people post-process
18861 # each Makefile.in and add a new line on top of each file to say so.
18862 # Grep'ing the whole file is not good either: AIX grep has a line
18863 # limit of 2048, but all sed's we know have understand at least 4000.
18864 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18865 dirpart=`$as_dirname -- "$mf" ||
18866$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18867 X"$mf" : 'X\(//\)[^/]' \| \
18868 X"$mf" : 'X\(//\)$' \| \
18869 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18870$as_echo X"$mf" |
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 else
18889 continue
18890 fi
18891 # Extract the definition of DEPDIR, am__include, and am__quote
18892 # from the Makefile without running `make'.
18893 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18894 test -z "$DEPDIR" && continue
18895 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18896 test -z "am__include" && continue
18897 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18898 # When using ansi2knr, U may be empty or an underscore; expand it
18899 U=`sed -n 's/^U = //p' < "$mf"`
18900 # Find all dependency output files, they are included files with
18901 # $(DEPDIR) in their names. We invoke sed twice because it is the
18902 # simplest approach to changing $(DEPDIR) to its actual value in the
18903 # expansion.
18904 for file in `sed -n "
18905 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18906 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18907 # Make sure the directory exists.
18908 test -f "$dirpart/$file" && continue
18909 fdir=`$as_dirname -- "$file" ||
18910$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18911 X"$file" : 'X\(//\)[^/]' \| \
18912 X"$file" : 'X\(//\)$' \| \
18913 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18914$as_echo X"$file" |
18915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18916 s//\1/
18917 q
18918 }
18919 /^X\(\/\/\)[^/].*/{
18920 s//\1/
18921 q
18922 }
18923 /^X\(\/\/\)$/{
18924 s//\1/
18925 q
18926 }
18927 /^X\(\/\).*/{
18928 s//\1/
18929 q
18930 }
18931 s/.*/./; q'`
18932 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18933 # echo "creating $dirpart/$file"
18934 echo '# dummy' > "$dirpart/$file"
18935 done
18936 done
18937}
18938 ;;
067d23c9
KY
18939 "default":C)
18940
18941### Make the necessary directories, if they don't exist.
18942for dir in etc lisp ; do
18943 test -d ${dir} || mkdir ${dir}
18944done
18945
18946echo creating src/epaths.h
18947${MAKE-make} epaths-force
18948
18949if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18950 echo creating src/.gdbinit
18951 echo source $srcdir/src/.gdbinit > src/.gdbinit
18952fi
18953
18954 ;;
18955
18956 esac
18957done # for ac_tag
18958
18959
18960as_fn_exit 0
18961_ACEOF
18962ac_clean_files=$ac_clean_files_save
18963
18964test $ac_write_fail = 0 ||
2018939f 18965 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
18966
18967
18968# configure is writing to config.log, and then calls config.status.
18969# config.status does its own redirection, appending to config.log.
18970# Unfortunately, on DOS this fails, as config.log is still kept open
18971# by configure, so config.status won't be able to write to it; its
18972# output is simply discarded. So we exec the FD to /dev/null,
18973# effectively closing config.log, so it can be properly (re)opened and
18974# appended to by config.status. When coming back to configure, we
18975# need to make the FD available again.
18976if test "$no_create" != yes; then
18977 ac_cs_success=:
18978 ac_config_status_args=
18979 test "$silent" = yes &&
18980 ac_config_status_args="$ac_config_status_args --quiet"
18981 exec 5>/dev/null
18982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18983 exec 5>>config.log
18984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18985 # would make configure fail if this is the last instruction.
2018939f 18986 $ac_cs_success || as_fn_exit 1
067d23c9
KY
18987fi
18988if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18990$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18991fi
18992