* font.c: Don't assume string length fits in int.
[emacs.git] / autogen / configure
blobf419c9117eddd5669b75815d1a00c524daa721d6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if 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=';'
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 M_FILE
633 X_TOOLKIT_TYPE
634 C_SWITCH_X_SYSTEM
635 C_SWITCH_X_SITE
636 LD_SWITCH_X_SITE
637 gameuser
638 gamedir
639 bitmapdir
640 archlibdir
641 etcdir
642 x_default_search_path
643 lisppath
644 locallisppath
645 lispdir
646 srcdir
647 canonical
648 configuration
649 version
650 KRB4LIB
651 DESLIB
652 KRB5LIB
653 CRYPTOLIB
654 COM_ERRLIB
655 LIBRESOLV
656 LIBHESIOD
657 TERMCAP_OBJ
658 LIBS_TERMCAP
659 LIBGNU_LTLIBDEPS
660 LIBGNU_LIBDEPS
661 gltests_WITNESS
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
672 LTLIBINTL
673 LIBINTL
674 HAVE_UNISTD_H
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
676 NEXT_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
681 NEXT_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
685 NEXT_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
687 NEXT_STDIO_H
688 REPLACE_VSPRINTF
689 REPLACE_VSNPRINTF
690 REPLACE_VPRINTF
691 REPLACE_VFPRINTF
692 REPLACE_VDPRINTF
693 REPLACE_VASPRINTF
694 REPLACE_TMPFILE
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
697 REPLACE_SPRINTF
698 REPLACE_SNPRINTF
699 REPLACE_RENAMEAT
700 REPLACE_RENAME
701 REPLACE_REMOVE
702 REPLACE_PRINTF
703 REPLACE_POPEN
704 REPLACE_PERROR
705 REPLACE_OBSTACK_PRINTF
706 REPLACE_GETLINE
707 REPLACE_GETDELIM
708 REPLACE_FTELLO
709 REPLACE_FTELL
710 REPLACE_FSEEKO
711 REPLACE_FSEEK
712 REPLACE_FREOPEN
713 REPLACE_FPURGE
714 REPLACE_FPRINTF
715 REPLACE_FOPEN
716 REPLACE_FFLUSH
717 REPLACE_FCLOSE
718 REPLACE_DPRINTF
719 HAVE_VDPRINTF
720 HAVE_VASPRINTF
721 HAVE_RENAMEAT
722 HAVE_FTELLO
723 HAVE_FSEEKO
724 HAVE_DPRINTF
725 HAVE_DECL_VSNPRINTF
726 HAVE_DECL_SNPRINTF
727 HAVE_DECL_OBSTACK_PRINTF
728 HAVE_DECL_GETLINE
729 HAVE_DECL_GETDELIM
730 HAVE_DECL_FTELLO
731 HAVE_DECL_FSEEKO
732 HAVE_DECL_FPURGE
733 GNULIB_VSPRINTF_POSIX
734 GNULIB_VSNPRINTF
735 GNULIB_VPRINTF_POSIX
736 GNULIB_VPRINTF
737 GNULIB_VFPRINTF_POSIX
738 GNULIB_VFPRINTF
739 GNULIB_VDPRINTF
740 GNULIB_VSCANF
741 GNULIB_VFSCANF
742 GNULIB_VASPRINTF
743 GNULIB_TMPFILE
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
746 GNULIB_SPRINTF_POSIX
747 GNULIB_SNPRINTF
748 GNULIB_SCANF
749 GNULIB_RENAMEAT
750 GNULIB_RENAME
751 GNULIB_REMOVE
752 GNULIB_PUTS
753 GNULIB_PUTCHAR
754 GNULIB_PUTC
755 GNULIB_PRINTF_POSIX
756 GNULIB_PRINTF
757 GNULIB_POPEN
758 GNULIB_PERROR
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
761 GNULIB_GETS
762 GNULIB_GETLINE
763 GNULIB_GETDELIM
764 GNULIB_GETCHAR
765 GNULIB_GETC
766 GNULIB_FWRITE
767 GNULIB_FTELLO
768 GNULIB_FTELL
769 GNULIB_FSEEKO
770 GNULIB_FSEEK
771 GNULIB_FSCANF
772 GNULIB_FREOPEN
773 GNULIB_FREAD
774 GNULIB_FPUTS
775 GNULIB_FPUTC
776 GNULIB_FPURGE
777 GNULIB_FPRINTF_POSIX
778 GNULIB_FPRINTF
779 GNULIB_FOPEN
780 GNULIB_FGETS
781 GNULIB_FGETC
782 GNULIB_FFLUSH
783 GNULIB_FCLOSE
784 GNULIB_DPRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
795 STDBOOL_H
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
798 STDARG_H
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
800 NEXT_STDARG_H
801 REPLACE_TIMEGM
802 REPLACE_NANOSLEEP
803 REPLACE_MKTIME
804 REPLACE_LOCALTIME_R
805 HAVE_TIMEGM
806 HAVE_STRPTIME
807 HAVE_NANOSLEEP
808 HAVE_DECL_LOCALTIME_R
809 GNULIB_TIME_R
810 GNULIB_TIMEGM
811 GNULIB_STRPTIME
812 GNULIB_NANOSLEEP
813 GNULIB_MKTIME
814 REPLACE_UTIMENSAT
815 REPLACE_STAT
816 REPLACE_MKNOD
817 REPLACE_MKFIFO
818 REPLACE_MKDIR
819 REPLACE_LSTAT
820 REPLACE_FUTIMENS
821 REPLACE_FSTATAT
822 REPLACE_FSTAT
823 HAVE_UTIMENSAT
824 HAVE_MKNODAT
825 HAVE_MKNOD
826 HAVE_MKFIFOAT
827 HAVE_MKFIFO
828 HAVE_MKDIRAT
829 HAVE_LSTAT
830 HAVE_LCHMOD
831 HAVE_FUTIMENS
832 HAVE_FSTATAT
833 HAVE_FCHMODAT
834 GNULIB_UTIMENSAT
835 GNULIB_STAT
836 GNULIB_MKNODAT
837 GNULIB_MKNOD
838 GNULIB_MKFIFOAT
839 GNULIB_MKFIFO
840 GNULIB_MKDIRAT
841 GNULIB_LSTAT
842 GNULIB_LCHMOD
843 GNULIB_FUTIMENS
844 GNULIB_FSTATAT
845 GNULIB_FCHMODAT
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
847 NEXT_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
850 PRIPTR_PREFIX
851 PRI_MACROS_BROKEN
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
854 HAVE_DECL_STRTOUMAX
855 HAVE_DECL_STRTOIMAX
856 HAVE_DECL_IMAXDIV
857 HAVE_DECL_IMAXABS
858 GNULIB_STRTOUMAX
859 GNULIB_STRTOIMAX
860 GNULIB_IMAXDIV
861 GNULIB_IMAXABS
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
864 STDINT_H
865 WINT_T_SUFFIX
866 WCHAR_T_SUFFIX
867 SIG_ATOMIC_T_SUFFIX
868 SIZE_T_SUFFIX
869 PTRDIFF_T_SUFFIX
870 HAVE_SIGNED_WINT_T
871 HAVE_SIGNED_WCHAR_T
872 HAVE_SIGNED_SIG_ATOMIC_T
873 BITSIZEOF_WINT_T
874 BITSIZEOF_WCHAR_T
875 BITSIZEOF_SIG_ATOMIC_T
876 BITSIZEOF_SIZE_T
877 BITSIZEOF_PTRDIFF_T
878 APPLE_UNIVERSAL_BUILD
879 HAVE_SYS_BITYPES_H
880 HAVE_SYS_INTTYPES_H
881 HAVE_STDINT_H
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
883 NEXT_STDINT_H
884 HAVE_SYS_TYPES_H
885 HAVE_INTTYPES_H
886 HAVE_WCHAR_H
887 HAVE_UNSIGNED_LONG_LONG_INT
888 HAVE_LONG_LONG_INT
889 GETOPT_H
890 HAVE_GETOPT_H
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
892 NEXT_GETOPT_H
893 PRAGMA_COLUMNS
894 PRAGMA_SYSTEM_HEADER
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
896 INCLUDE_NEXT
897 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
898 UNISTD_H_HAVE_WINSOCK2_H
899 REPLACE_WRITE
900 REPLACE_USLEEP
901 REPLACE_UNLINKAT
902 REPLACE_UNLINK
903 REPLACE_TTYNAME_R
904 REPLACE_SYMLINK
905 REPLACE_SLEEP
906 REPLACE_RMDIR
907 REPLACE_READLINK
908 REPLACE_READ
909 REPLACE_PWRITE
910 REPLACE_PREAD
911 REPLACE_LSEEK
912 REPLACE_LINKAT
913 REPLACE_LINK
914 REPLACE_LCHOWN
915 REPLACE_GETPAGESIZE
916 REPLACE_GETGROUPS
917 REPLACE_GETLOGIN_R
918 REPLACE_GETDOMAINNAME
919 REPLACE_GETCWD
920 REPLACE_FCHOWNAT
921 REPLACE_DUP2
922 REPLACE_DUP
923 REPLACE_CLOSE
924 REPLACE_CHOWN
925 HAVE_SYS_PARAM_H
926 HAVE_OS_H
927 HAVE_DECL_TTYNAME_R
928 HAVE_DECL_GETUSERSHELL
929 HAVE_DECL_GETPAGESIZE
930 HAVE_DECL_GETLOGIN_R
931 HAVE_DECL_GETDOMAINNAME
932 HAVE_DECL_FCHDIR
933 HAVE_DECL_ENVIRON
934 HAVE_USLEEP
935 HAVE_UNLINKAT
936 HAVE_SYMLINKAT
937 HAVE_SYMLINK
938 HAVE_SLEEP
939 HAVE_READLINKAT
940 HAVE_READLINK
941 HAVE_PWRITE
942 HAVE_PREAD
943 HAVE_PIPE2
944 HAVE_PIPE
945 HAVE_LINKAT
946 HAVE_LINK
947 HAVE_LCHOWN
948 HAVE_GROUP_MEMBER
949 HAVE_GETPAGESIZE
950 HAVE_GETLOGIN
951 HAVE_GETHOSTNAME
952 HAVE_GETGROUPS
953 HAVE_GETDTABLESIZE
954 HAVE_FTRUNCATE
955 HAVE_FSYNC
956 HAVE_FCHOWNAT
957 HAVE_FCHDIR
958 HAVE_FACCESSAT
959 HAVE_EUIDACCESS
960 HAVE_DUP3
961 HAVE_DUP2
962 HAVE_CHOWN
963 GNULIB_WRITE
964 GNULIB_USLEEP
965 GNULIB_UNLINKAT
966 GNULIB_UNLINK
967 GNULIB_UNISTD_H_SIGPIPE
968 GNULIB_UNISTD_H_NONBLOCKING
969 GNULIB_UNISTD_H_GETOPT
970 GNULIB_TTYNAME_R
971 GNULIB_SYMLINKAT
972 GNULIB_SYMLINK
973 GNULIB_SLEEP
974 GNULIB_RMDIR
975 GNULIB_READLINKAT
976 GNULIB_READLINK
977 GNULIB_READ
978 GNULIB_PWRITE
979 GNULIB_PREAD
980 GNULIB_PIPE2
981 GNULIB_PIPE
982 GNULIB_LSEEK
983 GNULIB_LINKAT
984 GNULIB_LINK
985 GNULIB_LCHOWN
986 GNULIB_GROUP_MEMBER
987 GNULIB_GETUSERSHELL
988 GNULIB_GETPAGESIZE
989 GNULIB_GETLOGIN_R
990 GNULIB_GETLOGIN
991 GNULIB_GETHOSTNAME
992 GNULIB_GETGROUPS
993 GNULIB_GETDTABLESIZE
994 GNULIB_GETDOMAINNAME
995 GNULIB_GETCWD
996 GNULIB_FTRUNCATE
997 GNULIB_FSYNC
998 GNULIB_FCHOWNAT
999 GNULIB_FCHDIR
1000 GNULIB_FACCESSAT
1001 GNULIB_EUIDACCESS
1002 GNULIB_ENVIRON
1003 GNULIB_DUP3
1004 GNULIB_DUP2
1005 GNULIB_CLOSE
1006 GNULIB_CHOWN
1007 GETLOADAVG_LIBS
1008 REPLACE_WCTOMB
1009 REPLACE_UNSETENV
1010 REPLACE_STRTOD
1011 REPLACE_SETENV
1012 REPLACE_REALPATH
1013 REPLACE_REALLOC
1014 REPLACE_PUTENV
1015 REPLACE_MKSTEMP
1016 REPLACE_MBTOWC
1017 REPLACE_MALLOC
1018 REPLACE_CANONICALIZE_FILE_NAME
1019 REPLACE_CALLOC
1020 HAVE_DECL_UNSETENV
1021 HAVE_UNLOCKPT
1022 HAVE_SYS_LOADAVG_H
1023 HAVE_STRUCT_RANDOM_DATA
1024 HAVE_STRTOULL
1025 HAVE_STRTOLL
1026 HAVE_STRTOD
1027 HAVE_DECL_SETENV
1028 HAVE_SETENV
1029 HAVE_RPMATCH
1030 HAVE_REALPATH
1031 HAVE_RANDOM_R
1032 HAVE_RANDOM_H
1033 HAVE_PTSNAME
1034 HAVE_MKSTEMPS
1035 HAVE_MKSTEMP
1036 HAVE_MKOSTEMPS
1037 HAVE_MKOSTEMP
1038 HAVE_MKDTEMP
1039 HAVE_GRANTPT
1040 HAVE_GETSUBOPT
1041 HAVE_DECL_GETLOADAVG
1042 HAVE_CANONICALIZE_FILE_NAME
1043 HAVE_ATOLL
1044 HAVE__EXIT
1045 GNULIB_WCTOMB
1046 GNULIB_UNSETENV
1047 GNULIB_UNLOCKPT
1048 GNULIB_SYSTEM_POSIX
1049 GNULIB_STRTOULL
1050 GNULIB_STRTOLL
1051 GNULIB_STRTOD
1052 GNULIB_SETENV
1053 GNULIB_RPMATCH
1054 GNULIB_REALPATH
1055 GNULIB_REALLOC_POSIX
1056 GNULIB_RANDOM_R
1057 GNULIB_PUTENV
1058 GNULIB_PTSNAME
1059 GNULIB_MKSTEMPS
1060 GNULIB_MKSTEMP
1061 GNULIB_MKOSTEMPS
1062 GNULIB_MKOSTEMP
1063 GNULIB_MKDTEMP
1064 GNULIB_MBTOWC
1065 GNULIB_MALLOC_POSIX
1066 GNULIB_GRANTPT
1067 GNULIB_GETSUBOPT
1068 GNULIB_GETLOADAVG
1069 GNULIB_CANONICALIZE_FILE_NAME
1070 GNULIB_CALLOC_POSIX
1071 GNULIB_ATOLL
1072 GNULIB__EXIT
1073 GL_COND_LIBTOOL_FALSE
1074 GL_COND_LIBTOOL_TRUE
1075 BLESSMAIL_TARGET
1076 LIBS_MAIL
1077 liblockfile
1078 ALLOCA
1079 LIBXML2_LIBS
1080 LIBXML2_CFLAGS
1081 LIBXSM
1082 LIBGPM
1083 LIBGIF
1084 LIBTIFF
1085 LIBPNG
1086 LIBJPEG
1087 LIBXPM
1088 M17N_FLT_LIBS
1089 M17N_FLT_CFLAGS
1090 LIBOTF_LIBS
1091 LIBOTF_CFLAGS
1092 FREETYPE_LIBS
1093 FREETYPE_CFLAGS
1094 XFT_LIBS
1095 XFT_CFLAGS
1096 FONTCONFIG_LIBS
1097 FONTCONFIG_CFLAGS
1098 LIBXMU
1099 LIBXTR6
1100 LIBGNUTLS_LIBS
1101 LIBGNUTLS_CFLAGS
1102 LIBSELINUX_LIBS
1103 GCONF_LIBS
1104 GCONF_CFLAGS
1105 DBUS_OBJ
1106 DBUS_LIBS
1107 DBUS_CFLAGS
1108 GTK_OBJ
1109 GTK_LIBS
1110 GTK_CFLAGS
1111 IMAGEMAGICK_LIBS
1112 IMAGEMAGICK_CFLAGS
1113 RSVG_LIBS
1114 RSVG_CFLAGS
1115 VMLIMIT_OBJ
1116 GMALLOC_OBJ
1117 HAVE_XSERVER
1118 LIB_STANDARD
1119 NS_OBJC_OBJ
1120 NS_OBJ
1121 TEMACS_LDFLAGS2
1122 LD_SWITCH_X_SITE_AUX_RPATH
1123 LD_SWITCH_X_SITE_AUX
1124 XMKMF
1125 DEPFLAGS
1126 MKDEPDIR
1127 CFLAGS_SOUND
1128 ALSA_LIBS
1129 ALSA_CFLAGS
1130 PKG_CONFIG
1131 LIBSOUND
1132 START_FILES
1133 LIB_MATH
1134 CRT_DIR
1135 LIBS_SYSTEM
1136 C_SWITCH_SYSTEM
1137 UNEXEC_OBJ
1138 C_SWITCH_MACHINE
1139 LD_SWITCH_SYSTEM
1140 CANNOT_DUMP
1141 HAVE_MAKEINFO
1142 GZIP_PROG
1143 INSTALL_INFO
1144 C_WARNINGS_SWITCH
1145 EGREP
1146 GREP
1148 RANLIB
1149 am__fastdepCC_FALSE
1150 am__fastdepCC_TRUE
1151 CCDEPMODE
1152 AMDEPBACKSLASH
1153 AMDEP_FALSE
1154 AMDEP_TRUE
1155 am__quote
1156 am__include
1157 DEPDIR
1158 OBJEXT
1159 EXEEXT
1160 ac_ct_CC
1161 CPPFLAGS
1162 LDFLAGS
1163 CFLAGS
1165 host_os
1166 host_vendor
1167 host_cpu
1168 host
1169 build_os
1170 build_vendor
1171 build_cpu
1172 build
1173 PROFILING_CFLAGS
1174 MAINT
1175 GZIP_INFO
1176 am__untar
1177 am__tar
1178 AMTAR
1179 am__leading_dot
1180 SET_MAKE
1182 mkdir_p
1183 MKDIR_P
1184 INSTALL_STRIP_PROGRAM
1185 STRIP
1186 install_sh
1187 MAKEINFO
1188 AUTOHEADER
1189 AUTOMAKE
1190 AUTOCONF
1191 ACLOCAL
1192 VERSION
1193 PACKAGE
1194 CYGPATH_W
1195 am__isrc
1196 INSTALL_DATA
1197 INSTALL_SCRIPT
1198 INSTALL_PROGRAM
1199 target_alias
1200 host_alias
1201 build_alias
1202 LIBS
1203 ECHO_T
1204 ECHO_N
1205 ECHO_C
1206 DEFS
1207 mandir
1208 localedir
1209 libdir
1210 psdir
1211 pdfdir
1212 dvidir
1213 htmldir
1214 infodir
1215 docdir
1216 oldincludedir
1217 includedir
1218 localstatedir
1219 sharedstatedir
1220 sysconfdir
1221 datadir
1222 datarootdir
1223 libexecdir
1224 sbindir
1225 bindir
1226 program_transform_name
1227 prefix
1228 exec_prefix
1229 PACKAGE_URL
1230 PACKAGE_BUGREPORT
1231 PACKAGE_STRING
1232 PACKAGE_VERSION
1233 PACKAGE_TARNAME
1234 PACKAGE_NAME
1235 PATH_SEPARATOR
1236 SHELL'
1237 ac_subst_files='deps_frag
1238 lisp_frag
1239 ns_frag'
1240 ac_user_opts='
1241 enable_option_checking
1242 with_pop
1243 with_kerberos
1244 with_kerberos5
1245 with_hesiod
1246 with_mmdf
1247 with_mail_unlink
1248 with_mailhost
1249 with_sound
1250 with_sync_input
1251 with_x_toolkit
1252 with_wide_int
1253 with_xpm
1254 with_jpeg
1255 with_tiff
1256 with_gif
1257 with_png
1258 with_rsvg
1259 with_xml2
1260 with_imagemagick
1261 with_xft
1262 with_libotf
1263 with_m17n_flt
1264 with_toolkit_scroll_bars
1265 with_xaw3d
1266 with_xim
1267 with_ns
1268 with_gpm
1269 with_dbus
1270 with_gconf
1271 with_selinux
1272 with_gnutls
1273 with_makeinfo
1274 with_compress_info
1275 with_pkg_config_prog
1276 with_crt_dir
1277 with_gameuser
1278 with_gnustep_conf
1279 enable_ns_self_contained
1280 enable_asserts
1281 enable_maintainer_mode
1282 enable_locallisppath
1283 enable_checking
1284 enable_use_lisp_union_type
1285 enable_profiling
1286 enable_autodepend
1287 enable_dependency_tracking
1288 enable_largefile
1289 with_x
1291 ac_precious_vars='build_alias
1292 host_alias
1293 target_alias
1295 CFLAGS
1296 LDFLAGS
1297 LIBS
1298 CPPFLAGS
1300 XMKMF'
1303 # Initialize some variables set by options.
1304 ac_init_help=
1305 ac_init_version=false
1306 ac_unrecognized_opts=
1307 ac_unrecognized_sep=
1308 # The variables have the same names as the options, with
1309 # dashes changed to underlines.
1310 cache_file=/dev/null
1311 exec_prefix=NONE
1312 no_create=
1313 no_recursion=
1314 prefix=NONE
1315 program_prefix=NONE
1316 program_suffix=NONE
1317 program_transform_name=s,x,x,
1318 silent=
1319 site=
1320 srcdir=
1321 verbose=
1322 x_includes=NONE
1323 x_libraries=NONE
1325 # Installation directory options.
1326 # These are left unexpanded so users can "make install exec_prefix=/foo"
1327 # and all the variables that are supposed to be based on exec_prefix
1328 # by default will actually change.
1329 # Use braces instead of parens because sh, perl, etc. also accept them.
1330 # (The list follows the same order as the GNU Coding Standards.)
1331 bindir='${exec_prefix}/bin'
1332 sbindir='${exec_prefix}/sbin'
1333 libexecdir='${exec_prefix}/libexec'
1334 datarootdir='${prefix}/share'
1335 datadir='${datarootdir}'
1336 sysconfdir='${prefix}/etc'
1337 sharedstatedir='${prefix}/com'
1338 localstatedir='${prefix}/var'
1339 includedir='${prefix}/include'
1340 oldincludedir='/usr/include'
1341 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1342 infodir='${datarootdir}/info'
1343 htmldir='${docdir}'
1344 dvidir='${docdir}'
1345 pdfdir='${docdir}'
1346 psdir='${docdir}'
1347 libdir='${exec_prefix}/lib'
1348 localedir='${datarootdir}/locale'
1349 mandir='${datarootdir}/man'
1351 ac_prev=
1352 ac_dashdash=
1353 for ac_option
1355 # If the previous option needs an argument, assign it.
1356 if test -n "$ac_prev"; then
1357 eval $ac_prev=\$ac_option
1358 ac_prev=
1359 continue
1362 case $ac_option in
1363 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1364 *) ac_optarg=yes ;;
1365 esac
1367 # Accept the important Cygnus configure options, so we can diagnose typos.
1369 case $ac_dashdash$ac_option in
1371 ac_dashdash=yes ;;
1373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1374 ac_prev=bindir ;;
1375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1376 bindir=$ac_optarg ;;
1378 -build | --build | --buil | --bui | --bu)
1379 ac_prev=build_alias ;;
1380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1381 build_alias=$ac_optarg ;;
1383 -cache-file | --cache-file | --cache-fil | --cache-fi \
1384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1385 ac_prev=cache_file ;;
1386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1388 cache_file=$ac_optarg ;;
1390 --config-cache | -C)
1391 cache_file=config.cache ;;
1393 -datadir | --datadir | --datadi | --datad)
1394 ac_prev=datadir ;;
1395 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1396 datadir=$ac_optarg ;;
1398 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1399 | --dataroo | --dataro | --datar)
1400 ac_prev=datarootdir ;;
1401 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1402 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1403 datarootdir=$ac_optarg ;;
1405 -disable-* | --disable-*)
1406 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1407 # Reject names that are not valid shell variable names.
1408 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1409 as_fn_error "invalid feature name: $ac_useropt"
1410 ac_useropt_orig=$ac_useropt
1411 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1412 case $ac_user_opts in
1414 "enable_$ac_useropt"
1415 "*) ;;
1416 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1417 ac_unrecognized_sep=', ';;
1418 esac
1419 eval enable_$ac_useropt=no ;;
1421 -docdir | --docdir | --docdi | --doc | --do)
1422 ac_prev=docdir ;;
1423 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1424 docdir=$ac_optarg ;;
1426 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1427 ac_prev=dvidir ;;
1428 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1429 dvidir=$ac_optarg ;;
1431 -enable-* | --enable-*)
1432 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1433 # Reject names that are not valid shell variable names.
1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435 as_fn_error "invalid feature name: $ac_useropt"
1436 ac_useropt_orig=$ac_useropt
1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438 case $ac_user_opts in
1440 "enable_$ac_useropt"
1441 "*) ;;
1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1443 ac_unrecognized_sep=', ';;
1444 esac
1445 eval enable_$ac_useropt=\$ac_optarg ;;
1447 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1448 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1449 | --exec | --exe | --ex)
1450 ac_prev=exec_prefix ;;
1451 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1452 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1453 | --exec=* | --exe=* | --ex=*)
1454 exec_prefix=$ac_optarg ;;
1456 -gas | --gas | --ga | --g)
1457 # Obsolete; use --with-gas.
1458 with_gas=yes ;;
1460 -help | --help | --hel | --he | -h)
1461 ac_init_help=long ;;
1462 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1463 ac_init_help=recursive ;;
1464 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1465 ac_init_help=short ;;
1467 -host | --host | --hos | --ho)
1468 ac_prev=host_alias ;;
1469 -host=* | --host=* | --hos=* | --ho=*)
1470 host_alias=$ac_optarg ;;
1472 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1473 ac_prev=htmldir ;;
1474 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1475 | --ht=*)
1476 htmldir=$ac_optarg ;;
1478 -includedir | --includedir | --includedi | --included | --include \
1479 | --includ | --inclu | --incl | --inc)
1480 ac_prev=includedir ;;
1481 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1482 | --includ=* | --inclu=* | --incl=* | --inc=*)
1483 includedir=$ac_optarg ;;
1485 -infodir | --infodir | --infodi | --infod | --info | --inf)
1486 ac_prev=infodir ;;
1487 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1488 infodir=$ac_optarg ;;
1490 -libdir | --libdir | --libdi | --libd)
1491 ac_prev=libdir ;;
1492 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1493 libdir=$ac_optarg ;;
1495 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1496 | --libexe | --libex | --libe)
1497 ac_prev=libexecdir ;;
1498 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1499 | --libexe=* | --libex=* | --libe=*)
1500 libexecdir=$ac_optarg ;;
1502 -localedir | --localedir | --localedi | --localed | --locale)
1503 ac_prev=localedir ;;
1504 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1505 localedir=$ac_optarg ;;
1507 -localstatedir | --localstatedir | --localstatedi | --localstated \
1508 | --localstate | --localstat | --localsta | --localst | --locals)
1509 ac_prev=localstatedir ;;
1510 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1511 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1512 localstatedir=$ac_optarg ;;
1514 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1515 ac_prev=mandir ;;
1516 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1517 mandir=$ac_optarg ;;
1519 -nfp | --nfp | --nf)
1520 # Obsolete; use --without-fp.
1521 with_fp=no ;;
1523 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1524 | --no-cr | --no-c | -n)
1525 no_create=yes ;;
1527 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1528 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1529 no_recursion=yes ;;
1531 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1532 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1533 | --oldin | --oldi | --old | --ol | --o)
1534 ac_prev=oldincludedir ;;
1535 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1536 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1537 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1538 oldincludedir=$ac_optarg ;;
1540 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1541 ac_prev=prefix ;;
1542 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1543 prefix=$ac_optarg ;;
1545 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1546 | --program-pre | --program-pr | --program-p)
1547 ac_prev=program_prefix ;;
1548 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1549 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1550 program_prefix=$ac_optarg ;;
1552 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1553 | --program-suf | --program-su | --program-s)
1554 ac_prev=program_suffix ;;
1555 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1556 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1557 program_suffix=$ac_optarg ;;
1559 -program-transform-name | --program-transform-name \
1560 | --program-transform-nam | --program-transform-na \
1561 | --program-transform-n | --program-transform- \
1562 | --program-transform | --program-transfor \
1563 | --program-transfo | --program-transf \
1564 | --program-trans | --program-tran \
1565 | --progr-tra | --program-tr | --program-t)
1566 ac_prev=program_transform_name ;;
1567 -program-transform-name=* | --program-transform-name=* \
1568 | --program-transform-nam=* | --program-transform-na=* \
1569 | --program-transform-n=* | --program-transform-=* \
1570 | --program-transform=* | --program-transfor=* \
1571 | --program-transfo=* | --program-transf=* \
1572 | --program-trans=* | --program-tran=* \
1573 | --progr-tra=* | --program-tr=* | --program-t=*)
1574 program_transform_name=$ac_optarg ;;
1576 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1577 ac_prev=pdfdir ;;
1578 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1579 pdfdir=$ac_optarg ;;
1581 -psdir | --psdir | --psdi | --psd | --ps)
1582 ac_prev=psdir ;;
1583 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1584 psdir=$ac_optarg ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1588 silent=yes ;;
1590 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1591 ac_prev=sbindir ;;
1592 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1593 | --sbi=* | --sb=*)
1594 sbindir=$ac_optarg ;;
1596 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1597 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1598 | --sharedst | --shareds | --shared | --share | --shar \
1599 | --sha | --sh)
1600 ac_prev=sharedstatedir ;;
1601 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1602 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1603 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1604 | --sha=* | --sh=*)
1605 sharedstatedir=$ac_optarg ;;
1607 -site | --site | --sit)
1608 ac_prev=site ;;
1609 -site=* | --site=* | --sit=*)
1610 site=$ac_optarg ;;
1612 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1613 ac_prev=srcdir ;;
1614 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1615 srcdir=$ac_optarg ;;
1617 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1618 | --syscon | --sysco | --sysc | --sys | --sy)
1619 ac_prev=sysconfdir ;;
1620 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1621 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1622 sysconfdir=$ac_optarg ;;
1624 -target | --target | --targe | --targ | --tar | --ta | --t)
1625 ac_prev=target_alias ;;
1626 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1627 target_alias=$ac_optarg ;;
1629 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1630 verbose=yes ;;
1632 -version | --version | --versio | --versi | --vers | -V)
1633 ac_init_version=: ;;
1635 -with-* | --with-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639 as_fn_error "invalid package name: $ac_useropt"
1640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1644 "with_$ac_useropt"
1645 "*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval with_$ac_useropt=\$ac_optarg ;;
1651 -without-* | --without-*)
1652 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1653 # Reject names that are not valid shell variable names.
1654 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1655 as_fn_error "invalid package name: $ac_useropt"
1656 ac_useropt_orig=$ac_useropt
1657 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1658 case $ac_user_opts in
1660 "with_$ac_useropt"
1661 "*) ;;
1662 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1663 ac_unrecognized_sep=', ';;
1664 esac
1665 eval with_$ac_useropt=no ;;
1667 --x)
1668 # Obsolete; use --with-x.
1669 with_x=yes ;;
1671 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1672 | --x-incl | --x-inc | --x-in | --x-i)
1673 ac_prev=x_includes ;;
1674 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1675 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1676 x_includes=$ac_optarg ;;
1678 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1679 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1680 ac_prev=x_libraries ;;
1681 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1682 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1683 x_libraries=$ac_optarg ;;
1685 -*) as_fn_error "unrecognized option: \`$ac_option'
1686 Try \`$0 --help' for more information."
1689 *=*)
1690 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1691 # Reject names that are not valid shell variable names.
1692 case $ac_envvar in #(
1693 '' | [0-9]* | *[!_$as_cr_alnum]* )
1694 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1695 esac
1696 eval $ac_envvar=\$ac_optarg
1697 export $ac_envvar ;;
1700 # FIXME: should be removed in autoconf 3.0.
1701 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1702 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1703 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1704 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1707 esac
1708 done
1710 if test -n "$ac_prev"; then
1711 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1712 as_fn_error "missing argument to $ac_option"
1715 if test -n "$ac_unrecognized_opts"; then
1716 case $enable_option_checking in
1717 no) ;;
1718 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1719 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1720 esac
1723 # Check all directory arguments for consistency.
1724 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1725 datadir sysconfdir sharedstatedir localstatedir includedir \
1726 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1727 libdir localedir mandir
1729 eval ac_val=\$$ac_var
1730 # Remove trailing slashes.
1731 case $ac_val in
1732 */ )
1733 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1734 eval $ac_var=\$ac_val;;
1735 esac
1736 # Be sure to have absolute directory names.
1737 case $ac_val in
1738 [\\/$]* | ?:[\\/]* ) continue;;
1739 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1740 esac
1741 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1742 done
1744 # There might be people who depend on the old broken behavior: `$host'
1745 # used to hold the argument of --host etc.
1746 # FIXME: To remove some day.
1747 build=$build_alias
1748 host=$host_alias
1749 target=$target_alias
1751 # FIXME: To remove some day.
1752 if test "x$host_alias" != x; then
1753 if test "x$build_alias" = x; then
1754 cross_compiling=maybe
1755 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1756 If a cross compiler is detected then cross compile mode will be used." >&2
1757 elif test "x$build_alias" != "x$host_alias"; then
1758 cross_compiling=yes
1762 ac_tool_prefix=
1763 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1765 test "$silent" = yes && exec 6>/dev/null
1768 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1769 ac_ls_di=`ls -di .` &&
1770 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1771 as_fn_error "working directory cannot be determined"
1772 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1773 as_fn_error "pwd does not report name of working directory"
1776 # Find the source files, if location was not specified.
1777 if test -z "$srcdir"; then
1778 ac_srcdir_defaulted=yes
1779 # Try the directory containing this script, then the parent directory.
1780 ac_confdir=`$as_dirname -- "$as_myself" ||
1781 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1782 X"$as_myself" : 'X\(//\)[^/]' \| \
1783 X"$as_myself" : 'X\(//\)$' \| \
1784 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1785 $as_echo X"$as_myself" |
1786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1787 s//\1/
1790 /^X\(\/\/\)[^/].*/{
1791 s//\1/
1794 /^X\(\/\/\)$/{
1795 s//\1/
1798 /^X\(\/\).*/{
1799 s//\1/
1802 s/.*/./; q'`
1803 srcdir=$ac_confdir
1804 if test ! -r "$srcdir/$ac_unique_file"; then
1805 srcdir=..
1807 else
1808 ac_srcdir_defaulted=no
1810 if test ! -r "$srcdir/$ac_unique_file"; then
1811 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1812 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1814 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1815 ac_abs_confdir=`(
1816 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1817 pwd)`
1818 # When building in place, set srcdir=.
1819 if test "$ac_abs_confdir" = "$ac_pwd"; then
1820 srcdir=.
1822 # Remove unnecessary trailing slashes from srcdir.
1823 # Double slashes in file names in object file debugging info
1824 # mess up M-x gdb in Emacs.
1825 case $srcdir in
1826 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1827 esac
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1830 eval ac_env_${ac_var}_value=\$${ac_var}
1831 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1832 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1833 done
1836 # Report the --help message.
1838 if test "$ac_init_help" = "long"; then
1839 # Omit some internal or obsolete options to make the list less imposing.
1840 # This message is too long to be a string in the A/UX 3.1 sh.
1841 cat <<_ACEOF
1842 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1844 Usage: $0 [OPTION]... [VAR=VALUE]...
1846 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1847 VAR=VALUE. See below for descriptions of some of the useful variables.
1849 Defaults for the options are specified in brackets.
1851 Configuration:
1852 -h, --help display this help and exit
1853 --help=short display options specific to this package
1854 --help=recursive display the short help of all the included packages
1855 -V, --version display version information and exit
1856 -q, --quiet, --silent do not print \`checking...' messages
1857 --cache-file=FILE cache test results in FILE [disabled]
1858 -C, --config-cache alias for \`--cache-file=config.cache'
1859 -n, --no-create do not create output files
1860 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1862 Installation directories:
1863 --prefix=PREFIX install architecture-independent files in PREFIX
1864 [$ac_default_prefix]
1865 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1866 [PREFIX]
1868 By default, \`make install' will install all the files in
1869 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1870 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1871 for instance \`--prefix=\$HOME'.
1873 For better control, use the options below.
1875 Fine tuning of the installation directories:
1876 --bindir=DIR user executables [EPREFIX/bin]
1877 --sbindir=DIR system admin executables [EPREFIX/sbin]
1878 --libexecdir=DIR program executables [EPREFIX/libexec]
1879 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1880 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1881 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1882 --libdir=DIR object code libraries [EPREFIX/lib]
1883 --includedir=DIR C header files [PREFIX/include]
1884 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1885 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1886 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1887 --infodir=DIR info documentation [DATAROOTDIR/info]
1888 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1889 --mandir=DIR man documentation [DATAROOTDIR/man]
1890 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1891 --htmldir=DIR html documentation [DOCDIR]
1892 --dvidir=DIR dvi documentation [DOCDIR]
1893 --pdfdir=DIR pdf documentation [DOCDIR]
1894 --psdir=DIR ps documentation [DOCDIR]
1895 _ACEOF
1897 cat <<\_ACEOF
1899 Program names:
1900 --program-prefix=PREFIX prepend PREFIX to installed program names
1901 --program-suffix=SUFFIX append SUFFIX to installed program names
1902 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1904 X features:
1905 --x-includes=DIR X include files are in DIR
1906 --x-libraries=DIR X library files are in DIR
1908 System types:
1909 --build=BUILD configure for building on BUILD [guessed]
1910 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1911 _ACEOF
1914 if test -n "$ac_init_help"; then
1915 case $ac_init_help in
1916 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1917 esac
1918 cat <<\_ACEOF
1920 Optional Features:
1921 --disable-option-checking ignore unrecognized --enable/--with options
1922 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1923 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1924 --disable-ns-self-contained
1925 disable self contained build under NeXTstep
1926 --enable-asserts compile code with asserts enabled
1927 --enable-maintainer-mode
1928 enable make rules and dependencies not useful (and
1929 sometimes confusing) to the casual installer
1930 --enable-locallisppath=PATH
1931 directories Emacs should search for lisp files
1932 specific to this site
1933 --enable-checking[=LIST]
1934 enable expensive run-time checks. With LIST, enable
1935 only specific categories of checks. Categories are:
1936 all,yes,no. Flags are: stringbytes, stringoverrun,
1937 stringfreelist, xmallocoverrun, conslist
1938 --enable-use-lisp-union-type
1939 use a union for the Lisp_Object data type. This is
1940 only useful for development for catching certain
1941 types of bugs.
1942 --enable-profiling build emacs with profiling support. This might not
1943 work on all platforms
1944 --enable-autodepend automatically generate dependencies to .h-files.
1945 Requires GNU Make and Gcc. Enabled if GNU Make and
1946 Gcc is found
1947 --disable-dependency-tracking speeds up one-time build
1948 --enable-dependency-tracking do not reject slow dependency extractors
1949 --disable-largefile omit support for large files
1951 Optional Packages:
1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1954 --without-pop don't support POP mail retrieval with movemail
1955 --with-kerberos support Kerberos-authenticated POP
1956 --with-kerberos5 support Kerberos version 5 authenticated POP
1957 --with-hesiod support Hesiod to get the POP server host
1958 --with-mmdf support MMDF mailboxes
1959 --with-mail-unlink unlink, rather than empty, mail spool after reading
1960 --with-mailhost=HOSTNAME
1961 string giving default POP mail host
1962 --without-sound don't compile with sound support
1963 --without-sync-input process async input synchronously
1964 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1965 lucid or athena, motif, no)
1966 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1967 --without-xpm don't compile with XPM image support
1968 --without-jpeg don't compile with JPEG image support
1969 --without-tiff don't compile with TIFF image support
1970 --without-gif don't compile with GIF image support
1971 --without-png don't compile with PNG image support
1972 --without-rsvg don't compile with SVG image support
1973 --without-xml2 don't compile with XML parsing support
1974 --without-imagemagick don't compile with ImageMagick image support
1975 --without-xft don't use XFT for anti aliased fonts
1976 --without-libotf don't use libotf for OpenType font support
1977 --without-m17n-flt don't use m17n-flt for text shaping
1978 --without-toolkit-scroll-bars
1979 don't use Motif or Xaw3d scroll bars
1980 --without-xaw3d don't use Xaw3d
1981 --without-xim don't use X11 XIM
1982 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1983 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1984 console
1985 --without-dbus don't compile with D-Bus support
1986 --without-gconf don't compile with GConf support
1987 --without-selinux don't compile with SELinux support
1988 --without-gnutls don't use -lgnutls for SSL/TLS support
1989 --without-makeinfo don't require makeinfo for building manuals
1990 --without-compress-info don't compress the installed Info pages
1991 --with-pkg-config-prog=PATH
1992 path to pkg-config for finding GTK and librsvg
1993 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1994 /usr/lib, or /usr/lib64 on some platforms.
1995 --with-gameuser=USER user for shared game score files
1996 --with-gnustep-conf=PATH
1997 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1998 or /etc/GNUstep/GNUstep.conf
1999 --with-x use the X Window System
2001 Some influential environment variables:
2002 CC C compiler command
2003 CFLAGS C compiler flags
2004 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2005 nonstandard directory <lib dir>
2006 LIBS libraries to pass to the linker, e.g. -l<library>
2007 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2008 you have headers in a nonstandard directory <include dir>
2009 CPP C preprocessor
2010 XMKMF Path to xmkmf, Makefile generator for X Window System
2012 Use these variables to override the choices made by `configure' or to help
2013 it to find libraries and programs with nonstandard names/locations.
2015 Report bugs to the package provider.
2016 _ACEOF
2017 ac_status=$?
2020 if test "$ac_init_help" = "recursive"; then
2021 # If there are subdirs, report their specific --help.
2022 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2023 test -d "$ac_dir" ||
2024 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2025 continue
2026 ac_builddir=.
2028 case "$ac_dir" in
2029 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2031 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2032 # A ".." for each directory in $ac_dir_suffix.
2033 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2034 case $ac_top_builddir_sub in
2035 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2036 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2037 esac ;;
2038 esac
2039 ac_abs_top_builddir=$ac_pwd
2040 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2041 # for backward compatibility:
2042 ac_top_builddir=$ac_top_build_prefix
2044 case $srcdir in
2045 .) # We are building in place.
2046 ac_srcdir=.
2047 ac_top_srcdir=$ac_top_builddir_sub
2048 ac_abs_top_srcdir=$ac_pwd ;;
2049 [\\/]* | ?:[\\/]* ) # Absolute name.
2050 ac_srcdir=$srcdir$ac_dir_suffix;
2051 ac_top_srcdir=$srcdir
2052 ac_abs_top_srcdir=$srcdir ;;
2053 *) # Relative name.
2054 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2055 ac_top_srcdir=$ac_top_build_prefix$srcdir
2056 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2057 esac
2058 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2060 cd "$ac_dir" || { ac_status=$?; continue; }
2061 # Check for guested configure.
2062 if test -f "$ac_srcdir/configure.gnu"; then
2063 echo &&
2064 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2065 elif test -f "$ac_srcdir/configure"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure" --help=recursive
2068 else
2069 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2070 fi || ac_status=$?
2071 cd "$ac_pwd" || { ac_status=$?; break; }
2072 done
2075 test -n "$ac_init_help" && exit $ac_status
2076 if $ac_init_version; then
2077 cat <<\_ACEOF
2078 emacs configure 24.0.50
2079 generated by GNU Autoconf 2.65
2081 Copyright (C) 2009 Free Software Foundation, Inc.
2082 This configure script is free software; the Free Software Foundation
2083 gives unlimited permission to copy, distribute and modify it.
2084 _ACEOF
2085 exit
2088 ## ------------------------ ##
2089 ## Autoconf initialization. ##
2090 ## ------------------------ ##
2092 # ac_fn_c_try_compile LINENO
2093 # --------------------------
2094 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_c_try_compile ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 rm -f conftest.$ac_objext
2099 if { { ac_try="$ac_compile"
2100 case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_compile") 2>conftest.err
2107 ac_status=$?
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } && {
2115 test -z "$ac_c_werror_flag" ||
2116 test ! -s conftest.err
2117 } && test -s conftest.$ac_objext; then :
2118 ac_retval=0
2119 else
2120 $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2123 ac_retval=1
2125 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2126 as_fn_set_status $ac_retval
2128 } # ac_fn_c_try_compile
2130 # ac_fn_c_try_cpp LINENO
2131 # ----------------------
2132 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2133 ac_fn_c_try_cpp ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if { { ac_try="$ac_cpp conftest.$ac_ext"
2137 case "(($ac_try" in
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2140 esac
2141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142 $as_echo "$ac_try_echo"; } >&5
2143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2144 ac_status=$?
2145 if test -s conftest.err; then
2146 grep -v '^ *+' conftest.err >conftest.er1
2147 cat conftest.er1 >&5
2148 mv -f conftest.er1 conftest.err
2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151 test $ac_status = 0; } >/dev/null && {
2152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2153 test ! -s conftest.err
2154 }; then :
2155 ac_retval=0
2156 else
2157 $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 ac_retval=1
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163 as_fn_set_status $ac_retval
2165 } # ac_fn_c_try_cpp
2167 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2168 # -------------------------------------------------------
2169 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2170 # the include files in INCLUDES and setting the cache variable VAR
2171 # accordingly.
2172 ac_fn_c_check_header_mongrel ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 $as_echo_n "(cached) " >&6
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 else
2185 # Is the header compilable?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2187 $as_echo_n "checking $2 usability... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2191 #include <$2>
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_header_compiler=yes
2195 else
2196 ac_header_compiler=no
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2200 $as_echo "$ac_header_compiler" >&6; }
2202 # Is the header present?
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2204 $as_echo_n "checking $2 presence... " >&6; }
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 #include <$2>
2208 _ACEOF
2209 if ac_fn_c_try_cpp "$LINENO"; then :
2210 ac_header_preproc=yes
2211 else
2212 ac_header_preproc=no
2214 rm -f conftest.err conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2216 $as_echo "$ac_header_preproc" >&6; }
2218 # So? What about this header?
2219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2220 yes:no: )
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2222 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 no:yes:* )
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2228 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2230 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2232 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2234 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 esac
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 eval "$3=\$ac_header_compiler"
2246 eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 } # ac_fn_c_check_header_mongrel
2254 # ac_fn_c_try_run LINENO
2255 # ----------------------
2256 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2257 # that executables *can* be run.
2258 ac_fn_c_try_run ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if { { ac_try="$ac_link"
2262 case "(($ac_try" in
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2265 esac
2266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2267 $as_echo "$ac_try_echo"; } >&5
2268 (eval "$ac_link") 2>&5
2269 ac_status=$?
2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2271 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2272 { { case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275 esac
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_try") 2>&5
2279 ac_status=$?
2280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2281 test $ac_status = 0; }; }; then :
2282 ac_retval=0
2283 else
2284 $as_echo "$as_me: program exited with status $ac_status" >&5
2285 $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 ac_retval=$ac_status
2290 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2292 as_fn_set_status $ac_retval
2294 } # ac_fn_c_try_run
2296 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2297 # -------------------------------------------------------
2298 # Tests whether HEADER exists and can be compiled using the include files in
2299 # INCLUDES, setting the cache variable VAR accordingly.
2300 ac_fn_c_check_header_compile ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2304 $as_echo_n "checking for $2... " >&6; }
2305 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2311 #include <$2>
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314 eval "$3=yes"
2315 else
2316 eval "$3=no"
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 eval ac_res=\$$3
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2322 $as_echo "$ac_res" >&6; }
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2325 } # ac_fn_c_check_header_compile
2327 # ac_fn_c_try_link LINENO
2328 # -----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded.
2330 ac_fn_c_try_link ()
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 rm -f conftest.$ac_objext conftest$ac_exeext
2334 if { { ac_try="$ac_link"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>conftest.err
2342 ac_status=$?
2343 if test -s conftest.err; then
2344 grep -v '^ *+' conftest.err >conftest.er1
2345 cat conftest.er1 >&5
2346 mv -f conftest.er1 conftest.err
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; } && {
2350 test -z "$ac_c_werror_flag" ||
2351 test ! -s conftest.err
2352 } && test -s conftest$ac_exeext && {
2353 test "$cross_compiling" = yes ||
2354 $as_test_x conftest$ac_exeext
2355 }; then :
2356 ac_retval=0
2357 else
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=1
2363 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2364 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2365 # interfere with the next link command; also delete a directory that is
2366 # left behind by Apple's compiler. We do this before executing the actions.
2367 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2368 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 as_fn_set_status $ac_retval
2371 } # ac_fn_c_try_link
2373 # ac_fn_c_check_decl LINENO SYMBOL VAR
2374 # ------------------------------------
2375 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2376 ac_fn_c_check_decl ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2380 $as_echo_n "checking whether $2 is declared... " >&6; }
2381 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2388 main ()
2390 #ifndef $2
2391 (void) $2;
2392 #endif
2395 return 0;
2397 _ACEOF
2398 if ac_fn_c_try_compile "$LINENO"; then :
2399 eval "$3=yes"
2400 else
2401 eval "$3=no"
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 eval ac_res=\$$3
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 } # ac_fn_c_check_decl
2412 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2413 # ----------------------------------------------
2414 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2415 ac_fn_c_check_header_preproc ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2419 $as_echo_n "checking for $2... " >&6; }
2420 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2425 #include <$2>
2426 _ACEOF
2427 if ac_fn_c_try_cpp "$LINENO"; then :
2428 eval "$3=yes"
2429 else
2430 eval "$3=no"
2432 rm -f conftest.err conftest.$ac_ext
2434 eval ac_res=\$$3
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 } # ac_fn_c_check_header_preproc
2441 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2442 # ----------------------------------------------------
2443 # Tries to find if the field MEMBER exists in type AGGR, after including
2444 # INCLUDES, setting cache variable VAR accordingly.
2445 ac_fn_c_check_member ()
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2449 $as_echo_n "checking for $2.$3... " >&6; }
2450 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 main ()
2459 static $2 ac_aggr;
2460 if (ac_aggr.$3)
2461 return 0;
2463 return 0;
2465 _ACEOF
2466 if ac_fn_c_try_compile "$LINENO"; then :
2467 eval "$4=yes"
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 main ()
2475 static $2 ac_aggr;
2476 if (sizeof ac_aggr.$3)
2477 return 0;
2479 return 0;
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 eval "$4=yes"
2484 else
2485 eval "$4=no"
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 eval ac_res=\$$4
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_member
2498 # ac_fn_c_check_func LINENO FUNC VAR
2499 # ----------------------------------
2500 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2501 ac_fn_c_check_func ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2505 $as_echo_n "checking for $2... " >&6; }
2506 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2513 #define $2 innocuous_$2
2515 /* System header to define __stub macros and hopefully few prototypes,
2516 which can conflict with char $2 (); below.
2517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2518 <limits.h> exists even on freestanding compilers. */
2520 #ifdef __STDC__
2521 # include <limits.h>
2522 #else
2523 # include <assert.h>
2524 #endif
2526 #undef $2
2528 /* Override any GCC internal prototype to avoid an error.
2529 Use char because int might match the return type of a GCC
2530 builtin and then its argument prototype would still apply. */
2531 #ifdef __cplusplus
2532 extern "C"
2533 #endif
2534 char $2 ();
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined __stub_$2 || defined __stub___$2
2539 choke me
2540 #endif
2543 main ()
2545 return $2 ();
2547 return 0;
2549 _ACEOF
2550 if ac_fn_c_try_link "$LINENO"; then :
2551 eval "$3=yes"
2552 else
2553 eval "$3=no"
2555 rm -f core conftest.err conftest.$ac_objext \
2556 conftest$ac_exeext conftest.$ac_ext
2558 eval ac_res=\$$3
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_func
2565 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2566 # --------------------------------------------
2567 # Tries to find the compile-time value of EXPR in a program that includes
2568 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2569 # computed
2570 ac_fn_c_compute_int ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 if test "$cross_compiling" = yes; then
2574 # Depending upon the size, compute the lo and hi bounds.
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2579 main ()
2581 static int test_array [1 - 2 * !(($2) >= 0)];
2582 test_array [0] = 0
2585 return 0;
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589 ac_lo=0 ac_mid=0
2590 while :; do
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2595 main ()
2597 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2598 test_array [0] = 0
2601 return 0;
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605 ac_hi=$ac_mid; break
2606 else
2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2608 if test $ac_lo -le $ac_mid; then
2609 ac_lo= ac_hi=
2610 break
2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 done
2616 else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2621 main ()
2623 static int test_array [1 - 2 * !(($2) < 0)];
2624 test_array [0] = 0
2627 return 0;
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_hi=-1 ac_mid=-1
2632 while :; do
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2640 test_array [0] = 0
2643 return 0;
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=$ac_mid; break
2648 else
2649 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2650 if test $ac_mid -le $ac_hi; then
2651 ac_lo= ac_hi=
2652 break
2654 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 done
2658 else
2659 ac_lo= ac_hi=
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 # Binary search between lo and hi bounds.
2665 while test "x$ac_lo" != "x$ac_hi"; do
2666 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2671 main ()
2673 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2674 test_array [0] = 0
2677 return 0;
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 ac_hi=$ac_mid
2682 else
2683 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 done
2687 case $ac_lo in #((
2688 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2689 '') ac_retval=1 ;;
2690 esac
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2695 static long int longval () { return $2; }
2696 static unsigned long int ulongval () { return $2; }
2697 #include <stdio.h>
2698 #include <stdlib.h>
2700 main ()
2703 FILE *f = fopen ("conftest.val", "w");
2704 if (! f)
2705 return 1;
2706 if (($2) < 0)
2708 long int i = longval ();
2709 if (i != ($2))
2710 return 1;
2711 fprintf (f, "%ld", i);
2713 else
2715 unsigned long int i = ulongval ();
2716 if (i != ($2))
2717 return 1;
2718 fprintf (f, "%lu", i);
2720 /* Do not output a trailing newline, as this causes \r\n confusion
2721 on some platforms. */
2722 return ferror (f) || fclose (f) != 0;
2725 return 0;
2727 _ACEOF
2728 if ac_fn_c_try_run "$LINENO"; then :
2729 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2730 else
2731 ac_retval=1
2733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2734 conftest.$ac_objext conftest.beam conftest.$ac_ext
2735 rm -f conftest.val
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 as_fn_set_status $ac_retval
2741 } # ac_fn_c_compute_int
2743 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2744 # -------------------------------------------
2745 # Tests whether TYPE exists after having included INCLUDES, setting cache
2746 # variable VAR accordingly.
2747 ac_fn_c_check_type ()
2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2751 $as_echo_n "checking for $2... " >&6; }
2752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 eval "$3=no"
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2760 main ()
2762 if (sizeof ($2))
2763 return 0;
2765 return 0;
2767 _ACEOF
2768 if ac_fn_c_try_compile "$LINENO"; then :
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2773 main ()
2775 if (sizeof (($2)))
2776 return 0;
2778 return 0;
2780 _ACEOF
2781 if ac_fn_c_try_compile "$LINENO"; then :
2783 else
2784 eval "$3=yes"
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 eval ac_res=\$$3
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2795 } # ac_fn_c_check_type
2796 cat >config.log <<_ACEOF
2797 This file contains any messages produced by compilers while
2798 running configure, to aid debugging if configure makes a mistake.
2800 It was created by emacs $as_me 24.0.50, which was
2801 generated by GNU Autoconf 2.65. Invocation command line was
2803 $ $0 $@
2805 _ACEOF
2806 exec 5>>config.log
2808 cat <<_ASUNAME
2809 ## --------- ##
2810 ## Platform. ##
2811 ## --------- ##
2813 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2814 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2815 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2816 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2817 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2819 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2820 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2822 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2823 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2824 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2825 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2826 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2827 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2828 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2830 _ASUNAME
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 $as_echo "PATH: $as_dir"
2838 done
2839 IFS=$as_save_IFS
2841 } >&5
2843 cat >&5 <<_ACEOF
2846 ## ----------- ##
2847 ## Core tests. ##
2848 ## ----------- ##
2850 _ACEOF
2853 # Keep a trace of the command line.
2854 # Strip out --no-create and --no-recursion so they do not pile up.
2855 # Strip out --silent because we don't want to record it for future runs.
2856 # Also quote any args containing shell meta-characters.
2857 # Make two passes to allow for proper duplicate-argument suppression.
2858 ac_configure_args=
2859 ac_configure_args0=
2860 ac_configure_args1=
2861 ac_must_keep_next=false
2862 for ac_pass in 1 2
2864 for ac_arg
2866 case $ac_arg in
2867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2869 | -silent | --silent | --silen | --sile | --sil)
2870 continue ;;
2871 *\'*)
2872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2873 esac
2874 case $ac_pass in
2875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2877 as_fn_append ac_configure_args1 " '$ac_arg'"
2878 if test $ac_must_keep_next = true; then
2879 ac_must_keep_next=false # Got value, back to normal.
2880 else
2881 case $ac_arg in
2882 *=* | --config-cache | -C | -disable-* | --disable-* \
2883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2885 | -with-* | --with-* | -without-* | --without-* | --x)
2886 case "$ac_configure_args0 " in
2887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2888 esac
2890 -* ) ac_must_keep_next=true ;;
2891 esac
2893 as_fn_append ac_configure_args " '$ac_arg'"
2895 esac
2896 done
2897 done
2898 { ac_configure_args0=; unset ac_configure_args0;}
2899 { ac_configure_args1=; unset ac_configure_args1;}
2901 # When interrupted or exit'd, cleanup temporary files, and complete
2902 # config.log. We remove comments because anyway the quotes in there
2903 # would cause problems or look ugly.
2904 # WARNING: Use '\'' to represent an apostrophe within the trap.
2905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2906 trap 'exit_status=$?
2907 # Save into config.log some information that might help in debugging.
2909 echo
2911 cat <<\_ASBOX
2912 ## ---------------- ##
2913 ## Cache variables. ##
2914 ## ---------------- ##
2915 _ASBOX
2916 echo
2917 # The following way of writing the cache mishandles newlines in values,
2919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2920 eval ac_val=\$$ac_var
2921 case $ac_val in #(
2922 *${as_nl}*)
2923 case $ac_var in #(
2924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2926 esac
2927 case $ac_var in #(
2928 _ | IFS | as_nl) ;; #(
2929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2930 *) { eval $ac_var=; unset $ac_var;} ;;
2931 esac ;;
2932 esac
2933 done
2934 (set) 2>&1 |
2935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2936 *${as_nl}ac_space=\ *)
2937 sed -n \
2938 "s/'\''/'\''\\\\'\'''\''/g;
2939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2940 ;; #(
2942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2944 esac |
2945 sort
2947 echo
2949 cat <<\_ASBOX
2950 ## ----------------- ##
2951 ## Output variables. ##
2952 ## ----------------- ##
2953 _ASBOX
2954 echo
2955 for ac_var in $ac_subst_vars
2957 eval ac_val=\$$ac_var
2958 case $ac_val in
2959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2960 esac
2961 $as_echo "$ac_var='\''$ac_val'\''"
2962 done | sort
2963 echo
2965 if test -n "$ac_subst_files"; then
2966 cat <<\_ASBOX
2967 ## ------------------- ##
2968 ## File substitutions. ##
2969 ## ------------------- ##
2970 _ASBOX
2971 echo
2972 for ac_var in $ac_subst_files
2974 eval ac_val=\$$ac_var
2975 case $ac_val in
2976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2977 esac
2978 $as_echo "$ac_var='\''$ac_val'\''"
2979 done | sort
2980 echo
2983 if test -s confdefs.h; then
2984 cat <<\_ASBOX
2985 ## ----------- ##
2986 ## confdefs.h. ##
2987 ## ----------- ##
2988 _ASBOX
2989 echo
2990 cat confdefs.h
2991 echo
2993 test "$ac_signal" != 0 &&
2994 $as_echo "$as_me: caught signal $ac_signal"
2995 $as_echo "$as_me: exit $exit_status"
2996 } >&5
2997 rm -f core *.core core.conftest.* &&
2998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2999 exit $exit_status
3001 for ac_signal in 1 2 13 15; do
3002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3003 done
3004 ac_signal=0
3006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3007 rm -f -r conftest* confdefs.h
3009 $as_echo "/* confdefs.h */" > confdefs.h
3011 # Predefined preprocessor variables.
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_NAME "$PACKAGE_NAME"
3015 _ACEOF
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3019 _ACEOF
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3023 _ACEOF
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_STRING "$PACKAGE_STRING"
3027 _ACEOF
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3031 _ACEOF
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE_URL "$PACKAGE_URL"
3035 _ACEOF
3038 # Let the site file select an alternate cache file if it wants to.
3039 # Prefer an explicitly selected file to automatically selected ones.
3040 ac_site_file1=NONE
3041 ac_site_file2=NONE
3042 if test -n "$CONFIG_SITE"; then
3043 ac_site_file1=$CONFIG_SITE
3044 elif test "x$prefix" != xNONE; then
3045 ac_site_file1=$prefix/share/config.site
3046 ac_site_file2=$prefix/etc/config.site
3047 else
3048 ac_site_file1=$ac_default_prefix/share/config.site
3049 ac_site_file2=$ac_default_prefix/etc/config.site
3051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3053 test "x$ac_site_file" = xNONE && continue
3054 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3057 sed 's/^/| /' "$ac_site_file" >&5
3058 . "$ac_site_file"
3060 done
3062 if test -r "$cache_file"; then
3063 # Some versions of bash will fail to source /dev/null (special files
3064 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3065 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3067 $as_echo "$as_me: loading cache $cache_file" >&6;}
3068 case $cache_file in
3069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3070 *) . "./$cache_file";;
3071 esac
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3075 $as_echo "$as_me: creating cache $cache_file" >&6;}
3076 >$cache_file
3079 as_fn_append ac_header_list " stdlib.h"
3080 as_fn_append ac_header_list " unistd.h"
3081 as_fn_append ac_header_list " sys/param.h"
3082 as_fn_append ac_func_list " readlinkat"
3083 gl_getopt_required=GNU
3084 as_fn_append ac_header_list " getopt.h"
3085 as_fn_append ac_header_list " wchar.h"
3086 as_fn_append ac_header_list " stdint.h"
3087 as_fn_append ac_header_list " inttypes.h"
3088 as_fn_append ac_func_list " lstat"
3089 as_fn_append ac_func_list " alarm"
3090 as_fn_append ac_func_list " readlink"
3091 as_fn_append ac_header_list " sys/socket.h"
3092 as_fn_append ac_func_list " tzset"
3093 as_fn_append ac_func_list " symlink"
3094 as_fn_append ac_header_list " sys/stat.h"
3095 as_fn_append ac_header_list " sys/time.h"
3096 as_fn_append ac_func_list " localtime_r"
3097 # Check that the precious variables saved in the cache have kept the same
3098 # value.
3099 ac_cache_corrupted=false
3100 for ac_var in $ac_precious_vars; do
3101 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3102 eval ac_new_set=\$ac_env_${ac_var}_set
3103 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3104 eval ac_new_val=\$ac_env_${ac_var}_value
3105 case $ac_old_set,$ac_new_set in
3106 set,)
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3108 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3109 ac_cache_corrupted=: ;;
3110 ,set)
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3113 ac_cache_corrupted=: ;;
3114 ,);;
3116 if test "x$ac_old_val" != "x$ac_new_val"; then
3117 # differences in whitespace do not lead to failure.
3118 ac_old_val_w=`echo x $ac_old_val`
3119 ac_new_val_w=`echo x $ac_new_val`
3120 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3122 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3123 ac_cache_corrupted=:
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3126 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3127 eval $ac_var=\$ac_old_val
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3130 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3132 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3133 fi;;
3134 esac
3135 # Pass precious variables to config.status.
3136 if test "$ac_new_set" = set; then
3137 case $ac_new_val in
3138 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3139 *) ac_arg=$ac_var=$ac_new_val ;;
3140 esac
3141 case " $ac_configure_args " in
3142 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3143 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3144 esac
3146 done
3147 if $ac_cache_corrupted; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3151 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3152 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3154 ## -------------------- ##
3155 ## Main body of script. ##
3156 ## -------------------- ##
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3168 am__api_version='1.11'
3170 ac_aux_dir=
3171 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3172 for ac_t in install-sh install.sh shtool; do
3173 if test -f "$ac_dir/$ac_t"; then
3174 ac_aux_dir=$ac_dir
3175 ac_install_sh="$ac_aux_dir/$ac_t -c"
3176 break 2
3178 done
3179 done
3180 if test -z "$ac_aux_dir"; then
3181 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3184 # These three variables are undocumented and unsupported,
3185 # and are intended to be withdrawn in a future Autoconf release.
3186 # They can cause serious problems if a builder's source tree is in a directory
3187 # whose full name contains unusual characters.
3188 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3189 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3190 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3193 # Find a good install program. We prefer a C program (faster),
3194 # so one script is as good as another. But avoid the broken or
3195 # incompatible versions:
3196 # SysV /etc/install, /usr/sbin/install
3197 # SunOS /usr/etc/install
3198 # IRIX /sbin/install
3199 # AIX /bin/install
3200 # AmigaOS /C/install, which installs bootblocks on floppy discs
3201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3204 # OS/2's system install, which has a completely different semantic
3205 # ./install, which can be erroneously created by make from ./install.sh.
3206 # Reject install programs that cannot install multiple files.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3208 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3209 if test -z "$INSTALL"; then
3210 if test "${ac_cv_path_install+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 # Account for people who put trailing slashes in PATH elements.
3219 case $as_dir/ in #((
3220 ./ | .// | /[cC]/* | \
3221 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3222 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3223 /usr/ucb/* ) ;;
3225 # OSF1 and SCO ODT 3.0 have their own names for install.
3226 # Don't use installbsd from OSF since it installs stuff as root
3227 # by default.
3228 for ac_prog in ginstall scoinst install; do
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3231 if test $ac_prog = install &&
3232 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233 # AIX install. It has an incompatible calling convention.
3235 elif test $ac_prog = install &&
3236 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # program-specific install script used by HP pwplus--don't use.
3239 else
3240 rm -rf conftest.one conftest.two conftest.dir
3241 echo one > conftest.one
3242 echo two > conftest.two
3243 mkdir conftest.dir
3244 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3245 test -s conftest.one && test -s conftest.two &&
3246 test -s conftest.dir/conftest.one &&
3247 test -s conftest.dir/conftest.two
3248 then
3249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3250 break 3
3254 done
3255 done
3257 esac
3259 done
3260 IFS=$as_save_IFS
3262 rm -rf conftest.one conftest.two conftest.dir
3265 if test "${ac_cv_path_install+set}" = set; then
3266 INSTALL=$ac_cv_path_install
3267 else
3268 # As a last resort, use the slow shell script. Don't cache a
3269 # value for INSTALL within a source directory, because that will
3270 # break other packages using the cache if that directory is
3271 # removed, or if the value is a relative name.
3272 INSTALL=$ac_install_sh
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3276 $as_echo "$INSTALL" >&6; }
3278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3279 # It thinks the first close brace ends the variable substitution.
3280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3287 $as_echo_n "checking whether build environment is sane... " >&6; }
3288 # Just in case
3289 sleep 1
3290 echo timestamp > conftest.file
3291 # Reject unsafe characters in $srcdir or the absolute working directory
3292 # name. Accept space and tab only in the latter.
3293 am_lf='
3295 case `pwd` in
3296 *[\\\"\#\$\&\'\`$am_lf]*)
3297 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3298 esac
3299 case $srcdir in
3300 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3301 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3302 esac
3304 # Do `set' in a subshell so we don't clobber the current shell's
3305 # arguments. Must try -L first in case configure is actually a
3306 # symlink; some systems play weird games with the mod time of symlinks
3307 # (eg FreeBSD returns the mod time of the symlink's containing
3308 # directory).
3309 if (
3310 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3311 if test "$*" = "X"; then
3312 # -L didn't work.
3313 set X `ls -t "$srcdir/configure" conftest.file`
3315 rm -f conftest.file
3316 if test "$*" != "X $srcdir/configure conftest.file" \
3317 && test "$*" != "X conftest.file $srcdir/configure"; then
3319 # If neither matched, then we have a broken ls. This can happen
3320 # if, for instance, CONFIG_SHELL is bash and it inherits a
3321 # broken ls alias from the environment. This has actually
3322 # happened. Such a system could not be considered "sane".
3323 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3324 alias in your environment" "$LINENO" 5
3327 test "$2" = conftest.file
3329 then
3330 # Ok.
3332 else
3333 as_fn_error "newly created file is older than distributed files!
3334 Check your system clock" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338 test "$program_prefix" != NONE &&
3339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3340 # Use a double $ so make ignores it.
3341 test "$program_suffix" != NONE &&
3342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3343 # Double any \ or $.
3344 # By default was `s,x,x', remove it if useless.
3345 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3346 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3348 # expand $ac_aux_dir to an absolute path
3349 am_aux_dir=`cd $ac_aux_dir && pwd`
3351 if test x"${MISSING+set}" != xset; then
3352 case $am_aux_dir in
3353 *\ * | *\ *)
3354 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3356 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3357 esac
3359 # Use eval to expand $SHELL
3360 if eval "$MISSING --run true"; then
3361 am_missing_run="$MISSING --run "
3362 else
3363 am_missing_run=
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3365 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3368 if test x"${install_sh}" != xset; then
3369 case $am_aux_dir in
3370 *\ * | *\ *)
3371 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3373 install_sh="\${SHELL} $am_aux_dir/install-sh"
3374 esac
3377 # Installed binaries are usually stripped using `strip' when the user
3378 # run `make install-strip'. However `strip' might not be the right
3379 # tool to use in cross-compilation environments, therefore Automake
3380 # will honor the `STRIP' environment variable to overrule this program.
3381 if test "$cross_compiling" != no; then
3382 if test -n "$ac_tool_prefix"; then
3383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3384 set dummy ${ac_tool_prefix}strip; ac_word=$2
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386 $as_echo_n "checking for $ac_word... " >&6; }
3387 if test "${ac_cv_prog_STRIP+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3389 else
3390 if test -n "$STRIP"; then
3391 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3404 done
3405 done
3406 IFS=$as_save_IFS
3410 STRIP=$ac_cv_prog_STRIP
3411 if test -n "$STRIP"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3413 $as_echo "$STRIP" >&6; }
3414 else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416 $as_echo "no" >&6; }
3421 if test -z "$ac_cv_prog_STRIP"; then
3422 ac_ct_STRIP=$STRIP
3423 # Extract the first word of "strip", so it can be a program name with args.
3424 set dummy strip; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 if test -n "$ac_ct_STRIP"; then
3431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_ac_ct_STRIP="strip"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3444 done
3445 done
3446 IFS=$as_save_IFS
3450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3451 if test -n "$ac_ct_STRIP"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3453 $as_echo "$ac_ct_STRIP" >&6; }
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3459 if test "x$ac_ct_STRIP" = x; then
3460 STRIP=":"
3461 else
3462 case $cross_compiling:$ac_tool_warned in
3463 yes:)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3467 esac
3468 STRIP=$ac_ct_STRIP
3470 else
3471 STRIP="$ac_cv_prog_STRIP"
3475 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3478 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3479 if test -z "$MKDIR_P"; then
3480 if test "${ac_cv_path_mkdir+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_prog in mkdir gmkdir; do
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3491 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3492 'mkdir (GNU coreutils) '* | \
3493 'mkdir (coreutils) '* | \
3494 'mkdir (fileutils) '4.1*)
3495 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3496 break 3;;
3497 esac
3498 done
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 test -d ./--version && rmdir ./--version
3506 if test "${ac_cv_path_mkdir+set}" = set; then
3507 MKDIR_P="$ac_cv_path_mkdir -p"
3508 else
3509 # As a last resort, use the slow shell script. Don't cache a
3510 # value for MKDIR_P within a source directory, because that will
3511 # break other packages using the cache if that directory is
3512 # removed, or if the value is a relative name.
3513 MKDIR_P="$ac_install_sh -d"
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3517 $as_echo "$MKDIR_P" >&6; }
3520 mkdir_p="$MKDIR_P"
3521 case $mkdir_p in
3522 [\\/$]* | ?:[\\/]*) ;;
3523 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3524 esac
3526 for ac_prog in gawk mawk nawk awk
3528 # Extract the first word of "$ac_prog", so it can be a program name with args.
3529 set dummy $ac_prog; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_AWK+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$AWK"; then
3536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_AWK="$ac_prog"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3549 done
3550 done
3551 IFS=$as_save_IFS
3555 AWK=$ac_cv_prog_AWK
3556 if test -n "$AWK"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3558 $as_echo "$AWK" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3565 test -n "$AWK" && break
3566 done
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3570 set x ${MAKE-make}
3571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3572 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat >conftest.make <<\_ACEOF
3576 SHELL = /bin/sh
3577 all:
3578 @echo '@@@%%%=$(MAKE)=@@@%%%'
3579 _ACEOF
3580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3582 *@@@%%%=?*=@@@%%%*)
3583 eval ac_cv_prog_make_${ac_make}_set=yes;;
3585 eval ac_cv_prog_make_${ac_make}_set=no;;
3586 esac
3587 rm -f conftest.make
3589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591 $as_echo "yes" >&6; }
3592 SET_MAKE=
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 SET_MAKE="MAKE=${MAKE-make}"
3599 rm -rf .tst 2>/dev/null
3600 mkdir .tst 2>/dev/null
3601 if test -d .tst; then
3602 am__leading_dot=.
3603 else
3604 am__leading_dot=_
3606 rmdir .tst 2>/dev/null
3608 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3609 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3610 # is not polluted with repeated "-I."
3611 am__isrc=' -I$(srcdir)'
3612 # test to see if srcdir already configured
3613 if test -f $srcdir/config.status; then
3614 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3618 # test whether we have cygpath
3619 if test -z "$CYGPATH_W"; then
3620 if (cygpath --version) >/dev/null 2>/dev/null; then
3621 CYGPATH_W='cygpath -w'
3622 else
3623 CYGPATH_W=echo
3628 # Define the identity of the package.
3629 PACKAGE='emacs'
3630 VERSION='24.0.50'
3633 cat >>confdefs.h <<_ACEOF
3634 #define PACKAGE "$PACKAGE"
3635 _ACEOF
3638 cat >>confdefs.h <<_ACEOF
3639 #define VERSION "$VERSION"
3640 _ACEOF
3642 # Some tools Automake needs.
3644 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3647 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3650 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3653 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3656 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3658 # We need awk for the "check" target. The system "awk" is bad on
3659 # some platforms.
3660 # Always define AMTAR for backward compatibility.
3662 AMTAR=${AMTAR-"${am_missing_run}tar"}
3664 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3673 lispdir='${datadir}/emacs/${version}/lisp'
3674 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3675 '${datadir}/emacs/site-lisp'
3676 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3677 etcdir='${datadir}/emacs/${version}/etc'
3678 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3679 docdir='${datadir}/emacs/${version}/etc'
3680 gamedir='${localstatedir}/games/emacs'
3685 # Check whether --with-pop was given.
3686 if test "${with_pop+set}" = set; then :
3687 withval=$with_pop;
3688 else
3689 with_pop=yes
3692 if test "$with_pop" = yes; then
3693 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3698 # Check whether --with-kerberos was given.
3699 if test "${with_kerberos+set}" = set; then :
3700 withval=$with_kerberos;
3701 else
3702 with_kerberos=no
3705 if test "$with_kerberos" != no; then
3706 $as_echo "#define KERBEROS 1" >>confdefs.h
3711 # Check whether --with-kerberos5 was given.
3712 if test "${with_kerberos5+set}" = set; then :
3713 withval=$with_kerberos5;
3714 else
3715 with_kerberos5=no
3718 if test "${with_kerberos5}" != no; then
3719 if test "${with_kerberos}" = no; then
3720 with_kerberos=yes
3721 $as_echo "#define KERBEROS 1" >>confdefs.h
3725 $as_echo "#define KERBEROS5 1" >>confdefs.h
3730 # Check whether --with-hesiod was given.
3731 if test "${with_hesiod+set}" = set; then :
3732 withval=$with_hesiod;
3733 else
3734 with_hesiod=no
3737 if test "$with_hesiod" != no; then
3739 $as_echo "#define HESIOD 1" >>confdefs.h
3744 # Check whether --with-mmdf was given.
3745 if test "${with_mmdf+set}" = set; then :
3746 withval=$with_mmdf;
3747 else
3748 with_mmdf=no
3751 if test "$with_mmdf" != no; then
3753 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3758 # Check whether --with-mail-unlink was given.
3759 if test "${with_mail_unlink+set}" = set; then :
3760 withval=$with_mail_unlink;
3761 else
3762 with_mail_unlink=no
3765 if test "$with_mail_unlink" != no; then
3767 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3772 # Check whether --with-mailhost was given.
3773 if test "${with_mailhost+set}" = set; then :
3774 withval=$with_mailhost;
3775 cat >>confdefs.h <<_ACEOF
3776 #define MAILHOST "$withval"
3777 _ACEOF
3783 # Check whether --with-sound was given.
3784 if test "${with_sound+set}" = set; then :
3785 withval=$with_sound;
3786 else
3787 with_sound=yes
3792 # Check whether --with-sync-input was given.
3793 if test "${with_sync_input+set}" = set; then :
3794 withval=$with_sync_input;
3795 else
3796 with_sync_input=yes
3799 if test "$with_sync_input" = yes; then
3801 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3806 # Check whether --with-x-toolkit was given.
3807 if test "${with_x_toolkit+set}" = set; then :
3808 withval=$with_x_toolkit; case "${withval}" in
3809 y | ye | yes ) val=gtk ;;
3810 n | no ) val=no ;;
3811 l | lu | luc | luci | lucid ) val=lucid ;;
3812 a | at | ath | athe | athen | athena ) val=athena ;;
3813 m | mo | mot | moti | motif ) val=motif ;;
3814 g | gt | gtk ) val=gtk ;;
3815 gtk3 ) val=gtk3 ;;
3817 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3818 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3819 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3821 esac
3822 with_x_toolkit=$val
3828 # Check whether --with-wide-int was given.
3829 if test "${with_wide_int+set}" = set; then :
3830 withval=$with_wide_int;
3831 else
3832 with_wide_int=no
3835 if test "$with_wide_int" = yes; then
3837 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3842 # Check whether --with-xpm was given.
3843 if test "${with_xpm+set}" = set; then :
3844 withval=$with_xpm;
3845 else
3846 with_xpm=yes
3850 # Check whether --with-jpeg was given.
3851 if test "${with_jpeg+set}" = set; then :
3852 withval=$with_jpeg;
3853 else
3854 with_jpeg=yes
3858 # Check whether --with-tiff was given.
3859 if test "${with_tiff+set}" = set; then :
3860 withval=$with_tiff;
3861 else
3862 with_tiff=yes
3866 # Check whether --with-gif was given.
3867 if test "${with_gif+set}" = set; then :
3868 withval=$with_gif;
3869 else
3870 with_gif=yes
3874 # Check whether --with-png was given.
3875 if test "${with_png+set}" = set; then :
3876 withval=$with_png;
3877 else
3878 with_png=yes
3882 # Check whether --with-rsvg was given.
3883 if test "${with_rsvg+set}" = set; then :
3884 withval=$with_rsvg;
3885 else
3886 with_rsvg=yes
3890 # Check whether --with-xml2 was given.
3891 if test "${with_xml2+set}" = set; then :
3892 withval=$with_xml2;
3893 else
3894 with_xml2=yes
3898 # Check whether --with-imagemagick was given.
3899 if test "${with_imagemagick+set}" = set; then :
3900 withval=$with_imagemagick;
3901 else
3902 with_imagemagick=yes
3907 # Check whether --with-xft was given.
3908 if test "${with_xft+set}" = set; then :
3909 withval=$with_xft;
3910 else
3911 with_xft=yes
3915 # Check whether --with-libotf was given.
3916 if test "${with_libotf+set}" = set; then :
3917 withval=$with_libotf;
3918 else
3919 with_libotf=yes
3923 # Check whether --with-m17n-flt was given.
3924 if test "${with_m17n_flt+set}" = set; then :
3925 withval=$with_m17n_flt;
3926 else
3927 with_m17n_flt=yes
3932 # Check whether --with-toolkit-scroll-bars was given.
3933 if test "${with_toolkit_scroll_bars+set}" = set; then :
3934 withval=$with_toolkit_scroll_bars;
3935 else
3936 with_toolkit_scroll_bars=yes
3940 # Check whether --with-xaw3d was given.
3941 if test "${with_xaw3d+set}" = set; then :
3942 withval=$with_xaw3d;
3943 else
3944 with_xaw3d=yes
3948 # Check whether --with-xim was given.
3949 if test "${with_xim+set}" = set; then :
3950 withval=$with_xim;
3951 else
3952 with_xim=yes
3956 # Check whether --with-ns was given.
3957 if test "${with_ns+set}" = set; then :
3958 withval=$with_ns;
3959 else
3960 with_ns=no
3965 # Check whether --with-gpm was given.
3966 if test "${with_gpm+set}" = set; then :
3967 withval=$with_gpm;
3968 else
3969 with_gpm=yes
3973 # Check whether --with-dbus was given.
3974 if test "${with_dbus+set}" = set; then :
3975 withval=$with_dbus;
3976 else
3977 with_dbus=yes
3981 # Check whether --with-gconf was given.
3982 if test "${with_gconf+set}" = set; then :
3983 withval=$with_gconf;
3984 else
3985 with_gconf=yes
3989 # Check whether --with-selinux was given.
3990 if test "${with_selinux+set}" = set; then :
3991 withval=$with_selinux;
3992 else
3993 with_selinux=yes
3997 # Check whether --with-gnutls was given.
3998 if test "${with_gnutls+set}" = set; then :
3999 withval=$with_gnutls;
4000 else
4001 with_gnutls=yes
4005 ## For the times when you want to build Emacs but don't have
4006 ## a suitable makeinfo, and can live without the manuals.
4008 # Check whether --with-makeinfo was given.
4009 if test "${with_makeinfo+set}" = set; then :
4010 withval=$with_makeinfo;
4011 else
4012 with_makeinfo=yes
4016 ## This is an option because I do not know if all info/man support
4017 ## compressed files, nor how to test if they do so.
4019 # Check whether --with-compress-info was given.
4020 if test "${with_compress_info+set}" = set; then :
4021 withval=$with_compress_info;
4022 else
4023 with_compress_info=yes
4026 if test $with_compress_info = yes; then
4027 GZIP_INFO=yes
4028 else
4029 GZIP_INFO=
4034 # Check whether --with-pkg-config-prog was given.
4035 if test "${with_pkg_config_prog+set}" = set; then :
4036 withval=$with_pkg_config_prog;
4039 if test "X${with_pkg_config_prog}" != X; then
4040 if test "${with_pkg_config_prog}" != yes; then
4041 PKG_CONFIG="${with_pkg_config_prog}"
4045 CRT_DIR=
4047 # Check whether --with-crt-dir was given.
4048 if test "${with_crt_dir+set}" = set; then :
4049 withval=$with_crt_dir;
4052 CRT_DIR="${with_crt_dir}"
4055 # Check whether --with-gameuser was given.
4056 if test "${with_gameuser+set}" = set; then :
4057 withval=$with_gameuser;
4060 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4061 && gameuser="${with_gameuser}"
4062 test "X$gameuser" = X && gameuser=games
4065 # Check whether --with-gnustep-conf was given.
4066 if test "${with_gnustep_conf+set}" = set; then :
4067 withval=$with_gnustep_conf;
4070 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4071 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4072 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4073 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4075 # Check whether --enable-ns-self-contained was given.
4076 if test "${enable_ns_self_contained+set}" = set; then :
4077 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4078 else
4079 EN_NS_SELF_CONTAINED=yes
4083 # Check whether --enable-asserts was given.
4084 if test "${enable_asserts+set}" = set; then :
4085 enableval=$enable_asserts; USE_XASSERTS=$enableval
4086 else
4087 USE_XASSERTS=no
4091 # Check whether --enable-maintainer-mode was given.
4092 if test "${enable_maintainer_mode+set}" = set; then :
4093 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4094 else
4095 USE_MAINTAINER_MODE=yes
4098 if test $USE_MAINTAINER_MODE = yes; then
4099 MAINT=
4100 else
4101 MAINT=#
4105 # Check whether --enable-locallisppath was given.
4106 if test "${enable_locallisppath+set}" = set; then :
4107 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4108 locallisppath=
4109 elif test "${enableval}" != "yes"; then
4110 locallisppath=${enableval}
4115 # Check whether --enable-checking was given.
4116 if test "${enable_checking+set}" = set; then :
4117 enableval=$enable_checking; ac_checking_flags="${enableval}"
4120 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4121 for check in $ac_checking_flags
4123 case $check in
4124 # these set all the flags to specific states
4125 yes) ac_enable_checking=1 ;;
4126 no) ac_enable_checking= ;
4127 ac_gc_check_stringbytes= ;
4128 ac_gc_check_string_overrun= ;
4129 ac_gc_check_string_free_list= ;
4130 ac_xmalloc_overrun= ;
4131 ac_gc_check_cons_list= ;;
4132 all) ac_enable_checking=1 ;
4133 ac_gc_check_stringbytes=1 ;
4134 ac_gc_check_string_overrun=1 ;
4135 ac_gc_check_string_free_list=1 ;
4136 ac_xmalloc_overrun=1 ;
4137 ac_gc_check_cons_list=1 ;;
4138 # these enable particular checks
4139 stringbytes) ac_gc_check_stringbytes=1 ;;
4140 stringoverrun) ac_gc_check_string_overrun=1 ;;
4141 stringfreelist) ac_gc_check_string_free_list=1 ;;
4142 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4143 conslist) ac_gc_check_cons_list=1 ;;
4144 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4145 esac
4146 done
4147 IFS="$ac_save_IFS"
4149 if test x$ac_enable_checking != x ; then
4151 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4154 if test x$ac_gc_check_stringbytes != x ; then
4156 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4159 if test x$ac_gc_check_string_overrun != x ; then
4161 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4164 if test x$ac_gc_check_string_free_list != x ; then
4166 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4169 if test x$ac_xmalloc_overrun != x ; then
4171 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4174 if test x$ac_gc_check_cons_list != x ; then
4176 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4180 # Check whether --enable-use-lisp-union-type was given.
4181 if test "${enable_use_lisp_union_type+set}" = set; then :
4182 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4184 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4191 # Check whether --enable-profiling was given.
4192 if test "${enable_profiling+set}" = set; then :
4193 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4196 if test x$ac_enable_profiling != x ; then
4197 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4198 else
4199 PROFILING_CFLAGS=
4203 # Check whether --enable-autodepend was given.
4204 if test "${enable_autodepend+set}" = set; then :
4205 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4206 else
4207 ac_enable_autodepend=yes
4211 #### Make srcdir absolute, if it isn't already. It's important to
4212 #### avoid running the path through pwd unnecessarily, since pwd can
4213 #### give you automounter prefixes, which can go away. We do all this
4214 #### so Emacs can find its files when run uninstalled.
4215 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4216 unset CDPATH
4217 case "${srcdir}" in
4218 /* ) ;;
4220 ## We may be able to use the $PWD environment variable to make this
4221 ## absolute. But sometimes PWD is inaccurate.
4222 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4223 ## but that tested only for a well-formed and valid PWD,
4224 ## it did not object when PWD was well-formed and valid but just wrong.
4225 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4226 then
4227 srcdir="$PWD"
4228 else
4229 srcdir="`(cd ${srcdir}; pwd)`"
4232 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4233 esac
4235 #### Given the configuration name, set machfile and opsysfile to the
4236 #### names of the m/*.h and s/*.h files we should use.
4238 ### Canonicalize the configuration name.
4240 # Make sure we can run config.sub.
4241 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4242 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4245 $as_echo_n "checking build system type... " >&6; }
4246 if test "${ac_cv_build+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_build_alias=$build_alias
4250 test "x$ac_build_alias" = x &&
4251 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4252 test "x$ac_build_alias" = x &&
4253 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4254 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4255 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4259 $as_echo "$ac_cv_build" >&6; }
4260 case $ac_cv_build in
4261 *-*-*) ;;
4262 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4263 esac
4264 build=$ac_cv_build
4265 ac_save_IFS=$IFS; IFS='-'
4266 set x $ac_cv_build
4267 shift
4268 build_cpu=$1
4269 build_vendor=$2
4270 shift; shift
4271 # Remember, the first character of IFS is used to create $*,
4272 # except with old shells:
4273 build_os=$*
4274 IFS=$ac_save_IFS
4275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4279 $as_echo_n "checking host system type... " >&6; }
4280 if test "${ac_cv_host+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test "x$host_alias" = x; then
4284 ac_cv_host=$ac_cv_build
4285 else
4286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4287 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4292 $as_echo "$ac_cv_host" >&6; }
4293 case $ac_cv_host in
4294 *-*-*) ;;
4295 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4296 esac
4297 host=$ac_cv_host
4298 ac_save_IFS=$IFS; IFS='-'
4299 set x $ac_cv_host
4300 shift
4301 host_cpu=$1
4302 host_vendor=$2
4303 shift; shift
4304 # Remember, the first character of IFS is used to create $*,
4305 # except with old shells:
4306 host_os=$*
4307 IFS=$ac_save_IFS
4308 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4311 canonical=$host
4312 configuration=${host_alias-${build_alias-$host}}
4316 ### If you add support for a new configuration, add code to this
4317 ### switch statement to recognize your configuration name and select
4318 ### the appropriate operating system and machine description files.
4320 ### You would hope that you could choose an m/*.h file pretty much
4321 ### based on the machine portion of the configuration name, and an s/*.h
4322 ### file based on the operating system portion. However, it turns out
4323 ### that each m/*.h file is pretty manufacturer-specific - for
4324 ### example mips.h is MIPS
4325 ### So we basically have to have a special case for each
4326 ### configuration name.
4328 ### As far as handling version numbers on operating systems is
4329 ### concerned, make sure things will fail in a fixable way. If
4330 ### /etc/MACHINES doesn't say anything about version numbers, be
4331 ### prepared to handle anything reasonably. If version numbers
4332 ### matter, be sure /etc/MACHINES says something about it.
4334 machine='' opsys='' unported=no
4335 case "${canonical}" in
4337 ## GNU/Linux ports
4338 *-*-linux-gnu*)
4339 opsys=gnu-linux
4340 case ${canonical} in
4341 alpha*) machine=alpha ;;
4342 s390-*) machine=ibms390 ;;
4343 s390x-*) machine=ibms390x ;;
4344 powerpc*) machine=macppc ;;
4345 sparc*) machine=sparc ;;
4346 ia64*) machine=ia64 ;;
4347 m68k*) machine=m68k ;;
4348 x86_64*) machine=amdx86-64 ;;
4349 esac
4352 ## FreeBSD ports
4353 *-*-freebsd* )
4354 opsys=freebsd
4355 case "${canonical}" in
4356 alpha*) machine=alpha ;;
4357 amd64-*|x86_64-*) machine=amdx86-64 ;;
4358 ia64-*) machine=ia64 ;;
4359 i[3456]86-*) machine=intel386 ;;
4360 powerpc-*) machine=macppc ;;
4361 sparc-*) machine=sparc ;;
4362 sparc64-*) machine=sparc ;;
4363 esac
4366 ## FreeBSD kernel + glibc based userland
4367 *-*-kfreebsd*gnu* )
4368 opsys=gnu-kfreebsd
4369 case "${canonical}" in
4370 alpha*) machine=alpha ;;
4371 amd64-*|x86_64-*) machine=amdx86-64 ;;
4372 ia64-*) machine=ia64 ;;
4373 i[3456]86-*) machine=intel386 ;;
4374 powerpc-*) machine=macppc ;;
4375 sparc-*) machine=sparc ;;
4376 sparc64-*) machine=sparc ;;
4377 esac
4380 ## NetBSD ports
4381 *-*-netbsd* )
4382 opsys=netbsd
4383 case "${canonical}" in
4384 alpha*) machine=alpha ;;
4385 x86_64-*) machine=amdx86-64 ;;
4386 i[3456]86-*) machine=intel386 ;;
4387 m68k-*) machine=m68k ;;
4388 powerpc-*) machine=macppc ;;
4389 sparc*-) machine=sparc ;;
4390 vax-*) machine=vax ;;
4391 esac
4394 ## OpenBSD ports
4395 *-*-openbsd* )
4396 opsys=openbsd
4397 case "${canonical}" in
4398 alpha*) machine=alpha ;;
4399 x86_64-*) machine=amdx86-64 ;;
4400 i386-*) machine=intel386 ;;
4401 powerpc-*) machine=macppc ;;
4402 sparc*) machine=sparc ;;
4403 vax-*) machine=vax ;;
4404 esac
4407 ## Apple Darwin / Mac OS X
4408 *-apple-darwin* )
4409 case "${canonical}" in
4410 i[3456]86-* ) machine=intel386 ;;
4411 powerpc-* ) machine=macppc ;;
4412 x86_64-* ) machine=amdx86-64 ;;
4413 * ) unported=yes ;;
4414 esac
4415 opsys=darwin
4416 # Define CPP as follows to make autoconf work correctly.
4417 CPP="${CC-cc} -E -no-cpp-precomp"
4418 # Use fink packages if available.
4419 if test -d /sw/include && test -d /sw/lib; then
4420 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4421 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4422 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4426 ## HP 9000 series 700 and 800, running HP/UX
4427 hppa*-hp-hpux10.2* )
4428 opsys=hpux10-20
4430 hppa*-hp-hpux1[1-9]* )
4431 opsys=hpux11
4432 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4435 ia64*-hp-hpux1[1-9]* )
4436 machine=hp800 opsys=hpux11
4437 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4438 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4439 CANNOT_DUMP=yes
4442 hppa*-*-linux-gnu* )
4443 machine=hp800 opsys=gnu-linux
4446 ## IBM machines
4447 rs6000-ibm-aix4.[23]* )
4448 machine=ibmrs6000 opsys=aix4-2
4450 powerpc-ibm-aix4.[23]* )
4451 machine=ibmrs6000 opsys=aix4-2
4453 rs6000-ibm-aix[56]* )
4454 machine=ibmrs6000 opsys=aix4-2
4456 powerpc-ibm-aix[56]* )
4457 machine=ibmrs6000 opsys=aix4-2
4460 ## Silicon Graphics machines
4461 ## Iris 4D
4462 mips-sgi-irix6.5 )
4463 machine=iris4d opsys=irix6-5
4464 # Without defining _LANGUAGE_C, things get masked out in the headers
4465 # so that, for instance, grepping for `free' in stdlib.h fails and
4466 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4467 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4468 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4471 ## Suns
4472 *-sun-solaris* \
4473 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4474 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4475 case "${canonical}" in
4476 i[3456]86-*-* ) machine=intel386 ;;
4477 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4478 sparc* ) machine=sparc ;;
4479 * ) unported=yes ;;
4480 esac
4481 case "${canonical}" in
4482 *-sunos5.6* | *-solaris2.6* )
4483 opsys=sol2-6
4484 NON_GNU_CPP=/usr/ccs/lib/cpp
4485 RANLIB="ar -ts"
4487 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4488 opsys=sol2-6
4489 emacs_check_sunpro_c=yes
4490 NON_GNU_CPP=/usr/ccs/lib/cpp
4492 *-sunos5* | *-solaris* )
4493 opsys=sol2-10
4494 emacs_check_sunpro_c=yes
4495 NON_GNU_CPP=/usr/ccs/lib/cpp
4497 esac
4498 ## Watch out for a compiler that we know will not work.
4499 case "${canonical}" in
4500 *-solaris* | *-sunos5* )
4501 if [ "x$CC" = x/usr/ucb/cc ]; then
4502 ## /usr/ucb/cc doesn't work;
4503 ## we should find some other compiler that does work.
4504 unset CC
4507 *) ;;
4508 esac
4511 ## Intel 386 machines where we don't care about the manufacturer.
4512 i[3456]86-*-* )
4513 machine=intel386
4514 case "${canonical}" in
4515 *-cygwin ) opsys=cygwin ;;
4516 *-darwin* ) opsys=darwin
4517 CPP="${CC-cc} -E -no-cpp-precomp"
4519 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4520 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4521 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4522 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4523 esac
4527 unported=yes
4529 esac
4531 ### If the code above didn't choose an operating system, just choose
4532 ### an operating system based on the configuration name. You really
4533 ### only want to use this when you have no idea what the right
4534 ### operating system is; if you know what operating systems a machine
4535 ### runs, it's cleaner to make it explicit in the case statement
4536 ### above.
4537 if test x"${opsys}" = x; then
4538 case "${canonical}" in
4539 *-gnu* ) opsys=gnu ;;
4541 unported=yes
4543 esac
4548 if test $unported = yes; then
4549 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4550 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4553 if test -n "$machine"; then
4554 machfile="m/${machine}.h"
4555 else
4556 machfile=
4558 opsysfile="s/${opsys}.h"
4561 #### Choose a compiler.
4562 test -n "$CC" && cc_specified=yes
4564 # Save the value of CFLAGS that the user specified.
4565 SPECIFIED_CFLAGS="$CFLAGS"
4567 ac_ext=c
4568 ac_cpp='$CPP $CPPFLAGS'
4569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 CC=$ac_cv_prog_CC
4601 if test -n "$CC"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603 $as_echo "$CC" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4611 if test -z "$ac_cv_prog_CC"; then
4612 ac_ct_CC=$CC
4613 # Extract the first word of "gcc", so it can be a program name with args.
4614 set dummy gcc; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$ac_ct_CC"; then
4621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_ac_ct_CC="gcc"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4641 if test -n "$ac_ct_CC"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4643 $as_echo "$ac_ct_CC" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4649 if test "x$ac_ct_CC" = x; then
4650 CC=""
4651 else
4652 case $cross_compiling:$ac_tool_warned in
4653 yes:)
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656 ac_tool_warned=yes ;;
4657 esac
4658 CC=$ac_ct_CC
4660 else
4661 CC="$ac_cv_prog_CC"
4664 if test -z "$CC"; then
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}cc; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if test "${ac_cv_prog_CC+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$CC"; then
4674 ac_cv_prog_CC="$CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_CC="${ac_tool_prefix}cc"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4687 done
4688 done
4689 IFS=$as_save_IFS
4693 CC=$ac_cv_prog_CC
4694 if test -n "$CC"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4696 $as_echo "$CC" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 $as_echo "no" >&6; }
4705 if test -z "$CC"; then
4706 # Extract the first word of "cc", so it can be a program name with args.
4707 set dummy cc; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_prog_CC+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715 else
4716 ac_prog_rejected=no
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725 ac_prog_rejected=yes
4726 continue
4728 ac_cv_prog_CC="cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4736 if test $ac_prog_rejected = yes; then
4737 # We found a bogon in the path, so make sure we never use it.
4738 set dummy $ac_cv_prog_CC
4739 shift
4740 if test $# != 0; then
4741 # We chose a different compiler from the bogus one.
4742 # However, it has the same basename, so the bogon will be chosen
4743 # first if we set CC to just the basename; use the full file name.
4744 shift
4745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4750 CC=$ac_cv_prog_CC
4751 if test -n "$CC"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753 $as_echo "$CC" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test -z "$CC"; then
4762 if test -n "$ac_tool_prefix"; then
4763 for ac_prog in cl.exe
4765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4792 CC=$ac_cv_prog_CC
4793 if test -n "$CC"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795 $as_echo "$CC" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4802 test -n "$CC" && break
4803 done
4805 if test -z "$CC"; then
4806 ac_ct_CC=$CC
4807 for ac_prog in cl.exe
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$ac_ct_CC"; then
4817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_ac_ct_CC="$ac_prog"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4837 if test -n "$ac_ct_CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4839 $as_echo "$ac_ct_CC" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 test -n "$ac_ct_CC" && break
4847 done
4849 if test "x$ac_ct_CC" = x; then
4850 CC=""
4851 else
4852 case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858 CC=$ac_ct_CC
4865 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4867 as_fn_error "no acceptable C compiler found in \$PATH
4868 See \`config.log' for more details." "$LINENO" 5; }
4870 # Provide some information about the compiler.
4871 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4872 set X $ac_compile
4873 ac_compiler=$2
4874 for ac_option in --version -v -V -qversion; do
4875 { { ac_try="$ac_compiler $ac_option >&5"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881 $as_echo "$ac_try_echo"; } >&5
4882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4883 ac_status=$?
4884 if test -s conftest.err; then
4885 sed '10a\
4886 ... rest of stderr output deleted ...
4887 10q' conftest.err >conftest.er1
4888 cat conftest.er1 >&5
4890 rm -f conftest.er1 conftest.err
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }
4893 done
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4899 main ()
4903 return 0;
4905 _ACEOF
4906 ac_clean_files_save=$ac_clean_files
4907 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4908 # Try to create an executable without -o first, disregard a.out.
4909 # It will help us diagnose broken compilers, and finding out an intuition
4910 # of exeext.
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4912 $as_echo_n "checking whether the C compiler works... " >&6; }
4913 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4915 # The possible output files:
4916 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4918 ac_rmfiles=
4919 for ac_file in $ac_files
4921 case $ac_file in
4922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4923 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4924 esac
4925 done
4926 rm -f $ac_rmfiles
4928 if { { ac_try="$ac_link_default"
4929 case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932 esac
4933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934 $as_echo "$ac_try_echo"; } >&5
4935 (eval "$ac_link_default") 2>&5
4936 ac_status=$?
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }; then :
4939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4940 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4941 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4942 # so that the user can short-circuit this test for compilers unknown to
4943 # Autoconf.
4944 for ac_file in $ac_files ''
4946 test -f "$ac_file" || continue
4947 case $ac_file in
4948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4950 [ab].out )
4951 # We found the default executable, but exeext='' is most
4952 # certainly right.
4953 break;;
4954 *.* )
4955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4956 then :; else
4957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4959 # We set ac_cv_exeext here because the later test for it is not
4960 # safe: cross compilers may not add the suffix if given an `-o'
4961 # argument, so we may need to know it at that point already.
4962 # Even if this section looks crufty: it has the advantage of
4963 # actually working.
4964 break;;
4966 break;;
4967 esac
4968 done
4969 test "$ac_cv_exeext" = no && ac_cv_exeext=
4971 else
4972 ac_file=''
4974 if test -z "$ac_file"; then :
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 $as_echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4982 { as_fn_set_status 77
4983 as_fn_error "C compiler cannot create executables
4984 See \`config.log' for more details." "$LINENO" 5; }; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4987 $as_echo "yes" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4990 $as_echo_n "checking for C compiler default output file name... " >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4992 $as_echo "$ac_file" >&6; }
4993 ac_exeext=$ac_cv_exeext
4995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4996 ac_clean_files=$ac_clean_files_save
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4998 $as_echo_n "checking for suffix of executables... " >&6; }
4999 if { { ac_try="$ac_link"
5000 case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003 esac
5004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5005 $as_echo "$ac_try_echo"; } >&5
5006 (eval "$ac_link") 2>&5
5007 ac_status=$?
5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }; then :
5010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5012 # work properly (i.e., refer to `conftest.exe'), while it won't with
5013 # `rm'.
5014 for ac_file in conftest.exe conftest conftest.*; do
5015 test -f "$ac_file" || continue
5016 case $ac_file in
5017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5019 break;;
5020 * ) break;;
5021 esac
5022 done
5023 else
5024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5026 as_fn_error "cannot compute suffix of executables: cannot compile and link
5027 See \`config.log' for more details." "$LINENO" 5; }
5029 rm -f conftest conftest$ac_cv_exeext
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5031 $as_echo "$ac_cv_exeext" >&6; }
5033 rm -f conftest.$ac_ext
5034 EXEEXT=$ac_cv_exeext
5035 ac_exeext=$EXEEXT
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5038 #include <stdio.h>
5040 main ()
5042 FILE *f = fopen ("conftest.out", "w");
5043 return ferror (f) || fclose (f) != 0;
5046 return 0;
5048 _ACEOF
5049 ac_clean_files="$ac_clean_files conftest.out"
5050 # Check that the compiler produces executables we can run. If not, either
5051 # the compiler is broken, or we cross compile.
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5053 $as_echo_n "checking whether we are cross compiling... " >&6; }
5054 if test "$cross_compiling" != yes; then
5055 { { ac_try="$ac_link"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5061 $as_echo "$ac_try_echo"; } >&5
5062 (eval "$ac_link") 2>&5
5063 ac_status=$?
5064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5065 test $ac_status = 0; }
5066 if { ac_try='./conftest$ac_cv_exeext'
5067 { { case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_try") 2>&5
5074 ac_status=$?
5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076 test $ac_status = 0; }; }; then
5077 cross_compiling=no
5078 else
5079 if test "$cross_compiling" = maybe; then
5080 cross_compiling=yes
5081 else
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error "cannot run C compiled programs.
5085 If you meant to cross compile, use \`--host'.
5086 See \`config.log' for more details." "$LINENO" 5; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5091 $as_echo "$cross_compiling" >&6; }
5093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5094 ac_clean_files=$ac_clean_files_save
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5096 $as_echo_n "checking for suffix of object files... " >&6; }
5097 if test "${ac_cv_objext+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5104 main ()
5108 return 0;
5110 _ACEOF
5111 rm -f conftest.o conftest.obj
5112 if { { ac_try="$ac_compile"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5118 $as_echo "$ac_try_echo"; } >&5
5119 (eval "$ac_compile") 2>&5
5120 ac_status=$?
5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5122 test $ac_status = 0; }; then :
5123 for ac_file in conftest.o conftest.obj conftest.*; do
5124 test -f "$ac_file" || continue;
5125 case $ac_file in
5126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5128 break;;
5129 esac
5130 done
5131 else
5132 $as_echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5137 as_fn_error "cannot compute suffix of object files: cannot compile
5138 See \`config.log' for more details." "$LINENO" 5; }
5140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5143 $as_echo "$ac_cv_objext" >&6; }
5144 OBJEXT=$ac_cv_objext
5145 ac_objext=$OBJEXT
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5148 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5155 main ()
5157 #ifndef __GNUC__
5158 choke me
5159 #endif
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_compiler_gnu=yes
5167 else
5168 ac_compiler_gnu=no
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5176 if test $ac_compiler_gnu = yes; then
5177 GCC=yes
5178 else
5179 GCC=
5181 ac_test_CFLAGS=${CFLAGS+set}
5182 ac_save_CFLAGS=$CFLAGS
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5185 if test "${ac_cv_prog_cc_g+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 ac_save_c_werror_flag=$ac_c_werror_flag
5189 ac_c_werror_flag=yes
5190 ac_cv_prog_cc_g=no
5191 CFLAGS="-g"
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5196 main ()
5200 return 0;
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 ac_cv_prog_cc_g=yes
5205 else
5206 CFLAGS=""
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5211 main ()
5215 return 0;
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"; then :
5220 else
5221 ac_c_werror_flag=$ac_save_c_werror_flag
5222 CFLAGS="-g"
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5227 main ()
5231 return 0;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235 ac_cv_prog_cc_g=yes
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 ac_c_werror_flag=$ac_save_c_werror_flag
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5245 $as_echo "$ac_cv_prog_cc_g" >&6; }
5246 if test "$ac_test_CFLAGS" = set; then
5247 CFLAGS=$ac_save_CFLAGS
5248 elif test $ac_cv_prog_cc_g = yes; then
5249 if test "$GCC" = yes; then
5250 CFLAGS="-g -O2"
5251 else
5252 CFLAGS="-g"
5254 else
5255 if test "$GCC" = yes; then
5256 CFLAGS="-O2"
5257 else
5258 CFLAGS=
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5263 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 ac_cv_prog_cc_c89=no
5267 ac_save_CC=$CC
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include <stdarg.h>
5271 #include <stdio.h>
5272 #include <sys/types.h>
5273 #include <sys/stat.h>
5274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5275 struct buf { int x; };
5276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5277 static char *e (p, i)
5278 char **p;
5279 int i;
5281 return p[i];
5283 static char *f (char * (*g) (char **, int), char **p, ...)
5285 char *s;
5286 va_list v;
5287 va_start (v,p);
5288 s = g (p, va_arg (v,int));
5289 va_end (v);
5290 return s;
5293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5294 function prototypes and stuff, but not '\xHH' hex character constants.
5295 These don't provoke an error unfortunately, instead are silently treated
5296 as 'x'. The following induces an error, until -std is added to get
5297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5298 array size at least. It's necessary to write '\x00'==0 to get something
5299 that's true only with -std. */
5300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5303 inside strings and character constants. */
5304 #define FOO(x) 'x'
5305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5307 int test (int i, double x);
5308 struct s1 {int (*f) (int a);};
5309 struct s2 {int (*f) (double a);};
5310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5311 int argc;
5312 char **argv;
5314 main ()
5316 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5318 return 0;
5320 _ACEOF
5321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5324 CC="$ac_save_CC $ac_arg"
5325 if ac_fn_c_try_compile "$LINENO"; then :
5326 ac_cv_prog_cc_c89=$ac_arg
5328 rm -f core conftest.err conftest.$ac_objext
5329 test "x$ac_cv_prog_cc_c89" != "xno" && break
5330 done
5331 rm -f conftest.$ac_ext
5332 CC=$ac_save_CC
5335 # AC_CACHE_VAL
5336 case "x$ac_cv_prog_cc_c89" in
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5339 $as_echo "none needed" >&6; } ;;
5340 xno)
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5342 $as_echo "unsupported" >&6; } ;;
5344 CC="$CC $ac_cv_prog_cc_c89"
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5346 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5347 esac
5348 if test "x$ac_cv_prog_cc_c89" != xno; then :
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 DEPDIR="${am__leading_dot}deps"
5359 ac_config_commands="$ac_config_commands depfiles"
5362 am_make=${MAKE-make}
5363 cat > confinc << 'END'
5364 am__doit:
5365 @echo this is the am__doit target
5366 .PHONY: am__doit
5368 # If we don't find an include directive, just comment out the code.
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5370 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5371 am__include="#"
5372 am__quote=
5373 _am_result=none
5374 # First try GNU make style include.
5375 echo "include confinc" > confmf
5376 # Ignore all kinds of additional output from `make'.
5377 case `$am_make -s -f confmf 2> /dev/null` in #(
5378 *the\ am__doit\ target*)
5379 am__include=include
5380 am__quote=
5381 _am_result=GNU
5383 esac
5384 # Now try BSD make style include.
5385 if test "$am__include" = "#"; then
5386 echo '.include "confinc"' > confmf
5387 case `$am_make -s -f confmf 2> /dev/null` in #(
5388 *the\ am__doit\ target*)
5389 am__include=.include
5390 am__quote="\""
5391 _am_result=BSD
5393 esac
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5398 $as_echo "$_am_result" >&6; }
5399 rm -f confinc confmf
5401 # Check whether --enable-dependency-tracking was given.
5402 if test "${enable_dependency_tracking+set}" = set; then :
5403 enableval=$enable_dependency_tracking;
5406 if test "x$enable_dependency_tracking" != xno; then
5407 am_depcomp="$ac_aux_dir/depcomp"
5408 AMDEPBACKSLASH='\'
5410 if test "x$enable_dependency_tracking" != xno; then
5411 AMDEP_TRUE=
5412 AMDEP_FALSE='#'
5413 else
5414 AMDEP_TRUE='#'
5415 AMDEP_FALSE=
5420 depcc="$CC" am_compiler_list=
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5423 $as_echo_n "checking dependency style of $depcc... " >&6; }
5424 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5428 # We make a subdir and do the tests there. Otherwise we can end up
5429 # making bogus files that we don't know about and never remove. For
5430 # instance it was reported that on HP-UX the gcc test will end up
5431 # making a dummy file named `D' -- because `-MD' means `put the output
5432 # in D'.
5433 mkdir conftest.dir
5434 # Copy depcomp to subdir because otherwise we won't find it if we're
5435 # using a relative directory.
5436 cp "$am_depcomp" conftest.dir
5437 cd conftest.dir
5438 # We will build objects and dependencies in a subdirectory because
5439 # it helps to detect inapplicable dependency modes. For instance
5440 # both Tru64's cc and ICC support -MD to output dependencies as a
5441 # side effect of compilation, but ICC will put the dependencies in
5442 # the current directory while Tru64 will put them in the object
5443 # directory.
5444 mkdir sub
5446 am_cv_CC_dependencies_compiler_type=none
5447 if test "$am_compiler_list" = ""; then
5448 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5450 am__universal=false
5451 case " $depcc " in #(
5452 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5453 esac
5455 for depmode in $am_compiler_list; do
5456 # Setup a source with many dependencies, because some compilers
5457 # like to wrap large dependency lists on column 80 (with \), and
5458 # we should not choose a depcomp mode which is confused by this.
5460 # We need to recreate these files for each test, as the compiler may
5461 # overwrite some of them when testing with obscure command lines.
5462 # This happens at least with the AIX C compiler.
5463 : > sub/conftest.c
5464 for i in 1 2 3 4 5 6; do
5465 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5466 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5467 # Solaris 8's {/usr,}/bin/sh.
5468 touch sub/conftst$i.h
5469 done
5470 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5473 # mode. It turns out that the SunPro C++ compiler does not properly
5474 # handle `-M -o', and we need to detect this. Also, some Intel
5475 # versions had trouble with output in subdirs
5476 am__obj=sub/conftest.${OBJEXT-o}
5477 am__minus_obj="-o $am__obj"
5478 case $depmode in
5479 gcc)
5480 # This depmode causes a compiler race in universal mode.
5481 test "$am__universal" = false || continue
5483 nosideeffect)
5484 # after this tag, mechanisms are not by side-effect, so they'll
5485 # only be used when explicitly requested
5486 if test "x$enable_dependency_tracking" = xyes; then
5487 continue
5488 else
5489 break
5492 msvisualcpp | msvcmsys)
5493 # This compiler won't grok `-c -o', but also, the minuso test has
5494 # not run yet. These depmodes are late enough in the game, and
5495 # so weak that their functioning should not be impacted.
5496 am__obj=conftest.${OBJEXT-o}
5497 am__minus_obj=
5499 none) break ;;
5500 esac
5501 if depmode=$depmode \
5502 source=sub/conftest.c object=$am__obj \
5503 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5504 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5505 >/dev/null 2>conftest.err &&
5506 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5507 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5508 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5509 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5510 # icc doesn't choke on unknown options, it will just issue warnings
5511 # or remarks (even with -Werror). So we grep stderr for any message
5512 # that says an option was ignored or not supported.
5513 # When given -MP, icc 7.0 and 7.1 complain thusly:
5514 # icc: Command line warning: ignoring option '-M'; no argument required
5515 # The diagnosis changed in icc 8.0:
5516 # icc: Command line remark: option '-MP' not supported
5517 if (grep 'ignoring option' conftest.err ||
5518 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5519 am_cv_CC_dependencies_compiler_type=$depmode
5520 break
5523 done
5525 cd ..
5526 rm -rf conftest.dir
5527 else
5528 am_cv_CC_dependencies_compiler_type=none
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5533 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5534 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5537 test "x$enable_dependency_tracking" != xno \
5538 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5539 am__fastdepCC_TRUE=
5540 am__fastdepCC_FALSE='#'
5541 else
5542 am__fastdepCC_TRUE='#'
5543 am__fastdepCC_FALSE=
5547 if test "x$CC" != xcc; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5549 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5552 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5554 set dummy $CC; ac_cc=`$as_echo "$2" |
5555 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5556 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5563 main ()
5567 return 0;
5569 _ACEOF
5570 # Make sure it works both with $CC and with simple cc.
5571 # We do the test twice because some compilers refuse to overwrite an
5572 # existing .o file with -o, though they will create one.
5573 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5574 rm -f conftest2.*
5575 if { { case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5580 $as_echo "$ac_try_echo"; } >&5
5581 (eval "$ac_try") 2>&5
5582 ac_status=$?
5583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5584 test $ac_status = 0; } &&
5585 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5590 $as_echo "$ac_try_echo"; } >&5
5591 (eval "$ac_try") 2>&5
5592 ac_status=$?
5593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5594 test $ac_status = 0; };
5595 then
5596 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5597 if test "x$CC" != xcc; then
5598 # Test first that cc exists at all.
5599 if { ac_try='cc -c conftest.$ac_ext >&5'
5600 { { case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603 esac
5604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5605 $as_echo "$ac_try_echo"; } >&5
5606 (eval "$ac_try") 2>&5
5607 ac_status=$?
5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5609 test $ac_status = 0; }; }; then
5610 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5611 rm -f conftest2.*
5612 if { { case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5617 $as_echo "$ac_try_echo"; } >&5
5618 (eval "$ac_try") 2>&5
5619 ac_status=$?
5620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5621 test $ac_status = 0; } &&
5622 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5627 $as_echo "$ac_try_echo"; } >&5
5628 (eval "$ac_try") 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; };
5632 then
5633 # cc works too.
5635 else
5636 # cc exists but doesn't like -o.
5637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5641 else
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5644 rm -f core conftest*
5647 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5654 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5658 # FIXME: we rely on the cache variable name because
5659 # there is no other way.
5660 set dummy $CC
5661 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5662 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5663 if test "$am_t" != yes; then
5664 # Losing compiler, so override with the script.
5665 # FIXME: It is wrong to rewrite CC.
5666 # But if we don't then we get into trouble of one sort or another.
5667 # A longer-term fix would be to have automake use am__CC in this case,
5668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5669 CC="$am_aux_dir/compile $CC"
5674 # Initialize gnulib right after verifying that the C compiler works.
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$RANLIB"; then
5684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5703 RANLIB=$ac_cv_prog_RANLIB
5704 if test -n "$RANLIB"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5706 $as_echo "$RANLIB" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5714 if test -z "$ac_cv_prog_RANLIB"; then
5715 ac_ct_RANLIB=$RANLIB
5716 # Extract the first word of "ranlib", so it can be a program name with args.
5717 set dummy ranlib; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$ac_ct_RANLIB"; then
5724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_ac_ct_RANLIB="ranlib"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5744 if test -n "$ac_ct_RANLIB"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5746 $as_echo "$ac_ct_RANLIB" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5752 if test "x$ac_ct_RANLIB" = x; then
5753 RANLIB=":"
5754 else
5755 case $cross_compiling:$ac_tool_warned in
5756 yes:)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761 RANLIB=$ac_ct_RANLIB
5763 else
5764 RANLIB="$ac_cv_prog_RANLIB"
5768 ac_ext=c
5769 ac_cpp='$CPP $CPPFLAGS'
5770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5774 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5775 # On Suns, sometimes $CPP names a directory.
5776 if test -n "$CPP" && test -d "$CPP"; then
5777 CPP=
5779 if test -z "$CPP"; then
5780 if test "${ac_cv_prog_CPP+set}" = set; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 # Double quotes because CPP needs to be expanded
5784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5786 ac_preproc_ok=false
5787 for ac_c_preproc_warn_flag in '' yes
5789 # Use a header file that comes with gcc, so configuring glibc
5790 # with a fresh cross-compiler works.
5791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5792 # <limits.h> exists even on freestanding compilers.
5793 # On the NeXT, cc -E runs the code through the compiler's parser,
5794 # not just through cpp. "Syntax error" is here to catch this case.
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #ifdef __STDC__
5798 # include <limits.h>
5799 #else
5800 # include <assert.h>
5801 #endif
5802 Syntax error
5803 _ACEOF
5804 if ac_fn_c_try_cpp "$LINENO"; then :
5806 else
5807 # Broken: fails on valid input.
5808 continue
5810 rm -f conftest.err conftest.$ac_ext
5812 # OK, works on sane cases. Now check whether nonexistent headers
5813 # can be detected and how.
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <ac_nonexistent.h>
5817 _ACEOF
5818 if ac_fn_c_try_cpp "$LINENO"; then :
5819 # Broken: success on invalid input.
5820 continue
5821 else
5822 # Passes both tests.
5823 ac_preproc_ok=:
5824 break
5826 rm -f conftest.err conftest.$ac_ext
5828 done
5829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5830 rm -f conftest.err conftest.$ac_ext
5831 if $ac_preproc_ok; then :
5832 break
5835 done
5836 ac_cv_prog_CPP=$CPP
5839 CPP=$ac_cv_prog_CPP
5840 else
5841 ac_cv_prog_CPP=$CPP
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5844 $as_echo "$CPP" >&6; }
5845 ac_preproc_ok=false
5846 for ac_c_preproc_warn_flag in '' yes
5848 # Use a header file that comes with gcc, so configuring glibc
5849 # with a fresh cross-compiler works.
5850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5851 # <limits.h> exists even on freestanding compilers.
5852 # On the NeXT, cc -E runs the code through the compiler's parser,
5853 # not just through cpp. "Syntax error" is here to catch this case.
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #ifdef __STDC__
5857 # include <limits.h>
5858 #else
5859 # include <assert.h>
5860 #endif
5861 Syntax error
5862 _ACEOF
5863 if ac_fn_c_try_cpp "$LINENO"; then :
5865 else
5866 # Broken: fails on valid input.
5867 continue
5869 rm -f conftest.err conftest.$ac_ext
5871 # OK, works on sane cases. Now check whether nonexistent headers
5872 # can be detected and how.
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #include <ac_nonexistent.h>
5876 _ACEOF
5877 if ac_fn_c_try_cpp "$LINENO"; then :
5878 # Broken: success on invalid input.
5879 continue
5880 else
5881 # Passes both tests.
5882 ac_preproc_ok=:
5883 break
5885 rm -f conftest.err conftest.$ac_ext
5887 done
5888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5889 rm -f conftest.err conftest.$ac_ext
5890 if $ac_preproc_ok; then :
5892 else
5893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5895 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5896 See \`config.log' for more details." "$LINENO" 5; }
5899 ac_ext=c
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5907 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5908 if test "${ac_cv_path_GREP+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -z "$GREP"; then
5912 ac_path_GREP_found=false
5913 # Loop through the user's path and test for each of PROGNAME-LIST
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_prog in grep ggrep; do
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5922 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5923 # Check for GNU ac_path_GREP and select it if it is found.
5924 # Check for GNU $ac_path_GREP
5925 case `"$ac_path_GREP" --version 2>&1` in
5926 *GNU*)
5927 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5929 ac_count=0
5930 $as_echo_n 0123456789 >"conftest.in"
5931 while :
5933 cat "conftest.in" "conftest.in" >"conftest.tmp"
5934 mv "conftest.tmp" "conftest.in"
5935 cp "conftest.in" "conftest.nl"
5936 $as_echo 'GREP' >> "conftest.nl"
5937 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5939 as_fn_arith $ac_count + 1 && ac_count=$as_val
5940 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5941 # Best one so far, save it but keep looking for a better one
5942 ac_cv_path_GREP="$ac_path_GREP"
5943 ac_path_GREP_max=$ac_count
5945 # 10*(2^10) chars as input seems more than enough
5946 test $ac_count -gt 10 && break
5947 done
5948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5949 esac
5951 $ac_path_GREP_found && break 3
5952 done
5953 done
5954 done
5955 IFS=$as_save_IFS
5956 if test -z "$ac_cv_path_GREP"; then
5957 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5959 else
5960 ac_cv_path_GREP=$GREP
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5965 $as_echo "$ac_cv_path_GREP" >&6; }
5966 GREP="$ac_cv_path_GREP"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5970 $as_echo_n "checking for egrep... " >&6; }
5971 if test "${ac_cv_path_EGREP+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5975 then ac_cv_path_EGREP="$GREP -E"
5976 else
5977 if test -z "$EGREP"; then
5978 ac_path_EGREP_found=false
5979 # Loop through the user's path and test for each of PROGNAME-LIST
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_prog in egrep; do
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5988 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5989 # Check for GNU ac_path_EGREP and select it if it is found.
5990 # Check for GNU $ac_path_EGREP
5991 case `"$ac_path_EGREP" --version 2>&1` in
5992 *GNU*)
5993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5995 ac_count=0
5996 $as_echo_n 0123456789 >"conftest.in"
5997 while :
5999 cat "conftest.in" "conftest.in" >"conftest.tmp"
6000 mv "conftest.tmp" "conftest.in"
6001 cp "conftest.in" "conftest.nl"
6002 $as_echo 'EGREP' >> "conftest.nl"
6003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6005 as_fn_arith $ac_count + 1 && ac_count=$as_val
6006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6007 # Best one so far, save it but keep looking for a better one
6008 ac_cv_path_EGREP="$ac_path_EGREP"
6009 ac_path_EGREP_max=$ac_count
6011 # 10*(2^10) chars as input seems more than enough
6012 test $ac_count -gt 10 && break
6013 done
6014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6015 esac
6017 $ac_path_EGREP_found && break 3
6018 done
6019 done
6020 done
6021 IFS=$as_save_IFS
6022 if test -z "$ac_cv_path_EGREP"; then
6023 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6025 else
6026 ac_cv_path_EGREP=$EGREP
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6032 $as_echo "$ac_cv_path_EGREP" >&6; }
6033 EGREP="$ac_cv_path_EGREP"
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6037 $as_echo_n "checking for ANSI C header files... " >&6; }
6038 if test "${ac_cv_header_stdc+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <stdlib.h>
6044 #include <stdarg.h>
6045 #include <string.h>
6046 #include <float.h>
6049 main ()
6053 return 0;
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 ac_cv_header_stdc=yes
6058 else
6059 ac_cv_header_stdc=no
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 if test $ac_cv_header_stdc = yes; then
6064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <string.h>
6069 _ACEOF
6070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6071 $EGREP "memchr" >/dev/null 2>&1; then :
6073 else
6074 ac_cv_header_stdc=no
6076 rm -f conftest*
6080 if test $ac_cv_header_stdc = yes; then
6081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <stdlib.h>
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "free" >/dev/null 2>&1; then :
6090 else
6091 ac_cv_header_stdc=no
6093 rm -f conftest*
6097 if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6099 if test "$cross_compiling" = yes; then :
6101 else
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104 #include <ctype.h>
6105 #include <stdlib.h>
6106 #if ((' ' & 0x0FF) == 0x020)
6107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6109 #else
6110 # define ISLOWER(c) \
6111 (('a' <= (c) && (c) <= 'i') \
6112 || ('j' <= (c) && (c) <= 'r') \
6113 || ('s' <= (c) && (c) <= 'z'))
6114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6115 #endif
6117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6119 main ()
6121 int i;
6122 for (i = 0; i < 256; i++)
6123 if (XOR (islower (i), ISLOWER (i))
6124 || toupper (i) != TOUPPER (i))
6125 return 2;
6126 return 0;
6128 _ACEOF
6129 if ac_fn_c_try_run "$LINENO"; then :
6131 else
6132 ac_cv_header_stdc=no
6134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6141 $as_echo "$ac_cv_header_stdc" >&6; }
6142 if test $ac_cv_header_stdc = yes; then
6144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6148 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6149 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6150 inttypes.h stdint.h unistd.h
6151 do :
6152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6155 eval as_val=\$$as_ac_Header
6156 if test "x$as_val" = x""yes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6159 _ACEOF
6163 done
6169 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6170 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6171 MINIX=yes
6172 else
6173 MINIX=
6177 if test "$MINIX" = yes; then
6179 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6182 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6185 $as_echo "#define _MINIX 1" >>confdefs.h
6189 case "$host_os" in
6190 hpux*)
6192 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6195 esac
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6199 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6200 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6206 # define __EXTENSIONS__ 1
6207 $ac_includes_default
6209 main ()
6213 return 0;
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217 ac_cv_safe_to_define___extensions__=yes
6218 else
6219 ac_cv_safe_to_define___extensions__=no
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6224 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6225 test $ac_cv_safe_to_define___extensions__ = yes &&
6226 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6228 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6230 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6232 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6234 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6243 case $ac_cv_prog_cc_stdc in #(
6244 no) :
6245 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6246 *) :
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6248 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6249 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 ac_cv_prog_cc_c99=no
6253 ac_save_CC=$CC
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #include <stdarg.h>
6257 #include <stdbool.h>
6258 #include <stdlib.h>
6259 #include <wchar.h>
6260 #include <stdio.h>
6262 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6263 #define debug(...) fprintf (stderr, __VA_ARGS__)
6264 #define showlist(...) puts (#__VA_ARGS__)
6265 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6266 static void
6267 test_varargs_macros (void)
6269 int x = 1234;
6270 int y = 5678;
6271 debug ("Flag");
6272 debug ("X = %d\n", x);
6273 showlist (The first, second, and third items.);
6274 report (x>y, "x is %d but y is %d", x, y);
6277 // Check long long types.
6278 #define BIG64 18446744073709551615ull
6279 #define BIG32 4294967295ul
6280 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6281 #if !BIG_OK
6282 your preprocessor is broken;
6283 #endif
6284 #if BIG_OK
6285 #else
6286 your preprocessor is broken;
6287 #endif
6288 static long long int bignum = -9223372036854775807LL;
6289 static unsigned long long int ubignum = BIG64;
6291 struct incomplete_array
6293 int datasize;
6294 double data[];
6297 struct named_init {
6298 int number;
6299 const wchar_t *name;
6300 double average;
6303 typedef const char *ccp;
6305 static inline int
6306 test_restrict (ccp restrict text)
6308 // See if C++-style comments work.
6309 // Iterate through items via the restricted pointer.
6310 // Also check for declarations in for loops.
6311 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6312 continue;
6313 return 0;
6316 // Check varargs and va_copy.
6317 static void
6318 test_varargs (const char *format, ...)
6320 va_list args;
6321 va_start (args, format);
6322 va_list args_copy;
6323 va_copy (args_copy, args);
6325 const char *str;
6326 int number;
6327 float fnumber;
6329 while (*format)
6331 switch (*format++)
6333 case 's': // string
6334 str = va_arg (args_copy, const char *);
6335 break;
6336 case 'd': // int
6337 number = va_arg (args_copy, int);
6338 break;
6339 case 'f': // float
6340 fnumber = va_arg (args_copy, double);
6341 break;
6342 default:
6343 break;
6346 va_end (args_copy);
6347 va_end (args);
6351 main ()
6354 // Check bool.
6355 _Bool success = false;
6357 // Check restrict.
6358 if (test_restrict ("String literal") == 0)
6359 success = true;
6360 char *restrict newvar = "Another string";
6362 // Check varargs.
6363 test_varargs ("s, d' f .", "string", 65, 34.234);
6364 test_varargs_macros ();
6366 // Check flexible array members.
6367 struct incomplete_array *ia =
6368 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6369 ia->datasize = 10;
6370 for (int i = 0; i < ia->datasize; ++i)
6371 ia->data[i] = i * 1.234;
6373 // Check named initializers.
6374 struct named_init ni = {
6375 .number = 34,
6376 .name = L"Test wide string",
6377 .average = 543.34343,
6380 ni.number = 58;
6382 int dynamic_array[ni.number];
6383 dynamic_array[ni.number - 1] = 543;
6385 // work around unused variable warnings
6386 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6387 || dynamic_array[ni.number - 1] != 543);
6390 return 0;
6392 _ACEOF
6393 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6395 CC="$ac_save_CC $ac_arg"
6396 if ac_fn_c_try_compile "$LINENO"; then :
6397 ac_cv_prog_cc_c99=$ac_arg
6399 rm -f core conftest.err conftest.$ac_objext
6400 test "x$ac_cv_prog_cc_c99" != "xno" && break
6401 done
6402 rm -f conftest.$ac_ext
6403 CC=$ac_save_CC
6406 # AC_CACHE_VAL
6407 case "x$ac_cv_prog_cc_c99" in
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6410 $as_echo "none needed" >&6; } ;;
6411 xno)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6413 $as_echo "unsupported" >&6; } ;;
6415 CC="$CC $ac_cv_prog_cc_c99"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6417 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6418 esac
6419 if test "x$ac_cv_prog_cc_c99" != xno; then :
6420 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6423 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6424 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 ac_cv_prog_cc_c89=no
6428 ac_save_CC=$CC
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 #include <stdarg.h>
6432 #include <stdio.h>
6433 #include <sys/types.h>
6434 #include <sys/stat.h>
6435 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6436 struct buf { int x; };
6437 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6438 static char *e (p, i)
6439 char **p;
6440 int i;
6442 return p[i];
6444 static char *f (char * (*g) (char **, int), char **p, ...)
6446 char *s;
6447 va_list v;
6448 va_start (v,p);
6449 s = g (p, va_arg (v,int));
6450 va_end (v);
6451 return s;
6454 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6455 function prototypes and stuff, but not '\xHH' hex character constants.
6456 These don't provoke an error unfortunately, instead are silently treated
6457 as 'x'. The following induces an error, until -std is added to get
6458 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6459 array size at least. It's necessary to write '\x00'==0 to get something
6460 that's true only with -std. */
6461 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6463 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6464 inside strings and character constants. */
6465 #define FOO(x) 'x'
6466 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6468 int test (int i, double x);
6469 struct s1 {int (*f) (int a);};
6470 struct s2 {int (*f) (double a);};
6471 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6472 int argc;
6473 char **argv;
6475 main ()
6477 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6479 return 0;
6481 _ACEOF
6482 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6483 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6485 CC="$ac_save_CC $ac_arg"
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 ac_cv_prog_cc_c89=$ac_arg
6489 rm -f core conftest.err conftest.$ac_objext
6490 test "x$ac_cv_prog_cc_c89" != "xno" && break
6491 done
6492 rm -f conftest.$ac_ext
6493 CC=$ac_save_CC
6496 # AC_CACHE_VAL
6497 case "x$ac_cv_prog_cc_c89" in
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6500 $as_echo "none needed" >&6; } ;;
6501 xno)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6503 $as_echo "unsupported" >&6; } ;;
6505 CC="$CC $ac_cv_prog_cc_c89"
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6507 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6508 esac
6509 if test "x$ac_cv_prog_cc_c89" != xno; then :
6510 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6511 else
6512 ac_cv_prog_cc_stdc=no
6517 esac
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6519 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6520 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6524 case $ac_cv_prog_cc_stdc in #(
6525 no) :
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6527 $as_echo "unsupported" >&6; } ;; #(
6528 '') :
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6530 $as_echo "none needed" >&6; } ;; #(
6531 *) :
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6533 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6534 esac
6538 # Code from module allocator:
6539 # Code from module arg-nonnull:
6540 # Code from module c++defs:
6541 # Code from module careadlinkat:
6542 # Code from module crypto/md5:
6543 # Code from module crypto/sha1:
6544 # Code from module dosname:
6545 # Code from module dtoastr:
6546 # Code from module extensions:
6548 # Code from module filemode:
6549 # Code from module getloadavg:
6550 # Code from module getopt-gnu:
6551 # Code from module getopt-posix:
6552 # Code from module gettext-h:
6553 # Code from module ignore-value:
6554 # Code from module include_next:
6555 # Code from module intprops:
6556 # Code from module inttypes-incomplete:
6557 # Code from module lstat:
6558 # Code from module mktime:
6559 # Code from module multiarch:
6560 # Code from module readlink:
6561 # Code from module socklen:
6562 # Code from module ssize_t:
6563 # Code from module stat:
6564 # Code from module stdarg:
6566 # Code from module stdbool:
6567 # Code from module stddef:
6568 # Code from module stdint:
6569 # Code from module stdio:
6570 # Code from module stdlib:
6571 # Code from module strftime:
6572 # Code from module strtoull:
6573 # Code from module strtoumax:
6574 # Code from module symlink:
6575 # Code from module sys_stat:
6576 # Code from module time:
6577 # Code from module time_r:
6578 # Code from module unistd:
6579 # Code from module verify:
6580 # Code from module warn-on-use:
6583 # On Suns, sometimes $CPP names a directory.
6584 if test -n "$CPP" && test -d "$CPP"; then
6585 CPP=
6588 ## If not using gcc, and on Solaris, and no CPP specified, see if
6589 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6590 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6591 test x"$CPP" = x; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6593 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6594 if test "${emacs_cv_sunpro_c+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6601 main ()
6603 #ifndef __SUNPRO_C
6604 fail;
6605 #endif
6608 return 0;
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 emacs_cv_sunpro_c=yes
6613 else
6614 emacs_cv_sunpro_c=no
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6621 $as_echo "$emacs_cv_sunpro_c" >&6; }
6623 if test x"$emacs_cv_sunpro_c" = xyes; then
6624 NON_GNU_CPP="$CC -E -Xs"
6628 #### Some systems specify a CPP to use unless we are using GCC.
6629 #### Now that we know whether we are using GCC, we can decide whether
6630 #### to use that one.
6631 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6632 then
6633 CPP="$NON_GNU_CPP"
6636 #### Some systems specify a CC to use unless we are using GCC.
6637 #### Now that we know whether we are using GCC, we can decide whether
6638 #### to use that one.
6639 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6640 test x$cc_specified != xyes
6641 then
6642 CC="$NON_GNU_CC"
6645 if test x$GCC = xyes; then
6646 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6647 else
6648 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6651 ### Use -Wdeclaration-after-statement if the compiler supports it
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6653 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6654 SAVE_CFLAGS="$CFLAGS"
6655 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6660 main ()
6664 return 0;
6666 _ACEOF
6667 if ac_fn_c_try_compile "$LINENO"; then :
6668 has_option=yes
6669 else
6670 has_option=no
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 if test $has_option = yes; then
6674 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6677 $as_echo "$has_option" >&6; }
6678 CFLAGS="$SAVE_CFLAGS"
6679 unset has_option
6680 unset SAVE_CFLAGS
6682 ### Use -Wold-style-definition if the compiler supports it
6683 # This can be removed when conversion to standard C is finished.
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6685 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6686 SAVE_CFLAGS="$CFLAGS"
6687 CFLAGS="$CFLAGS -Wold-style-definition"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6692 main ()
6696 return 0;
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700 has_option=yes
6701 else
6702 has_option=no
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 if test $has_option = yes; then
6706 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6709 $as_echo "$has_option" >&6; }
6710 CFLAGS="$SAVE_CFLAGS"
6711 unset has_option
6712 unset SAVE_CFLAGS
6714 ### Use -Wimplicit-function-declaration if the compiler supports it
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6716 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6717 SAVE_CFLAGS="$CFLAGS"
6718 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6723 main ()
6727 return 0;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 has_option=yes
6732 else
6733 has_option=no
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 if test $has_option = yes; then
6737 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6740 $as_echo "$has_option" >&6; }
6741 CFLAGS="$SAVE_CFLAGS"
6742 unset has_option
6743 unset SAVE_CFLAGS
6748 #### Some other nice autoconf tests.
6750 ac_ext=c
6751 ac_cpp='$CPP $CPPFLAGS'
6752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6756 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6757 # On Suns, sometimes $CPP names a directory.
6758 if test -n "$CPP" && test -d "$CPP"; then
6759 CPP=
6761 if test -z "$CPP"; then
6762 if test "${ac_cv_prog_CPP+set}" = set; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 # Double quotes because CPP needs to be expanded
6766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6768 ac_preproc_ok=false
6769 for ac_c_preproc_warn_flag in '' yes
6771 # Use a header file that comes with gcc, so configuring glibc
6772 # with a fresh cross-compiler works.
6773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6774 # <limits.h> exists even on freestanding compilers.
6775 # On the NeXT, cc -E runs the code through the compiler's parser,
6776 # not just through cpp. "Syntax error" is here to catch this case.
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #ifdef __STDC__
6780 # include <limits.h>
6781 #else
6782 # include <assert.h>
6783 #endif
6784 Syntax error
6785 _ACEOF
6786 if ac_fn_c_try_cpp "$LINENO"; then :
6788 else
6789 # Broken: fails on valid input.
6790 continue
6792 rm -f conftest.err conftest.$ac_ext
6794 # OK, works on sane cases. Now check whether nonexistent headers
6795 # can be detected and how.
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 #include <ac_nonexistent.h>
6799 _ACEOF
6800 if ac_fn_c_try_cpp "$LINENO"; then :
6801 # Broken: success on invalid input.
6802 continue
6803 else
6804 # Passes both tests.
6805 ac_preproc_ok=:
6806 break
6808 rm -f conftest.err conftest.$ac_ext
6810 done
6811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6812 rm -f conftest.err conftest.$ac_ext
6813 if $ac_preproc_ok; then :
6814 break
6817 done
6818 ac_cv_prog_CPP=$CPP
6821 CPP=$ac_cv_prog_CPP
6822 else
6823 ac_cv_prog_CPP=$CPP
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6826 $as_echo "$CPP" >&6; }
6827 ac_preproc_ok=false
6828 for ac_c_preproc_warn_flag in '' yes
6830 # Use a header file that comes with gcc, so configuring glibc
6831 # with a fresh cross-compiler works.
6832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 # <limits.h> exists even on freestanding compilers.
6834 # On the NeXT, cc -E runs the code through the compiler's parser,
6835 # not just through cpp. "Syntax error" is here to catch this case.
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843 Syntax error
6844 _ACEOF
6845 if ac_fn_c_try_cpp "$LINENO"; then :
6847 else
6848 # Broken: fails on valid input.
6849 continue
6851 rm -f conftest.err conftest.$ac_ext
6853 # OK, works on sane cases. Now check whether nonexistent headers
6854 # can be detected and how.
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <ac_nonexistent.h>
6858 _ACEOF
6859 if ac_fn_c_try_cpp "$LINENO"; then :
6860 # Broken: success on invalid input.
6861 continue
6862 else
6863 # Passes both tests.
6864 ac_preproc_ok=:
6865 break
6867 rm -f conftest.err conftest.$ac_ext
6869 done
6870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6871 rm -f conftest.err conftest.$ac_ext
6872 if $ac_preproc_ok; then :
6874 else
6875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6877 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6878 See \`config.log' for more details." "$LINENO" 5; }
6881 ac_ext=c
6882 ac_cpp='$CPP $CPPFLAGS'
6883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 if test "x$RANLIB" = x; then
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$RANLIB"; then
6898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6913 IFS=$as_save_IFS
6917 RANLIB=$ac_cv_prog_RANLIB
6918 if test -n "$RANLIB"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6920 $as_echo "$RANLIB" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6928 if test -z "$ac_cv_prog_RANLIB"; then
6929 ac_ct_RANLIB=$RANLIB
6930 # Extract the first word of "ranlib", so it can be a program name with args.
6931 set dummy ranlib; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_RANLIB"; then
6938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_prog_ac_ct_RANLIB="ranlib"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6957 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6958 if test -n "$ac_ct_RANLIB"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6960 $as_echo "$ac_ct_RANLIB" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$ac_ct_RANLIB" = x; then
6967 RANLIB=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 RANLIB=$ac_ct_RANLIB
6977 else
6978 RANLIB="$ac_cv_prog_RANLIB"
6983 ## Although we're running on an amd64 kernel, we're actually compiling for
6984 ## the x86 architecture. The user should probably have provided an
6985 ## explicit --build to `configure', but if everything else than the kernel
6986 ## is running in i386 mode, we can help them out.
6987 if test "$machine" = "amdx86-64"; then
6988 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6989 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6993 if test "$ac_cv_have_decl_i386" = "yes"; then
6994 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6995 machine=intel386
6996 machfile="m/${machine}.h"
7000 # Extract the first word of "install-info", so it can be a program name with args.
7001 set dummy install-info; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 case $INSTALL_INFO in
7008 [\\/]* | ?:[\\/]*)
7009 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7028 esac
7030 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7031 if test -n "$INSTALL_INFO"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7033 $as_echo "$INSTALL_INFO" >&6; }
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7040 # Extract the first word of "install-info", so it can be a program name with args.
7041 set dummy install-info; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 case $INSTALL_INFO in
7048 [\\/]* | ?:[\\/]*)
7049 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in /usr/sbin
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7063 done
7064 done
7065 IFS=$as_save_IFS
7068 esac
7070 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7071 if test -n "$INSTALL_INFO"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7073 $as_echo "$INSTALL_INFO" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7080 # Extract the first word of "install-info", so it can be a program name with args.
7081 set dummy install-info; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 case $INSTALL_INFO in
7088 [\\/]* | ?:[\\/]*)
7089 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in /sbin
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7103 done
7104 done
7105 IFS=$as_save_IFS
7107 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7109 esac
7111 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7112 if test -n "$INSTALL_INFO"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7114 $as_echo "$INSTALL_INFO" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7121 # Extract the first word of "gzip", so it can be a program name with args.
7122 set dummy gzip; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 case $GZIP_PROG in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7149 esac
7151 GZIP_PROG=$ac_cv_path_GZIP_PROG
7152 if test -n "$GZIP_PROG"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7154 $as_echo "$GZIP_PROG" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7163 ## Need makeinfo >= 4.6 (?) to build the manuals.
7164 # Extract the first word of "makeinfo", so it can be a program name with args.
7165 set dummy makeinfo; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 case $MAKEINFO in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7187 done
7188 done
7189 IFS=$as_save_IFS
7191 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7193 esac
7195 MAKEINFO=$ac_cv_path_MAKEINFO
7196 if test -n "$MAKEINFO"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7198 $as_echo "$MAKEINFO" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7205 if test "$MAKEINFO" != "no" && \
7206 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
7207 MAKEINFO=no
7210 ## Makeinfo is unusual. For a released Emacs, the manuals are
7211 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7212 ## therefore in the category of "special tools" not normally required, which
7213 ## configure does not have to check for (eg autoconf itself).
7214 ## In a Bazaar checkout on the other hand, the manuals are not included.
7215 ## So makeinfo is a requirement to build from Bazaar, and configure
7216 ## should test for it as it does for any other build requirement.
7217 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7218 ## with pre-built manuals, from a Bazaar checkout.
7219 HAVE_MAKEINFO=yes
7221 if test "$MAKEINFO" = "no"; then
7222 MAKEINFO=makeinfo
7223 if test "x${with_makeinfo}" = "xno"; then
7224 HAVE_MAKEINFO=no
7225 elif test ! -e $srcdir/info/emacs; then
7226 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7227 source tree does not seem to have pre-built manuals in the \`info' directory.
7228 Either install a suitable version of makeinfo, or re-run configure
7229 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7235 if test x$GCC = xyes; then
7236 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7237 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7238 else
7239 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7240 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7244 late_LDFLAGS=$LDFLAGS
7245 if test x$GCC = xyes; then
7246 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7247 else
7248 LDFLAGS="$LDFLAGS -znocombreloc"
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7252 $as_echo_n "checking for -znocombreloc... " >&6; }
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7257 main ()
7261 return 0;
7263 _ACEOF
7264 if ac_fn_c_try_link "$LINENO"; then :
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7266 $as_echo "yes" >&6; }
7267 else
7268 LDFLAGS=$late_LDFLAGS
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7276 # The value of CPP is a quoted variable reference, so we need to do this
7277 # to get its actual value...
7278 CPP=`eval "echo $CPP"`
7281 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7282 case "$opsys" in
7283 your-opsys-here) CANNOT_DUMP=yes ;;
7284 esac
7286 test "$CANNOT_DUMP" = "yes" && \
7288 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7294 UNEXEC_OBJ=unexelf.o
7295 case "$opsys" in
7296 # MSDOS uses unexcoff.o
7297 # MSWindows uses unexw32.o
7298 aix4-2)
7299 UNEXEC_OBJ=unexaix.o
7301 cygwin)
7302 UNEXEC_OBJ=unexcw.o
7304 darwin)
7305 UNEXEC_OBJ=unexmacosx.o
7307 hpux10-20 | hpux11)
7308 UNEXEC_OBJ=unexhp9k800.o
7310 sol2-10)
7311 # Use the Solaris dldump() function, called from unexsol.c, to dump
7312 # emacs, instead of the generic ELF dump code found in unexelf.c.
7313 # The resulting binary has a complete symbol table, and is better
7314 # for debugging and other observability tools (debuggers, pstack, etc).
7316 # If you encounter a problem using dldump(), please consider sending
7317 # a message to the OpenSolaris tools-linking mailing list:
7318 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7320 # It is likely that dldump() works with older Solaris too, but this has
7321 # not been tested, so for now this change is for Solaris 10 or newer.
7322 UNEXEC_OBJ=unexsol.o
7324 esac
7326 LD_SWITCH_SYSTEM=
7327 case "$opsys" in
7328 freebsd)
7329 ## Let `ld' find image libs and similar things in /usr/local/lib.
7330 ## The system compiler, GCC, has apparently been modified to not
7331 ## look there, contrary to what a stock GCC would do.
7332 LD_SWITCH_SYSTEM=-L/usr/local/lib
7335 gnu-linux)
7336 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7337 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7340 netbsd)
7341 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7344 openbsd)
7345 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7346 ## otherwise Emacs dumps core on elf systems.
7347 LD_SWITCH_SYSTEM="-Z"
7349 esac
7352 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7354 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7355 ## which has not been defined yet. When this was handled with cpp,
7356 ## it was expanded to null when configure sourced the s/*.h file.
7357 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7358 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7359 ## (or somesuch), but because it is supposed to go at the _front_
7360 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7361 ## Compare with the gnu-linux case below, which added to the end
7362 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7363 ## LD_SWITCH_SYSTEM_TEMACS.
7364 case "$opsys" in
7365 netbsd|openbsd)
7366 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7367 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7368 esac
7371 C_SWITCH_MACHINE=
7372 if test "$machine" = "alpha"; then
7373 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7374 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7378 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7379 ## With ELF, make sure that all common symbols get allocated to in the
7380 ## data section. Otherwise, the dump of temacs may miss variables in
7381 ## the shared library that have been initialized. For example, with
7382 ## GNU libc, __malloc_initialized would normally be resolved to the
7383 ## shared library's .bss section, which is fatal.
7384 if test "x$GCC" = "xyes"; then
7385 C_SWITCH_MACHINE="-fno-common"
7386 else
7387 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7389 else
7390 UNEXEC_OBJ=unexalpha.o
7397 C_SWITCH_SYSTEM=
7398 ## Some programs in src produce warnings saying certain subprograms
7399 ## are too complex and need a MAXMEM value greater than 2000 for
7400 ## additional optimization. --nils@exp-math.uni-essen.de
7401 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7402 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7403 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7404 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7408 LIBS_SYSTEM=
7409 case "$opsys" in
7410 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7411 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7413 freebsd) LIBS_SYSTEM="-lutil" ;;
7415 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7417 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7419 ## Motif needs -lgen.
7420 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7421 esac
7425 ### Make sure subsequent tests use flags consistent with the build flags.
7427 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7428 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7429 else
7430 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7433 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7436 # Check whether --enable-largefile was given.
7437 if test "${enable_largefile+set}" = set; then :
7438 enableval=$enable_largefile;
7441 if test "$enable_largefile" != no; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7444 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7445 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 ac_cv_sys_largefile_CC=no
7449 if test "$GCC" != yes; then
7450 ac_save_CC=$CC
7451 while :; do
7452 # IRIX 6.2 and later do not support large files by default,
7453 # so use the C compiler's -n32 option if that helps.
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456 #include <sys/types.h>
7457 /* Check that off_t can represent 2**63 - 1 correctly.
7458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7459 since some C++ compilers masquerading as C compilers
7460 incorrectly reject 9223372036854775807. */
7461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7463 && LARGE_OFF_T % 2147483647 == 1)
7464 ? 1 : -1];
7466 main ()
7470 return 0;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"; then :
7474 break
7476 rm -f core conftest.err conftest.$ac_objext
7477 CC="$CC -n32"
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 ac_cv_sys_largefile_CC=' -n32'; break
7481 rm -f core conftest.err conftest.$ac_objext
7482 break
7483 done
7484 CC=$ac_save_CC
7485 rm -f conftest.$ac_ext
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7489 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7490 if test "$ac_cv_sys_largefile_CC" != no; then
7491 CC=$CC$ac_cv_sys_largefile_CC
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7495 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7496 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 while :; do
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <sys/types.h>
7503 /* Check that off_t can represent 2**63 - 1 correctly.
7504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7505 since some C++ compilers masquerading as C compilers
7506 incorrectly reject 9223372036854775807. */
7507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7509 && LARGE_OFF_T % 2147483647 == 1)
7510 ? 1 : -1];
7512 main ()
7516 return 0;
7518 _ACEOF
7519 if ac_fn_c_try_compile "$LINENO"; then :
7520 ac_cv_sys_file_offset_bits=no; break
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #define _FILE_OFFSET_BITS 64
7526 #include <sys/types.h>
7527 /* Check that off_t can represent 2**63 - 1 correctly.
7528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7529 since some C++ compilers masquerading as C compilers
7530 incorrectly reject 9223372036854775807. */
7531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7533 && LARGE_OFF_T % 2147483647 == 1)
7534 ? 1 : -1];
7536 main ()
7540 return 0;
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 ac_cv_sys_file_offset_bits=64; break
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 ac_cv_sys_file_offset_bits=unknown
7548 break
7549 done
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7552 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7553 case $ac_cv_sys_file_offset_bits in #(
7554 no | unknown) ;;
7556 cat >>confdefs.h <<_ACEOF
7557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7558 _ACEOF
7560 esac
7561 rm -rf conftest*
7562 if test $ac_cv_sys_file_offset_bits = unknown; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7564 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7565 if test "${ac_cv_sys_large_files+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 while :; do
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 #include <sys/types.h>
7572 /* Check that off_t can represent 2**63 - 1 correctly.
7573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7574 since some C++ compilers masquerading as C compilers
7575 incorrectly reject 9223372036854775807. */
7576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7578 && LARGE_OFF_T % 2147483647 == 1)
7579 ? 1 : -1];
7581 main ()
7585 return 0;
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 ac_cv_sys_large_files=no; break
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 #define _LARGE_FILES 1
7595 #include <sys/types.h>
7596 /* Check that off_t can represent 2**63 - 1 correctly.
7597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7598 since some C++ compilers masquerading as C compilers
7599 incorrectly reject 9223372036854775807. */
7600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7602 && LARGE_OFF_T % 2147483647 == 1)
7603 ? 1 : -1];
7605 main ()
7609 return 0;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 ac_cv_sys_large_files=1; break
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 ac_cv_sys_large_files=unknown
7617 break
7618 done
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7621 $as_echo "$ac_cv_sys_large_files" >&6; }
7622 case $ac_cv_sys_large_files in #(
7623 no | unknown) ;;
7625 cat >>confdefs.h <<_ACEOF
7626 #define _LARGE_FILES $ac_cv_sys_large_files
7627 _ACEOF
7629 esac
7630 rm -rf conftest*
7636 ## If user specified a crt-dir, use that unconditionally.
7637 if test "X$CRT_DIR" = "X"; then
7639 case "$canonical" in
7640 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7641 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7642 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7643 ## For anything else (eg /usr/lib32), it is up the user to specify
7644 ## the location (bug#5655).
7645 ## Test for crtn.o, not just the directory, because sometimes the
7646 ## directory exists but does not have the relevant files (bug#1287).
7647 ## FIXME better to test for binary compatibility somehow.
7648 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7651 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7652 esac
7654 case "$opsys" in
7655 hpux10-20) CRT_DIR=/lib ;;
7656 esac
7658 ## Default is /usr/lib.
7659 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7661 else
7663 ## Some platforms don't use any of these files, so it is not
7664 ## appropriate to put this test outside the if block.
7665 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7666 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7672 LIB_MATH=-lm
7673 LIB_STANDARD=
7674 START_FILES=
7676 case $opsys in
7677 cygwin )
7678 LIB_MATH=
7679 START_FILES='pre-crt0.o'
7681 darwin )
7682 ## Adding -lm confuses the dynamic linker, so omit it.
7683 LIB_MATH=
7684 START_FILES='pre-crt0.o'
7686 freebsd )
7687 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7688 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7690 gnu-linux | gnu-kfreebsd )
7691 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7692 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7694 hpux10-20 | hpux11 )
7695 LIB_STANDARD=-lc
7696 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7698 netbsd | openbsd )
7699 if test -f $CRT_DIR/crti.o; then
7700 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7701 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7702 else
7703 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7704 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7707 esac
7715 if test "${with_sound}" != "no"; then
7716 # Sound support for GNU/Linux and the free BSDs.
7717 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7718 do :
7719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7720 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7721 eval as_val=\$$as_ac_Header
7722 if test "x$as_val" = x""yes; then :
7723 cat >>confdefs.h <<_ACEOF
7724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725 _ACEOF
7726 have_sound_header=yes
7729 done
7731 # Emulation library used on NetBSD.
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7733 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7734 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 ac_check_lib_save_LIBS=$LIBS
7738 LIBS="-lossaudio $LIBS"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7742 /* Override any GCC internal prototype to avoid an error.
7743 Use char because int might match the return type of a GCC
7744 builtin and then its argument prototype would still apply. */
7745 #ifdef __cplusplus
7746 extern "C"
7747 #endif
7748 char _oss_ioctl ();
7750 main ()
7752 return _oss_ioctl ();
7754 return 0;
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758 ac_cv_lib_ossaudio__oss_ioctl=yes
7759 else
7760 ac_cv_lib_ossaudio__oss_ioctl=no
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7767 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7768 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7769 LIBSOUND=-lossaudio
7770 else
7771 LIBSOUND=
7776 ALSA_REQUIRED=1.0.0
7777 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7779 succeeded=no
7781 # Extract the first word of "pkg-config", so it can be a program name with args.
7782 set dummy pkg-config; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 case $PKG_CONFIG in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7810 esac
7812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7813 if test -n "$PKG_CONFIG"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7815 $as_echo "$PKG_CONFIG" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7823 if test "$PKG_CONFIG" = "no" ; then
7824 HAVE_ALSA=no
7825 else
7826 PKG_CONFIG_MIN_VERSION=0.9.0
7827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7829 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7831 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 succeeded=yes
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7837 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7838 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7840 $as_echo "$ALSA_CFLAGS" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7843 $as_echo_n "checking ALSA_LIBS... " >&6; }
7844 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7846 $as_echo "$ALSA_LIBS" >&6; }
7847 else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 ALSA_CFLAGS=""
7851 ALSA_LIBS=""
7852 ## If we have a custom action on failure, don't print errors, but
7853 ## do set a variable so people can do so.
7854 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7860 else
7861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7866 if test $succeeded = yes; then
7867 HAVE_ALSA=yes
7868 else
7869 HAVE_ALSA=no
7872 if test $HAVE_ALSA = yes; then
7873 SAVE_CFLAGS="$CFLAGS"
7874 SAVE_LDFLAGS="$LDFLAGS"
7875 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7876 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7879 #include <asoundlib.h>
7881 main ()
7883 snd_lib_error_set_handler (0);
7885 return 0;
7887 _ACEOF
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889 emacs_alsa_normal=yes
7890 else
7891 emacs_alsa_normal=no
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 if test "$emacs_alsa_normal" != yes; then
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 #include <alsa/asoundlib.h>
7899 main ()
7901 snd_lib_error_set_handler (0);
7903 return 0;
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 emacs_alsa_subdir=yes
7908 else
7909 emacs_alsa_subdir=no
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 if test "$emacs_alsa_subdir" != yes; then
7913 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7915 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7918 CFLAGS="$SAVE_CFLAGS"
7919 LDFLAGS="$SAVE_LDFLAGS"
7920 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7921 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7923 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7927 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7928 case "$opsys" in
7929 gnu-linux|freebsd|netbsd)
7931 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7934 esac
7940 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7941 linux/version.h sys/systeminfo.h limits.h \
7942 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7943 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7944 sys/utsname.h pwd.h utmp.h dirent.h util.h
7945 do :
7946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7947 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7948 eval as_val=\$$as_ac_Header
7949 if test "x$as_val" = x""yes; then :
7950 cat >>confdefs.h <<_ACEOF
7951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7952 _ACEOF
7956 done
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7960 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <sys/personality.h>
7965 main ()
7967 personality (PER_LINUX32)
7969 return 0;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 emacs_cv_personality_linux32=yes
7974 else
7975 emacs_cv_personality_linux32=no
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7979 $as_echo "$emacs_cv_personality_linux32" >&6; }
7981 if test $emacs_cv_personality_linux32 = yes; then
7983 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7987 for ac_header in term.h
7988 do :
7989 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7990 if test "x$ac_cv_header_term_h" = x""yes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_TERM_H 1
7993 _ACEOF
7997 done
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8000 $as_echo_n "checking for ANSI C header files... " >&6; }
8001 if test "${ac_cv_header_stdc+set}" = set; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <stdlib.h>
8007 #include <stdarg.h>
8008 #include <string.h>
8009 #include <float.h>
8012 main ()
8016 return 0;
8018 _ACEOF
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020 ac_cv_header_stdc=yes
8021 else
8022 ac_cv_header_stdc=no
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 if test $ac_cv_header_stdc = yes; then
8027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #include <string.h>
8032 _ACEOF
8033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8034 $EGREP "memchr" >/dev/null 2>&1; then :
8036 else
8037 ac_cv_header_stdc=no
8039 rm -f conftest*
8043 if test $ac_cv_header_stdc = yes; then
8044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 #include <stdlib.h>
8049 _ACEOF
8050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051 $EGREP "free" >/dev/null 2>&1; then :
8053 else
8054 ac_cv_header_stdc=no
8056 rm -f conftest*
8060 if test $ac_cv_header_stdc = yes; then
8061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8062 if test "$cross_compiling" = yes; then :
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #include <ctype.h>
8068 #include <stdlib.h>
8069 #if ((' ' & 0x0FF) == 0x020)
8070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8072 #else
8073 # define ISLOWER(c) \
8074 (('a' <= (c) && (c) <= 'i') \
8075 || ('j' <= (c) && (c) <= 'r') \
8076 || ('s' <= (c) && (c) <= 'z'))
8077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8078 #endif
8080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8082 main ()
8084 int i;
8085 for (i = 0; i < 256; i++)
8086 if (XOR (islower (i), ISLOWER (i))
8087 || toupper (i) != TOUPPER (i))
8088 return 2;
8089 return 0;
8091 _ACEOF
8092 if ac_fn_c_try_run "$LINENO"; then :
8094 else
8095 ac_cv_header_stdc=no
8097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8098 conftest.$ac_objext conftest.beam conftest.$ac_ext
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8104 $as_echo "$ac_cv_header_stdc" >&6; }
8105 if test $ac_cv_header_stdc = yes; then
8107 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8112 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8113 if test "${ac_cv_header_time+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 #include <sys/types.h>
8119 #include <sys/time.h>
8120 #include <time.h>
8123 main ()
8125 if ((struct tm *) 0)
8126 return 0;
8128 return 0;
8130 _ACEOF
8131 if ac_fn_c_try_compile "$LINENO"; then :
8132 ac_cv_header_time=yes
8133 else
8134 ac_cv_header_time=no
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8139 $as_echo "$ac_cv_header_time" >&6; }
8140 if test $ac_cv_header_time = yes; then
8142 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8146 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8147 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8148 ac_have_decl=1
8149 else
8150 ac_have_decl=0
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8155 _ACEOF
8157 if test $ac_cv_have_decl_sys_siglist != yes; then
8158 # For Tru64, at least:
8159 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8160 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8161 ac_have_decl=1
8162 else
8163 ac_have_decl=0
8166 cat >>confdefs.h <<_ACEOF
8167 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8168 _ACEOF
8170 if test $ac_cv_have_decl___sys_siglist = yes; then
8172 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8177 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8178 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #include <sys/wait.h>
8185 #ifndef WEXITSTATUS
8186 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8187 #endif
8188 #ifndef WIFEXITED
8189 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8190 #endif
8193 main ()
8195 int s;
8196 wait (&s);
8197 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8199 return 0;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 ac_cv_header_sys_wait_h=yes
8204 else
8205 ac_cv_header_sys_wait_h=no
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8210 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8211 if test $ac_cv_header_sys_wait_h = yes; then
8213 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8219 $as_echo_n "checking for struct utimbuf... " >&6; }
8220 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #ifdef TIME_WITH_SYS_TIME
8226 #include <sys/time.h>
8227 #include <time.h>
8228 #else
8229 #ifdef HAVE_SYS_TIME_H
8230 #include <sys/time.h>
8231 #else
8232 #include <time.h>
8233 #endif
8234 #endif
8235 #ifdef HAVE_UTIME_H
8236 #include <utime.h>
8237 #endif
8239 main ()
8241 static struct utimbuf x; x.actime = x.modtime;
8243 return 0;
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 emacs_cv_struct_utimbuf=yes
8248 else
8249 emacs_cv_struct_utimbuf=no
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8254 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8255 if test $emacs_cv_struct_utimbuf = yes; then
8257 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8262 $as_echo_n "checking for speed_t... " >&6; }
8263 if test "${emacs_cv_speed_t+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <termios.h>
8270 main ()
8272 speed_t x = 1;
8274 return 0;
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 emacs_cv_speed_t=yes
8279 else
8280 emacs_cv_speed_t=no
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8285 $as_echo "$emacs_cv_speed_t" >&6; }
8286 if test $emacs_cv_speed_t = yes; then
8288 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8293 $as_echo_n "checking for struct timeval... " >&6; }
8294 if test "${emacs_cv_struct_timeval+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #ifdef TIME_WITH_SYS_TIME
8300 #include <sys/time.h>
8301 #include <time.h>
8302 #else
8303 #ifdef HAVE_SYS_TIME_H
8304 #include <sys/time.h>
8305 #else
8306 #include <time.h>
8307 #endif
8308 #endif
8310 main ()
8312 static struct timeval x; x.tv_sec = x.tv_usec;
8314 return 0;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 emacs_cv_struct_timeval=yes
8319 else
8320 emacs_cv_struct_timeval=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8325 $as_echo "$emacs_cv_struct_timeval" >&6; }
8326 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8327 if test $emacs_cv_struct_timeval = yes; then
8329 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8334 $as_echo_n "checking for struct exception... " >&6; }
8335 if test "${emacs_cv_struct_exception+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <math.h>
8342 main ()
8344 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8346 return 0;
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350 emacs_cv_struct_exception=yes
8351 else
8352 emacs_cv_struct_exception=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8357 $as_echo "$emacs_cv_struct_exception" >&6; }
8358 HAVE_EXCEPTION=$emacs_cv_struct_exception
8359 if test $emacs_cv_struct_exception != yes; then
8361 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8365 for ac_header in net/if.h
8366 do :
8367 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8368 #if HAVE_SYS_SOCKET_H
8369 #include <sys/socket.h>
8370 #endif
8372 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8373 cat >>confdefs.h <<_ACEOF
8374 #define HAVE_NET_IF_H 1
8375 _ACEOF
8379 done
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8383 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8384 if test "${ac_cv_struct_tm+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <time.h>
8393 main ()
8395 struct tm tm;
8396 int *p = &tm.tm_sec;
8397 return !p;
8399 return 0;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 ac_cv_struct_tm=time.h
8404 else
8405 ac_cv_struct_tm=sys/time.h
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8410 $as_echo "$ac_cv_struct_tm" >&6; }
8411 if test $ac_cv_struct_tm = sys/time.h; then
8413 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8417 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8418 #include <$ac_cv_struct_tm>
8421 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_STRUCT_TM_TM_ZONE 1
8425 _ACEOF
8430 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8432 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8434 else
8435 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8437 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8438 ac_have_decl=1
8439 else
8440 ac_have_decl=0
8443 cat >>confdefs.h <<_ACEOF
8444 #define HAVE_DECL_TZNAME $ac_have_decl
8445 _ACEOF
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8448 $as_echo_n "checking for tzname... " >&6; }
8449 if test "${ac_cv_var_tzname+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8454 #include <time.h>
8455 #if !HAVE_DECL_TZNAME
8456 extern char *tzname[];
8457 #endif
8460 main ()
8462 return tzname[0][0];
8464 return 0;
8466 _ACEOF
8467 if ac_fn_c_try_link "$LINENO"; then :
8468 ac_cv_var_tzname=yes
8469 else
8470 ac_cv_var_tzname=no
8472 rm -f core conftest.err conftest.$ac_objext \
8473 conftest$ac_exeext conftest.$ac_ext
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8476 $as_echo "$ac_cv_var_tzname" >&6; }
8477 if test $ac_cv_var_tzname = yes; then
8479 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8484 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8486 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8488 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8492 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8493 #if HAVE_SYS_SOCKET_H
8494 #include <sys/socket.h>
8495 #endif
8496 #if HAVE_NET_IF_H
8497 #include <net/if.h>
8498 #endif
8500 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8504 _ACEOF
8508 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8516 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8518 cat >>confdefs.h <<_ACEOF
8519 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8520 _ACEOF
8524 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8525 #if HAVE_SYS_SOCKET_H
8526 #include <sys/socket.h>
8527 #endif
8528 #if HAVE_NET_IF_H
8529 #include <net/if.h>
8530 #endif
8532 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8536 _ACEOF
8540 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8541 #if HAVE_SYS_SOCKET_H
8542 #include <sys/socket.h>
8543 #endif
8544 #if HAVE_NET_IF_H
8545 #include <net/if.h>
8546 #endif
8548 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8552 _ACEOF
8556 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8557 #if HAVE_SYS_SOCKET_H
8558 #include <sys/socket.h>
8559 #endif
8560 #if HAVE_NET_IF_H
8561 #include <net/if.h>
8562 #endif
8564 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8566 cat >>confdefs.h <<_ACEOF
8567 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8568 _ACEOF
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8576 $as_echo_n "checking for function prototypes... " >&6; }
8577 if test "$ac_cv_prog_cc_c89" != no; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8579 $as_echo "yes" >&6; }
8581 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8584 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8592 $as_echo_n "checking for working volatile... " >&6; }
8593 if test "${ac_cv_c_volatile+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8600 main ()
8603 volatile int x;
8604 int * volatile y = (int *) 0;
8605 return !x && !y;
8607 return 0;
8609 _ACEOF
8610 if ac_fn_c_try_compile "$LINENO"; then :
8611 ac_cv_c_volatile=yes
8612 else
8613 ac_cv_c_volatile=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8618 $as_echo "$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8621 $as_echo "#define volatile /**/" >>confdefs.h
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8626 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8627 if test "${ac_cv_c_const+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8634 main ()
8636 /* FIXME: Include the comments suggested by Paul. */
8637 #ifndef __cplusplus
8638 /* Ultrix mips cc rejects this. */
8639 typedef int charset[2];
8640 const charset cs;
8641 /* SunOS 4.1.1 cc rejects this. */
8642 char const *const *pcpcc;
8643 char **ppc;
8644 /* NEC SVR4.0.2 mips cc rejects this. */
8645 struct point {int x, y;};
8646 static struct point const zero = {0,0};
8647 /* AIX XL C 1.02.0.0 rejects this.
8648 It does not let you subtract one const X* pointer from another in
8649 an arm of an if-expression whose if-part is not a constant
8650 expression */
8651 const char *g = "string";
8652 pcpcc = &g + (g ? g-g : 0);
8653 /* HPUX 7.0 cc rejects these. */
8654 ++pcpcc;
8655 ppc = (char**) pcpcc;
8656 pcpcc = (char const *const *) ppc;
8657 { /* SCO 3.2v4 cc rejects this. */
8658 char *t;
8659 char const *s = 0 ? (char *) 0 : (char const *) 0;
8661 *t++ = 0;
8662 if (s) return 0;
8664 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8665 int x[] = {25, 17};
8666 const int *foo = &x[0];
8667 ++foo;
8669 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8670 typedef const int *iptr;
8671 iptr p = 0;
8672 ++p;
8674 { /* AIX XL C 1.02.0.0 rejects this saying
8675 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8676 struct s { int j; const int *ap[3]; };
8677 struct s *b; b->j = 5;
8679 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8680 const int foo = 10;
8681 if (!foo) return 0;
8683 return !cs[0] && !zero.x;
8684 #endif
8687 return 0;
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 ac_cv_c_const=yes
8692 else
8693 ac_cv_c_const=no
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8698 $as_echo "$ac_cv_c_const" >&6; }
8699 if test $ac_cv_c_const = no; then
8701 $as_echo "#define const /**/" >>confdefs.h
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8706 $as_echo_n "checking for void * support... " >&6; }
8707 if test "${emacs_cv_void_star+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8714 main ()
8716 void * foo;
8718 return 0;
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"; then :
8722 emacs_cv_void_star=yes
8723 else
8724 emacs_cv_void_star=no
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8729 $as_echo "$emacs_cv_void_star" >&6; }
8730 if test $emacs_cv_void_star = yes; then
8731 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8733 else
8734 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8739 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8740 if test "${ac_cv_c_bigendian+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 ac_cv_c_bigendian=unknown
8744 # See if we're dealing with a universal compiler.
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #ifndef __APPLE_CC__
8748 not a universal capable compiler
8749 #endif
8750 typedef int dummy;
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8755 # Check for potential -arch flags. It is not universal unless
8756 # there are at least two -arch flags with different values.
8757 ac_arch=
8758 ac_prev=
8759 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8760 if test -n "$ac_prev"; then
8761 case $ac_word in
8762 i?86 | x86_64 | ppc | ppc64)
8763 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8764 ac_arch=$ac_word
8765 else
8766 ac_cv_c_bigendian=universal
8767 break
8770 esac
8771 ac_prev=
8772 elif test "x$ac_word" = "x-arch"; then
8773 ac_prev=arch
8775 done
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 if test $ac_cv_c_bigendian = unknown; then
8779 # See if sys/param.h defines the BYTE_ORDER macro.
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <sys/types.h>
8783 #include <sys/param.h>
8786 main ()
8788 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8789 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8790 && LITTLE_ENDIAN)
8791 bogus endian macros
8792 #endif
8795 return 0;
8797 _ACEOF
8798 if ac_fn_c_try_compile "$LINENO"; then :
8799 # It does; now see whether it defined to BIG_ENDIAN or not.
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #include <sys/types.h>
8803 #include <sys/param.h>
8806 main ()
8808 #if BYTE_ORDER != BIG_ENDIAN
8809 not big endian
8810 #endif
8813 return 0;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817 ac_cv_c_bigendian=yes
8818 else
8819 ac_cv_c_bigendian=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 if test $ac_cv_c_bigendian = unknown; then
8826 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <limits.h>
8832 main ()
8834 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8835 bogus endian macros
8836 #endif
8839 return 0;
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843 # It does; now see whether it defined to _BIG_ENDIAN or not.
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 #include <limits.h>
8849 main ()
8851 #ifndef _BIG_ENDIAN
8852 not big endian
8853 #endif
8856 return 0;
8858 _ACEOF
8859 if ac_fn_c_try_compile "$LINENO"; then :
8860 ac_cv_c_bigendian=yes
8861 else
8862 ac_cv_c_bigendian=no
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 if test $ac_cv_c_bigendian = unknown; then
8869 # Compile a test program.
8870 if test "$cross_compiling" = yes; then :
8871 # Try to guess by grepping values from an object file.
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 short int ascii_mm[] =
8875 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8876 short int ascii_ii[] =
8877 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8878 int use_ascii (int i) {
8879 return ascii_mm[i] + ascii_ii[i];
8881 short int ebcdic_ii[] =
8882 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8883 short int ebcdic_mm[] =
8884 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8885 int use_ebcdic (int i) {
8886 return ebcdic_mm[i] + ebcdic_ii[i];
8888 extern int foo;
8891 main ()
8893 return use_ascii (foo) == use_ebcdic (foo);
8895 return 0;
8897 _ACEOF
8898 if ac_fn_c_try_compile "$LINENO"; then :
8899 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8900 ac_cv_c_bigendian=yes
8902 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8903 if test "$ac_cv_c_bigendian" = unknown; then
8904 ac_cv_c_bigendian=no
8905 else
8906 # finding both strings is unlikely to happen, but who knows?
8907 ac_cv_c_bigendian=unknown
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 $ac_includes_default
8917 main ()
8920 /* Are we little or big endian? From Harbison&Steele. */
8921 union
8923 long int l;
8924 char c[sizeof (long int)];
8925 } u;
8926 u.l = 1;
8927 return u.c[sizeof (long int) - 1] == 1;
8930 return 0;
8932 _ACEOF
8933 if ac_fn_c_try_run "$LINENO"; then :
8934 ac_cv_c_bigendian=no
8935 else
8936 ac_cv_c_bigendian=yes
8938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8939 conftest.$ac_objext conftest.beam conftest.$ac_ext
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8945 $as_echo "$ac_cv_c_bigendian" >&6; }
8946 case $ac_cv_c_bigendian in #(
8947 yes)
8948 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8949 ;; #(
8951 ;; #(
8952 universal)
8954 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8956 ;; #(
8958 as_fn_error "unknown endianness
8959 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8960 esac
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8964 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8965 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 char __attribute__ ((__aligned__ (1 << 3))) c;
8972 main ()
8976 return 0;
8978 _ACEOF
8979 if ac_fn_c_try_compile "$LINENO"; then :
8980 emacs_cv_attribute_aligned=yes
8981 else
8982 emacs_cv_attribute_aligned=no
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8987 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8988 if test $emacs_cv_attribute_aligned = yes; then
8990 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8996 set x ${MAKE-make}
8997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8998 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 cat >conftest.make <<\_ACEOF
9002 SHELL = /bin/sh
9003 all:
9004 @echo '@@@%%%=$(MAKE)=@@@%%%'
9005 _ACEOF
9006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9008 *@@@%%%=?*=@@@%%%*)
9009 eval ac_cv_prog_make_${ac_make}_set=yes;;
9011 eval ac_cv_prog_make_${ac_make}_set=no;;
9012 esac
9013 rm -f conftest.make
9015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9017 $as_echo "yes" >&6; }
9018 SET_MAKE=
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 SET_MAKE="MAKE=${MAKE-make}"
9026 DEPFLAGS=
9027 MKDEPDIR=":"
9028 deps_frag=deps.mk
9029 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9031 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9032 HAVE_GNU_MAKE=no
9033 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9034 if test "x$testval" != x; then
9035 HAVE_GNU_MAKE=yes
9036 else
9037 ac_enable_autodepend=no
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9040 $as_echo "$HAVE_GNU_MAKE" >&6; }
9041 if test $HAVE_GNU_MAKE = yes; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9043 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9044 SAVE_CFLAGS="$CFLAGS"
9045 CFLAGS="$CFLAGS -MMD -MF deps.d"
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9050 main ()
9054 return 0;
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"; then :
9059 else
9060 ac_enable_autodepend=no
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 CFLAGS="$SAVE_CFLAGS"
9064 test -f deps.d || ac_enable_autodepend=no
9065 rm -rf deps.d
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9067 $as_echo "$ac_enable_autodepend" >&6; }
9069 if test $ac_enable_autodepend = yes; then
9070 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9071 ## In parallel builds, another make might create depdir between
9072 ## the first test and mkdir, so stick another test on the end.
9073 ## Or use install-sh -d? mkdir -p is not portable.
9074 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9075 deps_frag=autodeps.mk
9078 deps_frag=$srcdir/src/$deps_frag
9084 lisp_frag=$srcdir/src/lisp.mk
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9089 $as_echo_n "checking for long file names... " >&6; }
9090 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 ac_cv_sys_long_file_names=yes
9094 # Test for long file names in all the places we know might matter:
9095 # . the current directory, where building will happen
9096 # $prefix/lib where we will be installing things
9097 # $exec_prefix/lib likewise
9098 # $TMPDIR if set, where it might want to write temporary files
9099 # /tmp where it might want to write temporary files
9100 # /var/tmp likewise
9101 # /usr/tmp likewise
9102 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9103 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9104 # in the usual case where exec_prefix is '${prefix}'.
9105 case $ac_dir in #(
9106 . | /* | ?:[\\/]*) ;; #(
9107 *) continue;;
9108 esac
9109 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9110 ac_xdir=$ac_dir/cf$$
9111 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9112 ac_tf1=$ac_xdir/conftest9012345
9113 ac_tf2=$ac_xdir/conftest9012346
9114 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9115 ac_cv_sys_long_file_names=no
9116 rm -f -r "$ac_xdir" 2>/dev/null
9117 test $ac_cv_sys_long_file_names = no && break
9118 done
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9121 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9122 if test $ac_cv_sys_long_file_names = yes; then
9124 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9129 #### Choose a window system.
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9132 $as_echo_n "checking for X... " >&6; }
9135 # Check whether --with-x was given.
9136 if test "${with_x+set}" = set; then :
9137 withval=$with_x;
9140 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9141 if test "x$with_x" = xno; then
9142 # The user explicitly disabled X.
9143 have_x=disabled
9144 else
9145 case $x_includes,$x_libraries in #(
9146 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9147 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 # One or both of the vars are not set, and there is no cached value.
9151 ac_x_includes=no ac_x_libraries=no
9152 rm -f -r conftest.dir
9153 if mkdir conftest.dir; then
9154 cd conftest.dir
9155 cat >Imakefile <<'_ACEOF'
9156 incroot:
9157 @echo incroot='${INCROOT}'
9158 usrlibdir:
9159 @echo usrlibdir='${USRLIBDIR}'
9160 libdir:
9161 @echo libdir='${LIBDIR}'
9162 _ACEOF
9163 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9165 for ac_var in incroot usrlibdir libdir; do
9166 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9167 done
9168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9169 for ac_extension in a so sl dylib la dll; do
9170 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9171 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9172 ac_im_usrlibdir=$ac_im_libdir; break
9174 done
9175 # Screen out bogus values from the imake configuration. They are
9176 # bogus both because they are the default anyway, and because
9177 # using them would break gcc on systems where it needs fixed includes.
9178 case $ac_im_incroot in
9179 /usr/include) ac_x_includes= ;;
9180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9181 esac
9182 case $ac_im_usrlibdir in
9183 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9185 esac
9187 cd ..
9188 rm -f -r conftest.dir
9191 # Standard set of common directories for X headers.
9192 # Check X11 before X11Rn because it is often a symlink to the current release.
9193 ac_x_header_dirs='
9194 /usr/X11/include
9195 /usr/X11R7/include
9196 /usr/X11R6/include
9197 /usr/X11R5/include
9198 /usr/X11R4/include
9200 /usr/include/X11
9201 /usr/include/X11R7
9202 /usr/include/X11R6
9203 /usr/include/X11R5
9204 /usr/include/X11R4
9206 /usr/local/X11/include
9207 /usr/local/X11R7/include
9208 /usr/local/X11R6/include
9209 /usr/local/X11R5/include
9210 /usr/local/X11R4/include
9212 /usr/local/include/X11
9213 /usr/local/include/X11R7
9214 /usr/local/include/X11R6
9215 /usr/local/include/X11R5
9216 /usr/local/include/X11R4
9218 /usr/X386/include
9219 /usr/x386/include
9220 /usr/XFree86/include/X11
9222 /usr/include
9223 /usr/local/include
9224 /usr/unsupported/include
9225 /usr/athena/include
9226 /usr/local/x11r5/include
9227 /usr/lpp/Xamples/include
9229 /usr/openwin/include
9230 /usr/openwin/share/include'
9232 if test "$ac_x_includes" = no; then
9233 # Guess where to find include files, by looking for Xlib.h.
9234 # First, try using that file with no special directory specified.
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 #include <X11/Xlib.h>
9238 _ACEOF
9239 if ac_fn_c_try_cpp "$LINENO"; then :
9240 # We can compile using X headers with no special include directory.
9241 ac_x_includes=
9242 else
9243 for ac_dir in $ac_x_header_dirs; do
9244 if test -r "$ac_dir/X11/Xlib.h"; then
9245 ac_x_includes=$ac_dir
9246 break
9248 done
9250 rm -f conftest.err conftest.$ac_ext
9251 fi # $ac_x_includes = no
9253 if test "$ac_x_libraries" = no; then
9254 # Check for the libraries.
9255 # See if we find them without any special options.
9256 # Don't add to $LIBS permanently.
9257 ac_save_LIBS=$LIBS
9258 LIBS="-lX11 $LIBS"
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <X11/Xlib.h>
9263 main ()
9265 XrmInitialize ()
9267 return 0;
9269 _ACEOF
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 LIBS=$ac_save_LIBS
9272 # We can link X programs with no special library path.
9273 ac_x_libraries=
9274 else
9275 LIBS=$ac_save_LIBS
9276 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9278 # Don't even attempt the hair of trying to link an X program!
9279 for ac_extension in a so sl dylib la dll; do
9280 if test -r "$ac_dir/libX11.$ac_extension"; then
9281 ac_x_libraries=$ac_dir
9282 break 2
9284 done
9285 done
9287 rm -f core conftest.err conftest.$ac_objext \
9288 conftest$ac_exeext conftest.$ac_ext
9289 fi # $ac_x_libraries = no
9291 case $ac_x_includes,$ac_x_libraries in #(
9292 no,* | *,no | *\'*)
9293 # Didn't find X, or a directory has "'" in its name.
9294 ac_cv_have_x="have_x=no";; #(
9296 # Record where we found X for the cache.
9297 ac_cv_have_x="have_x=yes\
9298 ac_x_includes='$ac_x_includes'\
9299 ac_x_libraries='$ac_x_libraries'"
9300 esac
9302 ;; #(
9303 *) have_x=yes;;
9304 esac
9305 eval "$ac_cv_have_x"
9306 fi # $with_x != no
9308 if test "$have_x" != yes; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9310 $as_echo "$have_x" >&6; }
9311 no_x=yes
9312 else
9313 # If each of the values was on the command line, it overrides each guess.
9314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9316 # Update the cache value to reflect the command line values.
9317 ac_cv_have_x="have_x=yes\
9318 ac_x_includes='$x_includes'\
9319 ac_x_libraries='$x_libraries'"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9321 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9324 if test "$no_x" = yes; then
9325 window_system=none
9326 else
9327 window_system=x11
9330 ## Workaround for bug in autoconf <= 2.62.
9331 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9332 ## No need to do anything special for these standard directories.
9333 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9335 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9339 LD_SWITCH_X_SITE_AUX=
9340 LD_SWITCH_X_SITE_AUX_RPATH=
9341 if test "${x_libraries}" != NONE; then
9342 if test -n "${x_libraries}"; then
9343 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9344 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9345 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9347 x_default_search_path=""
9348 x_search_path=${x_libraries}
9349 if test -z "${x_search_path}"; then
9350 x_search_path=/usr/lib
9352 for x_library in `echo ${x_search_path}: | \
9353 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9354 x_search_path="\
9355 ${x_library}/X11/%L/%T/%N%C%S:\
9356 ${x_library}/X11/%l/%T/%N%C%S:\
9357 ${x_library}/X11/%T/%N%C%S:\
9358 ${x_library}/X11/%L/%T/%N%S:\
9359 ${x_library}/X11/%l/%T/%N%S:\
9360 ${x_library}/X11/%T/%N%S"
9361 if test x"${x_default_search_path}" = x; then
9362 x_default_search_path=${x_search_path}
9363 else
9364 x_default_search_path="${x_search_path}:${x_default_search_path}"
9366 done
9371 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9372 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9375 if test x"${x_includes}" = x; then
9376 bitmapdir=/usr/include/X11/bitmaps
9377 else
9378 # accumulate include directories that have X11 bitmap subdirectories
9379 bmd_acc="dummyval"
9380 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9381 if test -d "${bmd}/X11/bitmaps"; then
9382 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9384 if test -d "${bmd}/bitmaps"; then
9385 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9387 done
9388 if test ${bmd_acc} != "dummyval"; then
9389 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9393 HAVE_NS=no
9394 NS_IMPL_COCOA=no
9395 NS_IMPL_GNUSTEP=no
9396 tmp_CPPFLAGS="$CPPFLAGS"
9397 tmp_CFLAGS="$CFLAGS"
9398 CPPFLAGS="$CPPFLAGS -x objective-c"
9399 CFLAGS="$CFLAGS -x objective-c"
9400 TEMACS_LDFLAGS2="\${LDFLAGS}"
9401 if test "${with_ns}" != no; then
9402 if test "${opsys}" = darwin; then
9403 NS_IMPL_COCOA=yes
9404 ns_appdir=`pwd`/nextstep/Emacs.app
9405 ns_appbindir=${ns_appdir}/Contents/MacOS/
9406 ns_appresdir=${ns_appdir}/Contents/Resources
9407 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9408 elif test -f $GNUSTEP_CONFIG_FILE; then
9409 NS_IMPL_GNUSTEP=yes
9410 ns_appdir=`pwd`/nextstep/Emacs.app
9411 ns_appbindir=${ns_appdir}/
9412 ns_appresdir=${ns_appdir}/Resources
9413 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9414 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9415 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9416 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9417 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9418 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9419 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9420 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9421 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9422 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9423 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9424 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9425 LIB_STANDARD=
9426 START_FILES=
9427 TEMACS_LDFLAGS2=
9429 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9430 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9431 HAVE_NS=yes
9432 else
9433 as_fn_error "\`--with-ns' was specified, but the include
9434 files are missing or cannot be compiled." "$LINENO" 5
9438 NS_HAVE_NSINTEGER=yes
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 #include <Foundation/NSObjCRuntime.h>
9443 main ()
9445 NSInteger i;
9447 return 0;
9449 _ACEOF
9450 if ac_fn_c_try_compile "$LINENO"; then :
9451 ns_have_nsinteger=yes
9452 else
9453 ns_have_nsinteger=no
9455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456 if test $ns_have_nsinteger = no; then
9457 NS_HAVE_NSINTEGER=no
9462 ns_frag=/dev/null
9463 NS_OBJ=
9464 NS_OBJC_OBJ=
9465 if test "${HAVE_NS}" = yes; then
9466 window_system=nextstep
9467 with_xft=no
9468 # set up packaging dirs
9469 exec_prefix=${ns_appbindir}
9470 libexecdir=${ns_appbindir}/libexec
9471 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9472 prefix=${ns_appresdir}
9474 ns_frag=$srcdir/src/ns.mk
9475 NS_OBJ="fontset.o fringe.o image.o"
9476 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9478 CFLAGS="$tmp_CFLAGS"
9479 CPPFLAGS="$tmp_CPPFLAGS"
9485 case "${window_system}" in
9486 x11 )
9487 HAVE_X_WINDOWS=yes
9488 HAVE_X11=yes
9489 case "${with_x_toolkit}" in
9490 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9491 motif ) USE_X_TOOLKIT=MOTIF ;;
9492 gtk ) with_gtk=yes
9493 USE_X_TOOLKIT=none ;;
9494 gtk3 ) with_gtk3=yes
9495 USE_X_TOOLKIT=none ;;
9496 no ) USE_X_TOOLKIT=none ;;
9497 * ) USE_X_TOOLKIT=maybe ;;
9498 esac
9500 nextstep | none )
9501 HAVE_X_WINDOWS=no
9502 HAVE_X11=no
9503 USE_X_TOOLKIT=none
9505 esac
9507 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9508 # Extract the first word of "X", so it can be a program name with args.
9509 set dummy X; ac_word=$2
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9511 $as_echo_n "checking for $ac_word... " >&6; }
9512 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 if test -n "$HAVE_XSERVER"; then
9516 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9517 else
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_prog_HAVE_XSERVER="true"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9533 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9536 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9537 if test -n "$HAVE_XSERVER"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9539 $as_echo "$HAVE_XSERVER" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9546 if test "$HAVE_XSERVER" = true ||
9547 test -n "$DISPLAY" ||
9548 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9549 as_fn_error "You seem to be running X, but no X development libraries
9550 were found. You should install the relevant development files for X
9551 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9552 sure you have development files for image handling, i.e.
9553 tiff, gif, jpeg, png and xpm.
9554 If you are sure you want Emacs compiled without X window support, pass
9555 --without-x
9556 to configure." "$LINENO" 5
9560 ### If we're using X11, we should use the X menu package.
9561 HAVE_MENUS=no
9562 case ${HAVE_X11} in
9563 yes ) HAVE_MENUS=yes ;;
9564 esac
9566 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9567 # Assume not, until told otherwise.
9568 GNU_MALLOC=yes
9569 doug_lea_malloc=yes
9570 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9571 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9573 else
9574 doug_lea_malloc=no
9577 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9578 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9580 else
9581 doug_lea_malloc=no
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9585 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9586 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 extern void (* __after_morecore_hook)();
9593 main ()
9595 __after_morecore_hook = 0
9597 return 0;
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 emacs_cv_var___after_morecore_hook=yes
9602 else
9603 emacs_cv_var___after_morecore_hook=no
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9609 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9610 if test $emacs_cv_var___after_morecore_hook = no; then
9611 doug_lea_malloc=no
9615 system_malloc=no
9616 case "$opsys" in
9617 ## darwin ld insists on the use of malloc routines in the System framework.
9618 darwin|sol2-10) system_malloc=yes ;;
9619 esac
9621 if test "${system_malloc}" = "yes"; then
9623 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9625 GNU_MALLOC=no
9626 GNU_MALLOC_reason="
9627 (The GNU allocators don't work with this system configuration.)"
9628 GMALLOC_OBJ=
9629 VMLIMIT_OBJ=
9630 else
9631 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9632 VMLIMIT_OBJ=vm-limit.o
9637 if test "$doug_lea_malloc" = "yes" ; then
9638 if test "$GNU_MALLOC" = yes ; then
9639 GNU_MALLOC_reason="
9640 (Using Doug Lea's new malloc from the GNU C Library.)"
9643 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9646 ## Use mmap directly for allocating larger buffers.
9647 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9648 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9649 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9650 case "$opsys" in
9651 gnu*) REL_ALLOC=no ;;
9652 esac
9655 if test x"${REL_ALLOC}" = x; then
9656 REL_ALLOC=${GNU_MALLOC}
9659 use_mmap_for_buffers=no
9660 case "$opsys" in
9661 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9662 esac
9667 for ac_header in $ac_header_list
9668 do :
9669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9672 eval as_val=\$$as_ac_Header
9673 if test "x$as_val" = x""yes; then :
9674 cat >>confdefs.h <<_ACEOF
9675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9676 _ACEOF
9680 done
9689 for ac_func in getpagesize
9690 do :
9691 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9692 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_GETPAGESIZE 1
9695 _ACEOF
9698 done
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9701 $as_echo_n "checking for working mmap... " >&6; }
9702 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 if test "$cross_compiling" = yes; then :
9706 ac_cv_func_mmap_fixed_mapped=no
9707 else
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 $ac_includes_default
9711 /* malloc might have been renamed as rpl_malloc. */
9712 #undef malloc
9714 /* Thanks to Mike Haertel and Jim Avera for this test.
9715 Here is a matrix of mmap possibilities:
9716 mmap private not fixed
9717 mmap private fixed at somewhere currently unmapped
9718 mmap private fixed at somewhere already mapped
9719 mmap shared not fixed
9720 mmap shared fixed at somewhere currently unmapped
9721 mmap shared fixed at somewhere already mapped
9722 For private mappings, we should verify that changes cannot be read()
9723 back from the file, nor mmap's back from the file at a different
9724 address. (There have been systems where private was not correctly
9725 implemented like the infamous i386 svr4.0, and systems where the
9726 VM page cache was not coherent with the file system buffer cache
9727 like early versions of FreeBSD and possibly contemporary NetBSD.)
9728 For shared mappings, we should conversely verify that changes get
9729 propagated back to all the places they're supposed to be.
9731 Grep wants private fixed already mapped.
9732 The main things grep needs to know about mmap are:
9733 * does it exist and is it safe to write into the mmap'd area
9734 * how to use it (BSD variants) */
9736 #include <fcntl.h>
9737 #include <sys/mman.h>
9739 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9740 char *malloc ();
9741 #endif
9743 /* This mess was copied from the GNU getpagesize.h. */
9744 #ifndef HAVE_GETPAGESIZE
9745 # ifdef _SC_PAGESIZE
9746 # define getpagesize() sysconf(_SC_PAGESIZE)
9747 # else /* no _SC_PAGESIZE */
9748 # ifdef HAVE_SYS_PARAM_H
9749 # include <sys/param.h>
9750 # ifdef EXEC_PAGESIZE
9751 # define getpagesize() EXEC_PAGESIZE
9752 # else /* no EXEC_PAGESIZE */
9753 # ifdef NBPG
9754 # define getpagesize() NBPG * CLSIZE
9755 # ifndef CLSIZE
9756 # define CLSIZE 1
9757 # endif /* no CLSIZE */
9758 # else /* no NBPG */
9759 # ifdef NBPC
9760 # define getpagesize() NBPC
9761 # else /* no NBPC */
9762 # ifdef PAGESIZE
9763 # define getpagesize() PAGESIZE
9764 # endif /* PAGESIZE */
9765 # endif /* no NBPC */
9766 # endif /* no NBPG */
9767 # endif /* no EXEC_PAGESIZE */
9768 # else /* no HAVE_SYS_PARAM_H */
9769 # define getpagesize() 8192 /* punt totally */
9770 # endif /* no HAVE_SYS_PARAM_H */
9771 # endif /* no _SC_PAGESIZE */
9773 #endif /* no HAVE_GETPAGESIZE */
9776 main ()
9778 char *data, *data2, *data3;
9779 const char *cdata2;
9780 int i, pagesize;
9781 int fd, fd2;
9783 pagesize = getpagesize ();
9785 /* First, make a file with some known garbage in it. */
9786 data = (char *) malloc (pagesize);
9787 if (!data)
9788 return 1;
9789 for (i = 0; i < pagesize; ++i)
9790 *(data + i) = rand ();
9791 umask (0);
9792 fd = creat ("conftest.mmap", 0600);
9793 if (fd < 0)
9794 return 2;
9795 if (write (fd, data, pagesize) != pagesize)
9796 return 3;
9797 close (fd);
9799 /* Next, check that the tail of a page is zero-filled. File must have
9800 non-zero length, otherwise we risk SIGBUS for entire page. */
9801 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9802 if (fd2 < 0)
9803 return 4;
9804 cdata2 = "";
9805 if (write (fd2, cdata2, 1) != 1)
9806 return 5;
9807 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9808 if (data2 == MAP_FAILED)
9809 return 6;
9810 for (i = 0; i < pagesize; ++i)
9811 if (*(data2 + i))
9812 return 7;
9813 close (fd2);
9814 if (munmap (data2, pagesize))
9815 return 8;
9817 /* Next, try to mmap the file at a fixed address which already has
9818 something else allocated at it. If we can, also make sure that
9819 we see the same garbage. */
9820 fd = open ("conftest.mmap", O_RDWR);
9821 if (fd < 0)
9822 return 9;
9823 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9824 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9825 return 10;
9826 for (i = 0; i < pagesize; ++i)
9827 if (*(data + i) != *(data2 + i))
9828 return 11;
9830 /* Finally, make sure that changes to the mapped area do not
9831 percolate back to the file as seen by read(). (This is a bug on
9832 some variants of i386 svr4.0.) */
9833 for (i = 0; i < pagesize; ++i)
9834 *(data2 + i) = *(data2 + i) + 1;
9835 data3 = (char *) malloc (pagesize);
9836 if (!data3)
9837 return 12;
9838 if (read (fd, data3, pagesize) != pagesize)
9839 return 13;
9840 for (i = 0; i < pagesize; ++i)
9841 if (*(data + i) != *(data3 + i))
9842 return 14;
9843 close (fd);
9844 return 0;
9846 _ACEOF
9847 if ac_fn_c_try_run "$LINENO"; then :
9848 ac_cv_func_mmap_fixed_mapped=yes
9849 else
9850 ac_cv_func_mmap_fixed_mapped=no
9852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9853 conftest.$ac_objext conftest.beam conftest.$ac_ext
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9858 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9861 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9864 rm -f conftest.mmap conftest.txt
9866 if test $use_mmap_for_buffers = yes; then
9868 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9870 REL_ALLOC=no
9873 LIBS="$LIBS_SYSTEM $LIBS"
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9876 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9877 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 ac_check_lib_save_LIBS=$LIBS
9881 LIBS="-ldnet $LIBS"
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char dnet_ntoa ();
9893 main ()
9895 return dnet_ntoa ();
9897 return 0;
9899 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
9901 ac_cv_lib_dnet_dnet_ntoa=yes
9902 else
9903 ac_cv_lib_dnet_dnet_ntoa=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9910 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9911 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9912 cat >>confdefs.h <<_ACEOF
9913 #define HAVE_LIBDNET 1
9914 _ACEOF
9916 LIBS="-ldnet $LIBS"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9922 $as_echo_n "checking for main in -lXbsd... " >&6; }
9923 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9925 else
9926 ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-lXbsd $LIBS"
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9933 main ()
9935 return main ();
9937 return 0;
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"; then :
9941 ac_cv_lib_Xbsd_main=yes
9942 else
9943 ac_cv_lib_Xbsd_main=no
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9950 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9951 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9952 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9957 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9958 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 ac_check_lib_save_LIBS=$LIBS
9962 LIBS="-lpthreads $LIBS"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char cma_open ();
9974 main ()
9976 return cma_open ();
9978 return 0;
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982 ac_cv_lib_pthreads_cma_open=yes
9983 else
9984 ac_cv_lib_pthreads_cma_open=no
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9991 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9992 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9993 cat >>confdefs.h <<_ACEOF
9994 #define HAVE_LIBPTHREADS 1
9995 _ACEOF
9997 LIBS="-lpthreads $LIBS"
10002 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10003 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10004 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10005 ## added to LIBS in configure would never contain the pthreads part,
10006 ## but the value used in Makefiles might. FIXME?
10008 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10009 ## be harmless on older versions of X where it happens to exist.
10010 test "$opsys" = "aix4-2" && \
10011 test $ac_cv_lib_pthreads_cma_open = yes && \
10012 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10015 case ${host_os} in
10016 aix*)
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10018 $as_echo_n "checking for -bbigtoc option... " >&6; }
10019 if test "${gdb_cv_bigtoc+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10023 case $GCC in
10024 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10025 *) gdb_cv_bigtoc=-bbigtoc ;;
10026 esac
10028 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10033 main ()
10035 int i;
10037 return 0;
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10042 else
10043 gdb_cv_bigtoc=
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10050 $as_echo "$gdb_cv_bigtoc" >&6; }
10052 esac
10054 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10055 # used for the tests that follow. We set them back to REAL_CFLAGS and
10056 # REAL_CPPFLAGS later on.
10058 REAL_CFLAGS="$CFLAGS"
10059 REAL_CPPFLAGS="$CPPFLAGS"
10061 if test "${HAVE_X11}" = "yes"; then
10062 DEFS="$C_SWITCH_X_SITE $DEFS"
10063 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10064 LIBS="-lX11 $LIBS"
10065 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10066 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10068 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10069 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10070 # but it's more convenient here to set LD_RUN_PATH
10071 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10072 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10073 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10074 export LD_RUN_PATH
10077 if test "${opsys}" = "gnu-linux"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10079 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10084 main ()
10086 XOpenDisplay ("foo");
10088 return 0;
10090 _ACEOF
10091 if ac_fn_c_try_link "$LINENO"; then :
10092 xlinux_first_failure=no
10093 else
10094 xlinux_first_failure=yes
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 if test "${xlinux_first_failure}" = "yes"; then
10099 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10100 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10101 OLD_CPPFLAGS="$CPPFLAGS"
10102 OLD_LIBS="$LIBS"
10103 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10104 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10105 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10106 LIBS="$LIBS -b i486-linuxaout"
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10111 main ()
10113 XOpenDisplay ("foo");
10115 return 0;
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 xlinux_second_failure=no
10120 else
10121 xlinux_second_failure=yes
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 if test "${xlinux_second_failure}" = "yes"; then
10126 # If we get the same failure with -b, there is no use adding -b.
10127 # So take it out. This plays safe.
10128 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10129 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10130 CPPFLAGS="$OLD_CPPFLAGS"
10131 LIBS="$OLD_LIBS"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10134 else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10136 $as_echo "yes" >&6; }
10138 else
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10144 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10145 # header files included from there.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10147 $as_echo_n "checking for Xkb... " >&6; }
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 #include <X11/Xlib.h>
10151 #include <X11/XKBlib.h>
10153 main ()
10155 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10157 return 0;
10159 _ACEOF
10160 if ac_fn_c_try_link "$LINENO"; then :
10161 emacs_xkb=yes
10162 else
10163 emacs_xkb=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10168 $as_echo "$emacs_xkb" >&6; }
10169 if test $emacs_xkb = yes; then
10171 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10175 for ac_func in XrmSetDatabase XScreenResourceString \
10176 XScreenNumberOfScreen XSetWMProtocols
10177 do :
10178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10180 eval as_val=\$$as_ac_var
10181 if test "x$as_val" = x""yes; then :
10182 cat >>confdefs.h <<_ACEOF
10183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10184 _ACEOF
10187 done
10191 if test "${window_system}" = "x11"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10193 $as_echo_n "checking X11 version 6... " >&6; }
10194 if test "${emacs_cv_x11_version_6+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 #include <X11/Xlib.h>
10201 main ()
10203 #if XlibSpecificationRelease < 6
10204 fail;
10205 #endif
10208 return 0;
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 emacs_cv_x11_version_6=yes
10213 else
10214 emacs_cv_x11_version_6=no
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10220 if test $emacs_cv_x11_version_6 = yes; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10222 $as_echo "6 or newer" >&6; }
10224 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10227 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10229 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10230 ## XIM support.
10231 case "$opsys" in
10232 sol2-*) : ;;
10234 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10237 esac
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10240 $as_echo "before 6" >&6; }
10245 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10246 HAVE_RSVG=no
10247 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
10248 if test "${with_rsvg}" != "no"; then
10249 RSVG_REQUIRED=2.11.0
10250 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10253 succeeded=no
10255 # Extract the first word of "pkg-config", so it can be a program name with args.
10256 set dummy pkg-config; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 case $PKG_CONFIG in
10263 [\\/]* | ?:[\\/]*)
10264 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10278 done
10279 done
10280 IFS=$as_save_IFS
10282 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10284 esac
10286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10287 if test -n "$PKG_CONFIG"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10289 $as_echo "$PKG_CONFIG" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10297 if test "$PKG_CONFIG" = "no" ; then
10299 else
10300 PKG_CONFIG_MIN_VERSION=0.9.0
10301 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10303 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10305 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10307 $as_echo "yes" >&6; }
10308 succeeded=yes
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10311 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10312 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10314 $as_echo "$RSVG_CFLAGS" >&6; }
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10317 $as_echo_n "checking RSVG_LIBS... " >&6; }
10318 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10320 $as_echo "$RSVG_LIBS" >&6; }
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10324 RSVG_CFLAGS=""
10325 RSVG_LIBS=""
10326 ## If we have a custom action on failure, don't print errors, but
10327 ## do set a variable so people can do so.
10328 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10334 else
10335 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10336 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10340 if test $succeeded = yes; then
10341 HAVE_RSVG=yes
10342 else
10349 if test $HAVE_RSVG = yes; then
10351 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10353 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10354 LIBS="$RSVG_LIBS $LIBS"
10359 HAVE_IMAGEMAGICK=no
10360 if test "${HAVE_X11}" = "yes"; then
10361 if test "${with_imagemagick}" != "no"; then
10362 ## 6.2.8 is the earliest version known to work, but earlier versions
10363 ## might work - let us know if you find one.
10364 ## 6.0.7 does not work. See bug#7955.
10365 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10367 succeeded=no
10369 # Extract the first word of "pkg-config", so it can be a program name with args.
10370 set dummy pkg-config; ac_word=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 case $PKG_CONFIG in
10377 [\\/]* | ?:[\\/]*)
10378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10392 done
10393 done
10394 IFS=$as_save_IFS
10396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10398 esac
10400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10401 if test -n "$PKG_CONFIG"; then
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10403 $as_echo "$PKG_CONFIG" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10411 if test "$PKG_CONFIG" = "no" ; then
10413 else
10414 PKG_CONFIG_MIN_VERSION=0.9.0
10415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10417 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10419 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10421 $as_echo "yes" >&6; }
10422 succeeded=yes
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10425 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10426 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10428 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10431 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10432 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10434 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 IMAGEMAGICK_CFLAGS=""
10439 IMAGEMAGICK_LIBS=""
10440 ## If we have a custom action on failure, don't print errors, but
10441 ## do set a variable so people can do so.
10442 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10448 else
10449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10454 if test $succeeded = yes; then
10455 HAVE_IMAGEMAGICK=yes
10456 else
10463 if test $HAVE_IMAGEMAGICK = yes; then
10465 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10467 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10468 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10469 for ac_func in MagickExportImagePixels
10470 do :
10471 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10472 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10475 _ACEOF
10478 done
10485 HAVE_GTK=no
10486 GTK_OBJ=
10487 if test "${with_gtk3}" = "yes"; then
10488 GLIB_REQUIRED=2.28
10489 GTK_REQUIRED=3.0
10490 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10493 succeeded=no
10495 # Extract the first word of "pkg-config", so it can be a program name with args.
10496 set dummy pkg-config; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 case $PKG_CONFIG in
10503 [\\/]* | ?:[\\/]*)
10504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10514 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10518 done
10519 done
10520 IFS=$as_save_IFS
10522 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10524 esac
10526 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10527 if test -n "$PKG_CONFIG"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10529 $as_echo "$PKG_CONFIG" >&6; }
10530 else
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10537 if test "$PKG_CONFIG" = "no" ; then
10538 pkg_check_gtk=no
10539 else
10540 PKG_CONFIG_MIN_VERSION=0.9.0
10541 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10543 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10545 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547 $as_echo "yes" >&6; }
10548 succeeded=yes
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10551 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10552 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10554 $as_echo "$GTK_CFLAGS" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10557 $as_echo_n "checking GTK_LIBS... " >&6; }
10558 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10560 $as_echo "$GTK_LIBS" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 GTK_CFLAGS=""
10565 GTK_LIBS=""
10566 ## If we have a custom action on failure, don't print errors, but
10567 ## do set a variable so people can do so.
10568 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10574 else
10575 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10576 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10580 if test $succeeded = yes; then
10581 pkg_check_gtk=yes
10582 else
10583 pkg_check_gtk=no
10586 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10587 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10590 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10592 GTK_OBJ=emacsgtkfixed.o
10595 if test "$pkg_check_gtk" != "yes"; then
10596 HAVE_GTK=no
10597 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10598 GLIB_REQUIRED=2.6
10599 GTK_REQUIRED=2.6
10600 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10603 succeeded=no
10605 # Extract the first word of "pkg-config", so it can be a program name with args.
10606 set dummy pkg-config; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 case $PKG_CONFIG in
10613 [\\/]* | ?:[\\/]*)
10614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10628 done
10629 done
10630 IFS=$as_save_IFS
10632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10634 esac
10636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10637 if test -n "$PKG_CONFIG"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10639 $as_echo "$PKG_CONFIG" >&6; }
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10647 if test "$PKG_CONFIG" = "no" ; then
10648 pkg_check_gtk=no
10649 else
10650 PKG_CONFIG_MIN_VERSION=0.9.0
10651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10653 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10655 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10658 succeeded=yes
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10661 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10662 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10664 $as_echo "$GTK_CFLAGS" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10667 $as_echo_n "checking GTK_LIBS... " >&6; }
10668 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10670 $as_echo "$GTK_LIBS" >&6; }
10671 else
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10674 GTK_CFLAGS=""
10675 GTK_LIBS=""
10676 ## If we have a custom action on failure, don't print errors, but
10677 ## do set a variable so people can do so.
10678 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10684 else
10685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10690 if test $succeeded = yes; then
10691 pkg_check_gtk=yes
10692 else
10693 pkg_check_gtk=no
10696 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10697 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10702 if test x"$pkg_check_gtk" = xyes; then
10706 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10707 CFLAGS="$CFLAGS $GTK_CFLAGS"
10708 LIBS="$GTK_LIBS $LIBS"
10709 GTK_COMPILES=no
10710 for ac_func in gtk_main
10711 do :
10712 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10713 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define HAVE_GTK_MAIN 1
10716 _ACEOF
10717 GTK_COMPILES=yes
10719 done
10721 if test "${GTK_COMPILES}" != "yes"; then
10722 if test "$USE_X_TOOLKIT" != "maybe"; then
10723 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10725 else
10726 HAVE_GTK=yes
10728 $as_echo "#define USE_GTK 1" >>confdefs.h
10730 GTK_OBJ="gtkutil.o $GTK_OBJ"
10731 USE_X_TOOLKIT=none
10732 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10736 closing open displays. This is no problem if you just use
10737 one display, but if you use more than one and close one of them
10738 Emacs may crash." >&5
10739 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10740 closing open displays. This is no problem if you just use
10741 one display, but if you use more than one and close one of them
10742 Emacs may crash." >&2;}
10743 sleep 3
10751 if test "${HAVE_GTK}" = "yes"; then
10753 if test "$with_toolkit_scroll_bars" != no; then
10754 with_toolkit_scroll_bars=yes
10757 HAVE_GTK_FILE_SELECTION=no
10758 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10759 #include <gtk/gtk.h>
10761 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10762 HAVE_GTK_FILE_SELECTION=yes
10763 else
10764 HAVE_GTK_FILE_SELECTION=no
10767 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10768 for ac_func in gtk_file_selection_new
10769 do :
10770 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10771 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10772 cat >>confdefs.h <<_ACEOF
10773 #define HAVE_GTK_FILE_SELECTION_NEW 1
10774 _ACEOF
10777 done
10781 HAVE_GTK_AND_PTHREAD=no
10782 for ac_header in pthread.h
10783 do :
10784 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10785 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10786 cat >>confdefs.h <<_ACEOF
10787 #define HAVE_PTHREAD_H 1
10788 _ACEOF
10792 done
10794 if test "$ac_cv_header_pthread_h"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10796 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10797 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lpthread $LIBS"
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char pthread_self ();
10813 main ()
10815 return pthread_self ();
10817 return 0;
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821 ac_cv_lib_pthread_pthread_self=yes
10822 else
10823 ac_cv_lib_pthread_pthread_self=no
10825 rm -f core conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10830 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10831 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10832 HAVE_GTK_AND_PTHREAD=yes
10836 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10837 case "${canonical}" in
10838 *-hpux*) ;;
10839 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10840 esac
10842 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10846 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10847 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10848 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10849 gtk_orientable_set_orientation
10850 do :
10851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10853 eval as_val=\$$as_ac_var
10854 if test "x$as_val" = x""yes; then :
10855 cat >>confdefs.h <<_ACEOF
10856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10857 _ACEOF
10860 done
10865 HAVE_DBUS=no
10866 DBUS_OBJ=
10867 if test "${with_dbus}" = "yes"; then
10869 succeeded=no
10871 # Extract the first word of "pkg-config", so it can be a program name with args.
10872 set dummy pkg-config; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 case $PKG_CONFIG in
10879 [\\/]* | ?:[\\/]*)
10880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10894 done
10895 done
10896 IFS=$as_save_IFS
10898 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10900 esac
10902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10903 if test -n "$PKG_CONFIG"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10905 $as_echo "$PKG_CONFIG" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10913 if test "$PKG_CONFIG" = "no" ; then
10914 HAVE_DBUS=no
10915 else
10916 PKG_CONFIG_MIN_VERSION=0.9.0
10917 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10919 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10921 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923 $as_echo "yes" >&6; }
10924 succeeded=yes
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10927 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10928 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10930 $as_echo "$DBUS_CFLAGS" >&6; }
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10933 $as_echo_n "checking DBUS_LIBS... " >&6; }
10934 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10936 $as_echo "$DBUS_LIBS" >&6; }
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10940 DBUS_CFLAGS=""
10941 DBUS_LIBS=""
10942 ## If we have a custom action on failure, don't print errors, but
10943 ## do set a variable so people can do so.
10944 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10950 else
10951 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10952 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10956 if test $succeeded = yes; then
10957 HAVE_DBUS=yes
10958 else
10959 HAVE_DBUS=no
10962 if test "$HAVE_DBUS" = yes; then
10963 LIBS="$LIBS $DBUS_LIBS"
10965 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10967 for ac_func in dbus_watch_get_unix_fd
10968 do :
10969 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10970 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10973 _ACEOF
10976 done
10978 DBUS_OBJ=dbusbind.o
10983 HAVE_GCONF=no
10984 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10986 succeeded=no
10988 # Extract the first word of "pkg-config", so it can be a program name with args.
10989 set dummy pkg-config; ac_word=$2
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991 $as_echo_n "checking for $ac_word... " >&6; }
10992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 case $PKG_CONFIG in
10996 [\\/]* | ?:[\\/]*)
10997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11011 done
11012 done
11013 IFS=$as_save_IFS
11015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11017 esac
11019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11020 if test -n "$PKG_CONFIG"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11022 $as_echo "$PKG_CONFIG" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11030 if test "$PKG_CONFIG" = "no" ; then
11031 HAVE_GCONF=no
11032 else
11033 PKG_CONFIG_MIN_VERSION=0.9.0
11034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11036 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11038 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040 $as_echo "yes" >&6; }
11041 succeeded=yes
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11044 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11045 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11047 $as_echo "$GCONF_CFLAGS" >&6; }
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11050 $as_echo_n "checking GCONF_LIBS... " >&6; }
11051 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11053 $as_echo "$GCONF_LIBS" >&6; }
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11057 GCONF_CFLAGS=""
11058 GCONF_LIBS=""
11059 ## If we have a custom action on failure, don't print errors, but
11060 ## do set a variable so people can do so.
11061 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11067 else
11068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11073 if test $succeeded = yes; then
11074 HAVE_GCONF=yes
11075 else
11076 HAVE_GCONF=no
11079 if test "$HAVE_GCONF" = yes; then
11081 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11083 for ac_func in g_type_init
11084 do :
11085 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11086 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11087 cat >>confdefs.h <<_ACEOF
11088 #define HAVE_G_TYPE_INIT 1
11089 _ACEOF
11092 done
11097 HAVE_LIBSELINUX=no
11098 LIBSELINUX_LIBS=
11099 if test "${with_selinux}" = "yes"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11101 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11102 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lselinux $LIBS"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char lgetfilecon ();
11118 main ()
11120 return lgetfilecon ();
11122 return 0;
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126 ac_cv_lib_selinux_lgetfilecon=yes
11127 else
11128 ac_cv_lib_selinux_lgetfilecon=no
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 LIBS=$ac_check_lib_save_LIBS
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11135 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11136 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11137 HAVE_LIBSELINUX=yes
11138 else
11139 HAVE_LIBSELINUX=no
11142 if test "$HAVE_LIBSELINUX" = yes; then
11144 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11146 LIBSELINUX_LIBS=-lselinux
11151 HAVE_GNUTLS=no
11152 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11153 if test "${with_gnutls}" = "yes" ; then
11155 succeeded=no
11157 # Extract the first word of "pkg-config", so it can be a program name with args.
11158 set dummy pkg-config; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 case $PKG_CONFIG in
11165 [\\/]* | ?:[\\/]*)
11166 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH
11172 IFS=$as_save_IFS
11173 test -z "$as_dir" && as_dir=.
11174 for ac_exec_ext in '' $ac_executable_extensions; do
11175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11176 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 break 2
11180 done
11181 done
11182 IFS=$as_save_IFS
11184 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11186 esac
11188 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11189 if test -n "$PKG_CONFIG"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11191 $as_echo "$PKG_CONFIG" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11199 if test "$PKG_CONFIG" = "no" ; then
11200 HAVE_GNUTLS=no
11201 else
11202 PKG_CONFIG_MIN_VERSION=0.9.0
11203 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11205 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11207 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; }
11210 succeeded=yes
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11213 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11214 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11216 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11219 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11220 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11222 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 LIBGNUTLS_CFLAGS=""
11227 LIBGNUTLS_LIBS=""
11228 ## If we have a custom action on failure, don't print errors, but
11229 ## do set a variable so people can do so.
11230 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11236 else
11237 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11238 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11242 if test $succeeded = yes; then
11243 HAVE_GNUTLS=yes
11244 else
11245 HAVE_GNUTLS=no
11248 if test "${HAVE_GNUTLS}" = "yes"; then
11250 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11254 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11255 LIBS="$LIBGNUTLS_LIBS $LIBS"
11256 for ac_func in gnutls_certificate_set_verify_function
11257 do :
11258 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11259 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11260 cat >>confdefs.h <<_ACEOF
11261 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11262 _ACEOF
11263 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11265 done
11268 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11270 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11278 HAVE_XAW3D=no
11279 LUCID_LIBW=
11280 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11281 if test "$with_xaw3d" != no; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11283 $as_echo_n "checking for xaw3d... " >&6; }
11284 if test "${emacs_cv_xaw3d+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 #include <X11/Intrinsic.h>
11291 #include <X11/Xaw3d/Simple.h>
11293 main ()
11297 return 0;
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11302 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11303 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-lXaw3d $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11311 /* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char XawScrollbarSetThumb ();
11319 main ()
11321 return XawScrollbarSetThumb ();
11323 return 0;
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11328 else
11329 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11331 rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11336 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11337 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11338 emacs_cv_xaw3d=yes
11339 else
11340 emacs_cv_xaw3d=no
11343 else
11344 emacs_cv_xaw3d=no
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11350 else
11351 emacs_cv_xaw3d=no
11353 if test $emacs_cv_xaw3d = yes; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11355 $as_echo "yes; using Lucid toolkit" >&6; }
11356 USE_X_TOOLKIT=LUCID
11357 HAVE_XAW3D=yes
11358 LUCID_LIBW=-lXaw3d
11360 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11362 else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11366 $as_echo_n "checking for libXaw... " >&6; }
11367 if test "${emacs_cv_xaw+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11373 #include <X11/Intrinsic.h>
11374 #include <X11/Xaw/Simple.h>
11376 main ()
11380 return 0;
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 emacs_cv_xaw=yes
11385 else
11386 emacs_cv_xaw=no
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11392 if test $emacs_cv_xaw = yes; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11394 $as_echo "yes; using Lucid toolkit" >&6; }
11395 USE_X_TOOLKIT=LUCID
11396 LUCID_LIBW=-lXaw
11397 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11398 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11399 else
11400 as_fn_error "No X toolkit could be found.
11401 If you are sure you want Emacs compiled without an X toolkit, pass
11402 --with-x-toolkit=no
11403 to configure. Otherwise, install the development libraries for the toolkit
11404 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11409 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11411 LIBXTR6=
11412 if test "${USE_X_TOOLKIT}" != "none"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11414 $as_echo_n "checking X11 toolkit version... " >&6; }
11415 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420 #include <X11/Intrinsic.h>
11422 main ()
11424 #if XtSpecificationRelease < 6
11425 fail;
11426 #endif
11429 return 0;
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433 emacs_cv_x11_toolkit_version_6=yes
11434 else
11435 emacs_cv_x11_toolkit_version_6=no
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11441 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11442 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11444 $as_echo "6 or newer" >&6; }
11446 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11448 LIBXTR6="-lSM -lICE"
11449 case "$opsys" in
11450 ## Use libw.a along with X11R6 Xt.
11451 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11452 esac
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11455 $as_echo "before 6" >&6; }
11458 OLDLIBS="$LIBS"
11459 if test x$HAVE_X11XTR6 = xyes; then
11460 LIBS="-lXt -lSM -lICE $LIBS"
11461 else
11462 LIBS="-lXt $LIBS"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11465 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11466 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 ac_check_lib_save_LIBS=$LIBS
11470 LIBS="-lXmu $LIBS"
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
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
11478 extern "C"
11479 #endif
11480 char XmuConvertStandardSelection ();
11482 main ()
11484 return XmuConvertStandardSelection ();
11486 return 0;
11488 _ACEOF
11489 if ac_fn_c_try_link "$LINENO"; then :
11490 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11491 else
11492 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11499 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11500 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_LIBXMU 1
11503 _ACEOF
11505 LIBS="-lXmu $LIBS"
11509 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11513 LIBXMU=-lXmu
11514 case $opsys in
11515 ## These systems don't supply Xmu.
11516 hpux* | aix4-2 )
11517 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11519 esac
11522 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11523 if test "${HAVE_X11}" = "yes"; then
11524 if test "${USE_X_TOOLKIT}" != "none"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11526 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11527 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-lXext $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char XShapeQueryExtension ();
11543 main ()
11545 return XShapeQueryExtension ();
11547 return 0;
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_Xext_XShapeQueryExtension=yes
11552 else
11553 ac_cv_lib_Xext_XShapeQueryExtension=no
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11560 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11561 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11562 cat >>confdefs.h <<_ACEOF
11563 #define HAVE_LIBXEXT 1
11564 _ACEOF
11566 LIBS="-lXext $LIBS"
11573 LIBXP=
11574 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11576 $as_echo_n "checking for Motif version 2.1... " >&6; }
11577 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #include <Xm/Xm.h>
11584 main ()
11586 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11587 int x = 5;
11588 #else
11589 Motif version prior to 2.1.
11590 #endif
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_compile "$LINENO"; then :
11596 emacs_cv_motif_version_2_1=yes
11597 else
11598 emacs_cv_motif_version_2_1=no
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11603 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11604 if test $emacs_cv_motif_version_2_1 = yes; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11606 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11607 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-lXp $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char XpCreateContext ();
11623 main ()
11625 return XpCreateContext ();
11627 return 0;
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_Xp_XpCreateContext=yes
11632 else
11633 ac_cv_lib_Xp_XpCreateContext=no
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11640 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11641 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11642 LIBXP=-lXp
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11647 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11648 if test "${emacs_cv_lesstif+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 # We put this in CFLAGS temporarily to precede other -I options
11652 # that might be in CFLAGS temporarily.
11653 # We put this in CPPFLAGS where it precedes the other -I options.
11654 OLD_CPPFLAGS=$CPPFLAGS
11655 OLD_CFLAGS=$CFLAGS
11656 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11657 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11662 main ()
11664 int x = 5;
11666 return 0;
11668 _ACEOF
11669 if ac_fn_c_try_compile "$LINENO"; then :
11670 emacs_cv_lesstif=yes
11671 else
11672 emacs_cv_lesstif=no
11674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11677 $as_echo "$emacs_cv_lesstif" >&6; }
11678 if test $emacs_cv_lesstif = yes; then
11679 # Make sure this -I option remains in CPPFLAGS after it is set
11680 # back to REAL_CPPFLAGS.
11681 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11682 # have those other -I options anyway. Ultimately, having this
11683 # directory ultimately in CPPFLAGS will be enough.
11684 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11685 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11686 else
11687 CFLAGS=$OLD_CFLAGS
11688 CPPFLAGS=$OLD_CPPFLAGS
11694 USE_TOOLKIT_SCROLL_BARS=no
11695 if test "${with_toolkit_scroll_bars}" != "no"; then
11696 if test "${USE_X_TOOLKIT}" != "none"; then
11697 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11698 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11700 HAVE_XAW3D=no
11701 USE_TOOLKIT_SCROLL_BARS=yes
11702 elif test "${HAVE_XAW3D}" = "yes"; then
11703 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11705 USE_TOOLKIT_SCROLL_BARS=yes
11707 elif test "${HAVE_GTK}" = "yes"; then
11708 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11710 USE_TOOLKIT_SCROLL_BARS=yes
11711 elif test "${HAVE_NS}" = "yes"; then
11712 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11714 USE_TOOLKIT_SCROLL_BARS=yes
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11721 #include <X11/Xlib.h>
11722 #include <X11/Xresource.h>
11724 main ()
11726 XIMProc callback;
11728 return 0;
11730 _ACEOF
11731 if ac_fn_c_try_compile "$LINENO"; then :
11732 HAVE_XIM=yes
11734 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11736 else
11737 HAVE_XIM=no
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 if test "${with_xim}" != "no"; then
11744 $as_echo "#define USE_XIM 1" >>confdefs.h
11749 if test "${HAVE_XIM}" != "no"; then
11750 late_CFLAGS=$CFLAGS
11751 if test "$GCC" = yes; then
11752 CFLAGS="$CFLAGS --pedantic-errors"
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11757 #include <X11/Xlib.h>
11758 #include <X11/Xresource.h>
11760 main ()
11762 Display *display;
11763 XrmDatabase db;
11764 char *res_name;
11765 char *res_class;
11766 XIMProc callback;
11767 XPointer *client_data;
11768 #ifndef __GNUC__
11769 /* If we're not using GCC, it's probably not XFree86, and this is
11770 probably right, but we can't use something like --pedantic-errors. */
11771 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11772 char*, XIMProc, XPointer*);
11773 #endif
11774 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11775 client_data);
11777 return 0;
11779 _ACEOF
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781 emacs_cv_arg6_star=yes
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784 if test "$emacs_cv_arg6_star" = yes; then
11785 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11787 else
11788 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11791 CFLAGS=$late_CFLAGS
11794 ### Start of font-backend (under any platform) section.
11795 # (nothing here yet -- this is a placeholder)
11796 ### End of font-backend (under any platform) section.
11798 ### Start of font-backend (under X11) section.
11799 if test "${HAVE_X11}" = "yes"; then
11801 succeeded=no
11803 # Extract the first word of "pkg-config", so it can be a program name with args.
11804 set dummy pkg-config; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 case $PKG_CONFIG in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11826 done
11827 done
11828 IFS=$as_save_IFS
11830 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11832 esac
11834 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11835 if test -n "$PKG_CONFIG"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11837 $as_echo "$PKG_CONFIG" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11845 if test "$PKG_CONFIG" = "no" ; then
11846 HAVE_FC=no
11847 else
11848 PKG_CONFIG_MIN_VERSION=0.9.0
11849 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11851 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11853 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855 $as_echo "yes" >&6; }
11856 succeeded=yes
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11859 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11860 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11862 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11865 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11866 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11868 $as_echo "$FONTCONFIG_LIBS" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872 FONTCONFIG_CFLAGS=""
11873 FONTCONFIG_LIBS=""
11874 ## If we have a custom action on failure, don't print errors, but
11875 ## do set a variable so people can do so.
11876 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11882 else
11883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11888 if test $succeeded = yes; then
11889 HAVE_FC=yes
11890 else
11891 HAVE_FC=no
11895 ## Use -lXft if available, unless `--with-xft=no'.
11896 HAVE_XFT=maybe
11897 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11898 with_xft="no";
11900 if test "x${with_xft}" != "xno"; then
11903 succeeded=no
11905 # Extract the first word of "pkg-config", so it can be a program name with args.
11906 set dummy pkg-config; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $PKG_CONFIG in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11932 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11934 esac
11936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11937 if test -n "$PKG_CONFIG"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11939 $as_echo "$PKG_CONFIG" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11947 if test "$PKG_CONFIG" = "no" ; then
11948 HAVE_XFT=no
11949 else
11950 PKG_CONFIG_MIN_VERSION=0.9.0
11951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11953 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11955 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957 $as_echo "yes" >&6; }
11958 succeeded=yes
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11961 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11962 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11964 $as_echo "$XFT_CFLAGS" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11967 $as_echo_n "checking XFT_LIBS... " >&6; }
11968 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11970 $as_echo "$XFT_LIBS" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 XFT_CFLAGS=""
11975 XFT_LIBS=""
11976 ## If we have a custom action on failure, don't print errors, but
11977 ## do set a variable so people can do so.
11978 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11984 else
11985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11990 if test $succeeded = yes; then
11992 else
11993 HAVE_XFT=no
11996 ## Because xftfont.c uses XRenderQueryExtension, we also
11997 ## need to link to -lXrender.
11998 HAVE_XRENDER=no
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12000 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12001 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lXrender $LIBS"
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char XRenderQueryExtension ();
12017 main ()
12019 return XRenderQueryExtension ();
12021 return 0;
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12026 else
12027 ac_cv_lib_Xrender_XRenderQueryExtension=no
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12034 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12035 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12036 HAVE_XRENDER=yes
12039 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12040 OLD_CPPFLAGS="$CPPFLAGS"
12041 OLD_CFLAGS="$CFLAGS"
12042 OLD_LIBS="$LIBS"
12043 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12044 CFLAGS="$CFLAGS $XFT_CFLAGS"
12045 XFT_LIBS="-lXrender $XFT_LIBS"
12046 LIBS="$XFT_LIBS $LIBS"
12047 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12048 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12050 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12051 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lXft $XFT_LIBS $LIBS"
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char XftFontOpen ();
12067 main ()
12069 return XftFontOpen ();
12071 return 0;
12073 _ACEOF
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_lib_Xft_XftFontOpen=yes
12076 else
12077 ac_cv_lib_Xft_XftFontOpen=no
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12084 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12085 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12086 HAVE_XFT=yes
12093 if test "${HAVE_XFT}" = "yes"; then
12095 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12098 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12099 else
12100 CPPFLAGS="$OLD_CPPFLAGS"
12101 CFLAGS="$OLD_CFLAGS"
12102 LIBS="$OLD_LIBS"
12103 fi # "${HAVE_XFT}" = "yes"
12104 fi # "$HAVE_XFT" != no
12105 fi # "x${with_xft}" != "xno"
12107 ## We used to allow building with FreeType and without Xft.
12108 ## However, the ftx font backend driver is not in good shape.
12109 if test "$HAVE_XFT" != "yes"; then
12110 HAVE_XFT=no
12111 HAVE_FREETYPE=no
12112 else
12114 succeeded=no
12116 # Extract the first word of "pkg-config", so it can be a program name with args.
12117 set dummy pkg-config; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 case $PKG_CONFIG in
12124 [\\/]* | ?:[\\/]*)
12125 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12131 IFS=$as_save_IFS
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12135 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12137 break 2
12139 done
12140 done
12141 IFS=$as_save_IFS
12143 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12145 esac
12147 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12148 if test -n "$PKG_CONFIG"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12150 $as_echo "$PKG_CONFIG" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12158 if test "$PKG_CONFIG" = "no" ; then
12159 HAVE_FREETYPE=no
12160 else
12161 PKG_CONFIG_MIN_VERSION=0.9.0
12162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12164 $as_echo_n "checking for freetype2... " >&6; }
12166 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12168 $as_echo "yes" >&6; }
12169 succeeded=yes
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12172 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12173 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12175 $as_echo "$FREETYPE_CFLAGS" >&6; }
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12178 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12179 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12181 $as_echo "$FREETYPE_LIBS" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 FREETYPE_CFLAGS=""
12186 FREETYPE_LIBS=""
12187 ## If we have a custom action on failure, don't print errors, but
12188 ## do set a variable so people can do so.
12189 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12195 else
12196 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12197 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12201 if test $succeeded = yes; then
12202 HAVE_FREETYPE=yes
12203 else
12204 HAVE_FREETYPE=no
12208 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12211 HAVE_LIBOTF=no
12212 if test "${HAVE_FREETYPE}" = "yes"; then
12214 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12216 if test "${with_libotf}" != "no"; then
12218 succeeded=no
12220 # Extract the first word of "pkg-config", so it can be a program name with args.
12221 set dummy pkg-config; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 case $PKG_CONFIG in
12228 [\\/]* | ?:[\\/]*)
12229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12243 done
12244 done
12245 IFS=$as_save_IFS
12247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12249 esac
12251 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12252 if test -n "$PKG_CONFIG"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12254 $as_echo "$PKG_CONFIG" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12262 if test "$PKG_CONFIG" = "no" ; then
12263 HAVE_LIBOTF=no
12264 else
12265 PKG_CONFIG_MIN_VERSION=0.9.0
12266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12268 $as_echo_n "checking for libotf... " >&6; }
12270 if $PKG_CONFIG --exists "libotf" 2>&5; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272 $as_echo "yes" >&6; }
12273 succeeded=yes
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12276 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12277 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12279 $as_echo "$LIBOTF_CFLAGS" >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12282 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12283 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12285 $as_echo "$LIBOTF_LIBS" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 LIBOTF_CFLAGS=""
12290 LIBOTF_LIBS=""
12291 ## If we have a custom action on failure, don't print errors, but
12292 ## do set a variable so people can do so.
12293 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12299 else
12300 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12301 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12305 if test $succeeded = yes; then
12306 HAVE_LIBOTF=yes
12307 else
12308 HAVE_LIBOTF=no
12311 if test "$HAVE_LIBOTF" = "yes"; then
12313 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12316 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12317 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-lotf $LIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char OTF_get_variation_glyphs ();
12333 main ()
12335 return OTF_get_variation_glyphs ();
12337 return 0;
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12342 else
12343 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12350 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12351 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12352 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12353 else
12354 HAVE_OTF_GET_VARIATION_GLYPHS=no
12357 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12359 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12366 HAVE_M17N_FLT=no
12367 if test "${HAVE_LIBOTF}" = yes; then
12368 if test "${with_m17n_flt}" != "no"; then
12370 succeeded=no
12372 # Extract the first word of "pkg-config", so it can be a program name with args.
12373 set dummy pkg-config; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 case $PKG_CONFIG in
12380 [\\/]* | ?:[\\/]*)
12381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12395 done
12396 done
12397 IFS=$as_save_IFS
12399 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12401 esac
12403 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12404 if test -n "$PKG_CONFIG"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12406 $as_echo "$PKG_CONFIG" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12414 if test "$PKG_CONFIG" = "no" ; then
12415 HAVE_M17N_FLT=no
12416 else
12417 PKG_CONFIG_MIN_VERSION=0.9.0
12418 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12420 $as_echo_n "checking for m17n-flt... " >&6; }
12422 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12424 $as_echo "yes" >&6; }
12425 succeeded=yes
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12428 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12429 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12431 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12434 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12435 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12437 $as_echo "$M17N_FLT_LIBS" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 M17N_FLT_CFLAGS=""
12442 M17N_FLT_LIBS=""
12443 ## If we have a custom action on failure, don't print errors, but
12444 ## do set a variable so people can do so.
12445 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12451 else
12452 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12453 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12457 if test $succeeded = yes; then
12458 HAVE_M17N_FLT=yes
12459 else
12460 HAVE_M17N_FLT=no
12463 if test "$HAVE_M17N_FLT" = "yes"; then
12465 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12470 else
12471 HAVE_XFT=no
12472 HAVE_FREETYPE=no
12473 HAVE_LIBOTF=no
12474 HAVE_M17N_FLT=no
12477 ### End of font-backend (under X11) section.
12488 ### Use -lXpm if available, unless `--with-xpm=no'.
12489 HAVE_XPM=no
12490 LIBXPM=
12491 if test "${HAVE_X11}" = "yes"; then
12492 if test "${with_xpm}" != "no"; then
12493 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12494 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12496 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12497 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 ac_check_lib_save_LIBS=$LIBS
12501 LIBS="-lXpm -lX11 $LIBS"
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char XpmReadFileToPixmap ();
12513 main ()
12515 return XpmReadFileToPixmap ();
12517 return 0;
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12522 else
12523 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12525 rm -f core conftest.err conftest.$ac_objext \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12530 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12531 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12532 HAVE_XPM=yes
12538 if test "${HAVE_XPM}" = "yes"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12540 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 #include "X11/xpm.h"
12544 #ifndef XpmReturnAllocPixels
12545 no_return_alloc_pixels
12546 #endif
12548 _ACEOF
12549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12550 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12551 HAVE_XPM=no
12552 else
12553 HAVE_XPM=yes
12555 rm -f conftest*
12558 if test "${HAVE_XPM}" = "yes"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12560 $as_echo "yes" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12568 if test "${HAVE_XPM}" = "yes"; then
12570 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12572 LIBXPM=-lXpm
12577 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12578 HAVE_JPEG=no
12579 LIBJPEG=
12580 if test "${HAVE_X11}" = "yes"; then
12581 if test "${with_jpeg}" != "no"; then
12582 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12583 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12585 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12586 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-ljpeg $LIBS"
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char jpeg_destroy_compress ();
12602 main ()
12604 return jpeg_destroy_compress ();
12606 return 0;
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"; then :
12610 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12611 else
12612 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12614 rm -f core conftest.err conftest.$ac_objext \
12615 conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12619 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12620 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12621 HAVE_JPEG=yes
12629 if test "${HAVE_JPEG}" = "yes"; then
12630 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #include <jpeglib.h>
12635 version=JPEG_LIB_VERSION
12637 _ACEOF
12638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12639 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12640 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12644 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12645 HAVE_JPEG=no
12647 rm -f conftest*
12650 if test "${HAVE_JPEG}" = "yes"; then
12651 LIBJPEG=-ljpeg
12656 ### Use -lpng if available, unless `--with-png=no'.
12657 HAVE_PNG=no
12658 LIBPNG=
12659 if test "${HAVE_X11}" = "yes"; then
12660 if test "${with_png}" != "no"; then
12661 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12662 # in /usr/include/libpng.
12663 for ac_header in png.h libpng/png.h
12664 do :
12665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12666 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12667 eval as_val=\$$as_ac_Header
12668 if test "x$as_val" = x""yes; then :
12669 cat >>confdefs.h <<_ACEOF
12670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12671 _ACEOF
12675 done
12677 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12679 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12680 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 ac_check_lib_save_LIBS=$LIBS
12684 LIBS="-lpng -lz -lm $LIBS"
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 char png_get_channels ();
12696 main ()
12698 return png_get_channels ();
12700 return 0;
12702 _ACEOF
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 ac_cv_lib_png_png_get_channels=yes
12705 else
12706 ac_cv_lib_png_png_get_channels=no
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12713 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12714 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12715 HAVE_PNG=yes
12721 if test "${HAVE_PNG}" = "yes"; then
12723 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12725 LIBPNG="-lpng -lz -lm"
12730 ### Use -ltiff if available, unless `--with-tiff=no'.
12731 HAVE_TIFF=no
12732 LIBTIFF=
12733 if test "${HAVE_X11}" = "yes"; then
12734 if test "${with_tiff}" != "no"; then
12735 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12736 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12737 tifflibs="-lz -lm"
12738 # At least one tiff package requires the jpeg library.
12739 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12741 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12742 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 ac_check_lib_save_LIBS=$LIBS
12746 LIBS="-ltiff $tifflibs $LIBS"
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char TIFFGetVersion ();
12758 main ()
12760 return TIFFGetVersion ();
12762 return 0;
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766 ac_cv_lib_tiff_TIFFGetVersion=yes
12767 else
12768 ac_cv_lib_tiff_TIFFGetVersion=no
12770 rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772 LIBS=$ac_check_lib_save_LIBS
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12775 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12776 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12777 HAVE_TIFF=yes
12785 if test "${HAVE_TIFF}" = "yes"; then
12787 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12789 LIBTIFF=-ltiff
12794 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12795 HAVE_GIF=no
12796 LIBGIF=
12797 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12798 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12799 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12800 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12801 # Earlier versions can crash Emacs.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12803 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12804 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lgif $LIBS"
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char EGifPutExtensionLast ();
12820 main ()
12822 return EGifPutExtensionLast ();
12824 return 0;
12826 _ACEOF
12827 if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_lib_gif_EGifPutExtensionLast=yes
12829 else
12830 ac_cv_lib_gif_EGifPutExtensionLast=no
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12837 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12838 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12839 HAVE_GIF=yes
12840 else
12841 HAVE_GIF=maybe
12848 if test "$HAVE_GIF" = yes; then
12849 LIBGIF=-lgif
12850 elif test "$HAVE_GIF" = maybe; then
12851 # If gif_lib.h but no libgif, try libungif.
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12853 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12854 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 ac_check_lib_save_LIBS=$LIBS
12858 LIBS="-lungif $LIBS"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char EGifPutExtensionLast ();
12870 main ()
12872 return EGifPutExtensionLast ();
12874 return 0;
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12879 else
12880 ac_cv_lib_ungif_EGifPutExtensionLast=no
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12887 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12888 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12889 HAVE_GIF=yes
12890 else
12891 HAVE_GIF=no
12894 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12897 if test "${HAVE_GIF}" = "yes"; then
12899 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12905 if test "${HAVE_X11}" = "yes"; then
12906 MISSING=""
12907 WITH_NO=""
12908 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12909 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12910 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12911 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12912 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12913 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12914 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12915 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12916 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12917 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12919 if test "X${MISSING}" != X; then
12920 as_fn_error "The following required libraries were not found:
12921 $MISSING
12922 Maybe some development libraries/packages are missing?
12923 If you don't want to link with them give
12924 $WITH_NO
12925 as options to configure" "$LINENO" 5
12929 ### Use -lgpm if available, unless `--with-gpm=no'.
12930 HAVE_GPM=no
12931 LIBGPM=
12932 if test "${with_gpm}" != "no"; then
12933 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12934 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12936 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12937 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12940 ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-lgpm $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12945 /* Override any GCC internal prototype to avoid an error.
12946 Use char because int might match the return type of a GCC
12947 builtin and then its argument prototype would still apply. */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char Gpm_Open ();
12953 main ()
12955 return Gpm_Open ();
12957 return 0;
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_lib_gpm_Gpm_Open=yes
12962 else
12963 ac_cv_lib_gpm_Gpm_Open=no
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12970 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12971 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12972 HAVE_GPM=yes
12979 if test "${HAVE_GPM}" = "yes"; then
12981 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12983 LIBGPM=-lgpm
12988 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12989 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12991 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12997 C_SWITCH_X_SYSTEM=
12998 ### Use NeXTstep API to implement GUI.
12999 if test "${HAVE_NS}" = "yes"; then
13001 $as_echo "#define HAVE_NS 1" >>confdefs.h
13003 if test "${NS_IMPL_COCOA}" = "yes"; then
13005 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13007 GNU_OBJC_CFLAGS=
13009 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13011 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13013 # See also .m.o rule in Makefile.in */
13014 # FIXME: are all these flags really needed? Document here why. */
13015 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13016 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13018 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13020 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13023 # We also have mouse menus.
13024 HAVE_MENUS=yes
13025 OTHER_FILES=ns-app
13029 ### Use session management (-lSM -lICE) if available
13030 HAVE_X_SM=no
13031 LIBXSM=
13032 if test "${HAVE_X11}" = "yes"; then
13033 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13034 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13036 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13037 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-lSM -lICE $LIBS"
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13048 #ifdef __cplusplus
13049 extern "C"
13050 #endif
13051 char SmcOpenConnection ();
13053 main ()
13055 return SmcOpenConnection ();
13057 return 0;
13059 _ACEOF
13060 if ac_fn_c_try_link "$LINENO"; then :
13061 ac_cv_lib_SM_SmcOpenConnection=yes
13062 else
13063 ac_cv_lib_SM_SmcOpenConnection=no
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13070 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13071 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13072 HAVE_X_SM=yes
13079 if test "${HAVE_X_SM}" = "yes"; then
13081 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13083 LIBXSM="-lSM -lICE"
13084 case "$LIBS" in
13085 *-lSM*) ;;
13086 *) LIBS="$LIBXSM $LIBS" ;;
13087 esac
13092 ### Use libxml (-lxml2) if available
13093 if test "${with_xml2}" != "no"; then
13094 ### I'm not sure what the version number should be, so I just guessed.
13096 succeeded=no
13098 # Extract the first word of "pkg-config", so it can be a program name with args.
13099 set dummy pkg-config; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 case $PKG_CONFIG in
13106 [\\/]* | ?:[\\/]*)
13107 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13127 esac
13129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13130 if test -n "$PKG_CONFIG"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13132 $as_echo "$PKG_CONFIG" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13140 if test "$PKG_CONFIG" = "no" ; then
13141 HAVE_LIBXML2=no
13142 else
13143 PKG_CONFIG_MIN_VERSION=0.9.0
13144 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13146 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13148 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13150 $as_echo "yes" >&6; }
13151 succeeded=yes
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13154 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13155 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13157 $as_echo "$LIBXML2_CFLAGS" >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13160 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13161 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13163 $as_echo "$LIBXML2_LIBS" >&6; }
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167 LIBXML2_CFLAGS=""
13168 LIBXML2_LIBS=""
13169 ## If we have a custom action on failure, don't print errors, but
13170 ## do set a variable so people can do so.
13171 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13177 else
13178 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13179 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13183 if test $succeeded = yes; then
13184 HAVE_LIBXML2=yes
13185 else
13186 HAVE_LIBXML2=no
13189 if test "${HAVE_LIBXML2}" = "yes"; then
13190 LIBS="$LIBXML2_LIBS $LIBS"
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13192 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13193 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-lxml2 $LIBS"
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13204 #ifdef __cplusplus
13205 extern "C"
13206 #endif
13207 char htmlReadMemory ();
13209 main ()
13211 return htmlReadMemory ();
13213 return 0;
13215 _ACEOF
13216 if ac_fn_c_try_link "$LINENO"; then :
13217 ac_cv_lib_xml2_htmlReadMemory=yes
13218 else
13219 ac_cv_lib_xml2_htmlReadMemory=no
13221 rm -f core conftest.err conftest.$ac_objext \
13222 conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13226 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13227 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13228 HAVE_LIBXML2=yes
13229 else
13230 HAVE_LIBXML2=no
13233 if test "${HAVE_LIBXML2}" = "yes"; then
13235 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13237 else
13238 LIBXML2_LIBS=""
13239 LIBXML2_CFLAGS=""
13246 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13248 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13249 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13254 #include <netdb.h>
13256 main ()
13258 return h_errno;
13260 return 0;
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"; then :
13264 emacs_cv_netdb_declares_h_errno=yes
13265 else
13266 emacs_cv_netdb_declares_h_errno=no
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13272 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13273 if test $emacs_cv_netdb_declares_h_errno = yes; then
13275 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13279 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13280 # for constant arguments. Useless!
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13282 $as_echo_n "checking for working alloca.h... " >&6; }
13283 if test "${ac_cv_working_alloca_h+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288 #include <alloca.h>
13290 main ()
13292 char *p = (char *) alloca (2 * sizeof (int));
13293 if (p) return 0;
13295 return 0;
13297 _ACEOF
13298 if ac_fn_c_try_link "$LINENO"; then :
13299 ac_cv_working_alloca_h=yes
13300 else
13301 ac_cv_working_alloca_h=no
13303 rm -f core conftest.err conftest.$ac_objext \
13304 conftest$ac_exeext conftest.$ac_ext
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13307 $as_echo "$ac_cv_working_alloca_h" >&6; }
13308 if test $ac_cv_working_alloca_h = yes; then
13310 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13315 $as_echo_n "checking for alloca... " >&6; }
13316 if test "${ac_cv_func_alloca_works+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #ifdef __GNUC__
13322 # define alloca __builtin_alloca
13323 #else
13324 # ifdef _MSC_VER
13325 # include <malloc.h>
13326 # define alloca _alloca
13327 # else
13328 # ifdef HAVE_ALLOCA_H
13329 # include <alloca.h>
13330 # else
13331 # ifdef _AIX
13332 #pragma alloca
13333 # else
13334 # ifndef alloca /* predefined by HP cc +Olibcalls */
13335 char *alloca ();
13336 # endif
13337 # endif
13338 # endif
13339 # endif
13340 #endif
13343 main ()
13345 char *p = (char *) alloca (1);
13346 if (p) return 0;
13348 return 0;
13350 _ACEOF
13351 if ac_fn_c_try_link "$LINENO"; then :
13352 ac_cv_func_alloca_works=yes
13353 else
13354 ac_cv_func_alloca_works=no
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13360 $as_echo "$ac_cv_func_alloca_works" >&6; }
13362 if test $ac_cv_func_alloca_works = yes; then
13364 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13366 else
13367 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13368 # that cause trouble. Some versions do not even contain alloca or
13369 # contain a buggy version. If you still want to use their alloca,
13370 # use ar to extract alloca.o from them instead of compiling alloca.c.
13372 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13374 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13378 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13379 if test "${ac_cv_os_cray+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 #if defined CRAY && ! defined CRAY2
13385 webecray
13386 #else
13387 wenotbecray
13388 #endif
13390 _ACEOF
13391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13392 $EGREP "webecray" >/dev/null 2>&1; then :
13393 ac_cv_os_cray=yes
13394 else
13395 ac_cv_os_cray=no
13397 rm -f conftest*
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13401 $as_echo "$ac_cv_os_cray" >&6; }
13402 if test $ac_cv_os_cray = yes; then
13403 for ac_func in _getb67 GETB67 getb67; do
13404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13406 eval as_val=\$$as_ac_var
13407 if test "x$as_val" = x""yes; then :
13409 cat >>confdefs.h <<_ACEOF
13410 #define CRAY_STACKSEG_END $ac_func
13411 _ACEOF
13413 break
13416 done
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13420 $as_echo_n "checking stack direction for C alloca... " >&6; }
13421 if test "${ac_cv_c_stack_direction+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 if test "$cross_compiling" = yes; then :
13425 ac_cv_c_stack_direction=0
13426 else
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 $ac_includes_default
13431 find_stack_direction ()
13433 static char *addr = 0;
13434 auto char dummy;
13435 if (addr == 0)
13437 addr = &dummy;
13438 return find_stack_direction ();
13440 else
13441 return (&dummy > addr) ? 1 : -1;
13445 main ()
13447 return find_stack_direction () < 0;
13449 _ACEOF
13450 if ac_fn_c_try_run "$LINENO"; then :
13451 ac_cv_c_stack_direction=1
13452 else
13453 ac_cv_c_stack_direction=-1
13455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13456 conftest.$ac_objext conftest.beam conftest.$ac_ext
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13461 $as_echo "$ac_cv_c_stack_direction" >&6; }
13462 cat >>confdefs.h <<_ACEOF
13463 #define STACK_DIRECTION $ac_cv_c_stack_direction
13464 _ACEOF
13470 if test x"$ac_cv_func_alloca_works" != xyes; then
13471 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13474 # fmod, logb, and frexp are found in -lm on most systems.
13475 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13477 $as_echo_n "checking for sqrt in -lm... " >&6; }
13478 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 ac_check_lib_save_LIBS=$LIBS
13482 LIBS="-lm $LIBS"
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13486 /* Override any GCC internal prototype to avoid an error.
13487 Use char because int might match the return type of a GCC
13488 builtin and then its argument prototype would still apply. */
13489 #ifdef __cplusplus
13490 extern "C"
13491 #endif
13492 char sqrt ();
13494 main ()
13496 return sqrt ();
13498 return 0;
13500 _ACEOF
13501 if ac_fn_c_try_link "$LINENO"; then :
13502 ac_cv_lib_m_sqrt=yes
13503 else
13504 ac_cv_lib_m_sqrt=no
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_check_lib_save_LIBS
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13511 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13512 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13513 cat >>confdefs.h <<_ACEOF
13514 #define HAVE_LIBM 1
13515 _ACEOF
13517 LIBS="-lm $LIBS"
13522 # Check for mail-locking functions in a "mail" library. Probably this should
13523 # have the same check as for liblockfile below.
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13525 $as_echo_n "checking for maillock in -lmail... " >&6; }
13526 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 ac_check_lib_save_LIBS=$LIBS
13530 LIBS="-lmail $LIBS"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13534 /* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 char maillock ();
13542 main ()
13544 return maillock ();
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 ac_cv_lib_mail_maillock=yes
13551 else
13552 ac_cv_lib_mail_maillock=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13559 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13560 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13561 have_mail=yes
13562 else
13563 have_mail=no
13566 if test $have_mail = yes; then
13567 LIBS_MAIL=-lmail
13568 LIBS="$LIBS_MAIL $LIBS"
13570 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13572 else
13573 LIBS_MAIL=
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13576 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13577 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 ac_check_lib_save_LIBS=$LIBS
13581 LIBS="-llockfile $LIBS"
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13588 #ifdef __cplusplus
13589 extern "C"
13590 #endif
13591 char maillock ();
13593 main ()
13595 return maillock ();
13597 return 0;
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 ac_cv_lib_lockfile_maillock=yes
13602 else
13603 ac_cv_lib_lockfile_maillock=no
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 LIBS=$ac_check_lib_save_LIBS
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13610 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13611 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13612 have_lockfile=yes
13613 else
13614 have_lockfile=no
13617 if test $have_lockfile = yes; then
13618 LIBS_MAIL=-llockfile
13619 LIBS="$LIBS_MAIL $LIBS"
13621 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13623 else
13624 # If we have the shared liblockfile, assume we must use it for mail
13625 # locking (e.g. Debian). If we couldn't link against liblockfile
13626 # (no liblockfile.a installed), ensure that we don't need to.
13627 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13628 set dummy liblockfile.so; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -n "$liblockfile"; then
13635 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13639 for as_dir in $as_dummy
13641 IFS=$as_save_IFS
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13645 ac_cv_prog_liblockfile="yes"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13649 done
13650 done
13651 IFS=$as_save_IFS
13653 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13656 liblockfile=$ac_cv_prog_liblockfile
13657 if test -n "$liblockfile"; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13659 $as_echo "$liblockfile" >&6; }
13660 else
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13666 if test $ac_cv_prog_liblockfile = yes; then
13667 as_fn_error "Shared liblockfile found but can't link against it.
13668 This probably means that movemail could lose mail.
13669 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13672 for ac_func in touchlock
13673 do :
13674 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13675 if test "x$ac_cv_func_touchlock" = x""yes; then :
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_TOUCHLOCK 1
13678 _ACEOF
13681 done
13683 for ac_header in maillock.h
13684 do :
13685 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13686 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13687 cat >>confdefs.h <<_ACEOF
13688 #define HAVE_MAILLOCK_H 1
13689 _ACEOF
13693 done
13697 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13698 ## interlock access to the mail spool. The alternative is a lock file named
13699 ## /usr/spool/mail/$USER.lock.
13700 mail_lock=no
13701 case "$opsys" in
13702 aix4-2) mail_lock="lockf" ;;
13704 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13706 ## On GNU/Linux systems, both methods are used by various mail programs.
13707 ## I assume most people are using newer mailers that have heard of flock.
13708 ## Change this if you need to.
13709 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13710 ## configure gets the right answers, and that means *NOT* using flock.
13711 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13712 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13713 ## Debian maintainer hasn't provided a clean fix for Emacs.
13714 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13715 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13716 ## correct logic. -- fx
13717 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13718 ## liblockfile is a Free Software replacement for libmail, used on
13719 ## Debian systems and elsewhere. -rfr.
13720 gnu-*)
13721 mail_lock="flock"
13722 if test $have_mail = yes || test $have_lockfile = yes; then
13723 test $ac_cv_header_maillock_h = yes && mail_lock=no
13726 esac
13728 BLESSMAIL_TARGET=
13729 case "$mail_lock" in
13730 flock)
13731 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13734 lockf)
13735 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13738 *) BLESSMAIL_TARGET="need-blessmail" ;;
13739 esac
13743 for ac_func in gethostname getdomainname dup2 \
13744 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13745 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13746 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13747 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13748 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13749 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13750 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13751 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13752 cfmakeraw cfsetspeed isnan copysign __executable_start
13753 do :
13754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13756 eval as_val=\$$as_ac_var
13757 if test "x$as_val" = x""yes; then :
13758 cat >>confdefs.h <<_ACEOF
13759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13760 _ACEOF
13763 done
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13767 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13768 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13775 main ()
13777 __builtin_unwind_init ();
13779 return 0;
13781 _ACEOF
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 emacs_cv_func___builtin_unwind_init=yes
13784 else
13785 emacs_cv_func___builtin_unwind_init=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13791 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13792 if test $emacs_cv_func___builtin_unwind_init = yes; then
13794 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13798 for ac_header in sys/un.h
13799 do :
13800 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13801 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define HAVE_SYS_UN_H 1
13804 _ACEOF
13808 done
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13812 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13813 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 while :; do
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 #include <sys/types.h> /* for off_t */
13820 #include <stdio.h>
13822 main ()
13824 int (*fp) (FILE *, off_t, int) = fseeko;
13825 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13827 return 0;
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 ac_cv_sys_largefile_source=no; break
13833 rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #define _LARGEFILE_SOURCE 1
13838 #include <sys/types.h> /* for off_t */
13839 #include <stdio.h>
13841 main ()
13843 int (*fp) (FILE *, off_t, int) = fseeko;
13844 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13846 return 0;
13848 _ACEOF
13849 if ac_fn_c_try_link "$LINENO"; then :
13850 ac_cv_sys_largefile_source=1; break
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 ac_cv_sys_largefile_source=unknown
13855 break
13856 done
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13859 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13860 case $ac_cv_sys_largefile_source in #(
13861 no | unknown) ;;
13863 cat >>confdefs.h <<_ACEOF
13864 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13865 _ACEOF
13867 esac
13868 rm -rf conftest*
13870 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13871 # in glibc 2.1.3, but that breaks too many other things.
13872 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13873 if test $ac_cv_sys_largefile_source != unknown; then
13875 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13881 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13882 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 # Use it with a single arg.
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 $ac_includes_default
13890 main ()
13892 getpgrp (0);
13894 return 0;
13896 _ACEOF
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 ac_cv_func_getpgrp_void=no
13899 else
13900 ac_cv_func_getpgrp_void=yes
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13906 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13907 if test $ac_cv_func_getpgrp_void = yes; then
13909 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13914 # Configure gnulib.
13925 LIBC_FATAL_STDERR_=1
13926 export LIBC_FATAL_STDERR_
13931 for ac_func in $ac_func_list
13932 do :
13933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13935 eval as_val=\$$as_ac_var
13936 if test "x$as_val" = x""yes; then :
13937 cat >>confdefs.h <<_ACEOF
13938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13939 _ACEOF
13942 done
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13948 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13949 if test "${ac_cv_c_bigendian+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 ac_cv_c_bigendian=unknown
13953 # See if we're dealing with a universal compiler.
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 #ifndef __APPLE_CC__
13957 not a universal capable compiler
13958 #endif
13959 typedef int dummy;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"; then :
13964 # Check for potential -arch flags. It is not universal unless
13965 # there are at least two -arch flags with different values.
13966 ac_arch=
13967 ac_prev=
13968 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13969 if test -n "$ac_prev"; then
13970 case $ac_word in
13971 i?86 | x86_64 | ppc | ppc64)
13972 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13973 ac_arch=$ac_word
13974 else
13975 ac_cv_c_bigendian=universal
13976 break
13979 esac
13980 ac_prev=
13981 elif test "x$ac_word" = "x-arch"; then
13982 ac_prev=arch
13984 done
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 if test $ac_cv_c_bigendian = unknown; then
13988 # See if sys/param.h defines the BYTE_ORDER macro.
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #include <sys/types.h>
13992 #include <sys/param.h>
13995 main ()
13997 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13998 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13999 && LITTLE_ENDIAN)
14000 bogus endian macros
14001 #endif
14004 return 0;
14006 _ACEOF
14007 if ac_fn_c_try_compile "$LINENO"; then :
14008 # It does; now see whether it defined to BIG_ENDIAN or not.
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <sys/types.h>
14012 #include <sys/param.h>
14015 main ()
14017 #if BYTE_ORDER != BIG_ENDIAN
14018 not big endian
14019 #endif
14022 return 0;
14024 _ACEOF
14025 if ac_fn_c_try_compile "$LINENO"; then :
14026 ac_cv_c_bigendian=yes
14027 else
14028 ac_cv_c_bigendian=no
14030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 if test $ac_cv_c_bigendian = unknown; then
14035 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 #include <limits.h>
14041 main ()
14043 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14044 bogus endian macros
14045 #endif
14048 return 0;
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"; then :
14052 # It does; now see whether it defined to _BIG_ENDIAN or not.
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <limits.h>
14058 main ()
14060 #ifndef _BIG_ENDIAN
14061 not big endian
14062 #endif
14065 return 0;
14067 _ACEOF
14068 if ac_fn_c_try_compile "$LINENO"; then :
14069 ac_cv_c_bigendian=yes
14070 else
14071 ac_cv_c_bigendian=no
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 if test $ac_cv_c_bigendian = unknown; then
14078 # Compile a test program.
14079 if test "$cross_compiling" = yes; then :
14080 # Try to guess by grepping values from an object file.
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083 short int ascii_mm[] =
14084 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14085 short int ascii_ii[] =
14086 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14087 int use_ascii (int i) {
14088 return ascii_mm[i] + ascii_ii[i];
14090 short int ebcdic_ii[] =
14091 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14092 short int ebcdic_mm[] =
14093 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14094 int use_ebcdic (int i) {
14095 return ebcdic_mm[i] + ebcdic_ii[i];
14097 extern int foo;
14100 main ()
14102 return use_ascii (foo) == use_ebcdic (foo);
14104 return 0;
14106 _ACEOF
14107 if ac_fn_c_try_compile "$LINENO"; then :
14108 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14109 ac_cv_c_bigendian=yes
14111 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14112 if test "$ac_cv_c_bigendian" = unknown; then
14113 ac_cv_c_bigendian=no
14114 else
14115 # finding both strings is unlikely to happen, but who knows?
14116 ac_cv_c_bigendian=unknown
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 $ac_includes_default
14126 main ()
14129 /* Are we little or big endian? From Harbison&Steele. */
14130 union
14132 long int l;
14133 char c[sizeof (long int)];
14134 } u;
14135 u.l = 1;
14136 return u.c[sizeof (long int) - 1] == 1;
14139 return 0;
14141 _ACEOF
14142 if ac_fn_c_try_run "$LINENO"; then :
14143 ac_cv_c_bigendian=no
14144 else
14145 ac_cv_c_bigendian=yes
14147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14148 conftest.$ac_objext conftest.beam conftest.$ac_ext
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14154 $as_echo "$ac_cv_c_bigendian" >&6; }
14155 case $ac_cv_c_bigendian in #(
14156 yes)
14157 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14158 ;; #(
14160 ;; #(
14161 universal)
14163 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14165 ;; #(
14167 as_fn_error "unknown endianness
14168 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14169 esac
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14173 $as_echo_n "checking for inline... " >&6; }
14174 if test "${ac_cv_c_inline+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 ac_cv_c_inline=no
14178 for ac_kw in inline __inline__ __inline; do
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14181 #ifndef __cplusplus
14182 typedef int foo_t;
14183 static $ac_kw foo_t static_foo () {return 0; }
14184 $ac_kw foo_t foo () {return 0; }
14185 #endif
14187 _ACEOF
14188 if ac_fn_c_try_compile "$LINENO"; then :
14189 ac_cv_c_inline=$ac_kw
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14192 test "$ac_cv_c_inline" != no && break
14193 done
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14197 $as_echo "$ac_cv_c_inline" >&6; }
14199 case $ac_cv_c_inline in
14200 inline | yes) ;;
14202 case $ac_cv_c_inline in
14203 no) ac_val=;;
14204 *) ac_val=$ac_cv_c_inline;;
14205 esac
14206 cat >>confdefs.h <<_ACEOF
14207 #ifndef __cplusplus
14208 #define inline $ac_val
14209 #endif
14210 _ACEOF
14212 esac
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
14216 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
14217 if test "${gl_cv_func_c99_strtold+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222 /* On HP-UX before 11.23, strtold returns a struct instead of
14223 long double. Reject implementations like that, by requiring
14224 compatibility with the C99 prototype. */
14225 #include <stdlib.h>
14226 static long double (*p) (char const *, char **) = strtold;
14227 static long double
14228 test (char const *nptr, char **endptr)
14230 long double r;
14231 r = strtold (nptr, endptr);
14232 return r;
14235 main ()
14237 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
14239 return 0;
14241 _ACEOF
14242 if ac_fn_c_try_link "$LINENO"; then :
14243 gl_cv_func_c99_strtold=yes
14244 else
14245 gl_cv_func_c99_strtold=no
14247 rm -f core conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
14251 $as_echo "$gl_cv_func_c99_strtold" >&6; }
14252 if test $gl_cv_func_c99_strtold = yes; then
14254 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14259 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14260 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14266 #include <sys/types.h>
14267 #include <sys/stat.h>
14269 main ()
14271 struct stat s; s.st_dm_mode;
14273 return 0;
14275 _ACEOF
14276 if ac_fn_c_try_compile "$LINENO"; then :
14277 ac_cv_struct_st_dm_mode=yes
14278 else
14279 ac_cv_struct_st_dm_mode=no
14281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14284 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14286 if test $ac_cv_struct_st_dm_mode = yes; then
14288 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14293 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14294 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14295 ac_have_decl=1
14296 else
14297 ac_have_decl=0
14300 cat >>confdefs.h <<_ACEOF
14301 #define HAVE_DECL_STRMODE $ac_have_decl
14302 _ACEOF
14305 GNULIB__EXIT=0;
14306 GNULIB_ATOLL=0;
14307 GNULIB_CALLOC_POSIX=0;
14308 GNULIB_CANONICALIZE_FILE_NAME=0;
14309 GNULIB_GETLOADAVG=0;
14310 GNULIB_GETSUBOPT=0;
14311 GNULIB_GRANTPT=0;
14312 GNULIB_MALLOC_POSIX=0;
14313 GNULIB_MBTOWC=0;
14314 GNULIB_MKDTEMP=0;
14315 GNULIB_MKOSTEMP=0;
14316 GNULIB_MKOSTEMPS=0;
14317 GNULIB_MKSTEMP=0;
14318 GNULIB_MKSTEMPS=0;
14319 GNULIB_PTSNAME=0;
14320 GNULIB_PUTENV=0;
14321 GNULIB_RANDOM_R=0;
14322 GNULIB_REALLOC_POSIX=0;
14323 GNULIB_REALPATH=0;
14324 GNULIB_RPMATCH=0;
14325 GNULIB_SETENV=0;
14326 GNULIB_STRTOD=0;
14327 GNULIB_STRTOLL=0;
14328 GNULIB_STRTOULL=0;
14329 GNULIB_SYSTEM_POSIX=0;
14330 GNULIB_UNLOCKPT=0;
14331 GNULIB_UNSETENV=0;
14332 GNULIB_WCTOMB=0;
14333 HAVE__EXIT=1;
14334 HAVE_ATOLL=1;
14335 HAVE_CANONICALIZE_FILE_NAME=1;
14336 HAVE_DECL_GETLOADAVG=1;
14337 HAVE_GETSUBOPT=1;
14338 HAVE_GRANTPT=1;
14339 HAVE_MKDTEMP=1;
14340 HAVE_MKOSTEMP=1;
14341 HAVE_MKOSTEMPS=1;
14342 HAVE_MKSTEMP=1;
14343 HAVE_MKSTEMPS=1;
14344 HAVE_PTSNAME=1;
14345 HAVE_RANDOM_H=1;
14346 HAVE_RANDOM_R=1;
14347 HAVE_REALPATH=1;
14348 HAVE_RPMATCH=1;
14349 HAVE_SETENV=1;
14350 HAVE_DECL_SETENV=1;
14351 HAVE_STRTOD=1;
14352 HAVE_STRTOLL=1;
14353 HAVE_STRTOULL=1;
14354 HAVE_STRUCT_RANDOM_DATA=1;
14355 HAVE_SYS_LOADAVG_H=0;
14356 HAVE_UNLOCKPT=1;
14357 HAVE_DECL_UNSETENV=1;
14358 REPLACE_CALLOC=0;
14359 REPLACE_CANONICALIZE_FILE_NAME=0;
14360 REPLACE_MALLOC=0;
14361 REPLACE_MBTOWC=0;
14362 REPLACE_MKSTEMP=0;
14363 REPLACE_PUTENV=0;
14364 REPLACE_REALLOC=0;
14365 REPLACE_REALPATH=0;
14366 REPLACE_SETENV=0;
14367 REPLACE_STRTOD=0;
14368 REPLACE_UNSETENV=0;
14369 REPLACE_WCTOMB=0;
14372 GNULIB_CHOWN=0;
14373 GNULIB_CLOSE=0;
14374 GNULIB_DUP2=0;
14375 GNULIB_DUP3=0;
14376 GNULIB_ENVIRON=0;
14377 GNULIB_EUIDACCESS=0;
14378 GNULIB_FACCESSAT=0;
14379 GNULIB_FCHDIR=0;
14380 GNULIB_FCHOWNAT=0;
14381 GNULIB_FSYNC=0;
14382 GNULIB_FTRUNCATE=0;
14383 GNULIB_GETCWD=0;
14384 GNULIB_GETDOMAINNAME=0;
14385 GNULIB_GETDTABLESIZE=0;
14386 GNULIB_GETGROUPS=0;
14387 GNULIB_GETHOSTNAME=0;
14388 GNULIB_GETLOGIN=0;
14389 GNULIB_GETLOGIN_R=0;
14390 GNULIB_GETPAGESIZE=0;
14391 GNULIB_GETUSERSHELL=0;
14392 GNULIB_GROUP_MEMBER=0;
14393 GNULIB_LCHOWN=0;
14394 GNULIB_LINK=0;
14395 GNULIB_LINKAT=0;
14396 GNULIB_LSEEK=0;
14397 GNULIB_PIPE=0;
14398 GNULIB_PIPE2=0;
14399 GNULIB_PREAD=0;
14400 GNULIB_PWRITE=0;
14401 GNULIB_READ=0;
14402 GNULIB_READLINK=0;
14403 GNULIB_READLINKAT=0;
14404 GNULIB_RMDIR=0;
14405 GNULIB_SLEEP=0;
14406 GNULIB_SYMLINK=0;
14407 GNULIB_SYMLINKAT=0;
14408 GNULIB_TTYNAME_R=0;
14409 GNULIB_UNISTD_H_GETOPT=0;
14410 GNULIB_UNISTD_H_NONBLOCKING=0;
14411 GNULIB_UNISTD_H_SIGPIPE=0;
14412 GNULIB_UNLINK=0;
14413 GNULIB_UNLINKAT=0;
14414 GNULIB_USLEEP=0;
14415 GNULIB_WRITE=0;
14416 HAVE_CHOWN=1;
14417 HAVE_DUP2=1;
14418 HAVE_DUP3=1;
14419 HAVE_EUIDACCESS=1;
14420 HAVE_FACCESSAT=1;
14421 HAVE_FCHDIR=1;
14422 HAVE_FCHOWNAT=1;
14423 HAVE_FSYNC=1;
14424 HAVE_FTRUNCATE=1;
14425 HAVE_GETDTABLESIZE=1;
14426 HAVE_GETGROUPS=1;
14427 HAVE_GETHOSTNAME=1;
14428 HAVE_GETLOGIN=1;
14429 HAVE_GETPAGESIZE=1;
14430 HAVE_GROUP_MEMBER=1;
14431 HAVE_LCHOWN=1;
14432 HAVE_LINK=1;
14433 HAVE_LINKAT=1;
14434 HAVE_PIPE=1;
14435 HAVE_PIPE2=1;
14436 HAVE_PREAD=1;
14437 HAVE_PWRITE=1;
14438 HAVE_READLINK=1;
14439 HAVE_READLINKAT=1;
14440 HAVE_SLEEP=1;
14441 HAVE_SYMLINK=1;
14442 HAVE_SYMLINKAT=1;
14443 HAVE_UNLINKAT=1;
14444 HAVE_USLEEP=1;
14445 HAVE_DECL_ENVIRON=1;
14446 HAVE_DECL_FCHDIR=1;
14447 HAVE_DECL_GETDOMAINNAME=1;
14448 HAVE_DECL_GETLOGIN_R=1;
14449 HAVE_DECL_GETPAGESIZE=1;
14450 HAVE_DECL_GETUSERSHELL=1;
14451 HAVE_DECL_TTYNAME_R=1;
14452 HAVE_OS_H=0;
14453 HAVE_SYS_PARAM_H=0;
14454 REPLACE_CHOWN=0;
14455 REPLACE_CLOSE=0;
14456 REPLACE_DUP=0;
14457 REPLACE_DUP2=0;
14458 REPLACE_FCHOWNAT=0;
14459 REPLACE_GETCWD=0;
14460 REPLACE_GETDOMAINNAME=0;
14461 REPLACE_GETLOGIN_R=0;
14462 REPLACE_GETGROUPS=0;
14463 REPLACE_GETPAGESIZE=0;
14464 REPLACE_LCHOWN=0;
14465 REPLACE_LINK=0;
14466 REPLACE_LINKAT=0;
14467 REPLACE_LSEEK=0;
14468 REPLACE_PREAD=0;
14469 REPLACE_PWRITE=0;
14470 REPLACE_READ=0;
14471 REPLACE_READLINK=0;
14472 REPLACE_RMDIR=0;
14473 REPLACE_SLEEP=0;
14474 REPLACE_SYMLINK=0;
14475 REPLACE_TTYNAME_R=0;
14476 REPLACE_UNLINK=0;
14477 REPLACE_UNLINKAT=0;
14478 REPLACE_USLEEP=0;
14479 REPLACE_WRITE=0;
14480 UNISTD_H_HAVE_WINSOCK2_H=0;
14481 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14487 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14488 if test "${gl_cv_have_include_next+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 rm -rf conftestd1a conftestd1b conftestd2
14492 mkdir conftestd1a conftestd1b conftestd2
14493 cat <<EOF > conftestd1a/conftest.h
14494 #define DEFINED_IN_CONFTESTD1
14495 #include_next <conftest.h>
14496 #ifdef DEFINED_IN_CONFTESTD2
14497 int foo;
14498 #else
14499 #error "include_next doesn't work"
14500 #endif
14502 cat <<EOF > conftestd1b/conftest.h
14503 #define DEFINED_IN_CONFTESTD1
14504 #include <stdio.h>
14505 #include_next <conftest.h>
14506 #ifdef DEFINED_IN_CONFTESTD2
14507 int foo;
14508 #else
14509 #error "include_next doesn't work"
14510 #endif
14512 cat <<EOF > conftestd2/conftest.h
14513 #ifndef DEFINED_IN_CONFTESTD1
14514 #error "include_next test doesn't work"
14515 #endif
14516 #define DEFINED_IN_CONFTESTD2
14518 gl_save_CPPFLAGS="$CPPFLAGS"
14519 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 #include <conftest.h>
14523 _ACEOF
14524 if ac_fn_c_try_compile "$LINENO"; then :
14525 gl_cv_have_include_next=yes
14526 else
14527 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #include <conftest.h>
14531 _ACEOF
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533 gl_cv_have_include_next=buggy
14534 else
14535 gl_cv_have_include_next=no
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 CPPFLAGS="$gl_save_CPPFLAGS"
14542 rm -rf conftestd1a conftestd1b conftestd2
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14546 $as_echo "$gl_cv_have_include_next" >&6; }
14547 PRAGMA_SYSTEM_HEADER=
14548 if test $gl_cv_have_include_next = yes; then
14549 INCLUDE_NEXT=include_next
14550 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14551 if test -n "$GCC"; then
14552 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14554 else
14555 if test $gl_cv_have_include_next = buggy; then
14556 INCLUDE_NEXT=include
14557 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14558 else
14559 INCLUDE_NEXT=include
14560 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14567 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14568 if test "${gl_cv_pragma_columns+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14574 #ifdef __TANDEM
14575 choke me
14576 #endif
14578 _ACEOF
14579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14580 $EGREP "choke me" >/dev/null 2>&1; then :
14581 gl_cv_pragma_columns=yes
14582 else
14583 gl_cv_pragma_columns=no
14585 rm -f conftest*
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14590 $as_echo "$gl_cv_pragma_columns" >&6; }
14591 if test $gl_cv_pragma_columns = yes; then
14592 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14593 else
14594 PRAGMA_COLUMNS=
14613 if test $gl_cv_have_include_next = yes; then
14614 gl_cv_next_getopt_h='<'getopt.h'>'
14615 else
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14617 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14618 if test "${gl_cv_next_getopt_h+set}" = set; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14622 if test $ac_cv_header_getopt_h = yes; then
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14627 #include <getopt.h>
14629 _ACEOF
14630 case "$host_os" in
14631 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14632 *) gl_absname_cpp="$ac_cpp" ;;
14633 esac
14634 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14635 sed -n '\#/getopt.h#{
14636 s#.*"\(.*/getopt.h\)".*#\1#
14637 s#^/[^/]#//&#
14640 }'`'"'
14641 else
14642 gl_cv_next_getopt_h='<'getopt.h'>'
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14648 $as_echo "$gl_cv_next_getopt_h" >&6; }
14650 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14652 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14654 gl_next_as_first_directive='<'getopt.h'>'
14655 else
14656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14657 gl_next_as_first_directive=$gl_cv_next_getopt_h
14659 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14664 if test $ac_cv_header_getopt_h = yes; then
14665 HAVE_GETOPT_H=1
14666 else
14667 HAVE_GETOPT_H=0
14671 gl_replace_getopt=
14673 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14674 for ac_header in getopt.h
14675 do :
14676 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14677 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14678 cat >>confdefs.h <<_ACEOF
14679 #define HAVE_GETOPT_H 1
14680 _ACEOF
14682 else
14683 gl_replace_getopt=yes
14686 done
14690 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14691 for ac_func in getopt_long_only
14692 do :
14693 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14694 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14695 cat >>confdefs.h <<_ACEOF
14696 #define HAVE_GETOPT_LONG_ONLY 1
14697 _ACEOF
14699 else
14700 gl_replace_getopt=yes
14702 done
14706 if test -z "$gl_replace_getopt"; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14708 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14709 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715 #include <unistd.h>
14717 main ()
14719 int *p = &optreset; return optreset;
14721 return 0;
14723 _ACEOF
14724 if ac_fn_c_try_compile "$LINENO"; then :
14725 gl_optind_min=1
14726 else
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 #include <getopt.h>
14731 main ()
14733 return !getopt_clip;
14735 return 0;
14737 _ACEOF
14738 if ac_fn_c_try_compile "$LINENO"; then :
14739 gl_optind_min=1
14740 else
14741 gl_optind_min=0
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747 gl_save_CPPFLAGS=$CPPFLAGS
14748 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14749 if test "$cross_compiling" = yes; then :
14750 case "$host_os" in
14751 mingw*) gl_cv_func_getopt_posix="guessing no";;
14752 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14753 *) gl_cv_func_getopt_posix="guessing yes";;
14754 esac
14756 else
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14760 #include <unistd.h>
14761 #include <stdlib.h>
14762 #include <string.h>
14765 main ()
14768 int argc = 0;
14769 char *argv[10];
14770 int c;
14772 argv[argc++] = "program";
14773 argv[argc++] = "-a";
14774 argv[argc++] = "foo";
14775 argv[argc++] = "bar";
14776 argv[argc] = NULL;
14777 optind = OPTIND_MIN;
14778 opterr = 0;
14780 c = getopt (argc, argv, "ab");
14781 if (!(c == 'a'))
14782 return 1;
14783 c = getopt (argc, argv, "ab");
14784 if (!(c == -1))
14785 return 2;
14786 if (!(optind == 2))
14787 return 3;
14789 /* Some internal state exists at this point. */
14791 int argc = 0;
14792 char *argv[10];
14793 int c;
14795 argv[argc++] = "program";
14796 argv[argc++] = "donald";
14797 argv[argc++] = "-p";
14798 argv[argc++] = "billy";
14799 argv[argc++] = "duck";
14800 argv[argc++] = "-a";
14801 argv[argc++] = "bar";
14802 argv[argc] = NULL;
14803 optind = OPTIND_MIN;
14804 opterr = 0;
14806 c = getopt (argc, argv, "+abp:q:");
14807 if (!(c == -1))
14808 return 4;
14809 if (!(strcmp (argv[0], "program") == 0))
14810 return 5;
14811 if (!(strcmp (argv[1], "donald") == 0))
14812 return 6;
14813 if (!(strcmp (argv[2], "-p") == 0))
14814 return 7;
14815 if (!(strcmp (argv[3], "billy") == 0))
14816 return 8;
14817 if (!(strcmp (argv[4], "duck") == 0))
14818 return 9;
14819 if (!(strcmp (argv[5], "-a") == 0))
14820 return 10;
14821 if (!(strcmp (argv[6], "bar") == 0))
14822 return 11;
14823 if (!(optind == 1))
14824 return 12;
14826 /* Detect MacOS 10.5, AIX 7.1 bug. */
14828 char *argv[3] = { "program", "-ab", NULL };
14829 optind = OPTIND_MIN;
14830 opterr = 0;
14831 if (getopt (2, argv, "ab:") != 'a')
14832 return 13;
14833 if (getopt (2, argv, "ab:") != '?')
14834 return 14;
14835 if (optopt != 'b')
14836 return 15;
14837 if (optind != 2)
14838 return 16;
14841 return 0;
14844 _ACEOF
14845 if ac_fn_c_try_run "$LINENO"; then :
14846 gl_cv_func_getopt_posix=yes
14847 else
14848 gl_cv_func_getopt_posix=no
14850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14851 conftest.$ac_objext conftest.beam conftest.$ac_ext
14854 CPPFLAGS=$gl_save_CPPFLAGS
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14858 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14859 case "$gl_cv_func_getopt_posix" in
14860 *no) gl_replace_getopt=yes ;;
14861 esac
14864 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14866 $as_echo_n "checking for working GNU getopt function... " >&6; }
14867 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14868 $as_echo_n "(cached) " >&6
14869 else
14870 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14871 # optstring is necessary for programs like m4 that have POSIX-mandated
14872 # semantics for supporting options interspersed with files.
14873 # Also, since getopt_long is a GNU extension, we require optind=0.
14874 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14875 # so take care to revert to the correct (non-)export state.
14876 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14877 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14878 xx) gl_had_POSIXLY_CORRECT=exported ;;
14879 x) gl_had_POSIXLY_CORRECT=yes ;;
14880 *) gl_had_POSIXLY_CORRECT= ;;
14881 esac
14882 POSIXLY_CORRECT=1
14883 export POSIXLY_CORRECT
14884 if test "$cross_compiling" = yes; then :
14885 case $host_os:$ac_cv_have_decl_optreset in
14886 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14887 *:yes) gl_cv_func_getopt_gnu=no;;
14888 *) gl_cv_func_getopt_gnu=yes;;
14889 esac
14891 else
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14894 #include <getopt.h>
14895 #include <stddef.h>
14896 #include <string.h>
14899 main ()
14902 int result = 0;
14903 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14904 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14905 OSF/1 5.1, Solaris 10. */
14907 char *myargv[3];
14908 myargv[0] = "conftest";
14909 myargv[1] = "-+";
14910 myargv[2] = 0;
14911 opterr = 0;
14912 if (getopt (2, myargv, "+a") != '?')
14913 result |= 1;
14915 /* This code succeeds on glibc 2.8, mingw,
14916 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14917 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14919 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14921 optind = 1;
14922 if (getopt (4, argv, "p::") != 'p')
14923 result |= 2;
14924 else if (optarg != NULL)
14925 result |= 4;
14926 else if (getopt (4, argv, "p::") != -1)
14927 result |= 6;
14928 else if (optind != 2)
14929 result |= 8;
14931 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14933 char *argv[] = { "program", "foo", "-p", NULL };
14934 optind = 0;
14935 if (getopt (3, argv, "-p") != 1)
14936 result |= 16;
14937 else if (getopt (3, argv, "-p") != 'p')
14938 result |= 32;
14940 /* This code fails on glibc 2.11. */
14942 char *argv[] = { "program", "-b", "-a", NULL };
14943 optind = opterr = 0;
14944 if (getopt (3, argv, "+:a:b") != 'b')
14945 result |= 64;
14946 else if (getopt (3, argv, "+:a:b") != ':')
14947 result |= 64;
14949 return result;
14952 return 0;
14954 _ACEOF
14955 if ac_fn_c_try_run "$LINENO"; then :
14956 gl_cv_func_getopt_gnu=yes
14957 else
14958 gl_cv_func_getopt_gnu=no
14960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961 conftest.$ac_objext conftest.beam conftest.$ac_ext
14964 case $gl_had_POSIXLY_CORRECT in
14965 exported) ;;
14966 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14967 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14968 esac
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14972 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14973 if test "$gl_cv_func_getopt_gnu" = "no"; then
14974 gl_replace_getopt=yes
14982 REPLACE_GETOPT=0
14985 if test -n "$gl_replace_getopt"; then :
14987 REPLACE_GETOPT=1
14992 if test $REPLACE_GETOPT = 1; then
14994 GETOPT_H=getopt.h
14996 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15000 GNULIB_UNISTD_H_GETOPT=1
15003 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
15004 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
15005 ac_have_decl=1
15006 else
15007 ac_have_decl=0
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_DECL_GETENV $ac_have_decl
15012 _ACEOF
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15016 $as_echo_n "checking for unsigned long long int... " >&6; }
15017 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 ac_cv_type_unsigned_long_long_int=yes
15021 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15025 /* For now, do not test the preprocessor; as of 2007 there are too many
15026 implementations with broken preprocessors. Perhaps this can
15027 be revisited in 2012. In the meantime, code should not expect
15028 #if to work with literals wider than 32 bits. */
15029 /* Test literals. */
15030 long long int ll = 9223372036854775807ll;
15031 long long int nll = -9223372036854775807LL;
15032 unsigned long long int ull = 18446744073709551615ULL;
15033 /* Test constant expressions. */
15034 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15035 ? 1 : -1)];
15036 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15037 ? 1 : -1)];
15038 int i = 63;
15040 main ()
15042 /* Test availability of runtime routines for shift and division. */
15043 long long int llmax = 9223372036854775807ll;
15044 unsigned long long int ullmax = 18446744073709551615ull;
15045 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15046 | (llmax / ll) | (llmax % ll)
15047 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15048 | (ullmax / ull) | (ullmax % ull));
15050 return 0;
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"; then :
15056 else
15057 ac_cv_type_unsigned_long_long_int=no
15059 rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15064 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15065 if test $ac_cv_type_unsigned_long_long_int = yes; then
15067 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15074 $as_echo_n "checking for long long int... " >&6; }
15075 if test "${ac_cv_type_long_long_int+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 ac_cv_type_long_long_int=yes
15079 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15080 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15081 if test $ac_cv_type_long_long_int = yes; then
15082 if test "$cross_compiling" = yes; then :
15084 else
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 #include <limits.h>
15088 #ifndef LLONG_MAX
15089 # define HALF \
15090 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15091 # define LLONG_MAX (HALF - 1 + HALF)
15092 #endif
15094 main ()
15096 long long int n = 1;
15097 int i;
15098 for (i = 0; ; i++)
15100 long long int m = n << i;
15101 if (m >> i != n)
15102 return 1;
15103 if (LLONG_MAX / 2 < m)
15104 break;
15106 return 0;
15108 return 0;
15110 _ACEOF
15111 if ac_fn_c_try_run "$LINENO"; then :
15113 else
15114 ac_cv_type_long_long_int=no
15116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15117 conftest.$ac_objext conftest.beam conftest.$ac_ext
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15124 $as_echo "$ac_cv_type_long_long_int" >&6; }
15125 if test $ac_cv_type_long_long_int = yes; then
15127 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15136 gl_cv_c_multiarch=no
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 #ifndef __APPLE_CC__
15140 not a universal capable compiler
15141 #endif
15142 typedef int dummy;
15144 _ACEOF
15145 if ac_fn_c_try_compile "$LINENO"; then :
15147 arch=
15148 prev=
15149 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15150 if test -n "$prev"; then
15151 case $word in
15152 i?86 | x86_64 | ppc | ppc64)
15153 if test -z "$arch" || test "$arch" = "$word"; then
15154 arch="$word"
15155 else
15156 gl_cv_c_multiarch=yes
15159 esac
15160 prev=
15161 else
15162 if test "x$word" = "x-arch"; then
15163 prev=arch
15166 done
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 if test $gl_cv_c_multiarch = yes; then
15171 APPLE_UNIVERSAL_BUILD=1
15172 else
15173 APPLE_UNIVERSAL_BUILD=0
15180 if test $ac_cv_type_long_long_int = yes; then
15181 HAVE_LONG_LONG_INT=1
15182 else
15183 HAVE_LONG_LONG_INT=0
15187 if test $ac_cv_type_unsigned_long_long_int = yes; then
15188 HAVE_UNSIGNED_LONG_LONG_INT=1
15189 else
15190 HAVE_UNSIGNED_LONG_LONG_INT=0
15195 if test $ac_cv_header_wchar_h = yes; then
15196 HAVE_WCHAR_H=1
15197 else
15198 HAVE_WCHAR_H=0
15202 if test $ac_cv_header_inttypes_h = yes; then
15203 HAVE_INTTYPES_H=1
15204 else
15205 HAVE_INTTYPES_H=0
15209 if test $ac_cv_header_sys_types_h = yes; then
15210 HAVE_SYS_TYPES_H=1
15211 else
15212 HAVE_SYS_TYPES_H=0
15225 if test $gl_cv_have_include_next = yes; then
15226 gl_cv_next_stdint_h='<'stdint.h'>'
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15229 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15230 if test "${gl_cv_next_stdint_h+set}" = set; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15234 if test $ac_cv_header_stdint_h = yes; then
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <stdint.h>
15241 _ACEOF
15242 case "$host_os" in
15243 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15244 *) gl_absname_cpp="$ac_cpp" ;;
15245 esac
15246 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15247 sed -n '\#/stdint.h#{
15248 s#.*"\(.*/stdint.h\)".*#\1#
15249 s#^/[^/]#//&#
15252 }'`'"'
15253 else
15254 gl_cv_next_stdint_h='<'stdint.h'>'
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15260 $as_echo "$gl_cv_next_stdint_h" >&6; }
15262 NEXT_STDINT_H=$gl_cv_next_stdint_h
15264 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15265 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15266 gl_next_as_first_directive='<'stdint.h'>'
15267 else
15268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15269 gl_next_as_first_directive=$gl_cv_next_stdint_h
15271 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15276 if test $ac_cv_header_stdint_h = yes; then
15277 HAVE_STDINT_H=1
15278 else
15279 HAVE_STDINT_H=0
15283 if test $ac_cv_header_stdint_h = yes; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15285 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15286 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15289 gl_cv_header_working_stdint_h=no
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15294 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15295 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15296 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15297 #include <stdint.h>
15298 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15299 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15300 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15301 #endif
15304 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15305 included before <wchar.h>. */
15306 #include <stddef.h>
15307 #include <signal.h>
15308 #if HAVE_WCHAR_H
15309 # include <stdio.h>
15310 # include <time.h>
15311 # include <wchar.h>
15312 #endif
15315 #ifdef INT8_MAX
15316 int8_t a1 = INT8_MAX;
15317 int8_t a1min = INT8_MIN;
15318 #endif
15319 #ifdef INT16_MAX
15320 int16_t a2 = INT16_MAX;
15321 int16_t a2min = INT16_MIN;
15322 #endif
15323 #ifdef INT32_MAX
15324 int32_t a3 = INT32_MAX;
15325 int32_t a3min = INT32_MIN;
15326 #endif
15327 #ifdef INT64_MAX
15328 int64_t a4 = INT64_MAX;
15329 int64_t a4min = INT64_MIN;
15330 #endif
15331 #ifdef UINT8_MAX
15332 uint8_t b1 = UINT8_MAX;
15333 #else
15334 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15335 #endif
15336 #ifdef UINT16_MAX
15337 uint16_t b2 = UINT16_MAX;
15338 #endif
15339 #ifdef UINT32_MAX
15340 uint32_t b3 = UINT32_MAX;
15341 #endif
15342 #ifdef UINT64_MAX
15343 uint64_t b4 = UINT64_MAX;
15344 #endif
15345 int_least8_t c1 = INT8_C (0x7f);
15346 int_least8_t c1max = INT_LEAST8_MAX;
15347 int_least8_t c1min = INT_LEAST8_MIN;
15348 int_least16_t c2 = INT16_C (0x7fff);
15349 int_least16_t c2max = INT_LEAST16_MAX;
15350 int_least16_t c2min = INT_LEAST16_MIN;
15351 int_least32_t c3 = INT32_C (0x7fffffff);
15352 int_least32_t c3max = INT_LEAST32_MAX;
15353 int_least32_t c3min = INT_LEAST32_MIN;
15354 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15355 int_least64_t c4max = INT_LEAST64_MAX;
15356 int_least64_t c4min = INT_LEAST64_MIN;
15357 uint_least8_t d1 = UINT8_C (0xff);
15358 uint_least8_t d1max = UINT_LEAST8_MAX;
15359 uint_least16_t d2 = UINT16_C (0xffff);
15360 uint_least16_t d2max = UINT_LEAST16_MAX;
15361 uint_least32_t d3 = UINT32_C (0xffffffff);
15362 uint_least32_t d3max = UINT_LEAST32_MAX;
15363 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15364 uint_least64_t d4max = UINT_LEAST64_MAX;
15365 int_fast8_t e1 = INT_FAST8_MAX;
15366 int_fast8_t e1min = INT_FAST8_MIN;
15367 int_fast16_t e2 = INT_FAST16_MAX;
15368 int_fast16_t e2min = INT_FAST16_MIN;
15369 int_fast32_t e3 = INT_FAST32_MAX;
15370 int_fast32_t e3min = INT_FAST32_MIN;
15371 int_fast64_t e4 = INT_FAST64_MAX;
15372 int_fast64_t e4min = INT_FAST64_MIN;
15373 uint_fast8_t f1 = UINT_FAST8_MAX;
15374 uint_fast16_t f2 = UINT_FAST16_MAX;
15375 uint_fast32_t f3 = UINT_FAST32_MAX;
15376 uint_fast64_t f4 = UINT_FAST64_MAX;
15377 #ifdef INTPTR_MAX
15378 intptr_t g = INTPTR_MAX;
15379 intptr_t gmin = INTPTR_MIN;
15380 #endif
15381 #ifdef UINTPTR_MAX
15382 uintptr_t h = UINTPTR_MAX;
15383 #endif
15384 intmax_t i = INTMAX_MAX;
15385 uintmax_t j = UINTMAX_MAX;
15387 #include <limits.h> /* for CHAR_BIT */
15388 #define TYPE_MINIMUM(t) \
15389 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15390 #define TYPE_MAXIMUM(t) \
15391 ((t) ((t) 0 < (t) -1 \
15392 ? (t) -1 \
15393 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15394 struct s {
15395 int check_PTRDIFF:
15396 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15397 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15398 ? 1 : -1;
15399 /* Detect bug in FreeBSD 6.0 / ia64. */
15400 int check_SIG_ATOMIC:
15401 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15402 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15403 ? 1 : -1;
15404 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15405 int check_WCHAR:
15406 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15407 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15408 ? 1 : -1;
15409 /* Detect bug in mingw. */
15410 int check_WINT:
15411 WINT_MIN == TYPE_MINIMUM (wint_t)
15412 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15413 ? 1 : -1;
15415 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15416 int check_UINT8_C:
15417 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15418 int check_UINT16_C:
15419 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15421 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15422 #ifdef UINT8_MAX
15423 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15424 #endif
15425 #ifdef UINT16_MAX
15426 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15427 #endif
15428 #ifdef UINT32_MAX
15429 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15430 #endif
15431 #ifdef UINT64_MAX
15432 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15433 #endif
15434 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15435 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15436 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15437 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15438 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15439 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15440 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15441 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15442 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15443 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15444 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15448 main ()
15452 return 0;
15454 _ACEOF
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456 if test "$cross_compiling" = yes; then :
15457 gl_cv_header_working_stdint_h=yes
15459 else
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15464 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15465 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15466 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15467 #include <stdint.h>
15470 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15471 included before <wchar.h>. */
15472 #include <stddef.h>
15473 #include <signal.h>
15474 #if HAVE_WCHAR_H
15475 # include <stdio.h>
15476 # include <time.h>
15477 # include <wchar.h>
15478 #endif
15481 #include <stdio.h>
15482 #include <string.h>
15483 #define MVAL(macro) MVAL1(macro)
15484 #define MVAL1(expression) #expression
15485 static const char *macro_values[] =
15487 #ifdef INT8_MAX
15488 MVAL (INT8_MAX),
15489 #endif
15490 #ifdef INT16_MAX
15491 MVAL (INT16_MAX),
15492 #endif
15493 #ifdef INT32_MAX
15494 MVAL (INT32_MAX),
15495 #endif
15496 #ifdef INT64_MAX
15497 MVAL (INT64_MAX),
15498 #endif
15499 #ifdef UINT8_MAX
15500 MVAL (UINT8_MAX),
15501 #endif
15502 #ifdef UINT16_MAX
15503 MVAL (UINT16_MAX),
15504 #endif
15505 #ifdef UINT32_MAX
15506 MVAL (UINT32_MAX),
15507 #endif
15508 #ifdef UINT64_MAX
15509 MVAL (UINT64_MAX),
15510 #endif
15511 NULL
15515 main ()
15518 const char **mv;
15519 for (mv = macro_values; *mv != NULL; mv++)
15521 const char *value = *mv;
15522 /* Test whether it looks like a cast expression. */
15523 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15524 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15525 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15526 || strncmp (value, "((int)"/*)*/, 6) == 0
15527 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15528 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15529 return mv - macro_values + 1;
15531 return 0;
15534 return 0;
15536 _ACEOF
15537 if ac_fn_c_try_run "$LINENO"; then :
15538 gl_cv_header_working_stdint_h=yes
15540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15541 conftest.$ac_objext conftest.beam conftest.$ac_ext
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15550 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15552 if test "$gl_cv_header_working_stdint_h" = yes; then
15553 STDINT_H=
15554 else
15555 for ac_header in sys/inttypes.h sys/bitypes.h
15556 do :
15557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15559 eval as_val=\$$as_ac_Header
15560 if test "x$as_val" = x""yes; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15563 _ACEOF
15567 done
15569 if test $ac_cv_header_sys_inttypes_h = yes; then
15570 HAVE_SYS_INTTYPES_H=1
15571 else
15572 HAVE_SYS_INTTYPES_H=0
15575 if test $ac_cv_header_sys_bitypes_h = yes; then
15576 HAVE_SYS_BITYPES_H=1
15577 else
15578 HAVE_SYS_BITYPES_H=0
15584 if test $APPLE_UNIVERSAL_BUILD = 0; then
15587 for gltype in ptrdiff_t size_t ; do
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15589 $as_echo_n "checking for bit size of $gltype... " >&6; }
15590 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15591 $as_echo_n "(cached) " >&6
15592 else
15593 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15594 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15595 included before <wchar.h>. */
15596 #include <stddef.h>
15597 #include <signal.h>
15598 #if HAVE_WCHAR_H
15599 # include <stdio.h>
15600 # include <time.h>
15601 # include <wchar.h>
15602 #endif
15604 #include <limits.h>"; then :
15606 else
15607 result=unknown
15610 eval gl_cv_bitsizeof_${gltype}=\$result
15613 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15615 $as_echo "$ac_res" >&6; }
15616 eval result=\$gl_cv_bitsizeof_${gltype}
15617 if test $result = unknown; then
15618 result=0
15620 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15621 cat >>confdefs.h <<_ACEOF
15622 #define BITSIZEOF_${GLTYPE} $result
15623 _ACEOF
15625 eval BITSIZEOF_${GLTYPE}=\$result
15626 done
15632 for gltype in sig_atomic_t wchar_t wint_t ; do
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15634 $as_echo_n "checking for bit size of $gltype... " >&6; }
15635 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15640 included before <wchar.h>. */
15641 #include <stddef.h>
15642 #include <signal.h>
15643 #if HAVE_WCHAR_H
15644 # include <stdio.h>
15645 # include <time.h>
15646 # include <wchar.h>
15647 #endif
15649 #include <limits.h>"; then :
15651 else
15652 result=unknown
15655 eval gl_cv_bitsizeof_${gltype}=\$result
15658 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15660 $as_echo "$ac_res" >&6; }
15661 eval result=\$gl_cv_bitsizeof_${gltype}
15662 if test $result = unknown; then
15663 result=0
15665 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15666 cat >>confdefs.h <<_ACEOF
15667 #define BITSIZEOF_${GLTYPE} $result
15668 _ACEOF
15670 eval BITSIZEOF_${GLTYPE}=\$result
15671 done
15676 for gltype in sig_atomic_t wchar_t wint_t ; do
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15678 $as_echo_n "checking whether $gltype is signed... " >&6; }
15679 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15680 $as_echo_n "(cached) " >&6
15681 else
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15685 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15686 included before <wchar.h>. */
15687 #include <stddef.h>
15688 #include <signal.h>
15689 #if HAVE_WCHAR_H
15690 # include <stdio.h>
15691 # include <time.h>
15692 # include <wchar.h>
15693 #endif
15695 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15697 main ()
15701 return 0;
15703 _ACEOF
15704 if ac_fn_c_try_compile "$LINENO"; then :
15705 result=yes
15706 else
15707 result=no
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 eval gl_cv_type_${gltype}_signed=\$result
15713 eval ac_res=\$gl_cv_type_${gltype}_signed
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15715 $as_echo "$ac_res" >&6; }
15716 eval result=\$gl_cv_type_${gltype}_signed
15717 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15718 if test "$result" = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE_SIGNED_${GLTYPE} 1
15721 _ACEOF
15723 eval HAVE_SIGNED_${GLTYPE}=1
15724 else
15725 eval HAVE_SIGNED_${GLTYPE}=0
15727 done
15730 gl_cv_type_ptrdiff_t_signed=yes
15731 gl_cv_type_size_t_signed=no
15732 if test $APPLE_UNIVERSAL_BUILD = 0; then
15735 for gltype in ptrdiff_t size_t ; do
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15737 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15738 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 eval gl_cv_type_${gltype}_suffix=no
15742 eval result=\$gl_cv_type_${gltype}_signed
15743 if test "$result" = yes; then
15744 glsufu=
15745 else
15746 glsufu=u
15748 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15749 case $glsuf in
15750 '') gltype1='int';;
15751 l) gltype1='long int';;
15752 ll) gltype1='long long int';;
15753 i64) gltype1='__int64';;
15754 u) gltype1='unsigned int';;
15755 ul) gltype1='unsigned long int';;
15756 ull) gltype1='unsigned long long int';;
15757 ui64)gltype1='unsigned __int64';;
15758 esac
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15763 included before <wchar.h>. */
15764 #include <stddef.h>
15765 #include <signal.h>
15766 #if HAVE_WCHAR_H
15767 # include <stdio.h>
15768 # include <time.h>
15769 # include <wchar.h>
15770 #endif
15772 extern $gltype foo;
15773 extern $gltype1 foo;
15775 main ()
15779 return 0;
15781 _ACEOF
15782 if ac_fn_c_try_compile "$LINENO"; then :
15783 eval gl_cv_type_${gltype}_suffix=\$glsuf
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 eval result=\$gl_cv_type_${gltype}_suffix
15787 test "$result" != no && break
15788 done
15790 eval ac_res=\$gl_cv_type_${gltype}_suffix
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15792 $as_echo "$ac_res" >&6; }
15793 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15794 eval result=\$gl_cv_type_${gltype}_suffix
15795 test "$result" = no && result=
15796 eval ${GLTYPE}_SUFFIX=\$result
15797 cat >>confdefs.h <<_ACEOF
15798 #define ${GLTYPE}_SUFFIX $result
15799 _ACEOF
15801 done
15807 for gltype in sig_atomic_t wchar_t wint_t ; do
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15809 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15810 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 eval gl_cv_type_${gltype}_suffix=no
15814 eval result=\$gl_cv_type_${gltype}_signed
15815 if test "$result" = yes; then
15816 glsufu=
15817 else
15818 glsufu=u
15820 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15821 case $glsuf in
15822 '') gltype1='int';;
15823 l) gltype1='long int';;
15824 ll) gltype1='long long int';;
15825 i64) gltype1='__int64';;
15826 u) gltype1='unsigned int';;
15827 ul) gltype1='unsigned long int';;
15828 ull) gltype1='unsigned long long int';;
15829 ui64)gltype1='unsigned __int64';;
15830 esac
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15834 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15835 included before <wchar.h>. */
15836 #include <stddef.h>
15837 #include <signal.h>
15838 #if HAVE_WCHAR_H
15839 # include <stdio.h>
15840 # include <time.h>
15841 # include <wchar.h>
15842 #endif
15844 extern $gltype foo;
15845 extern $gltype1 foo;
15847 main ()
15851 return 0;
15853 _ACEOF
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 eval gl_cv_type_${gltype}_suffix=\$glsuf
15857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15858 eval result=\$gl_cv_type_${gltype}_suffix
15859 test "$result" != no && break
15860 done
15862 eval ac_res=\$gl_cv_type_${gltype}_suffix
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15864 $as_echo "$ac_res" >&6; }
15865 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15866 eval result=\$gl_cv_type_${gltype}_suffix
15867 test "$result" = no && result=
15868 eval ${GLTYPE}_SUFFIX=\$result
15869 cat >>confdefs.h <<_ACEOF
15870 #define ${GLTYPE}_SUFFIX $result
15871 _ACEOF
15873 done
15877 STDINT_H=stdint.h
15880 if test -n "$STDINT_H"; then
15881 GL_GENERATE_STDINT_H_TRUE=
15882 GL_GENERATE_STDINT_H_FALSE='#'
15883 else
15884 GL_GENERATE_STDINT_H_TRUE='#'
15885 GL_GENERATE_STDINT_H_FALSE=
15892 GNULIB_IMAXABS=0;
15893 GNULIB_IMAXDIV=0;
15894 GNULIB_STRTOIMAX=0;
15895 GNULIB_STRTOUMAX=0;
15896 HAVE_DECL_IMAXABS=1;
15897 HAVE_DECL_IMAXDIV=1;
15898 HAVE_DECL_STRTOIMAX=1;
15899 HAVE_DECL_STRTOUMAX=1;
15900 INT32_MAX_LT_INTMAX_MAX=1;
15901 INT64_MAX_EQ_LONG_MAX='defined _LP64';
15902 PRI_MACROS_BROKEN=0;
15903 PRIPTR_PREFIX=__PRIPTR_PREFIX;
15904 UINT32_MAX_LT_UINTMAX_MAX=1;
15905 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
15921 if test $gl_cv_have_include_next = yes; then
15922 gl_cv_next_inttypes_h='<'inttypes.h'>'
15923 else
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
15925 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
15926 if test "${gl_cv_next_inttypes_h+set}" = set; then :
15927 $as_echo_n "(cached) " >&6
15928 else
15930 if test $ac_cv_header_inttypes_h = yes; then
15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15935 #include <inttypes.h>
15937 _ACEOF
15938 case "$host_os" in
15939 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15940 *) gl_absname_cpp="$ac_cpp" ;;
15941 esac
15942 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15943 sed -n '\#/inttypes.h#{
15944 s#.*"\(.*/inttypes.h\)".*#\1#
15945 s#^/[^/]#//&#
15948 }'`'"'
15949 else
15950 gl_cv_next_inttypes_h='<'inttypes.h'>'
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
15956 $as_echo "$gl_cv_next_inttypes_h" >&6; }
15958 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
15960 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15961 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15962 gl_next_as_first_directive='<'inttypes.h'>'
15963 else
15964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15965 gl_next_as_first_directive=$gl_cv_next_inttypes_h
15967 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
15976 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
15983 GNULIB_FCHMODAT=0;
15984 GNULIB_FSTATAT=0;
15985 GNULIB_FUTIMENS=0;
15986 GNULIB_LCHMOD=0;
15987 GNULIB_LSTAT=0;
15988 GNULIB_MKDIRAT=0;
15989 GNULIB_MKFIFO=0;
15990 GNULIB_MKFIFOAT=0;
15991 GNULIB_MKNOD=0;
15992 GNULIB_MKNODAT=0;
15993 GNULIB_STAT=0;
15994 GNULIB_UTIMENSAT=0;
15995 HAVE_FCHMODAT=1;
15996 HAVE_FSTATAT=1;
15997 HAVE_FUTIMENS=1;
15998 HAVE_LCHMOD=1;
15999 HAVE_LSTAT=1;
16000 HAVE_MKDIRAT=1;
16001 HAVE_MKFIFO=1;
16002 HAVE_MKFIFOAT=1;
16003 HAVE_MKNOD=1;
16004 HAVE_MKNODAT=1;
16005 HAVE_UTIMENSAT=1;
16006 REPLACE_FSTAT=0;
16007 REPLACE_FSTATAT=0;
16008 REPLACE_FUTIMENS=0;
16009 REPLACE_LSTAT=0;
16010 REPLACE_MKDIR=0;
16011 REPLACE_MKFIFO=0;
16012 REPLACE_MKNOD=0;
16013 REPLACE_STAT=0;
16014 REPLACE_UTIMENSAT=0;
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16019 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16020 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023 rm -f conftest.sym conftest.file
16024 echo >conftest.file
16025 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16026 if test "$cross_compiling" = yes; then :
16027 ac_cv_func_lstat_dereferences_slashed_symlink=no
16028 else
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16031 $ac_includes_default
16033 main ()
16035 struct stat sbuf;
16036 /* Linux will dereference the symlink and fail, as required by POSIX.
16037 That is better in the sense that it means we will not
16038 have to compile and use the lstat wrapper. */
16039 return lstat ("conftest.sym/", &sbuf) == 0;
16041 return 0;
16043 _ACEOF
16044 if ac_fn_c_try_run "$LINENO"; then :
16045 ac_cv_func_lstat_dereferences_slashed_symlink=yes
16046 else
16047 ac_cv_func_lstat_dereferences_slashed_symlink=no
16049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16050 conftest.$ac_objext conftest.beam conftest.$ac_ext
16053 else
16054 # If the `ln -s' command failed, then we probably don't even
16055 # have an lstat function.
16056 ac_cv_func_lstat_dereferences_slashed_symlink=no
16058 rm -f conftest.sym conftest.file
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16062 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16064 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16066 cat >>confdefs.h <<_ACEOF
16067 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16068 _ACEOF
16071 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16080 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
16085 GNULIB_MKTIME=0;
16086 GNULIB_NANOSLEEP=0;
16087 GNULIB_STRPTIME=0;
16088 GNULIB_TIMEGM=0;
16089 GNULIB_TIME_R=0;
16090 HAVE_DECL_LOCALTIME_R=1;
16091 HAVE_NANOSLEEP=1;
16092 HAVE_STRPTIME=1;
16093 HAVE_TIMEGM=1;
16094 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16095 REPLACE_MKTIME=GNULIB_PORTCHECK;
16096 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16097 REPLACE_TIMEGM=GNULIB_PORTCHECK;
16106 if test $ac_cv_header_sys_socket_h = no; then
16107 for ac_header in ws2tcpip.h
16108 do :
16109 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16110 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
16111 cat >>confdefs.h <<_ACEOF
16112 #define HAVE_WS2TCPIP_H 1
16113 _ACEOF
16117 done
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16122 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16123 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16129 #include <stdbool.h>
16130 #ifndef bool
16131 "error: bool is not defined"
16132 #endif
16133 #ifndef false
16134 "error: false is not defined"
16135 #endif
16136 #if false
16137 "error: false is not 0"
16138 #endif
16139 #ifndef true
16140 "error: true is not defined"
16141 #endif
16142 #if true != 1
16143 "error: true is not 1"
16144 #endif
16145 #ifndef __bool_true_false_are_defined
16146 "error: __bool_true_false_are_defined is not defined"
16147 #endif
16149 struct s { _Bool s: 1; _Bool t; } s;
16151 char a[true == 1 ? 1 : -1];
16152 char b[false == 0 ? 1 : -1];
16153 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16154 char d[(bool) 0.5 == true ? 1 : -1];
16155 /* See body of main program for 'e'. */
16156 char f[(_Bool) 0.0 == false ? 1 : -1];
16157 char g[true];
16158 char h[sizeof (_Bool)];
16159 char i[sizeof s.t];
16160 enum { j = false, k = true, l = false * true, m = true * 256 };
16161 /* The following fails for
16162 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16163 _Bool n[m];
16164 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16165 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16166 /* Catch a bug in an HP-UX C compiler. See
16167 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16168 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16170 _Bool q = true;
16171 _Bool *pq = &q;
16174 main ()
16177 bool e = &s;
16178 *pq |= q;
16179 *pq |= ! q;
16180 /* Refer to every declared value, to avoid compiler optimizations. */
16181 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16182 + !m + !n + !o + !p + !q + !pq);
16185 return 0;
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"; then :
16189 ac_cv_header_stdbool_h=yes
16190 else
16191 ac_cv_header_stdbool_h=no
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16196 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16197 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16198 if test "x$ac_cv_type__Bool" = x""yes; then :
16200 cat >>confdefs.h <<_ACEOF
16201 #define HAVE__BOOL 1
16202 _ACEOF
16209 REPLACE_NULL=0;
16210 HAVE_WCHAR_T=1;
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16214 $as_echo_n "checking for wchar_t... " >&6; }
16215 if test "${gt_cv_c_wchar_t+set}" = set; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <stddef.h>
16221 wchar_t foo = (wchar_t)'\0';
16223 main ()
16227 return 0;
16229 _ACEOF
16230 if ac_fn_c_try_compile "$LINENO"; then :
16231 gt_cv_c_wchar_t=yes
16232 else
16233 gt_cv_c_wchar_t=no
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16238 $as_echo "$gt_cv_c_wchar_t" >&6; }
16239 if test $gt_cv_c_wchar_t = yes; then
16241 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
16246 GNULIB_DPRINTF=0;
16247 GNULIB_FCLOSE=0;
16248 GNULIB_FFLUSH=0;
16249 GNULIB_FGETC=0;
16250 GNULIB_FGETS=0;
16251 GNULIB_FOPEN=0;
16252 GNULIB_FPRINTF=0;
16253 GNULIB_FPRINTF_POSIX=0;
16254 GNULIB_FPURGE=0;
16255 GNULIB_FPUTC=0;
16256 GNULIB_FPUTS=0;
16257 GNULIB_FREAD=0;
16258 GNULIB_FREOPEN=0;
16259 GNULIB_FSCANF=0;
16260 GNULIB_FSEEK=0;
16261 GNULIB_FSEEKO=0;
16262 GNULIB_FTELL=0;
16263 GNULIB_FTELLO=0;
16264 GNULIB_FWRITE=0;
16265 GNULIB_GETC=0;
16266 GNULIB_GETCHAR=0;
16267 GNULIB_GETDELIM=0;
16268 GNULIB_GETLINE=0;
16269 GNULIB_GETS=0;
16270 GNULIB_OBSTACK_PRINTF=0;
16271 GNULIB_OBSTACK_PRINTF_POSIX=0;
16272 GNULIB_PERROR=0;
16273 GNULIB_POPEN=0;
16274 GNULIB_PRINTF=0;
16275 GNULIB_PRINTF_POSIX=0;
16276 GNULIB_PUTC=0;
16277 GNULIB_PUTCHAR=0;
16278 GNULIB_PUTS=0;
16279 GNULIB_REMOVE=0;
16280 GNULIB_RENAME=0;
16281 GNULIB_RENAMEAT=0;
16282 GNULIB_SCANF=0;
16283 GNULIB_SNPRINTF=0;
16284 GNULIB_SPRINTF_POSIX=0;
16285 GNULIB_STDIO_H_NONBLOCKING=0;
16286 GNULIB_STDIO_H_SIGPIPE=0;
16287 GNULIB_TMPFILE=0;
16288 GNULIB_VASPRINTF=0;
16289 GNULIB_VFSCANF=0;
16290 GNULIB_VSCANF=0;
16291 GNULIB_VDPRINTF=0;
16292 GNULIB_VFPRINTF=0;
16293 GNULIB_VFPRINTF_POSIX=0;
16294 GNULIB_VPRINTF=0;
16295 GNULIB_VPRINTF_POSIX=0;
16296 GNULIB_VSNPRINTF=0;
16297 GNULIB_VSPRINTF_POSIX=0;
16298 HAVE_DECL_FPURGE=1;
16299 HAVE_DECL_FSEEKO=1;
16300 HAVE_DECL_FTELLO=1;
16301 HAVE_DECL_GETDELIM=1;
16302 HAVE_DECL_GETLINE=1;
16303 HAVE_DECL_OBSTACK_PRINTF=1;
16304 HAVE_DECL_SNPRINTF=1;
16305 HAVE_DECL_VSNPRINTF=1;
16306 HAVE_DPRINTF=1;
16307 HAVE_FSEEKO=1;
16308 HAVE_FTELLO=1;
16309 HAVE_RENAMEAT=1;
16310 HAVE_VASPRINTF=1;
16311 HAVE_VDPRINTF=1;
16312 REPLACE_DPRINTF=0;
16313 REPLACE_FCLOSE=0;
16314 REPLACE_FFLUSH=0;
16315 REPLACE_FOPEN=0;
16316 REPLACE_FPRINTF=0;
16317 REPLACE_FPURGE=0;
16318 REPLACE_FREOPEN=0;
16319 REPLACE_FSEEK=0;
16320 REPLACE_FSEEKO=0;
16321 REPLACE_FTELL=0;
16322 REPLACE_FTELLO=0;
16323 REPLACE_GETDELIM=0;
16324 REPLACE_GETLINE=0;
16325 REPLACE_OBSTACK_PRINTF=0;
16326 REPLACE_PERROR=0;
16327 REPLACE_POPEN=0;
16328 REPLACE_PRINTF=0;
16329 REPLACE_REMOVE=0;
16330 REPLACE_RENAME=0;
16331 REPLACE_RENAMEAT=0;
16332 REPLACE_SNPRINTF=0;
16333 REPLACE_SPRINTF=0;
16334 REPLACE_STDIO_READ_FUNCS=0;
16335 REPLACE_STDIO_WRITE_FUNCS=0;
16336 REPLACE_TMPFILE=0;
16337 REPLACE_VASPRINTF=0;
16338 REPLACE_VDPRINTF=0;
16339 REPLACE_VFPRINTF=0;
16340 REPLACE_VPRINTF=0;
16341 REPLACE_VSNPRINTF=0;
16342 REPLACE_VSPRINTF=0;
16345 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
16347 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
16349 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16356 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
16357 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
16358 ac_have_decl=1
16359 else
16360 ac_have_decl=0
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16365 _ACEOF
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16370 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16371 if test "${ac_cv_header_stat_broken+set}" = set; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 #include <sys/types.h>
16377 #include <sys/stat.h>
16379 #if defined S_ISBLK && defined S_IFDIR
16380 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16381 #endif
16383 #if defined S_ISBLK && defined S_IFCHR
16384 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16385 #endif
16387 #if defined S_ISLNK && defined S_IFREG
16388 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16389 #endif
16391 #if defined S_ISSOCK && defined S_IFREG
16392 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16393 #endif
16395 _ACEOF
16396 if ac_fn_c_try_compile "$LINENO"; then :
16397 ac_cv_header_stat_broken=no
16398 else
16399 ac_cv_header_stat_broken=yes
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16404 $as_echo "$ac_cv_header_stat_broken" >&6; }
16405 if test $ac_cv_header_stat_broken = yes; then
16407 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16414 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16415 if test "${ac_cv_c_restrict+set}" = set; then :
16416 $as_echo_n "(cached) " >&6
16417 else
16418 ac_cv_c_restrict=no
16419 # The order here caters to the fact that C++ does not require restrict.
16420 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 typedef int * int_ptr;
16424 int foo (int_ptr $ac_kw ip) {
16425 return ip[0];
16428 main ()
16430 int s[1];
16431 int * $ac_kw t = s;
16432 t[0] = 0;
16433 return foo(t)
16435 return 0;
16437 _ACEOF
16438 if ac_fn_c_try_compile "$LINENO"; then :
16439 ac_cv_c_restrict=$ac_kw
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 test "$ac_cv_c_restrict" != no && break
16443 done
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16447 $as_echo "$ac_cv_c_restrict" >&6; }
16449 case $ac_cv_c_restrict in
16450 restrict) ;;
16451 no) $as_echo "#define restrict /**/" >>confdefs.h
16453 *) cat >>confdefs.h <<_ACEOF
16454 #define restrict $ac_cv_c_restrict
16455 _ACEOF
16457 esac
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16464 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16465 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469 /* end confdefs.h. */
16470 #include <time.h>
16473 main ()
16475 static struct timespec x; x.tv_sec = x.tv_nsec;
16477 return 0;
16479 _ACEOF
16480 if ac_fn_c_try_compile "$LINENO"; then :
16481 gl_cv_sys_struct_timespec_in_time_h=yes
16482 else
16483 gl_cv_sys_struct_timespec_in_time_h=no
16485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16488 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16490 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16491 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16492 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16493 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16494 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16495 else
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16497 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16498 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16503 #include <sys/time.h>
16506 main ()
16508 static struct timespec x; x.tv_sec = x.tv_nsec;
16510 return 0;
16512 _ACEOF
16513 if ac_fn_c_try_compile "$LINENO"; then :
16514 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16515 else
16516 gl_cv_sys_struct_timespec_in_sys_time_h=no
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16521 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16522 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16523 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16524 else
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16526 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16527 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16532 #include <pthread.h>
16535 main ()
16537 static struct timespec x; x.tv_sec = x.tv_nsec;
16539 return 0;
16541 _ACEOF
16542 if ac_fn_c_try_compile "$LINENO"; then :
16543 gl_cv_sys_struct_timespec_in_pthread_h=yes
16544 else
16545 gl_cv_sys_struct_timespec_in_pthread_h=no
16547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16550 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16551 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16552 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16571 if test $gl_cv_have_include_next = yes; then
16572 gl_cv_next_time_h='<'time.h'>'
16573 else
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16575 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16576 if test "${gl_cv_next_time_h+set}" = set; then :
16577 $as_echo_n "(cached) " >&6
16578 else
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #include <time.h>
16584 _ACEOF
16585 case "$host_os" in
16586 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16587 *) gl_absname_cpp="$ac_cpp" ;;
16588 esac
16589 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16590 sed -n '\#/time.h#{
16591 s#.*"\(.*/time.h\)".*#\1#
16592 s#^/[^/]#//&#
16595 }'`'"'
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16600 $as_echo "$gl_cv_next_time_h" >&6; }
16602 NEXT_TIME_H=$gl_cv_next_time_h
16604 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16605 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16606 gl_next_as_first_directive='<'time.h'>'
16607 else
16608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16609 gl_next_as_first_directive=$gl_cv_next_time_h
16611 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16618 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16619 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
16620 ac_have_decl=1
16621 else
16622 ac_have_decl=0
16625 cat >>confdefs.h <<_ACEOF
16626 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16627 _ACEOF
16632 if false; then
16633 GL_COND_LIBTOOL_TRUE=
16634 GL_COND_LIBTOOL_FALSE='#'
16635 else
16636 GL_COND_LIBTOOL_TRUE='#'
16637 GL_COND_LIBTOOL_FALSE=
16640 gl_cond_libtool=false
16641 gl_libdeps=
16642 gl_ltlibdeps=
16643 gl_m4_base='m4'
16653 gl_source_base='lib'
16672 # Persuade glibc <stdlib.h> to declare getloadavg().
16675 gl_save_LIBS=$LIBS
16677 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16678 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16679 HAVE_GETLOADAVG=1
16680 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16681 if test "x$ac_cv_func_getloadavg" = x""yes; then :
16683 else
16684 gl_have_func=no
16686 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16687 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16688 # to get the right answer into the cache.
16689 # For kstat on solaris, we need to test for libelf and libkvm to force the
16690 # definition of SVR4 below.
16691 if test $gl_have_func = no; then
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16693 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16694 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lelf $LIBS"
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16705 #ifdef __cplusplus
16706 extern "C"
16707 #endif
16708 char elf_begin ();
16710 main ()
16712 return elf_begin ();
16714 return 0;
16716 _ACEOF
16717 if ac_fn_c_try_link "$LINENO"; then :
16718 ac_cv_lib_elf_elf_begin=yes
16719 else
16720 ac_cv_lib_elf_elf_begin=no
16722 rm -f core conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16724 LIBS=$ac_check_lib_save_LIBS
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16727 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16728 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
16729 LIBS="-lelf $LIBS"
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16733 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16734 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 ac_check_lib_save_LIBS=$LIBS
16738 LIBS="-lkvm $LIBS"
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16742 /* Override any GCC internal prototype to avoid an error.
16743 Use char because int might match the return type of a GCC
16744 builtin and then its argument prototype would still apply. */
16745 #ifdef __cplusplus
16746 extern "C"
16747 #endif
16748 char kvm_open ();
16750 main ()
16752 return kvm_open ();
16754 return 0;
16756 _ACEOF
16757 if ac_fn_c_try_link "$LINENO"; then :
16758 ac_cv_lib_kvm_kvm_open=yes
16759 else
16760 ac_cv_lib_kvm_kvm_open=no
16762 rm -f core conftest.err conftest.$ac_objext \
16763 conftest$ac_exeext conftest.$ac_ext
16764 LIBS=$ac_check_lib_save_LIBS
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16767 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16768 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
16769 LIBS="-lkvm $LIBS"
16772 # Check for the 4.4BSD definition of getloadavg.
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16774 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16775 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 ac_check_lib_save_LIBS=$LIBS
16779 LIBS="-lutil $LIBS"
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16783 /* Override any GCC internal prototype to avoid an error.
16784 Use char because int might match the return type of a GCC
16785 builtin and then its argument prototype would still apply. */
16786 #ifdef __cplusplus
16787 extern "C"
16788 #endif
16789 char getloadavg ();
16791 main ()
16793 return getloadavg ();
16795 return 0;
16797 _ACEOF
16798 if ac_fn_c_try_link "$LINENO"; then :
16799 ac_cv_lib_util_getloadavg=yes
16800 else
16801 ac_cv_lib_util_getloadavg=no
16803 rm -f core conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
16808 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
16809 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
16810 LIBS="-lutil $LIBS" gl_have_func=yes
16815 if test $gl_have_func = no; then
16816 # There is a commonly available library for RS/6000 AIX.
16817 # Since it is not a standard part of AIX, it might be installed locally.
16818 gl_getloadavg_LIBS=$LIBS
16819 LIBS="-L/usr/local/lib $LIBS"
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
16821 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
16822 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
16823 $as_echo_n "(cached) " >&6
16824 else
16825 ac_check_lib_save_LIBS=$LIBS
16826 LIBS="-lgetloadavg $LIBS"
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16830 /* Override any GCC internal prototype to avoid an error.
16831 Use char because int might match the return type of a GCC
16832 builtin and then its argument prototype would still apply. */
16833 #ifdef __cplusplus
16834 extern "C"
16835 #endif
16836 char getloadavg ();
16838 main ()
16840 return getloadavg ();
16842 return 0;
16844 _ACEOF
16845 if ac_fn_c_try_link "$LINENO"; then :
16846 ac_cv_lib_getloadavg_getloadavg=yes
16847 else
16848 ac_cv_lib_getloadavg_getloadavg=no
16850 rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_check_lib_save_LIBS
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16855 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
16856 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
16857 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
16858 else
16859 LIBS=$gl_getloadavg_LIBS
16864 # Set up the replacement function if necessary.
16865 if test $gl_have_func = no; then
16866 HAVE_GETLOADAVG=0
16871 if test "x$gl_save_LIBS" = x; then
16872 GETLOADAVG_LIBS=$LIBS
16873 else
16874 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16876 LIBS=$gl_save_LIBS
16879 # Test whether the system declares getloadavg. Solaris has the function
16880 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16881 for ac_header in sys/loadavg.h
16882 do :
16883 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16884 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
16885 cat >>confdefs.h <<_ACEOF
16886 #define HAVE_SYS_LOADAVG_H 1
16887 _ACEOF
16891 done
16893 if test $ac_cv_header_sys_loadavg_h = yes; then
16894 HAVE_SYS_LOADAVG_H=1
16895 else
16896 HAVE_SYS_LOADAVG_H=0
16898 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16899 # include <sys/loadavg.h>
16900 #endif
16901 #include <stdlib.h>
16903 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
16905 else
16906 HAVE_DECL_GETLOADAVG=0
16910 if test $HAVE_GETLOADAVG = 0; then
16919 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
16922 # Figure out what our getloadavg.c needs.
16924 # Solaris has libkstat which does not require root.
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16926 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16927 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16928 $as_echo_n "(cached) " >&6
16929 else
16930 ac_check_lib_save_LIBS=$LIBS
16931 LIBS="-lkstat $LIBS"
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16935 /* Override any GCC internal prototype to avoid an error.
16936 Use char because int might match the return type of a GCC
16937 builtin and then its argument prototype would still apply. */
16938 #ifdef __cplusplus
16939 extern "C"
16940 #endif
16941 char kstat_open ();
16943 main ()
16945 return kstat_open ();
16947 return 0;
16949 _ACEOF
16950 if ac_fn_c_try_link "$LINENO"; then :
16951 ac_cv_lib_kstat_kstat_open=yes
16952 else
16953 ac_cv_lib_kstat_kstat_open=no
16955 rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16960 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16961 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16962 cat >>confdefs.h <<_ACEOF
16963 #define HAVE_LIBKSTAT 1
16964 _ACEOF
16966 LIBS="-lkstat $LIBS"
16970 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
16972 # On HPUX9, an unprivileged user can get load averages this way.
16973 if test $gl_have_func = no; then
16974 for ac_func in pstat_getdynamic
16975 do :
16976 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
16977 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_PSTAT_GETDYNAMIC 1
16980 _ACEOF
16981 gl_have_func=yes
16983 done
16987 # AIX has libperfstat which does not require root
16988 if test $gl_have_func = no; then
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
16990 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
16991 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
16992 $as_echo_n "(cached) " >&6
16993 else
16994 ac_check_lib_save_LIBS=$LIBS
16995 LIBS="-lperfstat $LIBS"
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 char perfstat_cpu_total ();
17007 main ()
17009 return perfstat_cpu_total ();
17011 return 0;
17013 _ACEOF
17014 if ac_fn_c_try_link "$LINENO"; then :
17015 ac_cv_lib_perfstat_perfstat_cpu_total=yes
17016 else
17017 ac_cv_lib_perfstat_perfstat_cpu_total=no
17019 rm -f core conftest.err conftest.$ac_objext \
17020 conftest$ac_exeext conftest.$ac_ext
17021 LIBS=$ac_check_lib_save_LIBS
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
17024 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
17025 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
17026 cat >>confdefs.h <<_ACEOF
17027 #define HAVE_LIBPERFSTAT 1
17028 _ACEOF
17030 LIBS="-lperfstat $LIBS"
17034 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
17037 if test $gl_have_func = no; then
17038 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
17039 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
17040 gl_have_func=yes
17042 $as_echo "#define DGUX 1" >>confdefs.h
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
17045 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
17046 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
17047 $as_echo_n "(cached) " >&6
17048 else
17049 ac_check_lib_save_LIBS=$LIBS
17050 LIBS="-ldgc $LIBS"
17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h. */
17054 /* Override any GCC internal prototype to avoid an error.
17055 Use char because int might match the return type of a GCC
17056 builtin and then its argument prototype would still apply. */
17057 #ifdef __cplusplus
17058 extern "C"
17059 #endif
17060 char dg_sys_info ();
17062 main ()
17064 return dg_sys_info ();
17066 return 0;
17068 _ACEOF
17069 if ac_fn_c_try_link "$LINENO"; then :
17070 ac_cv_lib_dgc_dg_sys_info=yes
17071 else
17072 ac_cv_lib_dgc_dg_sys_info=no
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 LIBS=$ac_check_lib_save_LIBS
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17079 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
17080 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
17081 cat >>confdefs.h <<_ACEOF
17082 #define HAVE_LIBDGC 1
17083 _ACEOF
17085 LIBS="-ldgc $LIBS"
17094 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17095 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17096 # Irix 4.0.5F has the header but not the library.
17097 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
17098 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
17099 gl_have_func=yes
17101 $as_echo "#define SVR4 1" >>confdefs.h
17105 if test $gl_have_func = no; then
17106 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
17107 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
17108 gl_have_func=yes
17110 $as_echo "#define UMAX 1" >>confdefs.h
17113 $as_echo "#define UMAX4_3 1" >>confdefs.h
17120 if test $gl_have_func = no; then
17121 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
17122 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
17123 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
17130 if test $gl_have_func = no; then
17131 for ac_header in mach/mach.h
17132 do :
17133 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
17134 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_MACH_MACH_H 1
17137 _ACEOF
17141 done
17145 for ac_header in nlist.h
17146 do :
17147 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
17148 if test "x$ac_cv_header_nlist_h" = x""yes; then :
17149 cat >>confdefs.h <<_ACEOF
17150 #define HAVE_NLIST_H 1
17151 _ACEOF
17152 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
17154 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
17156 cat >>confdefs.h <<_ACEOF
17157 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17158 _ACEOF
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 #include <nlist.h>
17167 main ()
17169 struct nlist x;
17170 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
17171 x.n_un.n_name = "";
17172 #else
17173 x.n_name = "";
17174 #endif
17176 return 0;
17178 _ACEOF
17179 if ac_fn_c_try_link "$LINENO"; then :
17181 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
17184 rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17189 done
17197 GNULIB_GETLOADAVG=1
17208 if test $REPLACE_GETOPT = 1; then
17217 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17227 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17238 REPLACE_GETOPT=0
17241 if test -n "$gl_replace_getopt"; then :
17243 REPLACE_GETOPT=1
17248 if test $REPLACE_GETOPT = 1; then
17250 GETOPT_H=getopt.h
17252 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17256 GNULIB_UNISTD_H_GETOPT=1
17259 if test $REPLACE_GETOPT = 1; then
17268 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17278 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17289 if test $ac_cv_func_lstat = yes; then
17291 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
17292 REPLACE_LSTAT=1
17294 else
17295 HAVE_LSTAT=0
17298 if test $REPLACE_LSTAT = 1; then
17307 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
17319 GNULIB_LSTAT=1
17331 if test $APPLE_UNIVERSAL_BUILD = 1; then
17332 # A universal build on Apple MacOS X platforms.
17333 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17334 # But we need a configuration result that is valid in both modes.
17335 gl_cv_func_working_mktime=no
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17338 $as_echo_n "checking for working mktime... " >&6; }
17339 if test "${gl_cv_func_working_mktime+set}" = set; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 if test "$cross_compiling" = yes; then :
17343 gl_cv_func_working_mktime=no
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 /* Test program from Paul Eggert and Tony Leneis. */
17348 #include <limits.h>
17349 #include <stdlib.h>
17350 #include <time.h>
17352 #ifdef HAVE_UNISTD_H
17353 # include <unistd.h>
17354 #endif
17356 #ifndef HAVE_ALARM
17357 # define alarm(X) /* empty */
17358 #endif
17360 /* Work around redefinition to rpl_putenv by other config tests. */
17361 #undef putenv
17363 static time_t time_t_max;
17364 static time_t time_t_min;
17366 /* Values we'll use to set the TZ environment variable. */
17367 static char *tz_strings[] = {
17368 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17369 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17371 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17373 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17374 Based on a problem report from Andreas Jaeger. */
17375 static int
17376 spring_forward_gap ()
17378 /* glibc (up to about 1998-10-07) failed this test. */
17379 struct tm tm;
17381 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17382 instead of "TZ=America/Vancouver" in order to detect the bug even
17383 on systems that don't support the Olson extension, or don't have the
17384 full zoneinfo tables installed. */
17385 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17387 tm.tm_year = 98;
17388 tm.tm_mon = 3;
17389 tm.tm_mday = 5;
17390 tm.tm_hour = 2;
17391 tm.tm_min = 0;
17392 tm.tm_sec = 0;
17393 tm.tm_isdst = -1;
17394 return mktime (&tm) != (time_t) -1;
17397 static int
17398 mktime_test1 (time_t now)
17400 struct tm *lt;
17401 return ! (lt = localtime (&now)) || mktime (lt) == now;
17404 static int
17405 mktime_test (time_t now)
17407 return (mktime_test1 (now)
17408 && mktime_test1 ((time_t) (time_t_max - now))
17409 && mktime_test1 ((time_t) (time_t_min + now)));
17412 static int
17413 irix_6_4_bug ()
17415 /* Based on code from Ariel Faigon. */
17416 struct tm tm;
17417 tm.tm_year = 96;
17418 tm.tm_mon = 3;
17419 tm.tm_mday = 0;
17420 tm.tm_hour = 0;
17421 tm.tm_min = 0;
17422 tm.tm_sec = 0;
17423 tm.tm_isdst = -1;
17424 mktime (&tm);
17425 return tm.tm_mon == 2 && tm.tm_mday == 31;
17428 static int
17429 bigtime_test (int j)
17431 struct tm tm;
17432 time_t now;
17433 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17434 now = mktime (&tm);
17435 if (now != (time_t) -1)
17437 struct tm *lt = localtime (&now);
17438 if (! (lt
17439 && lt->tm_year == tm.tm_year
17440 && lt->tm_mon == tm.tm_mon
17441 && lt->tm_mday == tm.tm_mday
17442 && lt->tm_hour == tm.tm_hour
17443 && lt->tm_min == tm.tm_min
17444 && lt->tm_sec == tm.tm_sec
17445 && lt->tm_yday == tm.tm_yday
17446 && lt->tm_wday == tm.tm_wday
17447 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17448 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17449 return 0;
17451 return 1;
17454 static int
17455 year_2050_test ()
17457 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17458 ignoring leap seconds. */
17459 unsigned long int answer = 2527315200UL;
17461 struct tm tm;
17462 time_t t;
17463 tm.tm_year = 2050 - 1900;
17464 tm.tm_mon = 2 - 1;
17465 tm.tm_mday = 1;
17466 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17467 tm.tm_isdst = -1;
17469 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17470 instead of "TZ=America/Vancouver" in order to detect the bug even
17471 on systems that don't support the Olson extension, or don't have the
17472 full zoneinfo tables installed. */
17473 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17475 t = mktime (&tm);
17477 /* Check that the result is either a failure, or close enough
17478 to the correct answer that we can assume the discrepancy is
17479 due to leap seconds. */
17480 return (t == (time_t) -1
17481 || (0 < t && answer - 120 <= t && t <= answer + 120));
17485 main ()
17487 int result = 0;
17488 time_t t, delta;
17489 int i, j;
17490 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17491 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17493 /* This test makes some buggy mktime implementations loop.
17494 Give up after 60 seconds; a mktime slower than that
17495 isn't worth using anyway. */
17496 alarm (60);
17498 time_t_max = (! time_t_signed
17499 ? (time_t) -1
17500 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17501 * 2 + 1));
17502 time_t_min = (! time_t_signed
17503 ? (time_t) 0
17504 : time_t_signed_magnitude
17505 ? ~ (time_t) 0
17506 : ~ time_t_max);
17508 delta = time_t_max / 997; /* a suitable prime number */
17509 for (i = 0; i < N_STRINGS; i++)
17511 if (tz_strings[i])
17512 putenv (tz_strings[i]);
17514 for (t = 0; t <= time_t_max - delta; t += delta)
17515 if (! mktime_test (t))
17516 result |= 1;
17517 if (! (mktime_test ((time_t) 1)
17518 && mktime_test ((time_t) (60 * 60))
17519 && mktime_test ((time_t) (60 * 60 * 24))))
17520 result |= 2;
17522 for (j = 1; ; j <<= 1)
17523 if (! bigtime_test (j))
17524 result |= 4;
17525 else if (INT_MAX / 2 < j)
17526 break;
17527 if (! bigtime_test (INT_MAX))
17528 result |= 8;
17530 if (! irix_6_4_bug ())
17531 result |= 16;
17532 if (! spring_forward_gap ())
17533 result |= 32;
17534 if (! year_2050_test ())
17535 result |= 64;
17536 return result;
17538 _ACEOF
17539 if ac_fn_c_try_run "$LINENO"; then :
17540 gl_cv_func_working_mktime=yes
17541 else
17542 gl_cv_func_working_mktime=no
17544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17545 conftest.$ac_objext conftest.beam conftest.$ac_ext
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
17551 $as_echo "$gl_cv_func_working_mktime" >&6; }
17553 if test $gl_cv_func_working_mktime = no; then
17554 REPLACE_MKTIME=1
17555 else
17556 REPLACE_MKTIME=0
17559 if test $REPLACE_MKTIME = 1; then
17568 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
17579 GNULIB_MKTIME=1
17589 if test $ac_cv_func_readlink = no; then
17590 HAVE_READLINK=0
17591 else
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17593 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17594 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17595 $as_echo_n "(cached) " >&6
17596 else
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17599 #include <unistd.h>
17600 /* Cause compilation failure if original declaration has wrong type. */
17601 ssize_t readlink (const char *, char *, size_t);
17603 main ()
17607 return 0;
17609 _ACEOF
17610 if ac_fn_c_try_compile "$LINENO"; then :
17611 gl_cv_decl_readlink_works=yes
17612 else
17613 gl_cv_decl_readlink_works=no
17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17618 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17620 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17621 if test "${gl_cv_func_readlink_works+set}" = set; then :
17622 $as_echo_n "(cached) " >&6
17623 else
17624 # We have readlink, so assume ln -s works.
17625 ln -s conftest.no-such conftest.link
17626 ln -s conftest.link conftest.lnk2
17627 if test "$cross_compiling" = yes; then :
17628 gl_cv_func_readlink_works="guessing no"
17629 else
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17632 #include <unistd.h>
17635 main ()
17637 char buf[20];
17638 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17640 return 0;
17642 _ACEOF
17643 if ac_fn_c_try_run "$LINENO"; then :
17644 gl_cv_func_readlink_works=yes
17645 else
17646 gl_cv_func_readlink_works=no
17648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17649 conftest.$ac_objext conftest.beam conftest.$ac_ext
17652 rm -f conftest.link conftest.lnk2
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17655 $as_echo "$gl_cv_func_readlink_works" >&6; }
17656 if test "$gl_cv_func_readlink_works" != yes; then
17658 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17660 REPLACE_READLINK=1
17661 elif test "$gl_cv_decl_readlink_works" != yes; then
17662 REPLACE_READLINK=1
17666 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
17675 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17686 GNULIB_READLINK=1
17692 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17693 /* <sys/types.h> is not needed according to POSIX, but the
17694 <sys/socket.h> in i386-unknown-freebsd4.10 and
17695 powerpc-apple-darwin5.5 required it. */
17696 #include <sys/types.h>
17697 #if HAVE_SYS_SOCKET_H
17698 # include <sys/socket.h>
17699 #elif HAVE_WS2TCPIP_H
17700 # include <ws2tcpip.h>
17701 #endif
17704 if test "x$ac_cv_type_socklen_t" = x""yes; then :
17706 else
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17708 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17709 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17710 $as_echo_n "(cached) " >&6
17711 else
17712 # Systems have either "struct sockaddr *" or
17713 # "void *" as the second argument to getpeername
17714 gl_cv_socklen_t_equiv=
17715 for arg2 in "struct sockaddr" void; do
17716 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719 #include <sys/types.h>
17720 #include <sys/socket.h>
17722 int getpeername (int, $arg2 *, $t *);
17724 main ()
17726 $t len;
17727 getpeername (0, 0, &len);
17729 return 0;
17731 _ACEOF
17732 if ac_fn_c_try_compile "$LINENO"; then :
17733 gl_cv_socklen_t_equiv="$t"
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 test "$gl_cv_socklen_t_equiv" != "" && break
17737 done
17738 test "$gl_cv_socklen_t_equiv" != "" && break
17739 done
17743 if test "$gl_cv_socklen_t_equiv" = ""; then
17744 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17747 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17749 cat >>confdefs.h <<_ACEOF
17750 #define socklen_t $gl_cv_socklen_t_equiv
17751 _ACEOF
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17757 $as_echo_n "checking for ssize_t... " >&6; }
17758 if test "${gt_cv_ssize_t+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17760 else
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17763 #include <sys/types.h>
17765 main ()
17767 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17768 return !x;
17770 return 0;
17772 _ACEOF
17773 if ac_fn_c_try_compile "$LINENO"; then :
17774 gt_cv_ssize_t=yes
17775 else
17776 gt_cv_ssize_t=no
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17781 $as_echo "$gt_cv_ssize_t" >&6; }
17782 if test $gt_cv_ssize_t = no; then
17784 $as_echo "#define ssize_t int" >>confdefs.h
17789 STDARG_H=''
17790 NEXT_STDARG_H='<stdarg.h>'
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
17792 $as_echo_n "checking for va_copy... " >&6; }
17793 if test "${gl_cv_func_va_copy+set}" = set; then :
17794 $as_echo_n "(cached) " >&6
17795 else
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 #include <stdarg.h>
17801 main ()
17804 #ifndef va_copy
17805 void (*func) (va_list, va_list) = va_copy;
17806 #endif
17809 return 0;
17811 _ACEOF
17812 if ac_fn_c_try_compile "$LINENO"; then :
17813 gl_cv_func_va_copy=yes
17814 else
17815 gl_cv_func_va_copy=no
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
17821 $as_echo "$gl_cv_func_va_copy" >&6; }
17822 if test $gl_cv_func_va_copy = no; then
17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17825 #if defined _AIX && !defined __GNUC__
17826 AIX vaccine
17827 #endif
17829 _ACEOF
17830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17831 $EGREP "vaccine" >/dev/null 2>&1; then :
17832 gl_aixcc=yes
17833 else
17834 gl_aixcc=no
17836 rm -f conftest*
17838 if test $gl_aixcc = yes; then
17839 STDARG_H=stdarg.h
17848 if test $gl_cv_have_include_next = yes; then
17849 gl_cv_next_stdarg_h='<'stdarg.h'>'
17850 else
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
17852 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
17853 if test "${gl_cv_next_stdarg_h+set}" = set; then :
17854 $as_echo_n "(cached) " >&6
17855 else
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859 #include <stdarg.h>
17861 _ACEOF
17862 case "$host_os" in
17863 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17864 *) gl_absname_cpp="$ac_cpp" ;;
17865 esac
17866 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17867 sed -n '\#/stdarg.h#{
17868 s#.*"\(.*/stdarg.h\)".*#\1#
17869 s#^/[^/]#//&#
17872 }'`'"'
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
17877 $as_echo "$gl_cv_next_stdarg_h" >&6; }
17879 NEXT_STDARG_H=$gl_cv_next_stdarg_h
17881 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17883 gl_next_as_first_directive='<'stdarg.h'>'
17884 else
17885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17886 gl_next_as_first_directive=$gl_cv_next_stdarg_h
17888 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
17893 if test "$gl_cv_next_stdarg_h" = '""'; then
17894 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
17895 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
17897 else
17899 saved_as_echo_n="$as_echo_n"
17900 as_echo_n=':'
17901 if test "${gl_cv_func___va_copy+set}" = set; then :
17902 $as_echo_n "(cached) " >&6
17903 else
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17907 #include <stdarg.h>
17909 main ()
17912 #ifndef __va_copy
17913 error, bail out
17914 #endif
17917 return 0;
17919 _ACEOF
17920 if ac_fn_c_try_compile "$LINENO"; then :
17921 gl_cv_func___va_copy=yes
17922 else
17923 gl_cv_func___va_copy=no
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 as_echo_n="$saved_as_echo_n"
17930 if test $gl_cv_func___va_copy = yes; then
17932 $as_echo "#define va_copy __va_copy" >>confdefs.h
17934 else
17937 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
17943 if test -n "$STDARG_H"; then
17944 GL_GENERATE_STDARG_H_TRUE=
17945 GL_GENERATE_STDARG_H_FALSE='#'
17946 else
17947 GL_GENERATE_STDARG_H_TRUE='#'
17948 GL_GENERATE_STDARG_H_FALSE=
17956 # Define two additional variables used in the Makefile substitution.
17958 if test "$ac_cv_header_stdbool_h" = yes; then
17959 STDBOOL_H=''
17960 else
17961 STDBOOL_H='stdbool.h'
17964 if test -n "$STDBOOL_H"; then
17965 GL_GENERATE_STDBOOL_H_TRUE=
17966 GL_GENERATE_STDBOOL_H_FALSE='#'
17967 else
17968 GL_GENERATE_STDBOOL_H_TRUE='#'
17969 GL_GENERATE_STDBOOL_H_FALSE=
17973 if test "$ac_cv_type__Bool" = yes; then
17974 HAVE__BOOL=1
17975 else
17976 HAVE__BOOL=0
17983 STDDEF_H=
17984 if test $gt_cv_c_wchar_t = no; then
17985 HAVE_WCHAR_T=0
17986 STDDEF_H=stddef.h
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17989 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17990 if test "${gl_cv_decl_null_works+set}" = set; then :
17991 $as_echo_n "(cached) " >&6
17992 else
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 #include <stddef.h>
17996 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17999 main ()
18003 return 0;
18005 _ACEOF
18006 if ac_fn_c_try_compile "$LINENO"; then :
18007 gl_cv_decl_null_works=yes
18008 else
18009 gl_cv_decl_null_works=no
18011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
18014 $as_echo "$gl_cv_decl_null_works" >&6; }
18015 if test $gl_cv_decl_null_works = no; then
18016 REPLACE_NULL=1
18017 STDDEF_H=stddef.h
18020 if test -n "$STDDEF_H"; then
18021 GL_GENERATE_STDDEF_H_TRUE=
18022 GL_GENERATE_STDDEF_H_FALSE='#'
18023 else
18024 GL_GENERATE_STDDEF_H_TRUE='#'
18025 GL_GENERATE_STDDEF_H_FALSE=
18028 if test -n "$STDDEF_H"; then
18037 if test $gl_cv_have_include_next = yes; then
18038 gl_cv_next_stddef_h='<'stddef.h'>'
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
18041 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
18042 if test "${gl_cv_next_stddef_h+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048 #include <stddef.h>
18050 _ACEOF
18051 case "$host_os" in
18052 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18053 *) gl_absname_cpp="$ac_cpp" ;;
18054 esac
18055 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18056 sed -n '\#/stddef.h#{
18057 s#.*"\(.*/stddef.h\)".*#\1#
18058 s#^/[^/]#//&#
18061 }'`'"'
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
18066 $as_echo "$gl_cv_next_stddef_h" >&6; }
18068 NEXT_STDDEF_H=$gl_cv_next_stddef_h
18070 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18072 gl_next_as_first_directive='<'stddef.h'>'
18073 else
18074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18075 gl_next_as_first_directive=$gl_cv_next_stddef_h
18077 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
18096 if test $gl_cv_have_include_next = yes; then
18097 gl_cv_next_stdio_h='<'stdio.h'>'
18098 else
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18100 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18101 if test "${gl_cv_next_stdio_h+set}" = set; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h. */
18107 #include <stdio.h>
18109 _ACEOF
18110 case "$host_os" in
18111 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18112 *) gl_absname_cpp="$ac_cpp" ;;
18113 esac
18114 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18115 sed -n '\#/stdio.h#{
18116 s#.*"\(.*/stdio.h\)".*#\1#
18117 s#^/[^/]#//&#
18120 }'`'"'
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18125 $as_echo "$gl_cv_next_stdio_h" >&6; }
18127 NEXT_STDIO_H=$gl_cv_next_stdio_h
18129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18131 gl_next_as_first_directive='<'stdio.h'>'
18132 else
18133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18134 gl_next_as_first_directive=$gl_cv_next_stdio_h
18136 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18142 GNULIB_FSCANF=1
18143 GNULIB_SCANF=1
18144 GNULIB_FGETC=1
18145 GNULIB_GETC=1
18146 GNULIB_GETCHAR=1
18147 GNULIB_FGETS=1
18148 GNULIB_GETS=1
18149 GNULIB_FREAD=1
18152 GNULIB_FPRINTF=1
18153 GNULIB_PRINTF=1
18154 GNULIB_VFPRINTF=1
18155 GNULIB_VPRINTF=1
18156 GNULIB_FPUTC=1
18157 GNULIB_PUTC=1
18158 GNULIB_PUTCHAR=1
18159 GNULIB_FPUTS=1
18160 GNULIB_PUTS=1
18161 GNULIB_FWRITE=1
18177 if test $gl_cv_have_include_next = yes; then
18178 gl_cv_next_stdlib_h='<'stdlib.h'>'
18179 else
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18181 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18182 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18183 $as_echo_n "(cached) " >&6
18184 else
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18188 #include <stdlib.h>
18190 _ACEOF
18191 case "$host_os" in
18192 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18193 *) gl_absname_cpp="$ac_cpp" ;;
18194 esac
18195 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18196 sed -n '\#/stdlib.h#{
18197 s#.*"\(.*/stdlib.h\)".*#\1#
18198 s#^/[^/]#//&#
18201 }'`'"'
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18206 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18208 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18210 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18212 gl_next_as_first_directive='<'stdlib.h'>'
18213 else
18214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18215 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18217 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18227 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18235 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18243 if test "$ac_cv_have_decl_strtoumax" != yes; then
18244 HAVE_DECL_STRTOUMAX=0
18246 for ac_func in strtoumax
18247 do :
18248 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18249 if test "x$ac_cv_func_strtoumax" = x""yes; then :
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_STRTOUMAX 1
18252 _ACEOF
18255 done
18259 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
18268 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
18271 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18272 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
18273 ac_have_decl=1
18274 else
18275 ac_have_decl=0
18278 cat >>confdefs.h <<_ACEOF
18279 #define HAVE_DECL_STRTOULL $ac_have_decl
18280 _ACEOF
18290 GNULIB_STRTOUMAX=1
18298 if test $ac_cv_func_symlink = no; then
18299 HAVE_SYMLINK=0
18300 else
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
18302 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
18303 if test "${gl_cv_func_symlink_works+set}" = set; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 if test "$cross_compiling" = yes; then :
18307 gl_cv_func_symlink_works="guessing no"
18308 else
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #include <unistd.h>
18314 main ()
18316 int result = 0;
18317 if (!symlink ("a", "conftest.link/"))
18318 result |= 1;
18319 if (symlink ("conftest.f", "conftest.lnk2"))
18320 result |= 2;
18321 else if (!symlink ("a", "conftest.lnk2/"))
18322 result |= 4;
18323 return result;
18326 return 0;
18328 _ACEOF
18329 if ac_fn_c_try_run "$LINENO"; then :
18330 gl_cv_func_symlink_works=yes
18331 else
18332 gl_cv_func_symlink_works=no
18334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18335 conftest.$ac_objext conftest.beam conftest.$ac_ext
18338 rm -f conftest.f conftest.link conftest.lnk2
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
18341 $as_echo "$gl_cv_func_symlink_works" >&6; }
18342 if test "$gl_cv_func_symlink_works" != yes; then
18343 REPLACE_SYMLINK=1
18347 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
18356 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18364 GNULIB_SYMLINK=1
18386 if test $gl_cv_have_include_next = yes; then
18387 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18388 else
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18390 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18391 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18392 $as_echo_n "(cached) " >&6
18393 else
18395 if test $ac_cv_header_sys_stat_h = yes; then
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18400 #include <sys/stat.h>
18402 _ACEOF
18403 case "$host_os" in
18404 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18405 *) gl_absname_cpp="$ac_cpp" ;;
18406 esac
18407 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18408 sed -n '\#/sys/stat.h#{
18409 s#.*"\(.*/sys/stat.h\)".*#\1#
18410 s#^/[^/]#//&#
18413 }'`'"'
18414 else
18415 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18421 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18423 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18425 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18427 gl_next_as_first_directive='<'sys/stat.h'>'
18428 else
18429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18430 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18432 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18438 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18439 #include <sys/stat.h>
18441 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18443 else
18445 $as_echo "#define nlink_t int" >>confdefs.h
18463 if test $ac_cv_have_decl_localtime_r = no; then
18464 HAVE_DECL_LOCALTIME_R=0
18468 if test $ac_cv_func_localtime_r = yes; then
18469 HAVE_LOCALTIME_R=1
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
18471 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
18472 if test "${gl_cv_time_r_posix+set}" = set; then :
18473 $as_echo_n "(cached) " >&6
18474 else
18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18477 #include <time.h>
18479 main ()
18481 /* We don't need to append 'restrict's to the argument types,
18482 even though the POSIX signature has the 'restrict's,
18483 since C99 says they can't affect type compatibility. */
18484 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
18485 if (ptr) return 0;
18486 /* Check the return type is a pointer.
18487 On HP-UX 10 it is 'int'. */
18488 *localtime_r (0, 0);
18490 return 0;
18493 _ACEOF
18494 if ac_fn_c_try_compile "$LINENO"; then :
18495 gl_cv_time_r_posix=yes
18496 else
18497 gl_cv_time_r_posix=no
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
18503 $as_echo "$gl_cv_time_r_posix" >&6; }
18504 if test $gl_cv_time_r_posix = yes; then
18505 REPLACE_LOCALTIME_R=0
18506 else
18507 REPLACE_LOCALTIME_R=1
18509 else
18510 HAVE_LOCALTIME_R=0
18513 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
18522 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
18533 GNULIB_TIME_R=1
18552 if test $gl_cv_have_include_next = yes; then
18553 gl_cv_next_unistd_h='<'unistd.h'>'
18554 else
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18556 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18557 if test "${gl_cv_next_unistd_h+set}" = set; then :
18558 $as_echo_n "(cached) " >&6
18559 else
18561 if test $ac_cv_header_unistd_h = yes; then
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18566 #include <unistd.h>
18568 _ACEOF
18569 case "$host_os" in
18570 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18571 *) gl_absname_cpp="$ac_cpp" ;;
18572 esac
18573 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18574 sed -n '\#/unistd.h#{
18575 s#.*"\(.*/unistd.h\)".*#\1#
18576 s#^/[^/]#//&#
18579 }'`'"'
18580 else
18581 gl_cv_next_unistd_h='<'unistd.h'>'
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18587 $as_echo "$gl_cv_next_unistd_h" >&6; }
18589 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18591 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18593 gl_next_as_first_directive='<'unistd.h'>'
18594 else
18595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18596 gl_next_as_first_directive=$gl_cv_next_unistd_h
18598 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18603 if test $ac_cv_header_unistd_h = yes; then
18604 HAVE_UNISTD_H=1
18605 else
18606 HAVE_UNISTD_H=0
18612 gl_gnulib_enabled_dosname=false
18613 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
18614 gl_gnulib_enabled_stat=false
18615 gl_gnulib_enabled_strtoull=false
18616 gl_gnulib_enabled_verify=false
18617 func_gl_gnulib_m4code_dosname ()
18619 if ! $gl_gnulib_enabled_dosname; then
18620 gl_gnulib_enabled_dosname=true
18623 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
18625 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18628 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
18631 func_gl_gnulib_m4code_stat ()
18633 if ! $gl_gnulib_enabled_stat; then
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
18638 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
18639 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
18640 $as_echo_n "(cached) " >&6
18641 else
18642 if test "$cross_compiling" = yes; then :
18643 case $host_os in
18644 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
18645 *) gl_cv_func_stat_dir_slash="guessing yes";;
18646 esac
18647 else
18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18649 /* end confdefs.h. */
18650 #include <sys/stat.h>
18653 main ()
18655 struct stat st; return stat (".", &st) != stat ("./", &st);
18657 return 0;
18659 _ACEOF
18660 if ac_fn_c_try_run "$LINENO"; then :
18661 gl_cv_func_stat_dir_slash=yes
18662 else
18663 gl_cv_func_stat_dir_slash=no
18665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18666 conftest.$ac_objext conftest.beam conftest.$ac_ext
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
18671 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
18673 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
18674 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 touch conftest.tmp
18678 # Assume that if we have lstat, we can also check symlinks.
18679 if test $ac_cv_func_lstat = yes; then
18680 ln -s conftest.tmp conftest.lnk
18682 if test "$cross_compiling" = yes; then :
18683 gl_cv_func_stat_file_slash="guessing no"
18684 else
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18687 #include <sys/stat.h>
18690 main ()
18692 int result = 0;
18693 struct stat st;
18694 if (!stat ("conftest.tmp/", &st))
18695 result |= 1;
18696 #if HAVE_LSTAT
18697 if (!stat ("conftest.lnk/", &st))
18698 result |= 2;
18699 #endif
18700 return result;
18703 return 0;
18705 _ACEOF
18706 if ac_fn_c_try_run "$LINENO"; then :
18707 gl_cv_func_stat_file_slash=yes
18708 else
18709 gl_cv_func_stat_file_slash=no
18711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18712 conftest.$ac_objext conftest.beam conftest.$ac_ext
18715 rm -f conftest.tmp conftest.lnk
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
18718 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
18719 case $gl_cv_func_stat_dir_slash in
18720 *no) REPLACE_STAT=1
18722 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
18724 esac
18725 case $gl_cv_func_stat_file_slash in
18726 *no) REPLACE_STAT=1
18728 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
18730 esac
18732 if test $REPLACE_STAT = 1; then
18741 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
18753 GNULIB_STAT=1
18759 gl_gnulib_enabled_stat=true
18760 if $condition; then
18761 func_gl_gnulib_m4code_dosname
18765 func_gl_gnulib_m4code_strtoull ()
18767 if ! $gl_gnulib_enabled_strtoull; then
18771 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
18772 for ac_func in strtoull
18773 do :
18774 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18775 if test "x$ac_cv_func_strtoull" = x""yes; then :
18776 cat >>confdefs.h <<_ACEOF
18777 #define HAVE_STRTOULL 1
18778 _ACEOF
18781 done
18783 if test $ac_cv_func_strtoull = no; then
18784 HAVE_STRTOULL=0
18788 if test $HAVE_STRTOULL = 0; then
18797 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
18808 GNULIB_STRTOULL=1
18814 gl_gnulib_enabled_strtoull=true
18817 func_gl_gnulib_m4code_verify ()
18819 if ! $gl_gnulib_enabled_verify; then
18820 gl_gnulib_enabled_verify=true
18823 if test $REPLACE_GETOPT = 1; then
18824 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
18826 if test $REPLACE_LSTAT = 1; then
18827 func_gl_gnulib_m4code_dosname
18829 if test $REPLACE_LSTAT = 1; then
18830 func_gl_gnulib_m4code_stat
18832 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
18833 func_gl_gnulib_m4code_stat
18835 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
18836 func_gl_gnulib_m4code_verify
18838 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
18839 func_gl_gnulib_m4code_strtoull
18842 if $gl_gnulib_enabled_dosname; then
18843 gl_GNULIB_ENABLED_dosname_TRUE=
18844 gl_GNULIB_ENABLED_dosname_FALSE='#'
18845 else
18846 gl_GNULIB_ENABLED_dosname_TRUE='#'
18847 gl_GNULIB_ENABLED_dosname_FALSE=
18850 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18851 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
18852 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
18853 else
18854 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
18855 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
18858 if $gl_gnulib_enabled_stat; then
18859 gl_GNULIB_ENABLED_stat_TRUE=
18860 gl_GNULIB_ENABLED_stat_FALSE='#'
18861 else
18862 gl_GNULIB_ENABLED_stat_TRUE='#'
18863 gl_GNULIB_ENABLED_stat_FALSE=
18866 if $gl_gnulib_enabled_strtoull; then
18867 gl_GNULIB_ENABLED_strtoull_TRUE=
18868 gl_GNULIB_ENABLED_strtoull_FALSE='#'
18869 else
18870 gl_GNULIB_ENABLED_strtoull_TRUE='#'
18871 gl_GNULIB_ENABLED_strtoull_FALSE=
18874 if $gl_gnulib_enabled_verify; then
18875 gl_GNULIB_ENABLED_verify_TRUE=
18876 gl_GNULIB_ENABLED_verify_FALSE='#'
18877 else
18878 gl_GNULIB_ENABLED_verify_TRUE='#'
18879 gl_GNULIB_ENABLED_verify_FALSE=
18882 # End of code from modules
18892 gltests_libdeps=
18893 gltests_ltlibdeps=
18903 gl_source_base='tests'
18904 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
18906 gl_module_indicator_condition=$gltests_WITNESS
18917 LIBGNU_LIBDEPS="$gl_libdeps"
18919 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18923 # UNIX98 PTYs.
18924 for ac_func in grantpt
18925 do :
18926 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18927 if test "x$ac_cv_func_grantpt" = x""yes; then :
18928 cat >>confdefs.h <<_ACEOF
18929 #define HAVE_GRANTPT 1
18930 _ACEOF
18933 done
18936 # PTY-related GNU extensions.
18937 for ac_func in getpt
18938 do :
18939 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18940 if test "x$ac_cv_func_getpt" = x""yes; then :
18941 cat >>confdefs.h <<_ACEOF
18942 #define HAVE_GETPT 1
18943 _ACEOF
18946 done
18949 # Check this now, so that we will NOT find the above functions in ncurses.
18950 # That is because we have not set up to link ncurses in lib-src.
18951 # It's better to believe a function is not available
18952 # than to expect to find it in ncurses.
18953 # Also we need tputs and friends to be able to build at all.
18954 have_tputs_et_al=true
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18956 $as_echo_n "checking for library containing tputs... " >&6; }
18957 if test "${ac_cv_search_tputs+set}" = set; then :
18958 $as_echo_n "(cached) " >&6
18959 else
18960 ac_func_search_save_LIBS=$LIBS
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char tputs ();
18972 main ()
18974 return tputs ();
18976 return 0;
18978 _ACEOF
18979 for ac_lib in '' ncurses terminfo termcap; do
18980 if test -z "$ac_lib"; then
18981 ac_res="none required"
18982 else
18983 ac_res=-l$ac_lib
18984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18986 if ac_fn_c_try_link "$LINENO"; then :
18987 ac_cv_search_tputs=$ac_res
18989 rm -f core conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext
18991 if test "${ac_cv_search_tputs+set}" = set; then :
18992 break
18994 done
18995 if test "${ac_cv_search_tputs+set}" = set; then :
18997 else
18998 ac_cv_search_tputs=no
19000 rm conftest.$ac_ext
19001 LIBS=$ac_func_search_save_LIBS
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
19004 $as_echo "$ac_cv_search_tputs" >&6; }
19005 ac_res=$ac_cv_search_tputs
19006 if test "$ac_res" != no; then :
19007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19009 else
19010 have_tputs_et_al=false
19013 if test "$have_tputs_et_al" != true; then
19014 as_fn_error "I couldn't find termcap functions (tputs and friends).
19015 Maybe some development libraries/packages are missing? Try installing
19016 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19018 # Must define this when any termcap library is found.
19020 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19022 ## FIXME This was the cpp logic, but I am not sure it is right.
19023 ## The above test has not necessarily found libncurses.
19024 HAVE_LIBNCURSES=yes
19026 ## Use terminfo instead of termcap?
19027 ## Note only system files NOT using terminfo are:
19028 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19029 ## darwin|gnu without ncurses.
19030 TERMINFO=no
19031 LIBS_TERMCAP=
19032 case "$opsys" in
19033 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19034 ## hpux10-20: Use the system provided termcap(3) library.
19035 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19036 ## is necessary. Otherwise Emacs dumps core when run -nw.
19037 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
19039 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19040 ## The ncurses library has been moved out of the System framework in
19041 ## Mac OS X 10.2. So if configure detects it, set the command-line
19042 ## option to use it.
19043 darwin|gnu*)
19044 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19045 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19046 TERMINFO=yes
19047 LIBS_TERMCAP="-lncurses"
19051 freebsd)
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19053 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19054 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19055 $as_echo_n "(cached) " >&6
19056 else
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19059 #include <osreldate.h>
19061 main ()
19063 #if __FreeBSD_version < 400000
19064 fail;
19065 #endif
19068 return 0;
19070 _ACEOF
19071 if ac_fn_c_try_link "$LINENO"; then :
19072 emacs_cv_freebsd_terminfo=yes
19073 else
19074 emacs_cv_freebsd_terminfo=no
19076 rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19082 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19084 if test $emacs_cv_freebsd_terminfo = yes; then
19085 TERMINFO=yes
19086 LIBS_TERMCAP="-lncurses"
19087 else
19088 LIBS_TERMCAP="-ltermcap"
19092 netbsd)
19093 if test $ac_cv_search_tputs = -lterminfo; then
19094 TERMINFO=yes
19095 LIBS_TERMCAP="-lterminfo"
19096 else
19097 LIBS_TERMCAP="-ltermcap"
19101 esac
19103 case "$opsys" in
19104 ## hpux: Make sure we get select from libc rather than from libcurses
19105 ## because libcurses on HPUX 10.10 has a broken version of select.
19106 ## We used to use -lc -lcurses, but this may be cleaner.
19107 hpux*) LIBS_TERMCAP="-ltermcap" ;;
19109 openbsd) LIBS_TERMCAP="-lncurses" ;;
19111 ## Must use system termcap, if we use any termcap. It does special things.
19112 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
19113 esac
19115 TERMCAP_OBJ=tparam.o
19116 if test $TERMINFO = yes; then
19118 $as_echo "#define TERMINFO 1" >>confdefs.h
19121 ## Default used to be -ltermcap. Add a case above if need something else.
19122 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
19124 TERMCAP_OBJ=terminfo.o
19130 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19131 resolv=no
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134 #include <netinet/in.h>
19135 #include <arpa/nameser.h>
19136 #include <resolv.h>
19138 main ()
19140 return res_init();
19142 return 0;
19144 _ACEOF
19145 if ac_fn_c_try_link "$LINENO"; then :
19146 have_res_init=yes
19147 else
19148 have_res_init=no
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 if test "$have_res_init" = no; then
19153 OLIBS="$LIBS"
19154 LIBS="$LIBS -lresolv"
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19156 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h. */
19159 #include <netinet/in.h>
19160 #include <arpa/nameser.h>
19161 #include <resolv.h>
19163 main ()
19165 return res_init();
19167 return 0;
19169 _ACEOF
19170 if ac_fn_c_try_link "$LINENO"; then :
19171 have_res_init=yes
19172 else
19173 have_res_init=no
19175 rm -f core conftest.err conftest.$ac_objext \
19176 conftest$ac_exeext conftest.$ac_ext
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19178 $as_echo "$have_res_init" >&6; }
19179 if test "$have_res_init" = yes ; then
19180 resolv=yes
19182 LIBS="$OLIBS"
19185 if test "$have_res_init" = yes; then
19187 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19191 # Do we need the Hesiod library to provide the support routines?
19192 LIBHESIOD=
19193 if test "$with_hesiod" != no ; then
19194 # Don't set $LIBS here -- see comments above. FIXME which comments?
19195 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
19196 if test "x$ac_cv_func_res_send" = x""yes; then :
19198 else
19199 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
19200 if test "x$ac_cv_func___res_send" = x""yes; then :
19202 else
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19204 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19205 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19206 $as_echo_n "(cached) " >&6
19207 else
19208 ac_check_lib_save_LIBS=$LIBS
19209 LIBS="-lresolv $LIBS"
19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211 /* end confdefs.h. */
19213 /* Override any GCC internal prototype to avoid an error.
19214 Use char because int might match the return type of a GCC
19215 builtin and then its argument prototype would still apply. */
19216 #ifdef __cplusplus
19217 extern "C"
19218 #endif
19219 char res_send ();
19221 main ()
19223 return res_send ();
19225 return 0;
19227 _ACEOF
19228 if ac_fn_c_try_link "$LINENO"; then :
19229 ac_cv_lib_resolv_res_send=yes
19230 else
19231 ac_cv_lib_resolv_res_send=no
19233 rm -f core conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19238 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19239 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
19240 resolv=yes
19241 else
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19243 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19244 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19245 $as_echo_n "(cached) " >&6
19246 else
19247 ac_check_lib_save_LIBS=$LIBS
19248 LIBS="-lresolv $LIBS"
19249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250 /* end confdefs.h. */
19252 /* Override any GCC internal prototype to avoid an error.
19253 Use char because int might match the return type of a GCC
19254 builtin and then its argument prototype would still apply. */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 char __res_send ();
19260 main ()
19262 return __res_send ();
19264 return 0;
19266 _ACEOF
19267 if ac_fn_c_try_link "$LINENO"; then :
19268 ac_cv_lib_resolv___res_send=yes
19269 else
19270 ac_cv_lib_resolv___res_send=no
19272 rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19274 LIBS=$ac_check_lib_save_LIBS
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19277 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19278 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
19279 resolv=yes
19288 if test "$resolv" = yes ; then
19289 RESOLVLIB=-lresolv
19290 else
19291 RESOLVLIB=
19293 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19294 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
19296 else
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19298 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
19299 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
19300 $as_echo_n "(cached) " >&6
19301 else
19302 ac_check_lib_save_LIBS=$LIBS
19303 LIBS="-lhesiod $RESOLVLIB $LIBS"
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19307 /* Override any GCC internal prototype to avoid an error.
19308 Use char because int might match the return type of a GCC
19309 builtin and then its argument prototype would still apply. */
19310 #ifdef __cplusplus
19311 extern "C"
19312 #endif
19313 char hes_getmailhost ();
19315 main ()
19317 return hes_getmailhost ();
19319 return 0;
19321 _ACEOF
19322 if ac_fn_c_try_link "$LINENO"; then :
19323 ac_cv_lib_hesiod_hes_getmailhost=yes
19324 else
19325 ac_cv_lib_hesiod_hes_getmailhost=no
19327 rm -f core conftest.err conftest.$ac_objext \
19328 conftest$ac_exeext conftest.$ac_ext
19329 LIBS=$ac_check_lib_save_LIBS
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19332 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19333 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
19334 hesiod=yes
19335 else
19342 if test x"$hesiod" = xyes; then
19344 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
19346 LIBHESIOD=-lhesiod
19351 # Do we need libresolv (due to res_init or Hesiod)?
19352 if test "$resolv" = yes ; then
19354 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19356 LIBRESOLV=-lresolv
19357 else
19358 LIBRESOLV=
19362 # These tell us which Kerberos-related libraries to use.
19363 COM_ERRLIB=
19364 CRYPTOLIB=
19365 KRB5LIB=
19366 DESLIB=
19367 KRB4LIB=
19369 if test "${with_kerberos}" != no; then
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
19371 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
19372 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19374 else
19375 ac_check_lib_save_LIBS=$LIBS
19376 LIBS="-lcom_err $LIBS"
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19383 #ifdef __cplusplus
19384 extern "C"
19385 #endif
19386 char com_err ();
19388 main ()
19390 return com_err ();
19392 return 0;
19394 _ACEOF
19395 if ac_fn_c_try_link "$LINENO"; then :
19396 ac_cv_lib_com_err_com_err=yes
19397 else
19398 ac_cv_lib_com_err_com_err=no
19400 rm -f core conftest.err conftest.$ac_objext \
19401 conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
19405 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
19406 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
19407 have_com_err=yes
19408 else
19409 have_com_err=no
19412 if test $have_com_err = yes; then
19413 COM_ERRLIB=-lcom_err
19414 LIBS="$COM_ERRLIB $LIBS"
19416 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19420 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
19421 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
19422 $as_echo_n "(cached) " >&6
19423 else
19424 ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lcrypto $LIBS"
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19432 #ifdef __cplusplus
19433 extern "C"
19434 #endif
19435 char mit_des_cbc_encrypt ();
19437 main ()
19439 return mit_des_cbc_encrypt ();
19441 return 0;
19443 _ACEOF
19444 if ac_fn_c_try_link "$LINENO"; then :
19445 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19446 else
19447 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19449 rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19454 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19455 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
19456 have_crypto=yes
19457 else
19458 have_crypto=no
19461 if test $have_crypto = yes; then
19462 CRYPTOLIB=-lcrypto
19463 LIBS="$CRYPTOLIB $LIBS"
19465 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19469 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
19470 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
19471 $as_echo_n "(cached) " >&6
19472 else
19473 ac_check_lib_save_LIBS=$LIBS
19474 LIBS="-lk5crypto $LIBS"
19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19481 #ifdef __cplusplus
19482 extern "C"
19483 #endif
19484 char mit_des_cbc_encrypt ();
19486 main ()
19488 return mit_des_cbc_encrypt ();
19490 return 0;
19492 _ACEOF
19493 if ac_fn_c_try_link "$LINENO"; then :
19494 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19495 else
19496 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19498 rm -f core conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19503 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19504 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
19505 have_k5crypto=yes
19506 else
19507 have_k5crypto=no
19510 if test $have_k5crypto = yes; then
19511 CRYPTOLIB=-lk5crypto
19512 LIBS="$CRYPTOLIB $LIBS"
19514 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19518 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19519 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
19520 $as_echo_n "(cached) " >&6
19521 else
19522 ac_check_lib_save_LIBS=$LIBS
19523 LIBS="-lkrb5 $LIBS"
19524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19525 /* end confdefs.h. */
19527 /* Override any GCC internal prototype to avoid an error.
19528 Use char because int might match the return type of a GCC
19529 builtin and then its argument prototype would still apply. */
19530 #ifdef __cplusplus
19531 extern "C"
19532 #endif
19533 char krb5_init_context ();
19535 main ()
19537 return krb5_init_context ();
19539 return 0;
19541 _ACEOF
19542 if ac_fn_c_try_link "$LINENO"; then :
19543 ac_cv_lib_krb5_krb5_init_context=yes
19544 else
19545 ac_cv_lib_krb5_krb5_init_context=no
19547 rm -f core conftest.err conftest.$ac_objext \
19548 conftest$ac_exeext conftest.$ac_ext
19549 LIBS=$ac_check_lib_save_LIBS
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19552 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19553 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
19554 have_krb5=yes
19555 else
19556 have_krb5=no
19559 if test $have_krb5=yes; then
19560 KRB5LIB=-lkrb5
19561 LIBS="$KRB5LIB $LIBS"
19563 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
19566 if test "${with_kerberos5}" = no; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
19568 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
19569 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
19570 $as_echo_n "(cached) " >&6
19571 else
19572 ac_check_lib_save_LIBS=$LIBS
19573 LIBS="-ldes425 $LIBS"
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19580 #ifdef __cplusplus
19581 extern "C"
19582 #endif
19583 char des_cbc_encrypt ();
19585 main ()
19587 return des_cbc_encrypt ();
19589 return 0;
19591 _ACEOF
19592 if ac_fn_c_try_link "$LINENO"; then :
19593 ac_cv_lib_des425_des_cbc_encrypt=yes
19594 else
19595 ac_cv_lib_des425_des_cbc_encrypt=no
19597 rm -f core conftest.err conftest.$ac_objext \
19598 conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19602 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19603 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
19604 have_des425=yes
19605 else
19606 have_des425=no
19609 if test $have_des425 = yes; then
19610 DESLIB=-ldes425
19611 LIBS="$DESLIB $LIBS"
19613 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
19615 else
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
19617 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
19618 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
19619 $as_echo_n "(cached) " >&6
19620 else
19621 ac_check_lib_save_LIBS=$LIBS
19622 LIBS="-ldes $LIBS"
19623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h. */
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char des_cbc_encrypt ();
19634 main ()
19636 return des_cbc_encrypt ();
19638 return 0;
19640 _ACEOF
19641 if ac_fn_c_try_link "$LINENO"; then :
19642 ac_cv_lib_des_des_cbc_encrypt=yes
19643 else
19644 ac_cv_lib_des_des_cbc_encrypt=no
19646 rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19651 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19652 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
19653 have_des=yes
19654 else
19655 have_des=no
19658 if test $have_des = yes; then
19659 DESLIB=-ldes
19660 LIBS="$DESLIB $LIBS"
19662 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
19667 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
19668 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
19669 $as_echo_n "(cached) " >&6
19670 else
19671 ac_check_lib_save_LIBS=$LIBS
19672 LIBS="-lkrb4 $LIBS"
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19676 /* Override any GCC internal prototype to avoid an error.
19677 Use char because int might match the return type of a GCC
19678 builtin and then its argument prototype would still apply. */
19679 #ifdef __cplusplus
19680 extern "C"
19681 #endif
19682 char krb_get_cred ();
19684 main ()
19686 return krb_get_cred ();
19688 return 0;
19690 _ACEOF
19691 if ac_fn_c_try_link "$LINENO"; then :
19692 ac_cv_lib_krb4_krb_get_cred=yes
19693 else
19694 ac_cv_lib_krb4_krb_get_cred=no
19696 rm -f core conftest.err conftest.$ac_objext \
19697 conftest$ac_exeext conftest.$ac_ext
19698 LIBS=$ac_check_lib_save_LIBS
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19701 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
19702 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
19703 have_krb4=yes
19704 else
19705 have_krb4=no
19708 if test $have_krb4 = yes; then
19709 KRB4LIB=-lkrb4
19710 LIBS="$KRB4LIB $LIBS"
19712 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
19714 else
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
19716 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
19717 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
19718 $as_echo_n "(cached) " >&6
19719 else
19720 ac_check_lib_save_LIBS=$LIBS
19721 LIBS="-lkrb $LIBS"
19722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19728 #ifdef __cplusplus
19729 extern "C"
19730 #endif
19731 char krb_get_cred ();
19733 main ()
19735 return krb_get_cred ();
19737 return 0;
19739 _ACEOF
19740 if ac_fn_c_try_link "$LINENO"; then :
19741 ac_cv_lib_krb_krb_get_cred=yes
19742 else
19743 ac_cv_lib_krb_krb_get_cred=no
19745 rm -f core conftest.err conftest.$ac_objext \
19746 conftest$ac_exeext conftest.$ac_ext
19747 LIBS=$ac_check_lib_save_LIBS
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
19750 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
19751 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
19752 have_krb=yes
19753 else
19754 have_krb=no
19757 if test $have_krb = yes; then
19758 KRB4LIB=-lkrb
19759 LIBS="$KRB4LIB $LIBS"
19761 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
19767 if test "${with_kerberos5}" != no; then
19768 for ac_header in krb5.h
19769 do :
19770 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
19771 if test "x$ac_cv_header_krb5_h" = x""yes; then :
19772 cat >>confdefs.h <<_ACEOF
19773 #define HAVE_KRB5_H 1
19774 _ACEOF
19775 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
19777 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
19779 cat >>confdefs.h <<_ACEOF
19780 #define HAVE_KRB5_ERROR_TEXT 1
19781 _ACEOF
19785 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
19787 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
19789 cat >>confdefs.h <<_ACEOF
19790 #define HAVE_KRB5_ERROR_E_TEXT 1
19791 _ACEOF
19798 done
19800 else
19801 for ac_header in des.h
19802 do :
19803 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
19804 if test "x$ac_cv_header_des_h" = x""yes; then :
19805 cat >>confdefs.h <<_ACEOF
19806 #define HAVE_DES_H 1
19807 _ACEOF
19809 else
19810 for ac_header in kerberosIV/des.h
19811 do :
19812 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
19813 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_KERBEROSIV_DES_H 1
19816 _ACEOF
19818 else
19819 for ac_header in kerberos/des.h
19820 do :
19821 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
19822 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
19823 cat >>confdefs.h <<_ACEOF
19824 #define HAVE_KERBEROS_DES_H 1
19825 _ACEOF
19829 done
19833 done
19837 done
19839 for ac_header in krb.h
19840 do :
19841 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
19842 if test "x$ac_cv_header_krb_h" = x""yes; then :
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_KRB_H 1
19845 _ACEOF
19847 else
19848 for ac_header in kerberosIV/krb.h
19849 do :
19850 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19851 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
19852 cat >>confdefs.h <<_ACEOF
19853 #define HAVE_KERBEROSIV_KRB_H 1
19854 _ACEOF
19856 else
19857 for ac_header in kerberos/krb.h
19858 do :
19859 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19860 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_KERBEROS_KRB_H 1
19863 _ACEOF
19867 done
19871 done
19875 done
19878 for ac_header in com_err.h
19879 do :
19880 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19881 if test "x$ac_cv_header_com_err_h" = x""yes; then :
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_COM_ERR_H 1
19884 _ACEOF
19888 done
19898 # Solaris requires -lintl if you want strerror (which calls dgettext)
19899 # to return localized messages.
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19901 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19902 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19903 $as_echo_n "(cached) " >&6
19904 else
19905 ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-lintl $LIBS"
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 char dgettext ();
19918 main ()
19920 return dgettext ();
19922 return 0;
19924 _ACEOF
19925 if ac_fn_c_try_link "$LINENO"; then :
19926 ac_cv_lib_intl_dgettext=yes
19927 else
19928 ac_cv_lib_intl_dgettext=no
19930 rm -f core conftest.err conftest.$ac_objext \
19931 conftest$ac_exeext conftest.$ac_ext
19932 LIBS=$ac_check_lib_save_LIBS
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19935 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19936 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
19937 cat >>confdefs.h <<_ACEOF
19938 #define HAVE_LIBINTL 1
19939 _ACEOF
19941 LIBS="-lintl $LIBS"
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19947 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19948 if test "${emacs_cv_localtime_cache+set}" = set; then :
19949 $as_echo_n "(cached) " >&6
19950 else
19951 if test x$ac_cv_func_tzset = xyes; then
19952 if test "$cross_compiling" = yes; then :
19953 # If we have tzset, assume the worst when cross-compiling.
19954 emacs_cv_localtime_cache=yes
19955 else
19956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h. */
19958 #include <time.h>
19959 char TZ_GMT0[] = "TZ=GMT0";
19960 char TZ_PST8[] = "TZ=PST8";
19961 main()
19963 time_t now = time ((time_t *) 0);
19964 int hour_GMT0, hour_unset;
19965 if (putenv (TZ_GMT0) != 0)
19966 exit (1);
19967 hour_GMT0 = localtime (&now)->tm_hour;
19968 unsetenv("TZ");
19969 hour_unset = localtime (&now)->tm_hour;
19970 if (putenv (TZ_PST8) != 0)
19971 exit (1);
19972 if (localtime (&now)->tm_hour == hour_GMT0)
19973 exit (1);
19974 unsetenv("TZ");
19975 if (localtime (&now)->tm_hour != hour_unset)
19976 exit (1);
19977 exit (0);
19979 _ACEOF
19980 if ac_fn_c_try_run "$LINENO"; then :
19981 emacs_cv_localtime_cache=no
19982 else
19983 emacs_cv_localtime_cache=yes
19985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19986 conftest.$ac_objext conftest.beam conftest.$ac_ext
19989 else
19990 # If we lack tzset, report that localtime does not cache TZ,
19991 # since we can't invalidate the cache if we don't have tzset.
19992 emacs_cv_localtime_cache=no
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19996 $as_echo "$emacs_cv_localtime_cache" >&6; }
19997 if test $emacs_cv_localtime_cache = yes; then
19999 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
20003 if test "x$HAVE_TIMEVAL" = xyes; then
20004 for ac_func in gettimeofday
20005 do :
20006 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20007 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
20008 cat >>confdefs.h <<_ACEOF
20009 #define HAVE_GETTIMEOFDAY 1
20010 _ACEOF
20013 done
20015 if test $ac_cv_func_gettimeofday = yes; then
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20017 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20018 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20019 $as_echo_n "(cached) " >&6
20020 else
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20024 #ifdef TIME_WITH_SYS_TIME
20025 #include <sys/time.h>
20026 #include <time.h>
20027 #else
20028 #ifdef HAVE_SYS_TIME_H
20029 #include <sys/time.h>
20030 #else
20031 #include <time.h>
20032 #endif
20033 #endif
20035 main ()
20037 struct timeval time;
20038 gettimeofday (&time, 0);
20040 return 0;
20042 _ACEOF
20043 if ac_fn_c_try_compile "$LINENO"; then :
20044 emacs_cv_gettimeofday_two_arguments=yes
20045 else
20046 emacs_cv_gettimeofday_two_arguments=no
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20051 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20052 if test $emacs_cv_gettimeofday_two_arguments = no; then
20054 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20060 ok_so_far=yes
20061 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20062 if test "x$ac_cv_func_socket" = x""yes; then :
20064 else
20065 ok_so_far=no
20068 if test $ok_so_far = yes; then
20069 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20070 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
20072 else
20073 ok_so_far=no
20078 if test $ok_so_far = yes; then
20079 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20080 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
20082 else
20083 ok_so_far=no
20088 if test $ok_so_far = yes; then
20090 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20094 if test -f /usr/lpp/X11/bin/smt.exp; then
20096 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20101 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20102 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20104 $as_echo "yes" >&6; }
20106 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20108 else
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110 $as_echo "no" >&6; }
20113 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20114 if test "x$ac_cv_type_pid_t" = x""yes; then :
20116 else
20118 cat >>confdefs.h <<_ACEOF
20119 #define pid_t int
20120 _ACEOF
20124 for ac_header in vfork.h
20125 do :
20126 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20127 if test "x$ac_cv_header_vfork_h" = x""yes; then :
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_VFORK_H 1
20130 _ACEOF
20134 done
20136 for ac_func in fork vfork
20137 do :
20138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20140 eval as_val=\$$as_ac_var
20141 if test "x$as_val" = x""yes; then :
20142 cat >>confdefs.h <<_ACEOF
20143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20144 _ACEOF
20147 done
20149 if test "x$ac_cv_func_fork" = xyes; then
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20151 $as_echo_n "checking for working fork... " >&6; }
20152 if test "${ac_cv_func_fork_works+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20154 else
20155 if test "$cross_compiling" = yes; then :
20156 ac_cv_func_fork_works=cross
20157 else
20158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h. */
20160 $ac_includes_default
20162 main ()
20165 /* By Ruediger Kuhlmann. */
20166 return fork () < 0;
20169 return 0;
20171 _ACEOF
20172 if ac_fn_c_try_run "$LINENO"; then :
20173 ac_cv_func_fork_works=yes
20174 else
20175 ac_cv_func_fork_works=no
20177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20178 conftest.$ac_objext conftest.beam conftest.$ac_ext
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20183 $as_echo "$ac_cv_func_fork_works" >&6; }
20185 else
20186 ac_cv_func_fork_works=$ac_cv_func_fork
20188 if test "x$ac_cv_func_fork_works" = xcross; then
20189 case $host in
20190 *-*-amigaos* | *-*-msdosdjgpp*)
20191 # Override, as these systems have only a dummy fork() stub
20192 ac_cv_func_fork_works=no
20195 ac_cv_func_fork_works=yes
20197 esac
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20199 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20201 ac_cv_func_vfork_works=$ac_cv_func_vfork
20202 if test "x$ac_cv_func_vfork" = xyes; then
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20204 $as_echo_n "checking for working vfork... " >&6; }
20205 if test "${ac_cv_func_vfork_works+set}" = set; then :
20206 $as_echo_n "(cached) " >&6
20207 else
20208 if test "$cross_compiling" = yes; then :
20209 ac_cv_func_vfork_works=cross
20210 else
20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h. */
20213 /* Thanks to Paul Eggert for this test. */
20214 $ac_includes_default
20215 #include <sys/wait.h>
20216 #ifdef HAVE_VFORK_H
20217 # include <vfork.h>
20218 #endif
20219 /* On some sparc systems, changes by the child to local and incoming
20220 argument registers are propagated back to the parent. The compiler
20221 is told about this with #include <vfork.h>, but some compilers
20222 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20223 static variable whose address is put into a register that is
20224 clobbered by the vfork. */
20225 static void
20226 #ifdef __cplusplus
20227 sparc_address_test (int arg)
20228 # else
20229 sparc_address_test (arg) int arg;
20230 #endif
20232 static pid_t child;
20233 if (!child) {
20234 child = vfork ();
20235 if (child < 0) {
20236 perror ("vfork");
20237 _exit(2);
20239 if (!child) {
20240 arg = getpid();
20241 write(-1, "", 0);
20242 _exit (arg);
20248 main ()
20250 pid_t parent = getpid ();
20251 pid_t child;
20253 sparc_address_test (0);
20255 child = vfork ();
20257 if (child == 0) {
20258 /* Here is another test for sparc vfork register problems. This
20259 test uses lots of local variables, at least as many local
20260 variables as main has allocated so far including compiler
20261 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20262 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20263 reuse the register of parent for one of the local variables,
20264 since it will think that parent can't possibly be used any more
20265 in this routine. Assigning to the local variable will thus
20266 munge parent in the parent process. */
20267 pid_t
20268 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20269 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20270 /* Convince the compiler that p..p7 are live; otherwise, it might
20271 use the same hardware register for all 8 local variables. */
20272 if (p != p1 || p != p2 || p != p3 || p != p4
20273 || p != p5 || p != p6 || p != p7)
20274 _exit(1);
20276 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20277 from child file descriptors. If the child closes a descriptor
20278 before it execs or exits, this munges the parent's descriptor
20279 as well. Test for this by closing stdout in the child. */
20280 _exit(close(fileno(stdout)) != 0);
20281 } else {
20282 int status;
20283 struct stat st;
20285 while (wait(&status) != child)
20287 return (
20288 /* Was there some problem with vforking? */
20289 child < 0
20291 /* Did the child fail? (This shouldn't happen.) */
20292 || status
20294 /* Did the vfork/compiler bug occur? */
20295 || parent != getpid()
20297 /* Did the file descriptor bug occur? */
20298 || fstat(fileno(stdout), &st) != 0
20302 _ACEOF
20303 if ac_fn_c_try_run "$LINENO"; then :
20304 ac_cv_func_vfork_works=yes
20305 else
20306 ac_cv_func_vfork_works=no
20308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20309 conftest.$ac_objext conftest.beam conftest.$ac_ext
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20314 $as_echo "$ac_cv_func_vfork_works" >&6; }
20317 if test "x$ac_cv_func_fork_works" = xcross; then
20318 ac_cv_func_vfork_works=$ac_cv_func_vfork
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20320 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20323 if test "x$ac_cv_func_vfork_works" = xyes; then
20325 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20327 else
20329 $as_echo "#define vfork fork" >>confdefs.h
20332 if test "x$ac_cv_func_fork_works" = xyes; then
20334 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20340 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20341 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
20342 $as_echo_n "(cached) " >&6
20343 else
20344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20345 /* end confdefs.h. */
20346 #include <langinfo.h>
20348 main ()
20350 char* cs = nl_langinfo(CODESET);
20352 return 0;
20354 _ACEOF
20355 if ac_fn_c_try_link "$LINENO"; then :
20356 emacs_cv_langinfo_codeset=yes
20357 else
20358 emacs_cv_langinfo_codeset=no
20360 rm -f core conftest.err conftest.$ac_objext \
20361 conftest$ac_exeext conftest.$ac_ext
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
20365 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
20366 if test $emacs_cv_langinfo_codeset = yes; then
20368 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20373 $as_echo_n "checking for mbstate_t... " >&6; }
20374 if test "${ac_cv_type_mbstate_t+set}" = set; then :
20375 $as_echo_n "(cached) " >&6
20376 else
20377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20378 /* end confdefs.h. */
20379 $ac_includes_default
20380 # include <wchar.h>
20382 main ()
20384 mbstate_t x; return sizeof x;
20386 return 0;
20388 _ACEOF
20389 if ac_fn_c_try_compile "$LINENO"; then :
20390 ac_cv_type_mbstate_t=yes
20391 else
20392 ac_cv_type_mbstate_t=no
20394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20397 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20398 if test $ac_cv_type_mbstate_t = yes; then
20400 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20402 else
20404 $as_echo "#define mbstate_t int" >>confdefs.h
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
20409 $as_echo_n "checking for C restricted array declarations... " >&6; }
20410 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
20411 $as_echo_n "(cached) " >&6
20412 else
20413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414 /* end confdefs.h. */
20415 void fred (int x[__restrict]);
20417 main ()
20421 return 0;
20423 _ACEOF
20424 if ac_fn_c_try_compile "$LINENO"; then :
20425 emacs_cv_c_restrict_arr=yes
20426 else
20427 emacs_cv_c_restrict_arr=no
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
20432 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
20433 if test "$emacs_cv_c_restrict_arr" = yes; then
20435 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
20441 # Set up the CFLAGS for real compilation, so we can substitute it.
20442 CFLAGS="$REAL_CFLAGS"
20443 CPPFLAGS="$REAL_CPPFLAGS"
20445 ## Hack to detect a buggy GCC version.
20446 if test "x$GCC" = xyes \
20447 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
20448 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
20449 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
20450 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
20453 version=$PACKAGE_VERSION
20455 ### Specify what sort of things we'll be editing into Makefile and config.h.
20456 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20459 ## Unused?
20480 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
20481 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
20482 ## end of LIBX_BASE, but nothing ever set it.
20487 ## Used in lwlib/Makefile.in.
20489 if test -n "${machfile}"; then
20490 M_FILE="\$(srcdir)/${machfile}"
20491 else
20492 M_FILE=
20494 S_FILE="\$(srcdir)/${opsysfile}"
20505 cat >>confdefs.h <<_ACEOF
20506 #define EMACS_CONFIGURATION "${canonical}"
20507 _ACEOF
20510 cat >>confdefs.h <<_ACEOF
20511 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20512 _ACEOF
20514 if test -n "$machfile"; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define config_machfile "${machfile}"
20518 _ACEOF
20522 cat >>confdefs.h <<_ACEOF
20523 #define config_opsysfile "${opsysfile}"
20524 _ACEOF
20527 XMENU_OBJ=
20528 XOBJ=
20529 FONT_OBJ=
20530 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20532 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
20534 XMENU_OBJ=xmenu.o
20535 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
20536 FONT_OBJ=xfont.o
20537 if test "$HAVE_XFT" = "yes"; then
20538 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
20539 elif test "$HAVE_FREETYPE" = "yes"; then
20540 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
20548 WIDGET_OBJ=
20549 MOTIF_LIBW=
20550 if test "${USE_X_TOOLKIT}" != "none" ; then
20551 WIDGET_OBJ=widget.o
20553 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
20555 if test "${USE_X_TOOLKIT}" = "LUCID"; then
20557 $as_echo "#define USE_LUCID 1" >>confdefs.h
20559 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
20561 $as_echo "#define USE_MOTIF 1" >>confdefs.h
20563 MOTIF_LIBW=-lXm
20564 case "$opsys" in
20565 gnu-linux)
20566 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
20567 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
20570 unixware)
20571 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
20572 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
20573 MOTIF_LIBW="MOTIF_LIBW -lXimp"
20576 aix4-2)
20577 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
20578 MOTIF_LIBW="$MOTIF_LIBW -li18n"
20580 esac
20581 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
20586 TOOLKIT_LIBW=
20587 case "$USE_X_TOOLKIT" in
20588 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
20589 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
20590 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
20591 esac
20594 if test "$USE_X_TOOLKIT" = "none"; then
20595 LIBXT_OTHER="\$(LIBXSM)"
20596 OLDXMENU_TARGET="really-oldXMenu"
20597 else
20598 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
20599 OLDXMENU_TARGET="really-lwlib"
20603 ## The X Menu stuff is present in the X10 distribution, but missing
20604 ## from X11. If we have X10, just use the installed library;
20605 ## otherwise, use our own copy.
20606 if test "${HAVE_X11}" = "yes" ; then
20608 $as_echo "#define HAVE_X11 1" >>confdefs.h
20611 if test "$USE_X_TOOLKIT" = "none"; then
20612 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
20613 else
20614 OLDXMENU="\${lwlibdir}/liblw.a"
20616 LIBXMENU="\$(OLDXMENU)"
20617 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
20618 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
20619 else
20620 ## For a syntactically valid Makefile; not actually used for anything.
20621 ## See comments in src/Makefile.in.
20622 OLDXMENU=nothing
20623 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
20624 if test "${HAVE_X_WINDOWS}" = "yes"; then
20625 LIBXMENU="-lXMenu"
20626 else
20627 LIBXMENU=
20629 LIBX_OTHER=
20630 OLDXMENU_DEPS=
20633 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
20634 OLDXMENU_TARGET=
20635 OLDXMENU=nothing
20636 LIBXMENU=
20637 OLDXMENU_DEPS=
20646 if test "${HAVE_MENUS}" = "yes" ; then
20648 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
20652 if test "${GNU_MALLOC}" = "yes" ; then
20654 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
20658 RALLOC_OBJ=
20659 if test "${REL_ALLOC}" = "yes" ; then
20661 $as_echo "#define REL_ALLOC 1" >>confdefs.h
20664 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
20668 if test "$opsys" = "cygwin"; then
20669 CYGWIN_OBJ="sheap.o"
20670 ## Cygwin differs because of its unexec().
20671 PRE_ALLOC_OBJ=
20672 POST_ALLOC_OBJ=lastfile.o
20673 else
20674 CYGWIN_OBJ=
20675 PRE_ALLOC_OBJ=lastfile.o
20676 POST_ALLOC_OBJ=
20683 case "$opsys" in
20684 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
20686 darwin)
20687 ## The -headerpad option tells ld (see man page) to leave room at the
20688 ## end of the header for adding load commands. Needed for dumping.
20689 ## 0x690 is the total size of 30 segment load commands (at 56
20690 ## each); under Cocoa 31 commands are required.
20691 if test "$HAVE_NS" = "yes"; then
20692 libs_nsgui="-framework AppKit"
20693 headerpad_extra=6C8
20694 else
20695 libs_nsgui=
20696 headerpad_extra=690
20698 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
20700 ## This is here because src/Makefile.in did some extra fiddling around
20701 ## with LD_SWITCH_SYSTEM. The cpp logic was:
20702 ## #ifndef LD_SWITCH_SYSTEM
20703 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
20704 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
20705 ## not using gcc, darwin system not on an alpha (ie darwin, since
20706 ## darwin + alpha does not occur).
20707 ## Because this was done in src/Makefile.in, the resulting part of
20708 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
20709 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
20710 ## rather than LD_SWITCH_SYSTEM.
20711 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
20712 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
20715 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
20716 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
20717 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
20718 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
20719 ## had different values in configure (in ac_link) and src/Makefile.in.
20720 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
20721 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
20723 *) LD_SWITCH_SYSTEM_TEMACS= ;;
20724 esac
20726 if test "$NS_IMPL_GNUSTEP" = "yes"; then
20727 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
20733 LD_FIRSTFLAG=
20734 ORDINARY_LINK=
20735 case "$opsys" in
20736 ## gnu: GNU needs its own crt0.
20737 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
20739 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
20740 ## library search parth, i.e. it won't search /usr/lib for libc and
20741 ## friends. Using -nostartfiles instead avoids this problem, and
20742 ## will also work on earlier NetBSD releases.
20743 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
20745 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
20746 ## MkLinux/LinuxPPC needs this.
20747 ## ibms390x only supports opsys = gnu-linux so it can be added here.
20748 gnu-*)
20749 case "$machine" in
20750 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
20751 esac
20753 esac
20756 if test "x$ORDINARY_LINK" = "xyes"; then
20758 LD_FIRSTFLAG=""
20760 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
20763 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
20764 ## freebsd, gnu-* not on macppc|ibms390x.
20765 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
20767 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
20768 ## places that are difficult to figure out at make time. Fortunately,
20769 ## these same versions allow you to pass arbitrary flags on to the
20770 ## linker, so there is no reason not to use it as a linker.
20772 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
20773 ## searching for libraries in its internal directories, so we have to
20774 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
20775 LD_FIRSTFLAG="-nostdlib"
20778 ## FIXME? What setting of EDIT_LDFLAGS should this have?
20779 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
20784 ## FIXME? The logic here is not precisely the same as that above.
20785 ## There is no check here for a pre-defined LD_FIRSTFLAG.
20786 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
20787 LIB_GCC=
20788 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
20790 case "$opsys" in
20791 freebsd|netbsd|openbsd) LIB_GCC= ;;
20793 gnu-*)
20794 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
20795 ## build on ARM EABI under GNU/Linux. (Bug#5518)
20796 case $host_cpu in
20797 arm*)
20798 LIB_GCC="-lgcc_s"
20801 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
20802 ## immediately undefine it again and redefine it to empty.
20803 ## Was the C_SWITCH_X_SITE part really necessary?
20804 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
20805 LIB_GCC=
20807 esac
20810 ## Ask GCC where to find libgcc.a.
20811 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
20812 esac
20816 ## If we're using X11/GNUstep, define some consequences.
20817 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
20819 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
20822 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
20829 #### Report on what we decided to do.
20830 #### Report GTK as a toolkit, even if it doesn't use Xt.
20831 #### It makes printing result more understandable as using GTK sets
20832 #### toolkit_scroll_bars to yes by default.
20833 if test "${HAVE_GTK}" = "yes"; then
20834 USE_X_TOOLKIT=GTK
20837 and_machfile=
20838 if test -n "$machfile"; then
20839 and_machfile=" and \`${machfile}'"
20842 echo "
20843 Configured for \`${canonical}'.
20845 Where should the build process find the source code? ${srcdir}
20846 What operating system and machine description files should Emacs use?
20847 \`${opsysfile}'${and_machfile}
20848 What compiler should emacs be built with? ${CC} ${CFLAGS}
20849 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20850 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20851 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20852 What window system should Emacs use? ${window_system}
20853 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20855 if test -n "${x_includes}"; then
20856 echo " Where do we find X Windows header files? ${x_includes}"
20857 else
20858 echo " Where do we find X Windows header files? Standard dirs"
20860 if test -n "${x_libraries}"; then
20861 echo " Where do we find X Windows libraries? ${x_libraries}"
20862 else
20863 echo " Where do we find X Windows libraries? Standard dirs"
20866 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20867 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20868 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20869 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20870 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20871 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20872 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20873 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20875 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20876 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20877 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20878 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20879 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
20880 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20882 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20883 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20884 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20885 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20887 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20888 echo
20890 if test $USE_XASSERTS = yes; then
20891 echo " Compiling with asserts turned on."
20892 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20895 echo
20897 if test "$HAVE_NS" = "yes"; then
20898 echo
20899 echo "You must run \"make install\" in order to test the built application.
20900 The installed application will go to nextstep/Emacs.app and can be
20901 run or moved from there."
20902 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20903 echo "The application will be fully self-contained."
20904 else
20905 echo "The lisp resources for the application will be installed under ${prefix}.
20906 You may need to run \"make install\" with sudo. The application will fail
20907 to run if these resources are not installed."
20909 echo
20913 # Remove any trailing slashes in these variables.
20914 test "${prefix}" != NONE &&
20915 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20916 test "${exec_prefix}" != NONE &&
20917 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20919 SUBDIR_MAKEFILES="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"
20921 ac_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"
20924 opt_makefile=test/automated/Makefile
20926 if test -f $srcdir/${opt_makefile}.in; then
20927 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
20928 ac_config_files="$ac_config_files test/automated/Makefile"
20932 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
20936 ac_config_commands="$ac_config_commands mkdirs"
20939 ac_config_commands="$ac_config_commands epaths"
20942 ac_config_commands="$ac_config_commands gdbinit"
20945 cat >confcache <<\_ACEOF
20946 # This file is a shell script that caches the results of configure
20947 # tests run on this system so they can be shared between configure
20948 # scripts and configure runs, see configure's option --config-cache.
20949 # It is not useful on other systems. If it contains results you don't
20950 # want to keep, you may remove or edit it.
20952 # config.status only pays attention to the cache file if you give it
20953 # the --recheck option to rerun configure.
20955 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20957 # following values.
20959 _ACEOF
20961 # The following way of writing the cache mishandles newlines in values,
20962 # but we know of no workaround that is simple, portable, and efficient.
20963 # So, we kill variables containing newlines.
20964 # Ultrix sh set writes to stderr and can't be redirected directly,
20965 # and sets the high bit in the cache file unless we assign to the vars.
20967 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20968 eval ac_val=\$$ac_var
20969 case $ac_val in #(
20970 *${as_nl}*)
20971 case $ac_var in #(
20972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20974 esac
20975 case $ac_var in #(
20976 _ | IFS | as_nl) ;; #(
20977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20978 *) { eval $ac_var=; unset $ac_var;} ;;
20979 esac ;;
20980 esac
20981 done
20983 (set) 2>&1 |
20984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20985 *${as_nl}ac_space=\ *)
20986 # `set' does not quote correctly, so add quotes: double-quote
20987 # substitution turns \\\\ into \\, and sed turns \\ into \.
20988 sed -n \
20989 "s/'/'\\\\''/g;
20990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20991 ;; #(
20993 # `set' quotes correctly as required by POSIX, so do not add quotes.
20994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20996 esac |
20997 sort
20999 sed '
21000 /^ac_cv_env_/b end
21001 t clear
21002 :clear
21003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21004 t end
21005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21006 :end' >>confcache
21007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21008 if test -w "$cache_file"; then
21009 test "x$cache_file" != "x/dev/null" &&
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21011 $as_echo "$as_me: updating cache $cache_file" >&6;}
21012 cat confcache >$cache_file
21013 else
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21015 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21018 rm -f confcache
21020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21021 # Let make expand exec_prefix.
21022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21024 DEFS=-DHAVE_CONFIG_H
21026 ac_libobjs=
21027 ac_ltlibobjs=
21028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21029 # 1. Remove the extension, and $U if already installed.
21030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21031 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21033 # will be set to the directory where LIBOBJS objects are built.
21034 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21035 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21036 done
21037 LIBOBJS=$ac_libobjs
21039 LTLIBOBJS=$ac_ltlibobjs
21042 if test -n "$EXEEXT"; then
21043 am__EXEEXT_TRUE=
21044 am__EXEEXT_FALSE='#'
21045 else
21046 am__EXEEXT_TRUE='#'
21047 am__EXEEXT_FALSE=
21050 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21051 as_fn_error "conditional \"AMDEP\" was never defined.
21052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21054 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21055 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21059 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21060 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21064 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21065 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21068 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21069 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21072 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21073 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21076 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21077 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21080 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21081 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21084 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21085 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21088 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21089 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21092 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21093 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21096 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21097 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21101 gl_libobjs=
21102 gl_ltlibobjs=
21103 if test -n "$gl_LIBOBJS"; then
21104 # Remove the extension.
21105 sed_drop_objext='s/\.o$//;s/\.obj$//'
21106 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21107 gl_libobjs="$gl_libobjs $i.$ac_objext"
21108 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21109 done
21111 gl_LIBOBJS=$gl_libobjs
21113 gl_LTLIBOBJS=$gl_ltlibobjs
21117 gltests_libobjs=
21118 gltests_ltlibobjs=
21119 if test -n "$gltests_LIBOBJS"; then
21120 # Remove the extension.
21121 sed_drop_objext='s/\.o$//;s/\.obj$//'
21122 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21123 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21124 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21125 done
21127 gltests_LIBOBJS=$gltests_libobjs
21129 gltests_LTLIBOBJS=$gltests_ltlibobjs
21133 : ${CONFIG_STATUS=./config.status}
21134 ac_write_fail=0
21135 ac_clean_files_save=$ac_clean_files
21136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21139 as_write_fail=0
21140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21141 #! $SHELL
21142 # Generated by $as_me.
21143 # Run this file to recreate the current configuration.
21144 # Compiler output produced by configure, useful for debugging
21145 # configure, is in config.log if it exists.
21147 debug=false
21148 ac_cs_recheck=false
21149 ac_cs_silent=false
21151 SHELL=\${CONFIG_SHELL-$SHELL}
21152 export SHELL
21153 _ASEOF
21154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21155 ## -------------------- ##
21156 ## M4sh Initialization. ##
21157 ## -------------------- ##
21159 # Be more Bourne compatible
21160 DUALCASE=1; export DUALCASE # for MKS sh
21161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21162 emulate sh
21163 NULLCMD=:
21164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21165 # is contrary to our usage. Disable this feature.
21166 alias -g '${1+"$@"}'='"$@"'
21167 setopt NO_GLOB_SUBST
21168 else
21169 case `(set -o) 2>/dev/null` in #(
21170 *posix*) :
21171 set -o posix ;; #(
21172 *) :
21174 esac
21178 as_nl='
21180 export as_nl
21181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21185 # Prefer a ksh shell builtin over an external printf program on Solaris,
21186 # but without wasting forks for bash or zsh.
21187 if test -z "$BASH_VERSION$ZSH_VERSION" \
21188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21189 as_echo='print -r --'
21190 as_echo_n='print -rn --'
21191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21192 as_echo='printf %s\n'
21193 as_echo_n='printf %s'
21194 else
21195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21197 as_echo_n='/usr/ucb/echo -n'
21198 else
21199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21200 as_echo_n_body='eval
21201 arg=$1;
21202 case $arg in #(
21203 *"$as_nl"*)
21204 expr "X$arg" : "X\\(.*\\)$as_nl";
21205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21206 esac;
21207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21209 export as_echo_n_body
21210 as_echo_n='sh -c $as_echo_n_body as_echo'
21212 export as_echo_body
21213 as_echo='sh -c $as_echo_body as_echo'
21216 # The user is always right.
21217 if test "${PATH_SEPARATOR+set}" != set; then
21218 PATH_SEPARATOR=:
21219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21221 PATH_SEPARATOR=';'
21226 # IFS
21227 # We need space, tab and new line, in precisely that order. Quoting is
21228 # there to prevent editors from complaining about space-tab.
21229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21230 # splitting by setting IFS to empty value.)
21231 IFS=" "" $as_nl"
21233 # Find who we are. Look in the path if we contain no directory separator.
21234 case $0 in #((
21235 *[\\/]* ) as_myself=$0 ;;
21236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21239 IFS=$as_save_IFS
21240 test -z "$as_dir" && as_dir=.
21241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21242 done
21243 IFS=$as_save_IFS
21246 esac
21247 # We did not find ourselves, most probably we were run as `sh COMMAND'
21248 # in which case we are not to be found in the path.
21249 if test "x$as_myself" = x; then
21250 as_myself=$0
21252 if test ! -f "$as_myself"; then
21253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21254 exit 1
21257 # Unset variables that we do not need and which cause bugs (e.g. in
21258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21259 # suppresses any "Segmentation fault" message there. '((' could
21260 # trigger a bug in pdksh 5.2.14.
21261 for as_var in BASH_ENV ENV MAIL MAILPATH
21262 do eval test x\${$as_var+set} = xset \
21263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21264 done
21265 PS1='$ '
21266 PS2='> '
21267 PS4='+ '
21269 # NLS nuisances.
21270 LC_ALL=C
21271 export LC_ALL
21272 LANGUAGE=C
21273 export LANGUAGE
21275 # CDPATH.
21276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21279 # as_fn_error ERROR [LINENO LOG_FD]
21280 # ---------------------------------
21281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21283 # script with status $?, using 1 if that was 0.
21284 as_fn_error ()
21286 as_status=$?; test $as_status -eq 0 && as_status=1
21287 if test "$3"; then
21288 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21291 $as_echo "$as_me: error: $1" >&2
21292 as_fn_exit $as_status
21293 } # as_fn_error
21296 # as_fn_set_status STATUS
21297 # -----------------------
21298 # Set $? to STATUS, without forking.
21299 as_fn_set_status ()
21301 return $1
21302 } # as_fn_set_status
21304 # as_fn_exit STATUS
21305 # -----------------
21306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21307 as_fn_exit ()
21309 set +e
21310 as_fn_set_status $1
21311 exit $1
21312 } # as_fn_exit
21314 # as_fn_unset VAR
21315 # ---------------
21316 # Portably unset VAR.
21317 as_fn_unset ()
21319 { eval $1=; unset $1;}
21321 as_unset=as_fn_unset
21322 # as_fn_append VAR VALUE
21323 # ----------------------
21324 # Append the text in VALUE to the end of the definition contained in VAR. Take
21325 # advantage of any shell optimizations that allow amortized linear growth over
21326 # repeated appends, instead of the typical quadratic growth present in naive
21327 # implementations.
21328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21329 eval 'as_fn_append ()
21331 eval $1+=\$2
21333 else
21334 as_fn_append ()
21336 eval $1=\$$1\$2
21338 fi # as_fn_append
21340 # as_fn_arith ARG...
21341 # ------------------
21342 # Perform arithmetic evaluation on the ARGs, and store the result in the
21343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21344 # must be portable across $(()) and expr.
21345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21346 eval 'as_fn_arith ()
21348 as_val=$(( $* ))
21350 else
21351 as_fn_arith ()
21353 as_val=`expr "$@" || test $? -eq 1`
21355 fi # as_fn_arith
21358 if expr a : '\(a\)' >/dev/null 2>&1 &&
21359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21360 as_expr=expr
21361 else
21362 as_expr=false
21365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21366 as_basename=basename
21367 else
21368 as_basename=false
21371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21372 as_dirname=dirname
21373 else
21374 as_dirname=false
21377 as_me=`$as_basename -- "$0" ||
21378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21379 X"$0" : 'X\(//\)$' \| \
21380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21381 $as_echo X/"$0" |
21382 sed '/^.*\/\([^/][^/]*\)\/*$/{
21383 s//\1/
21386 /^X\/\(\/\/\)$/{
21387 s//\1/
21390 /^X\/\(\/\).*/{
21391 s//\1/
21394 s/.*/./; q'`
21396 # Avoid depending upon Character Ranges.
21397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21400 as_cr_digits='0123456789'
21401 as_cr_alnum=$as_cr_Letters$as_cr_digits
21403 ECHO_C= ECHO_N= ECHO_T=
21404 case `echo -n x` in #(((((
21405 -n*)
21406 case `echo 'xy\c'` in
21407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21408 xy) ECHO_C='\c';;
21409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21410 ECHO_T=' ';;
21411 esac;;
21413 ECHO_N='-n';;
21414 esac
21416 rm -f conf$$ conf$$.exe conf$$.file
21417 if test -d conf$$.dir; then
21418 rm -f conf$$.dir/conf$$.file
21419 else
21420 rm -f conf$$.dir
21421 mkdir conf$$.dir 2>/dev/null
21423 if (echo >conf$$.file) 2>/dev/null; then
21424 if ln -s conf$$.file conf$$ 2>/dev/null; then
21425 as_ln_s='ln -s'
21426 # ... but there are two gotchas:
21427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21429 # In both cases, we have to default to `cp -p'.
21430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21431 as_ln_s='cp -p'
21432 elif ln conf$$.file conf$$ 2>/dev/null; then
21433 as_ln_s=ln
21434 else
21435 as_ln_s='cp -p'
21437 else
21438 as_ln_s='cp -p'
21440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21441 rmdir conf$$.dir 2>/dev/null
21444 # as_fn_mkdir_p
21445 # -------------
21446 # Create "$as_dir" as a directory, including parents if necessary.
21447 as_fn_mkdir_p ()
21450 case $as_dir in #(
21451 -*) as_dir=./$as_dir;;
21452 esac
21453 test -d "$as_dir" || eval $as_mkdir_p || {
21454 as_dirs=
21455 while :; do
21456 case $as_dir in #(
21457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21458 *) as_qdir=$as_dir;;
21459 esac
21460 as_dirs="'$as_qdir' $as_dirs"
21461 as_dir=`$as_dirname -- "$as_dir" ||
21462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$as_dir" : 'X\(//\)[^/]' \| \
21464 X"$as_dir" : 'X\(//\)$' \| \
21465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$as_dir" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468 s//\1/
21471 /^X\(\/\/\)[^/].*/{
21472 s//\1/
21475 /^X\(\/\/\)$/{
21476 s//\1/
21479 /^X\(\/\).*/{
21480 s//\1/
21483 s/.*/./; q'`
21484 test -d "$as_dir" && break
21485 done
21486 test -z "$as_dirs" || eval "mkdir $as_dirs"
21487 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21490 } # as_fn_mkdir_p
21491 if mkdir -p . 2>/dev/null; then
21492 as_mkdir_p='mkdir -p "$as_dir"'
21493 else
21494 test -d ./-p && rmdir ./-p
21495 as_mkdir_p=false
21498 if test -x / >/dev/null 2>&1; then
21499 as_test_x='test -x'
21500 else
21501 if ls -dL / >/dev/null 2>&1; then
21502 as_ls_L_option=L
21503 else
21504 as_ls_L_option=
21506 as_test_x='
21507 eval sh -c '\''
21508 if test -d "$1"; then
21509 test -d "$1/.";
21510 else
21511 case $1 in #(
21512 -*)set "./$1";;
21513 esac;
21514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21515 ???[sx]*):;;*)false;;esac;fi
21516 '\'' sh
21519 as_executable_p=$as_test_x
21521 # Sed expression to map a string onto a valid CPP name.
21522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21524 # Sed expression to map a string onto a valid variable name.
21525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21528 exec 6>&1
21529 ## ----------------------------------- ##
21530 ## Main body of $CONFIG_STATUS script. ##
21531 ## ----------------------------------- ##
21532 _ASEOF
21533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21536 # Save the log message, to keep $0 and so on meaningful, and to
21537 # report actual input values of CONFIG_FILES etc. instead of their
21538 # values after options handling.
21539 ac_log="
21540 This file was extended by emacs $as_me 24.0.50, which was
21541 generated by GNU Autoconf 2.65. Invocation command line was
21543 CONFIG_FILES = $CONFIG_FILES
21544 CONFIG_HEADERS = $CONFIG_HEADERS
21545 CONFIG_LINKS = $CONFIG_LINKS
21546 CONFIG_COMMANDS = $CONFIG_COMMANDS
21547 $ $0 $@
21549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21552 _ACEOF
21554 case $ac_config_files in *"
21555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21556 esac
21558 case $ac_config_headers in *"
21559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21560 esac
21563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21564 # Files that config.status was made for.
21565 config_files="$ac_config_files"
21566 config_headers="$ac_config_headers"
21567 config_commands="$ac_config_commands"
21569 _ACEOF
21571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21572 ac_cs_usage="\
21573 \`$as_me' instantiates files and other configuration actions
21574 from templates according to the current configuration. Unless the files
21575 and actions are specified as TAGs, all are instantiated by default.
21577 Usage: $0 [OPTION]... [TAG]...
21579 -h, --help print this help, then exit
21580 -V, --version print version number and configuration settings, then exit
21581 --config print configuration, then exit
21582 -q, --quiet, --silent
21583 do not print progress messages
21584 -d, --debug don't remove temporary files
21585 --recheck update $as_me by reconfiguring in the same conditions
21586 --file=FILE[:TEMPLATE]
21587 instantiate the configuration file FILE
21588 --header=FILE[:TEMPLATE]
21589 instantiate the configuration header FILE
21591 Configuration files:
21592 $config_files
21594 Configuration headers:
21595 $config_headers
21597 Configuration commands:
21598 $config_commands
21600 Report bugs to the package provider."
21602 _ACEOF
21603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21605 ac_cs_version="\\
21606 emacs config.status 24.0.50
21607 configured by $0, generated by GNU Autoconf 2.65,
21608 with options \\"\$ac_cs_config\\"
21610 Copyright (C) 2009 Free Software Foundation, Inc.
21611 This config.status script is free software; the Free Software Foundation
21612 gives unlimited permission to copy, distribute and modify it."
21614 ac_pwd='$ac_pwd'
21615 srcdir='$srcdir'
21616 INSTALL='$INSTALL'
21617 MKDIR_P='$MKDIR_P'
21618 AWK='$AWK'
21619 test -n "\$AWK" || AWK=awk
21620 _ACEOF
21622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21623 # The default lists apply if the user does not specify any file.
21624 ac_need_defaults=:
21625 while test $# != 0
21627 case $1 in
21628 --*=*)
21629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21631 ac_shift=:
21634 ac_option=$1
21635 ac_optarg=$2
21636 ac_shift=shift
21638 esac
21640 case $ac_option in
21641 # Handling of the options.
21642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21643 ac_cs_recheck=: ;;
21644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21645 $as_echo "$ac_cs_version"; exit ;;
21646 --config | --confi | --conf | --con | --co | --c )
21647 $as_echo "$ac_cs_config"; exit ;;
21648 --debug | --debu | --deb | --de | --d | -d )
21649 debug=: ;;
21650 --file | --fil | --fi | --f )
21651 $ac_shift
21652 case $ac_optarg in
21653 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21654 esac
21655 as_fn_append CONFIG_FILES " '$ac_optarg'"
21656 ac_need_defaults=false;;
21657 --header | --heade | --head | --hea )
21658 $ac_shift
21659 case $ac_optarg in
21660 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21661 esac
21662 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21663 ac_need_defaults=false;;
21664 --he | --h)
21665 # Conflict between --help and --header
21666 as_fn_error "ambiguous option: \`$1'
21667 Try \`$0 --help' for more information.";;
21668 --help | --hel | -h )
21669 $as_echo "$ac_cs_usage"; exit ;;
21670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21671 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21672 ac_cs_silent=: ;;
21674 # This is an error.
21675 -*) as_fn_error "unrecognized option: \`$1'
21676 Try \`$0 --help' for more information." ;;
21678 *) as_fn_append ac_config_targets " $1"
21679 ac_need_defaults=false ;;
21681 esac
21682 shift
21683 done
21685 ac_configure_extra_args=
21687 if $ac_cs_silent; then
21688 exec 6>/dev/null
21689 ac_configure_extra_args="$ac_configure_extra_args --silent"
21692 _ACEOF
21693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21694 if \$ac_cs_recheck; then
21695 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21696 shift
21697 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21698 CONFIG_SHELL='$SHELL'
21699 export CONFIG_SHELL
21700 exec "\$@"
21703 _ACEOF
21704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21705 exec 5>>config.log
21707 echo
21708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21709 ## Running $as_me. ##
21710 _ASBOX
21711 $as_echo "$ac_log"
21712 } >&5
21714 _ACEOF
21715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21717 # INIT-COMMANDS
21719 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21720 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
21722 _ACEOF
21724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21726 # Handling of arguments.
21727 for ac_config_target in $ac_config_targets
21729 case $ac_config_target in
21730 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21731 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21732 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21733 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21734 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
21735 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21736 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
21737 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
21738 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
21739 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
21740 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21741 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21742 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21743 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21744 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
21745 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
21746 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
21747 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
21749 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21750 esac
21751 done
21754 # If the user did not use the arguments to specify the items to instantiate,
21755 # then the envvar interface is used. Set only those that are not.
21756 # We use the long form for the default assignment because of an extremely
21757 # bizarre bug on SunOS 4.1.3.
21758 if $ac_need_defaults; then
21759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21764 # Have a temporary directory for convenience. Make it in the build tree
21765 # simply because there is no reason against having it here, and in addition,
21766 # creating and moving files from /tmp can sometimes cause problems.
21767 # Hook for its removal unless debugging.
21768 # Note that there is a small window in which the directory will not be cleaned:
21769 # after its creation but before its name has been assigned to `$tmp'.
21770 $debug ||
21772 tmp=
21773 trap 'exit_status=$?
21774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21776 trap 'as_fn_exit 1' 1 2 13 15
21778 # Create a (secure) tmp directory for tmp files.
21781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21782 test -n "$tmp" && test -d "$tmp"
21783 } ||
21785 tmp=./conf$$-$RANDOM
21786 (umask 077 && mkdir "$tmp")
21787 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21789 # Set up the scripts for CONFIG_FILES section.
21790 # No need to generate them if there are no CONFIG_FILES.
21791 # This happens for instance with `./config.status config.h'.
21792 if test -n "$CONFIG_FILES"; then
21794 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
21795 ac_cs_awk_getline=:
21796 ac_cs_awk_pipe_init=
21797 ac_cs_awk_read_file='
21798 while ((getline aline < (F[key])) > 0)
21799 print(aline)
21800 close(F[key])'
21801 ac_cs_awk_pipe_fini=
21802 else
21803 ac_cs_awk_getline=false
21804 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
21805 ac_cs_awk_read_file='
21806 print "|#_!!_#|"
21807 print "cat " F[key] " &&"
21808 '$ac_cs_awk_pipe_init
21809 # The final `:' finishes the AND list.
21810 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
21812 ac_cr=`echo X | tr X '\015'`
21813 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21814 # But we know of no other shell where ac_cr would be empty at this
21815 # point, so we can use a bashism as a fallback.
21816 if test "x$ac_cr" = x; then
21817 eval ac_cr=\$\'\\r\'
21819 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21820 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21821 ac_cs_awk_cr='\r'
21822 else
21823 ac_cs_awk_cr=$ac_cr
21826 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21827 _ACEOF
21829 # Create commands to substitute file output variables.
21831 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
21832 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
21833 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
21834 echo "_ACAWK" &&
21835 echo "_ACEOF"
21836 } >conf$$files.sh &&
21837 . ./conf$$files.sh ||
21838 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21839 rm -f conf$$files.sh
21842 echo "cat >conf$$subs.awk <<_ACEOF" &&
21843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21844 echo "_ACEOF"
21845 } >conf$$subs.sh ||
21846 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21848 ac_delim='%!_!# '
21849 for ac_last_try in false false false false false :; do
21850 . ./conf$$subs.sh ||
21851 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21854 if test $ac_delim_n = $ac_delim_num; then
21855 break
21856 elif $ac_last_try; then
21857 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21858 else
21859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21861 done
21862 rm -f conf$$subs.sh
21864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21865 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21866 _ACEOF
21867 sed -n '
21869 s/^/S["/; s/!.*/"]=/
21872 s/^[^!]*!//
21873 :repl
21874 t repl
21875 s/'"$ac_delim"'$//
21876 t delim
21879 s/\(.\{148\}\)..*/\1/
21880 t more1
21881 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21884 b repl
21885 :more1
21886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21889 s/.\{148\}//
21890 t nl
21891 :delim
21893 s/\(.\{148\}\)..*/\1/
21894 t more2
21895 s/["\\]/\\&/g; s/^/"/; s/$/"/
21898 :more2
21899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21902 s/.\{148\}//
21903 t delim
21904 ' <conf$$subs.awk | sed '
21905 /^[^""]/{
21907 s/\n//
21909 ' >>$CONFIG_STATUS || ac_write_fail=1
21910 rm -f conf$$subs.awk
21911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21912 _ACAWK
21913 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21914 for (key in S) S_is_set[key] = 1
21915 FS = "\a"
21916 \$ac_cs_awk_pipe_init
21919 line = $ 0
21920 nfields = split(line, field, "@")
21921 substed = 0
21922 len = length(field[1])
21923 for (i = 2; i < nfields; i++) {
21924 key = field[i]
21925 keylen = length(key)
21926 if (S_is_set[key]) {
21927 value = S[key]
21928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21929 len += length(value) + length(field[++i])
21930 substed = 1
21931 } else
21932 len += 1 + keylen
21934 if (nfields == 3 && !substed) {
21935 key = field[2]
21936 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21937 \$ac_cs_awk_read_file
21938 next
21941 print line
21943 \$ac_cs_awk_pipe_fini
21944 _ACAWK
21945 _ACEOF
21946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21947 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21948 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21949 else
21951 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21952 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21953 _ACEOF
21955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21957 # trailing colons and then remove the whole line if VPATH becomes empty
21958 # (actually we leave an empty line to preserve line numbers).
21959 if test "x$srcdir" = x.; then
21960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21961 s/:*\$(srcdir):*/:/
21962 s/:*\${srcdir}:*/:/
21963 s/:*@srcdir@:*/:/
21964 s/^\([^=]*=[ ]*\):*/\1/
21965 s/:*$//
21966 s/^[^=]*=[ ]*$//
21970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21971 fi # test -n "$CONFIG_FILES"
21973 # Set up the scripts for CONFIG_HEADERS section.
21974 # No need to generate them if there are no CONFIG_HEADERS.
21975 # This happens for instance with `./config.status Makefile'.
21976 if test -n "$CONFIG_HEADERS"; then
21977 cat >"$tmp/defines.awk" <<\_ACAWK ||
21978 BEGIN {
21979 _ACEOF
21981 # Transform confdefs.h into an awk script `defines.awk', embedded as
21982 # here-document in config.status, that substitutes the proper values into
21983 # config.h.in to produce config.h.
21985 # Create a delimiter string that does not exist in confdefs.h, to ease
21986 # handling of long lines.
21987 ac_delim='%!_!# '
21988 for ac_last_try in false false :; do
21989 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21990 if test -z "$ac_t"; then
21991 break
21992 elif $ac_last_try; then
21993 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21994 else
21995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21997 done
21999 # For the awk script, D is an array of macro values keyed by name,
22000 # likewise P contains macro parameters if any. Preserve backslash
22001 # newline sequences.
22003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22004 sed -n '
22005 s/.\{148\}/&'"$ac_delim"'/g
22006 t rset
22007 :rset
22008 s/^[ ]*#[ ]*define[ ][ ]*/ /
22009 t def
22011 :def
22012 s/\\$//
22013 t bsnl
22014 s/["\\]/\\&/g
22015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22016 D["\1"]=" \3"/p
22017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22019 :bsnl
22020 s/["\\]/\\&/g
22021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22022 D["\1"]=" \3\\\\\\n"\\/p
22023 t cont
22024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22025 t cont
22027 :cont
22029 s/.\{148\}/&'"$ac_delim"'/g
22030 t clear
22031 :clear
22032 s/\\$//
22033 t bsnlc
22034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22036 :bsnlc
22037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22038 b cont
22039 ' <confdefs.h | sed '
22040 s/'"$ac_delim"'/"\\\
22041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22044 for (key in D) D_is_set[key] = 1
22045 FS = "\a"
22047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22048 line = \$ 0
22049 split(line, arg, " ")
22050 if (arg[1] == "#") {
22051 defundef = arg[2]
22052 mac1 = arg[3]
22053 } else {
22054 defundef = substr(arg[1], 2)
22055 mac1 = arg[2]
22057 split(mac1, mac2, "(") #)
22058 macro = mac2[1]
22059 prefix = substr(line, 1, index(line, defundef) - 1)
22060 if (D_is_set[macro]) {
22061 # Preserve the white space surrounding the "#".
22062 print prefix "define", macro P[macro] D[macro]
22063 next
22064 } else {
22065 # Replace #undef with comments. This is necessary, for example,
22066 # in the case of _POSIX_SOURCE, which is predefined and required
22067 # on some systems where configure will not decide to define it.
22068 if (defundef == "undef") {
22069 print "/*", prefix defundef, macro, "*/"
22070 next
22074 { print }
22075 _ACAWK
22076 _ACEOF
22077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22078 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22079 fi # test -n "$CONFIG_HEADERS"
22082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22083 shift
22084 for ac_tag
22086 case $ac_tag in
22087 :[FHLC]) ac_mode=$ac_tag; continue;;
22088 esac
22089 case $ac_mode$ac_tag in
22090 :[FHL]*:*);;
22091 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22092 :[FH]-) ac_tag=-:-;;
22093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22094 esac
22095 ac_save_IFS=$IFS
22096 IFS=:
22097 set x $ac_tag
22098 IFS=$ac_save_IFS
22099 shift
22100 ac_file=$1
22101 shift
22103 case $ac_mode in
22104 :L) ac_source=$1;;
22105 :[FH])
22106 ac_file_inputs=
22107 for ac_f
22109 case $ac_f in
22110 -) ac_f="$tmp/stdin";;
22111 *) # Look for the file first in the build tree, then in the source tree
22112 # (if the path is not absolute). The absolute path cannot be DOS-style,
22113 # because $ac_f cannot contain `:'.
22114 test -f "$ac_f" ||
22115 case $ac_f in
22116 [\\/$]*) false;;
22117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22118 esac ||
22119 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22120 esac
22121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22122 as_fn_append ac_file_inputs " '$ac_f'"
22123 done
22125 # Let's still pretend it is `configure' which instantiates (i.e., don't
22126 # use $as_me), people would be surprised to read:
22127 # /* config.h. Generated by config.status. */
22128 configure_input='Generated from '`
22129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22130 `' by configure.'
22131 if test x"$ac_file" != x-; then
22132 configure_input="$ac_file. $configure_input"
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22134 $as_echo "$as_me: creating $ac_file" >&6;}
22136 # Neutralize special characters interpreted by sed in replacement strings.
22137 case $configure_input in #(
22138 *\&* | *\|* | *\\* )
22139 ac_sed_conf_input=`$as_echo "$configure_input" |
22140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22141 *) ac_sed_conf_input=$configure_input;;
22142 esac
22144 case $ac_tag in
22145 *:-:* | *:-) cat >"$tmp/stdin" \
22146 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22147 esac
22149 esac
22151 ac_dir=`$as_dirname -- "$ac_file" ||
22152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22153 X"$ac_file" : 'X\(//\)[^/]' \| \
22154 X"$ac_file" : 'X\(//\)$' \| \
22155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22156 $as_echo X"$ac_file" |
22157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22158 s//\1/
22161 /^X\(\/\/\)[^/].*/{
22162 s//\1/
22165 /^X\(\/\/\)$/{
22166 s//\1/
22169 /^X\(\/\).*/{
22170 s//\1/
22173 s/.*/./; q'`
22174 as_dir="$ac_dir"; as_fn_mkdir_p
22175 ac_builddir=.
22177 case "$ac_dir" in
22178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22181 # A ".." for each directory in $ac_dir_suffix.
22182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22183 case $ac_top_builddir_sub in
22184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22186 esac ;;
22187 esac
22188 ac_abs_top_builddir=$ac_pwd
22189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22190 # for backward compatibility:
22191 ac_top_builddir=$ac_top_build_prefix
22193 case $srcdir in
22194 .) # We are building in place.
22195 ac_srcdir=.
22196 ac_top_srcdir=$ac_top_builddir_sub
22197 ac_abs_top_srcdir=$ac_pwd ;;
22198 [\\/]* | ?:[\\/]* ) # Absolute name.
22199 ac_srcdir=$srcdir$ac_dir_suffix;
22200 ac_top_srcdir=$srcdir
22201 ac_abs_top_srcdir=$srcdir ;;
22202 *) # Relative name.
22203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22204 ac_top_srcdir=$ac_top_build_prefix$srcdir
22205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22206 esac
22207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22210 case $ac_mode in
22213 # CONFIG_FILE
22216 case $INSTALL in
22217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22219 esac
22220 ac_MKDIR_P=$MKDIR_P
22221 case $MKDIR_P in
22222 [\\/$]* | ?:[\\/]* ) ;;
22223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22224 esac
22225 _ACEOF
22227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22228 # If the template does not know about datarootdir, expand it.
22229 # FIXME: This hack should be removed a few years after 2.60.
22230 ac_datarootdir_hack=; ac_datarootdir_seen=
22231 ac_sed_dataroot='
22232 /datarootdir/ {
22236 /@datadir@/p
22237 /@docdir@/p
22238 /@infodir@/p
22239 /@localedir@/p
22240 /@mandir@/p'
22241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22242 *datarootdir*) ac_datarootdir_seen=yes;;
22243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22246 _ACEOF
22247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22248 ac_datarootdir_hack='
22249 s&@datadir@&$datadir&g
22250 s&@docdir@&$docdir&g
22251 s&@infodir@&$infodir&g
22252 s&@localedir@&$localedir&g
22253 s&@mandir@&$mandir&g
22254 s&\\\${datarootdir}&$datarootdir&g' ;;
22255 esac
22256 _ACEOF
22258 # Neutralize VPATH when `$srcdir' = `.'.
22259 # Shell code in configure.ac might set extrasub.
22260 # FIXME: do we really want to maintain this feature?
22261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22262 ac_sed_extra="$ac_vpsub
22263 $extrasub
22264 _ACEOF
22265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22268 s|@configure_input@|$ac_sed_conf_input|;t t
22269 s&@top_builddir@&$ac_top_builddir_sub&;t t
22270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22271 s&@srcdir@&$ac_srcdir&;t t
22272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22273 s&@top_srcdir@&$ac_top_srcdir&;t t
22274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22275 s&@builddir@&$ac_builddir&;t t
22276 s&@abs_builddir@&$ac_abs_builddir&;t t
22277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22278 s&@INSTALL@&$ac_INSTALL&;t t
22279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22280 $ac_datarootdir_hack
22282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22283 if $ac_cs_awk_getline; then
22284 $AWK -f "$tmp/subs.awk"
22285 else
22286 $AWK -f "$tmp/subs.awk" | $SHELL
22287 fi >$tmp/out \
22288 || as_fn_error "could not create $ac_file" "$LINENO" 5
22290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22291 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22294 which seems to be undefined. Please make sure it is defined." >&5
22295 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22296 which seems to be undefined. Please make sure it is defined." >&2;}
22298 rm -f "$tmp/stdin"
22299 case $ac_file in
22300 -) cat "$tmp/out" && rm -f "$tmp/out";;
22301 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22302 esac \
22303 || as_fn_error "could not create $ac_file" "$LINENO" 5
22307 # CONFIG_HEADER
22309 if test x"$ac_file" != x-; then
22311 $as_echo "/* $configure_input */" \
22312 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22313 } >"$tmp/config.h" \
22314 || as_fn_error "could not create $ac_file" "$LINENO" 5
22315 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22317 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22318 else
22319 rm -f "$ac_file"
22320 mv "$tmp/config.h" "$ac_file" \
22321 || as_fn_error "could not create $ac_file" "$LINENO" 5
22323 else
22324 $as_echo "/* $configure_input */" \
22325 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22326 || as_fn_error "could not create -" "$LINENO" 5
22328 # Compute "$ac_file"'s index in $config_headers.
22329 _am_arg="$ac_file"
22330 _am_stamp_count=1
22331 for _am_header in $config_headers :; do
22332 case $_am_header in
22333 $_am_arg | $_am_arg:* )
22334 break ;;
22336 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22337 esac
22338 done
22339 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22340 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22341 X"$_am_arg" : 'X\(//\)[^/]' \| \
22342 X"$_am_arg" : 'X\(//\)$' \| \
22343 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22344 $as_echo X"$_am_arg" |
22345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22346 s//\1/
22349 /^X\(\/\/\)[^/].*/{
22350 s//\1/
22353 /^X\(\/\/\)$/{
22354 s//\1/
22357 /^X\(\/\).*/{
22358 s//\1/
22361 s/.*/./; q'`/stamp-h$_am_stamp_count
22364 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22365 $as_echo "$as_me: executing $ac_file commands" >&6;}
22367 esac
22370 case $ac_file$ac_mode in
22371 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22372 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22373 # are listed without --file. Let's play safe and only enable the eval
22374 # if we detect the quoting.
22375 case $CONFIG_FILES in
22376 *\'*) eval set x "$CONFIG_FILES" ;;
22377 *) set x $CONFIG_FILES ;;
22378 esac
22379 shift
22380 for mf
22382 # Strip MF so we end up with the name of the file.
22383 mf=`echo "$mf" | sed -e 's/:.*$//'`
22384 # Check whether this is an Automake generated Makefile or not.
22385 # We used to match only the files named `Makefile.in', but
22386 # some people rename them; so instead we look at the file content.
22387 # Grep'ing the first line is not enough: some people post-process
22388 # each Makefile.in and add a new line on top of each file to say so.
22389 # Grep'ing the whole file is not good either: AIX grep has a line
22390 # limit of 2048, but all sed's we know have understand at least 4000.
22391 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22392 dirpart=`$as_dirname -- "$mf" ||
22393 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22394 X"$mf" : 'X\(//\)[^/]' \| \
22395 X"$mf" : 'X\(//\)$' \| \
22396 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22397 $as_echo X"$mf" |
22398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22399 s//\1/
22402 /^X\(\/\/\)[^/].*/{
22403 s//\1/
22406 /^X\(\/\/\)$/{
22407 s//\1/
22410 /^X\(\/\).*/{
22411 s//\1/
22414 s/.*/./; q'`
22415 else
22416 continue
22418 # Extract the definition of DEPDIR, am__include, and am__quote
22419 # from the Makefile without running `make'.
22420 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22421 test -z "$DEPDIR" && continue
22422 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22423 test -z "am__include" && continue
22424 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22425 # When using ansi2knr, U may be empty or an underscore; expand it
22426 U=`sed -n 's/^U = //p' < "$mf"`
22427 # Find all dependency output files, they are included files with
22428 # $(DEPDIR) in their names. We invoke sed twice because it is the
22429 # simplest approach to changing $(DEPDIR) to its actual value in the
22430 # expansion.
22431 for file in `sed -n "
22432 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22433 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22434 # Make sure the directory exists.
22435 test -f "$dirpart/$file" && continue
22436 fdir=`$as_dirname -- "$file" ||
22437 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22438 X"$file" : 'X\(//\)[^/]' \| \
22439 X"$file" : 'X\(//\)$' \| \
22440 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22441 $as_echo X"$file" |
22442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22443 s//\1/
22446 /^X\(\/\/\)[^/].*/{
22447 s//\1/
22450 /^X\(\/\/\)$/{
22451 s//\1/
22454 /^X\(\/\).*/{
22455 s//\1/
22458 s/.*/./; q'`
22459 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22460 # echo "creating $dirpart/$file"
22461 echo '# dummy' > "$dirpart/$file"
22462 done
22463 done
22466 "mkdirs":C)
22467 for dir in etc lisp ; do
22468 test -d ${dir} || mkdir ${dir}
22469 done
22471 "epaths":C)
22472 echo creating src/epaths.h
22473 ${MAKE-make} epaths-force
22475 "gdbinit":C)
22476 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22477 echo creating src/.gdbinit
22478 echo source $srcdir/src/.gdbinit > src/.gdbinit
22482 esac
22483 done # for ac_tag
22486 as_fn_exit 0
22487 _ACEOF
22488 ac_clean_files=$ac_clean_files_save
22490 test $ac_write_fail = 0 ||
22491 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22494 # configure is writing to config.log, and then calls config.status.
22495 # config.status does its own redirection, appending to config.log.
22496 # Unfortunately, on DOS this fails, as config.log is still kept open
22497 # by configure, so config.status won't be able to write to it; its
22498 # output is simply discarded. So we exec the FD to /dev/null,
22499 # effectively closing config.log, so it can be properly (re)opened and
22500 # appended to by config.status. When coming back to configure, we
22501 # need to make the FD available again.
22502 if test "$no_create" != yes; then
22503 ac_cs_success=:
22504 ac_config_status_args=
22505 test "$silent" = yes &&
22506 ac_config_status_args="$ac_config_status_args --quiet"
22507 exec 5>/dev/null
22508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22509 exec 5>>config.log
22510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22511 # would make configure fail if this is the last instruction.
22512 $ac_cs_success || as_fn_exit $?
22514 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22516 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}