Marking message as "seen" should not mark buffer as changed.
[emacs.git] / autogen / configure
blobf3337ddbe31fa092c15c5c6873ad0d45cb1e7a86
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_GENERATE_ALLOCA_H_FALSE
1074 GL_GENERATE_ALLOCA_H_TRUE
1075 ALLOCA_H
1076 ALLOCA
1077 GL_COND_LIBTOOL_FALSE
1078 GL_COND_LIBTOOL_TRUE
1079 BLESSMAIL_TARGET
1080 LIBS_MAIL
1081 liblockfile
1082 LIBXML2_LIBS
1083 LIBXML2_CFLAGS
1084 LIBXSM
1085 LIBGPM
1086 LIBGIF
1087 LIBTIFF
1088 LIBPNG
1089 LIBJPEG
1090 LIBXPM
1091 M17N_FLT_LIBS
1092 M17N_FLT_CFLAGS
1093 LIBOTF_LIBS
1094 LIBOTF_CFLAGS
1095 FREETYPE_LIBS
1096 FREETYPE_CFLAGS
1097 XFT_LIBS
1098 XFT_CFLAGS
1099 FONTCONFIG_LIBS
1100 FONTCONFIG_CFLAGS
1101 LIBXMU
1102 LIBXTR6
1103 LIBGNUTLS_LIBS
1104 LIBGNUTLS_CFLAGS
1105 LIBSELINUX_LIBS
1106 GCONF_LIBS
1107 GCONF_CFLAGS
1108 DBUS_OBJ
1109 DBUS_LIBS
1110 DBUS_CFLAGS
1111 GTK_OBJ
1112 GTK_LIBS
1113 GTK_CFLAGS
1114 IMAGEMAGICK_LIBS
1115 IMAGEMAGICK_CFLAGS
1116 RSVG_LIBS
1117 RSVG_CFLAGS
1118 VMLIMIT_OBJ
1119 GMALLOC_OBJ
1120 HAVE_XSERVER
1121 LIB_STANDARD
1122 NS_OBJC_OBJ
1123 NS_OBJ
1124 TEMACS_LDFLAGS2
1125 LD_SWITCH_X_SITE_AUX_RPATH
1126 LD_SWITCH_X_SITE_AUX
1127 XMKMF
1128 DEPFLAGS
1129 MKDEPDIR
1130 CFLAGS_SOUND
1131 ALSA_LIBS
1132 ALSA_CFLAGS
1133 PKG_CONFIG
1134 LIBSOUND
1135 START_FILES
1136 LIB_MATH
1137 CRT_DIR
1138 LIBS_SYSTEM
1139 C_SWITCH_SYSTEM
1140 UNEXEC_OBJ
1141 C_SWITCH_MACHINE
1142 LD_SWITCH_SYSTEM
1143 CANNOT_DUMP
1144 HAVE_MAKEINFO
1145 GZIP_PROG
1146 INSTALL_INFO
1147 C_WARNINGS_SWITCH
1148 EGREP
1149 GREP
1151 RANLIB
1152 am__fastdepCC_FALSE
1153 am__fastdepCC_TRUE
1154 CCDEPMODE
1155 AMDEPBACKSLASH
1156 AMDEP_FALSE
1157 AMDEP_TRUE
1158 am__quote
1159 am__include
1160 DEPDIR
1161 OBJEXT
1162 EXEEXT
1163 ac_ct_CC
1164 CPPFLAGS
1165 LDFLAGS
1166 CFLAGS
1168 host_os
1169 host_vendor
1170 host_cpu
1171 host
1172 build_os
1173 build_vendor
1174 build_cpu
1175 build
1176 PROFILING_CFLAGS
1177 MAINT
1178 GZIP_INFO
1179 am__untar
1180 am__tar
1181 AMTAR
1182 am__leading_dot
1183 SET_MAKE
1185 mkdir_p
1186 MKDIR_P
1187 INSTALL_STRIP_PROGRAM
1188 STRIP
1189 install_sh
1190 MAKEINFO
1191 AUTOHEADER
1192 AUTOMAKE
1193 AUTOCONF
1194 ACLOCAL
1195 VERSION
1196 PACKAGE
1197 CYGPATH_W
1198 am__isrc
1199 INSTALL_DATA
1200 INSTALL_SCRIPT
1201 INSTALL_PROGRAM
1202 target_alias
1203 host_alias
1204 build_alias
1205 LIBS
1206 ECHO_T
1207 ECHO_N
1208 ECHO_C
1209 DEFS
1210 mandir
1211 localedir
1212 libdir
1213 psdir
1214 pdfdir
1215 dvidir
1216 htmldir
1217 infodir
1218 docdir
1219 oldincludedir
1220 includedir
1221 localstatedir
1222 sharedstatedir
1223 sysconfdir
1224 datadir
1225 datarootdir
1226 libexecdir
1227 sbindir
1228 bindir
1229 program_transform_name
1230 prefix
1231 exec_prefix
1232 PACKAGE_URL
1233 PACKAGE_BUGREPORT
1234 PACKAGE_STRING
1235 PACKAGE_VERSION
1236 PACKAGE_TARNAME
1237 PACKAGE_NAME
1238 PATH_SEPARATOR
1239 SHELL'
1240 ac_subst_files='deps_frag
1241 lisp_frag
1242 ns_frag'
1243 ac_user_opts='
1244 enable_option_checking
1245 with_pop
1246 with_kerberos
1247 with_kerberos5
1248 with_hesiod
1249 with_mmdf
1250 with_mail_unlink
1251 with_mailhost
1252 with_sound
1253 with_sync_input
1254 with_x_toolkit
1255 with_wide_int
1256 with_xpm
1257 with_jpeg
1258 with_tiff
1259 with_gif
1260 with_png
1261 with_rsvg
1262 with_xml2
1263 with_imagemagick
1264 with_xft
1265 with_libotf
1266 with_m17n_flt
1267 with_toolkit_scroll_bars
1268 with_xaw3d
1269 with_xim
1270 with_ns
1271 with_gpm
1272 with_dbus
1273 with_gconf
1274 with_selinux
1275 with_gnutls
1276 with_makeinfo
1277 with_compress_info
1278 with_pkg_config_prog
1279 with_crt_dir
1280 with_gameuser
1281 with_gnustep_conf
1282 enable_ns_self_contained
1283 enable_asserts
1284 enable_maintainer_mode
1285 enable_locallisppath
1286 enable_checking
1287 enable_use_lisp_union_type
1288 enable_profiling
1289 enable_autodepend
1290 enable_dependency_tracking
1291 enable_largefile
1292 with_x
1294 ac_precious_vars='build_alias
1295 host_alias
1296 target_alias
1298 CFLAGS
1299 LDFLAGS
1300 LIBS
1301 CPPFLAGS
1303 XMKMF'
1306 # Initialize some variables set by options.
1307 ac_init_help=
1308 ac_init_version=false
1309 ac_unrecognized_opts=
1310 ac_unrecognized_sep=
1311 # The variables have the same names as the options, with
1312 # dashes changed to underlines.
1313 cache_file=/dev/null
1314 exec_prefix=NONE
1315 no_create=
1316 no_recursion=
1317 prefix=NONE
1318 program_prefix=NONE
1319 program_suffix=NONE
1320 program_transform_name=s,x,x,
1321 silent=
1322 site=
1323 srcdir=
1324 verbose=
1325 x_includes=NONE
1326 x_libraries=NONE
1328 # Installation directory options.
1329 # These are left unexpanded so users can "make install exec_prefix=/foo"
1330 # and all the variables that are supposed to be based on exec_prefix
1331 # by default will actually change.
1332 # Use braces instead of parens because sh, perl, etc. also accept them.
1333 # (The list follows the same order as the GNU Coding Standards.)
1334 bindir='${exec_prefix}/bin'
1335 sbindir='${exec_prefix}/sbin'
1336 libexecdir='${exec_prefix}/libexec'
1337 datarootdir='${prefix}/share'
1338 datadir='${datarootdir}'
1339 sysconfdir='${prefix}/etc'
1340 sharedstatedir='${prefix}/com'
1341 localstatedir='${prefix}/var'
1342 includedir='${prefix}/include'
1343 oldincludedir='/usr/include'
1344 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1345 infodir='${datarootdir}/info'
1346 htmldir='${docdir}'
1347 dvidir='${docdir}'
1348 pdfdir='${docdir}'
1349 psdir='${docdir}'
1350 libdir='${exec_prefix}/lib'
1351 localedir='${datarootdir}/locale'
1352 mandir='${datarootdir}/man'
1354 ac_prev=
1355 ac_dashdash=
1356 for ac_option
1358 # If the previous option needs an argument, assign it.
1359 if test -n "$ac_prev"; then
1360 eval $ac_prev=\$ac_option
1361 ac_prev=
1362 continue
1365 case $ac_option in
1366 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1367 *) ac_optarg=yes ;;
1368 esac
1370 # Accept the important Cygnus configure options, so we can diagnose typos.
1372 case $ac_dashdash$ac_option in
1374 ac_dashdash=yes ;;
1376 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1377 ac_prev=bindir ;;
1378 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1379 bindir=$ac_optarg ;;
1381 -build | --build | --buil | --bui | --bu)
1382 ac_prev=build_alias ;;
1383 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1384 build_alias=$ac_optarg ;;
1386 -cache-file | --cache-file | --cache-fil | --cache-fi \
1387 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1388 ac_prev=cache_file ;;
1389 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1390 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1391 cache_file=$ac_optarg ;;
1393 --config-cache | -C)
1394 cache_file=config.cache ;;
1396 -datadir | --datadir | --datadi | --datad)
1397 ac_prev=datadir ;;
1398 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1399 datadir=$ac_optarg ;;
1401 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1402 | --dataroo | --dataro | --datar)
1403 ac_prev=datarootdir ;;
1404 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1405 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1406 datarootdir=$ac_optarg ;;
1408 -disable-* | --disable-*)
1409 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1410 # Reject names that are not valid shell variable names.
1411 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1412 as_fn_error "invalid feature name: $ac_useropt"
1413 ac_useropt_orig=$ac_useropt
1414 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1415 case $ac_user_opts in
1417 "enable_$ac_useropt"
1418 "*) ;;
1419 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1420 ac_unrecognized_sep=', ';;
1421 esac
1422 eval enable_$ac_useropt=no ;;
1424 -docdir | --docdir | --docdi | --doc | --do)
1425 ac_prev=docdir ;;
1426 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1427 docdir=$ac_optarg ;;
1429 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1430 ac_prev=dvidir ;;
1431 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1432 dvidir=$ac_optarg ;;
1434 -enable-* | --enable-*)
1435 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1438 as_fn_error "invalid feature name: $ac_useropt"
1439 ac_useropt_orig=$ac_useropt
1440 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1441 case $ac_user_opts in
1443 "enable_$ac_useropt"
1444 "*) ;;
1445 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1446 ac_unrecognized_sep=', ';;
1447 esac
1448 eval enable_$ac_useropt=\$ac_optarg ;;
1450 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1451 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1452 | --exec | --exe | --ex)
1453 ac_prev=exec_prefix ;;
1454 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1455 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1456 | --exec=* | --exe=* | --ex=*)
1457 exec_prefix=$ac_optarg ;;
1459 -gas | --gas | --ga | --g)
1460 # Obsolete; use --with-gas.
1461 with_gas=yes ;;
1463 -help | --help | --hel | --he | -h)
1464 ac_init_help=long ;;
1465 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1466 ac_init_help=recursive ;;
1467 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1468 ac_init_help=short ;;
1470 -host | --host | --hos | --ho)
1471 ac_prev=host_alias ;;
1472 -host=* | --host=* | --hos=* | --ho=*)
1473 host_alias=$ac_optarg ;;
1475 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1476 ac_prev=htmldir ;;
1477 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1478 | --ht=*)
1479 htmldir=$ac_optarg ;;
1481 -includedir | --includedir | --includedi | --included | --include \
1482 | --includ | --inclu | --incl | --inc)
1483 ac_prev=includedir ;;
1484 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1485 | --includ=* | --inclu=* | --incl=* | --inc=*)
1486 includedir=$ac_optarg ;;
1488 -infodir | --infodir | --infodi | --infod | --info | --inf)
1489 ac_prev=infodir ;;
1490 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1491 infodir=$ac_optarg ;;
1493 -libdir | --libdir | --libdi | --libd)
1494 ac_prev=libdir ;;
1495 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1496 libdir=$ac_optarg ;;
1498 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1499 | --libexe | --libex | --libe)
1500 ac_prev=libexecdir ;;
1501 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1502 | --libexe=* | --libex=* | --libe=*)
1503 libexecdir=$ac_optarg ;;
1505 -localedir | --localedir | --localedi | --localed | --locale)
1506 ac_prev=localedir ;;
1507 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1508 localedir=$ac_optarg ;;
1510 -localstatedir | --localstatedir | --localstatedi | --localstated \
1511 | --localstate | --localstat | --localsta | --localst | --locals)
1512 ac_prev=localstatedir ;;
1513 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1514 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1515 localstatedir=$ac_optarg ;;
1517 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1518 ac_prev=mandir ;;
1519 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1520 mandir=$ac_optarg ;;
1522 -nfp | --nfp | --nf)
1523 # Obsolete; use --without-fp.
1524 with_fp=no ;;
1526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1527 | --no-cr | --no-c | -n)
1528 no_create=yes ;;
1530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1532 no_recursion=yes ;;
1534 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1535 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1536 | --oldin | --oldi | --old | --ol | --o)
1537 ac_prev=oldincludedir ;;
1538 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1539 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1540 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1541 oldincludedir=$ac_optarg ;;
1543 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1544 ac_prev=prefix ;;
1545 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1546 prefix=$ac_optarg ;;
1548 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1549 | --program-pre | --program-pr | --program-p)
1550 ac_prev=program_prefix ;;
1551 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1552 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1553 program_prefix=$ac_optarg ;;
1555 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1556 | --program-suf | --program-su | --program-s)
1557 ac_prev=program_suffix ;;
1558 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1559 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1560 program_suffix=$ac_optarg ;;
1562 -program-transform-name | --program-transform-name \
1563 | --program-transform-nam | --program-transform-na \
1564 | --program-transform-n | --program-transform- \
1565 | --program-transform | --program-transfor \
1566 | --program-transfo | --program-transf \
1567 | --program-trans | --program-tran \
1568 | --progr-tra | --program-tr | --program-t)
1569 ac_prev=program_transform_name ;;
1570 -program-transform-name=* | --program-transform-name=* \
1571 | --program-transform-nam=* | --program-transform-na=* \
1572 | --program-transform-n=* | --program-transform-=* \
1573 | --program-transform=* | --program-transfor=* \
1574 | --program-transfo=* | --program-transf=* \
1575 | --program-trans=* | --program-tran=* \
1576 | --progr-tra=* | --program-tr=* | --program-t=*)
1577 program_transform_name=$ac_optarg ;;
1579 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1580 ac_prev=pdfdir ;;
1581 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1582 pdfdir=$ac_optarg ;;
1584 -psdir | --psdir | --psdi | --psd | --ps)
1585 ac_prev=psdir ;;
1586 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1587 psdir=$ac_optarg ;;
1589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590 | -silent | --silent | --silen | --sile | --sil)
1591 silent=yes ;;
1593 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1594 ac_prev=sbindir ;;
1595 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1596 | --sbi=* | --sb=*)
1597 sbindir=$ac_optarg ;;
1599 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1600 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1601 | --sharedst | --shareds | --shared | --share | --shar \
1602 | --sha | --sh)
1603 ac_prev=sharedstatedir ;;
1604 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1605 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1606 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1607 | --sha=* | --sh=*)
1608 sharedstatedir=$ac_optarg ;;
1610 -site | --site | --sit)
1611 ac_prev=site ;;
1612 -site=* | --site=* | --sit=*)
1613 site=$ac_optarg ;;
1615 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1616 ac_prev=srcdir ;;
1617 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1618 srcdir=$ac_optarg ;;
1620 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1621 | --syscon | --sysco | --sysc | --sys | --sy)
1622 ac_prev=sysconfdir ;;
1623 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1624 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1625 sysconfdir=$ac_optarg ;;
1627 -target | --target | --targe | --targ | --tar | --ta | --t)
1628 ac_prev=target_alias ;;
1629 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1630 target_alias=$ac_optarg ;;
1632 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1633 verbose=yes ;;
1635 -version | --version | --versio | --versi | --vers | -V)
1636 ac_init_version=: ;;
1638 -with-* | --with-*)
1639 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1640 # Reject names that are not valid shell variable names.
1641 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1642 as_fn_error "invalid package name: $ac_useropt"
1643 ac_useropt_orig=$ac_useropt
1644 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645 case $ac_user_opts in
1647 "with_$ac_useropt"
1648 "*) ;;
1649 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1650 ac_unrecognized_sep=', ';;
1651 esac
1652 eval with_$ac_useropt=\$ac_optarg ;;
1654 -without-* | --without-*)
1655 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1656 # Reject names that are not valid shell variable names.
1657 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1658 as_fn_error "invalid package name: $ac_useropt"
1659 ac_useropt_orig=$ac_useropt
1660 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1661 case $ac_user_opts in
1663 "with_$ac_useropt"
1664 "*) ;;
1665 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1666 ac_unrecognized_sep=', ';;
1667 esac
1668 eval with_$ac_useropt=no ;;
1670 --x)
1671 # Obsolete; use --with-x.
1672 with_x=yes ;;
1674 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1675 | --x-incl | --x-inc | --x-in | --x-i)
1676 ac_prev=x_includes ;;
1677 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1678 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1679 x_includes=$ac_optarg ;;
1681 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1682 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1683 ac_prev=x_libraries ;;
1684 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1685 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1686 x_libraries=$ac_optarg ;;
1688 -*) as_fn_error "unrecognized option: \`$ac_option'
1689 Try \`$0 --help' for more information."
1692 *=*)
1693 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1694 # Reject names that are not valid shell variable names.
1695 case $ac_envvar in #(
1696 '' | [0-9]* | *[!_$as_cr_alnum]* )
1697 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1698 esac
1699 eval $ac_envvar=\$ac_optarg
1700 export $ac_envvar ;;
1703 # FIXME: should be removed in autoconf 3.0.
1704 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1705 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1706 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1707 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1710 esac
1711 done
1713 if test -n "$ac_prev"; then
1714 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1715 as_fn_error "missing argument to $ac_option"
1718 if test -n "$ac_unrecognized_opts"; then
1719 case $enable_option_checking in
1720 no) ;;
1721 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1722 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1723 esac
1726 # Check all directory arguments for consistency.
1727 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1728 datadir sysconfdir sharedstatedir localstatedir includedir \
1729 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1730 libdir localedir mandir
1732 eval ac_val=\$$ac_var
1733 # Remove trailing slashes.
1734 case $ac_val in
1735 */ )
1736 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1737 eval $ac_var=\$ac_val;;
1738 esac
1739 # Be sure to have absolute directory names.
1740 case $ac_val in
1741 [\\/$]* | ?:[\\/]* ) continue;;
1742 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1743 esac
1744 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1745 done
1747 # There might be people who depend on the old broken behavior: `$host'
1748 # used to hold the argument of --host etc.
1749 # FIXME: To remove some day.
1750 build=$build_alias
1751 host=$host_alias
1752 target=$target_alias
1754 # FIXME: To remove some day.
1755 if test "x$host_alias" != x; then
1756 if test "x$build_alias" = x; then
1757 cross_compiling=maybe
1758 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1759 If a cross compiler is detected then cross compile mode will be used." >&2
1760 elif test "x$build_alias" != "x$host_alias"; then
1761 cross_compiling=yes
1765 ac_tool_prefix=
1766 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1768 test "$silent" = yes && exec 6>/dev/null
1771 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1772 ac_ls_di=`ls -di .` &&
1773 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1774 as_fn_error "working directory cannot be determined"
1775 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1776 as_fn_error "pwd does not report name of working directory"
1779 # Find the source files, if location was not specified.
1780 if test -z "$srcdir"; then
1781 ac_srcdir_defaulted=yes
1782 # Try the directory containing this script, then the parent directory.
1783 ac_confdir=`$as_dirname -- "$as_myself" ||
1784 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1785 X"$as_myself" : 'X\(//\)[^/]' \| \
1786 X"$as_myself" : 'X\(//\)$' \| \
1787 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1788 $as_echo X"$as_myself" |
1789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1790 s//\1/
1793 /^X\(\/\/\)[^/].*/{
1794 s//\1/
1797 /^X\(\/\/\)$/{
1798 s//\1/
1801 /^X\(\/\).*/{
1802 s//\1/
1805 s/.*/./; q'`
1806 srcdir=$ac_confdir
1807 if test ! -r "$srcdir/$ac_unique_file"; then
1808 srcdir=..
1810 else
1811 ac_srcdir_defaulted=no
1813 if test ! -r "$srcdir/$ac_unique_file"; then
1814 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1815 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1817 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1818 ac_abs_confdir=`(
1819 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1820 pwd)`
1821 # When building in place, set srcdir=.
1822 if test "$ac_abs_confdir" = "$ac_pwd"; then
1823 srcdir=.
1825 # Remove unnecessary trailing slashes from srcdir.
1826 # Double slashes in file names in object file debugging info
1827 # mess up M-x gdb in Emacs.
1828 case $srcdir in
1829 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1830 esac
1831 for ac_var in $ac_precious_vars; do
1832 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1833 eval ac_env_${ac_var}_value=\$${ac_var}
1834 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1835 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1836 done
1839 # Report the --help message.
1841 if test "$ac_init_help" = "long"; then
1842 # Omit some internal or obsolete options to make the list less imposing.
1843 # This message is too long to be a string in the A/UX 3.1 sh.
1844 cat <<_ACEOF
1845 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1847 Usage: $0 [OPTION]... [VAR=VALUE]...
1849 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1850 VAR=VALUE. See below for descriptions of some of the useful variables.
1852 Defaults for the options are specified in brackets.
1854 Configuration:
1855 -h, --help display this help and exit
1856 --help=short display options specific to this package
1857 --help=recursive display the short help of all the included packages
1858 -V, --version display version information and exit
1859 -q, --quiet, --silent do not print \`checking...' messages
1860 --cache-file=FILE cache test results in FILE [disabled]
1861 -C, --config-cache alias for \`--cache-file=config.cache'
1862 -n, --no-create do not create output files
1863 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1865 Installation directories:
1866 --prefix=PREFIX install architecture-independent files in PREFIX
1867 [$ac_default_prefix]
1868 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1869 [PREFIX]
1871 By default, \`make install' will install all the files in
1872 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1873 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1874 for instance \`--prefix=\$HOME'.
1876 For better control, use the options below.
1878 Fine tuning of the installation directories:
1879 --bindir=DIR user executables [EPREFIX/bin]
1880 --sbindir=DIR system admin executables [EPREFIX/sbin]
1881 --libexecdir=DIR program executables [EPREFIX/libexec]
1882 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1883 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1884 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1885 --libdir=DIR object code libraries [EPREFIX/lib]
1886 --includedir=DIR C header files [PREFIX/include]
1887 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1888 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1889 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1890 --infodir=DIR info documentation [DATAROOTDIR/info]
1891 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1892 --mandir=DIR man documentation [DATAROOTDIR/man]
1893 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1894 --htmldir=DIR html documentation [DOCDIR]
1895 --dvidir=DIR dvi documentation [DOCDIR]
1896 --pdfdir=DIR pdf documentation [DOCDIR]
1897 --psdir=DIR ps documentation [DOCDIR]
1898 _ACEOF
1900 cat <<\_ACEOF
1902 Program names:
1903 --program-prefix=PREFIX prepend PREFIX to installed program names
1904 --program-suffix=SUFFIX append SUFFIX to installed program names
1905 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1907 X features:
1908 --x-includes=DIR X include files are in DIR
1909 --x-libraries=DIR X library files are in DIR
1911 System types:
1912 --build=BUILD configure for building on BUILD [guessed]
1913 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1914 _ACEOF
1917 if test -n "$ac_init_help"; then
1918 case $ac_init_help in
1919 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1920 esac
1921 cat <<\_ACEOF
1923 Optional Features:
1924 --disable-option-checking ignore unrecognized --enable/--with options
1925 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1926 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1927 --disable-ns-self-contained
1928 disable self contained build under NeXTstep
1929 --enable-asserts compile code with asserts enabled
1930 --enable-maintainer-mode
1931 enable make rules and dependencies not useful (and
1932 sometimes confusing) to the casual installer
1933 --enable-locallisppath=PATH
1934 directories Emacs should search for lisp files
1935 specific to this site
1936 --enable-checking[=LIST]
1937 enable expensive run-time checks. With LIST, enable
1938 only specific categories of checks. Categories are:
1939 all,yes,no. Flags are: stringbytes, stringoverrun,
1940 stringfreelist, xmallocoverrun, conslist
1941 --enable-use-lisp-union-type
1942 use a union for the Lisp_Object data type. This is
1943 only useful for development for catching certain
1944 types of bugs.
1945 --enable-profiling build emacs with profiling support. This might not
1946 work on all platforms
1947 --enable-autodepend automatically generate dependencies to .h-files.
1948 Requires GNU Make and Gcc. Enabled if GNU Make and
1949 Gcc is found
1950 --disable-dependency-tracking speeds up one-time build
1951 --enable-dependency-tracking do not reject slow dependency extractors
1952 --disable-largefile omit support for large files
1954 Optional Packages:
1955 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1956 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1957 --without-pop don't support POP mail retrieval with movemail
1958 --with-kerberos support Kerberos-authenticated POP
1959 --with-kerberos5 support Kerberos version 5 authenticated POP
1960 --with-hesiod support Hesiod to get the POP server host
1961 --with-mmdf support MMDF mailboxes
1962 --with-mail-unlink unlink, rather than empty, mail spool after reading
1963 --with-mailhost=HOSTNAME
1964 string giving default POP mail host
1965 --without-sound don't compile with sound support
1966 --without-sync-input process async input synchronously
1967 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1968 lucid or athena, motif, no)
1969 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1970 --without-xpm don't compile with XPM image support
1971 --without-jpeg don't compile with JPEG image support
1972 --without-tiff don't compile with TIFF image support
1973 --without-gif don't compile with GIF image support
1974 --without-png don't compile with PNG image support
1975 --without-rsvg don't compile with SVG image support
1976 --without-xml2 don't compile with XML parsing support
1977 --without-imagemagick don't compile with ImageMagick image support
1978 --without-xft don't use XFT for anti aliased fonts
1979 --without-libotf don't use libotf for OpenType font support
1980 --without-m17n-flt don't use m17n-flt for text shaping
1981 --without-toolkit-scroll-bars
1982 don't use Motif or Xaw3d scroll bars
1983 --without-xaw3d don't use Xaw3d
1984 --without-xim don't use X11 XIM
1985 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1986 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1987 console
1988 --without-dbus don't compile with D-Bus support
1989 --without-gconf don't compile with GConf support
1990 --without-selinux don't compile with SELinux support
1991 --without-gnutls don't use -lgnutls for SSL/TLS support
1992 --without-makeinfo don't require makeinfo for building manuals
1993 --without-compress-info don't compress the installed Info pages
1994 --with-pkg-config-prog=PATH
1995 path to pkg-config for finding GTK and librsvg
1996 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1997 /usr/lib, or /usr/lib64 on some platforms.
1998 --with-gameuser=USER user for shared game score files
1999 --with-gnustep-conf=PATH
2000 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2001 or /etc/GNUstep/GNUstep.conf
2002 --with-x use the X Window System
2004 Some influential environment variables:
2005 CC C compiler command
2006 CFLAGS C compiler flags
2007 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2008 nonstandard directory <lib dir>
2009 LIBS libraries to pass to the linker, e.g. -l<library>
2010 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2011 you have headers in a nonstandard directory <include dir>
2012 CPP C preprocessor
2013 XMKMF Path to xmkmf, Makefile generator for X Window System
2015 Use these variables to override the choices made by `configure' or to help
2016 it to find libraries and programs with nonstandard names/locations.
2018 Report bugs to the package provider.
2019 _ACEOF
2020 ac_status=$?
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2047 case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080 cat <<\_ACEOF
2081 emacs configure 24.0.50
2082 generated by GNU Autoconf 2.65
2084 Copyright (C) 2009 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2087 _ACEOF
2088 exit
2091 ## ------------------------ ##
2092 ## Autoconf initialization. ##
2093 ## ------------------------ ##
2095 # ac_fn_c_try_compile LINENO
2096 # --------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_compile ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2126 ac_retval=1
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 as_fn_set_status $ac_retval
2131 } # ac_fn_c_try_compile
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } >/dev/null && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2163 ac_retval=1
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 as_fn_set_status $ac_retval
2168 } # ac_fn_c_try_cpp
2170 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2171 # -------------------------------------------------------
2172 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2173 # the include files in INCLUDES and setting the cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_header_mongrel ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 else
2188 # Is the header compilable?
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2190 $as_echo_n "checking $2 usability... " >&6; }
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_header_compiler=yes
2198 else
2199 ac_header_compiler=no
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2203 $as_echo "$ac_header_compiler" >&6; }
2205 # Is the header present?
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2207 $as_echo_n "checking $2 presence... " >&6; }
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_c_try_cpp "$LINENO"; then :
2213 ac_header_preproc=yes
2214 else
2215 ac_header_preproc=no
2217 rm -f conftest.err conftest.$ac_ext
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2219 $as_echo "$ac_header_preproc" >&6; }
2221 # So? What about this header?
2222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2223 yes:no: )
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2225 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229 no:yes:* )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2231 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2233 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2235 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2237 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2241 esac
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243 $as_echo_n "checking for $2... " >&6; }
2244 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2245 $as_echo_n "(cached) " >&6
2246 else
2247 eval "$3=\$ac_header_compiler"
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 } # ac_fn_c_check_header_mongrel
2257 # ac_fn_c_try_run LINENO
2258 # ----------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2260 # that executables *can* be run.
2261 ac_fn_c_try_run ()
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_link"
2265 case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2275 { { case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_try") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; }; }; then :
2285 ac_retval=0
2286 else
2287 $as_echo "$as_me: program exited with status $ac_status" >&5
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2291 ac_retval=$ac_status
2293 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 as_fn_set_status $ac_retval
2297 } # ac_fn_c_try_run
2299 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2300 # -------------------------------------------------------
2301 # Tests whether HEADER exists and can be compiled using the include files in
2302 # INCLUDES, setting the cache variable VAR accordingly.
2303 ac_fn_c_check_header_compile ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2314 #include <$2>
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$3=yes"
2318 else
2319 eval "$3=no"
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 eval ac_res=\$$3
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2328 } # ac_fn_c_check_header_compile
2330 # ac_fn_c_try_link LINENO
2331 # -----------------------
2332 # Try to link conftest.$ac_ext, and return whether this succeeded.
2333 ac_fn_c_try_link ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 rm -f conftest.$ac_objext conftest$ac_exeext
2337 if { { ac_try="$ac_link"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_link") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && {
2353 test -z "$ac_c_werror_flag" ||
2354 test ! -s conftest.err
2355 } && test -s conftest$ac_exeext && {
2356 test "$cross_compiling" = yes ||
2357 $as_test_x conftest$ac_exeext
2358 }; then :
2359 ac_retval=0
2360 else
2361 $as_echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2364 ac_retval=1
2366 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2367 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2368 # interfere with the next link command; also delete a directory that is
2369 # left behind by Apple's compiler. We do this before executing the actions.
2370 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 as_fn_set_status $ac_retval
2374 } # ac_fn_c_try_link
2376 # ac_fn_c_check_decl LINENO SYMBOL VAR
2377 # ------------------------------------
2378 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2379 ac_fn_c_check_decl ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2383 $as_echo_n "checking whether $2 is declared... " >&6; }
2384 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2391 main ()
2393 #ifndef $2
2394 (void) $2;
2395 #endif
2398 return 0;
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2402 eval "$3=yes"
2403 else
2404 eval "$3=no"
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 eval ac_res=\$$3
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2413 } # ac_fn_c_check_decl
2415 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2416 # ----------------------------------------------
2417 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2418 ac_fn_c_check_header_preproc ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428 #include <$2>
2429 _ACEOF
2430 if ac_fn_c_try_cpp "$LINENO"; then :
2431 eval "$3=yes"
2432 else
2433 eval "$3=no"
2435 rm -f conftest.err conftest.$ac_ext
2437 eval ac_res=\$$3
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 } # ac_fn_c_check_header_preproc
2444 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2445 # ----------------------------------------------------
2446 # Tries to find if the field MEMBER exists in type AGGR, after including
2447 # INCLUDES, setting cache variable VAR accordingly.
2448 ac_fn_c_check_member ()
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2452 $as_echo_n "checking for $2.$3... " >&6; }
2453 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2460 main ()
2462 static $2 ac_aggr;
2463 if (ac_aggr.$3)
2464 return 0;
2466 return 0;
2468 _ACEOF
2469 if ac_fn_c_try_compile "$LINENO"; then :
2470 eval "$4=yes"
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2476 main ()
2478 static $2 ac_aggr;
2479 if (sizeof ac_aggr.$3)
2480 return 0;
2482 return 0;
2484 _ACEOF
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486 eval "$4=yes"
2487 else
2488 eval "$4=no"
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 eval ac_res=\$$4
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499 } # ac_fn_c_check_member
2501 # ac_fn_c_check_func LINENO FUNC VAR
2502 # ----------------------------------
2503 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2504 ac_fn_c_check_func ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 $as_echo_n "checking for $2... " >&6; }
2509 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2516 #define $2 innocuous_$2
2518 /* System header to define __stub macros and hopefully few prototypes,
2519 which can conflict with char $2 (); below.
2520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2521 <limits.h> exists even on freestanding compilers. */
2523 #ifdef __STDC__
2524 # include <limits.h>
2525 #else
2526 # include <assert.h>
2527 #endif
2529 #undef $2
2531 /* Override any GCC internal prototype to avoid an error.
2532 Use char because int might match the return type of a GCC
2533 builtin and then its argument prototype would still apply. */
2534 #ifdef __cplusplus
2535 extern "C"
2536 #endif
2537 char $2 ();
2538 /* The GNU C library defines this for functions which it implements
2539 to always fail with ENOSYS. Some functions are actually named
2540 something starting with __ and the normal name is an alias. */
2541 #if defined __stub_$2 || defined __stub___$2
2542 choke me
2543 #endif
2546 main ()
2548 return $2 ();
2550 return 0;
2552 _ACEOF
2553 if ac_fn_c_try_link "$LINENO"; then :
2554 eval "$3=yes"
2555 else
2556 eval "$3=no"
2558 rm -f core conftest.err conftest.$ac_objext \
2559 conftest$ac_exeext conftest.$ac_ext
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566 } # ac_fn_c_check_func
2568 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2569 # --------------------------------------------
2570 # Tries to find the compile-time value of EXPR in a program that includes
2571 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2572 # computed
2573 ac_fn_c_compute_int ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 if test "$cross_compiling" = yes; then
2577 # Depending upon the size, compute the lo and hi bounds.
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2582 main ()
2584 static int test_array [1 - 2 * !(($2) >= 0)];
2585 test_array [0] = 0
2588 return 0;
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592 ac_lo=0 ac_mid=0
2593 while :; do
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2598 main ()
2600 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2601 test_array [0] = 0
2604 return 0;
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 ac_hi=$ac_mid; break
2609 else
2610 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2611 if test $ac_lo -le $ac_mid; then
2612 ac_lo= ac_hi=
2613 break
2615 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 done
2619 else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2624 main ()
2626 static int test_array [1 - 2 * !(($2) < 0)];
2627 test_array [0] = 0
2630 return 0;
2632 _ACEOF
2633 if ac_fn_c_try_compile "$LINENO"; then :
2634 ac_hi=-1 ac_mid=-1
2635 while :; do
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2640 main ()
2642 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2643 test_array [0] = 0
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_lo=$ac_mid; break
2651 else
2652 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2653 if test $ac_mid -le $ac_hi; then
2654 ac_lo= ac_hi=
2655 break
2657 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 done
2661 else
2662 ac_lo= ac_hi=
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 # Binary search between lo and hi bounds.
2668 while test "x$ac_lo" != "x$ac_hi"; do
2669 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2674 main ()
2676 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2677 test_array [0] = 0
2680 return 0;
2682 _ACEOF
2683 if ac_fn_c_try_compile "$LINENO"; then :
2684 ac_hi=$ac_mid
2685 else
2686 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 done
2690 case $ac_lo in #((
2691 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2692 '') ac_retval=1 ;;
2693 esac
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2698 static long int longval () { return $2; }
2699 static unsigned long int ulongval () { return $2; }
2700 #include <stdio.h>
2701 #include <stdlib.h>
2703 main ()
2706 FILE *f = fopen ("conftest.val", "w");
2707 if (! f)
2708 return 1;
2709 if (($2) < 0)
2711 long int i = longval ();
2712 if (i != ($2))
2713 return 1;
2714 fprintf (f, "%ld", i);
2716 else
2718 unsigned long int i = ulongval ();
2719 if (i != ($2))
2720 return 1;
2721 fprintf (f, "%lu", i);
2723 /* Do not output a trailing newline, as this causes \r\n confusion
2724 on some platforms. */
2725 return ferror (f) || fclose (f) != 0;
2728 return 0;
2730 _ACEOF
2731 if ac_fn_c_try_run "$LINENO"; then :
2732 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2733 else
2734 ac_retval=1
2736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2737 conftest.$ac_objext conftest.beam conftest.$ac_ext
2738 rm -f conftest.val
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742 as_fn_set_status $ac_retval
2744 } # ac_fn_c_compute_int
2746 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2747 # -------------------------------------------
2748 # Tests whether TYPE exists after having included INCLUDES, setting cache
2749 # variable VAR accordingly.
2750 ac_fn_c_check_type ()
2752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2754 $as_echo_n "checking for $2... " >&6; }
2755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 eval "$3=no"
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2763 main ()
2765 if (sizeof ($2))
2766 return 0;
2768 return 0;
2770 _ACEOF
2771 if ac_fn_c_try_compile "$LINENO"; then :
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2776 main ()
2778 if (sizeof (($2)))
2779 return 0;
2781 return 0;
2783 _ACEOF
2784 if ac_fn_c_try_compile "$LINENO"; then :
2786 else
2787 eval "$3=yes"
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 eval ac_res=\$$3
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2798 } # ac_fn_c_check_type
2799 cat >config.log <<_ACEOF
2800 This file contains any messages produced by compilers while
2801 running configure, to aid debugging if configure makes a mistake.
2803 It was created by emacs $as_me 24.0.50, which was
2804 generated by GNU Autoconf 2.65. Invocation command line was
2806 $ $0 $@
2808 _ACEOF
2809 exec 5>>config.log
2811 cat <<_ASUNAME
2812 ## --------- ##
2813 ## Platform. ##
2814 ## --------- ##
2816 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2817 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2818 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2819 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2820 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2822 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2823 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2825 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2826 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2827 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2828 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2829 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2830 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2831 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2833 _ASUNAME
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 $as_echo "PATH: $as_dir"
2841 done
2842 IFS=$as_save_IFS
2844 } >&5
2846 cat >&5 <<_ACEOF
2849 ## ----------- ##
2850 ## Core tests. ##
2851 ## ----------- ##
2853 _ACEOF
2856 # Keep a trace of the command line.
2857 # Strip out --no-create and --no-recursion so they do not pile up.
2858 # Strip out --silent because we don't want to record it for future runs.
2859 # Also quote any args containing shell meta-characters.
2860 # Make two passes to allow for proper duplicate-argument suppression.
2861 ac_configure_args=
2862 ac_configure_args0=
2863 ac_configure_args1=
2864 ac_must_keep_next=false
2865 for ac_pass in 1 2
2867 for ac_arg
2869 case $ac_arg in
2870 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2872 | -silent | --silent | --silen | --sile | --sil)
2873 continue ;;
2874 *\'*)
2875 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2876 esac
2877 case $ac_pass in
2878 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2880 as_fn_append ac_configure_args1 " '$ac_arg'"
2881 if test $ac_must_keep_next = true; then
2882 ac_must_keep_next=false # Got value, back to normal.
2883 else
2884 case $ac_arg in
2885 *=* | --config-cache | -C | -disable-* | --disable-* \
2886 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2887 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2888 | -with-* | --with-* | -without-* | --without-* | --x)
2889 case "$ac_configure_args0 " in
2890 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2891 esac
2893 -* ) ac_must_keep_next=true ;;
2894 esac
2896 as_fn_append ac_configure_args " '$ac_arg'"
2898 esac
2899 done
2900 done
2901 { ac_configure_args0=; unset ac_configure_args0;}
2902 { ac_configure_args1=; unset ac_configure_args1;}
2904 # When interrupted or exit'd, cleanup temporary files, and complete
2905 # config.log. We remove comments because anyway the quotes in there
2906 # would cause problems or look ugly.
2907 # WARNING: Use '\'' to represent an apostrophe within the trap.
2908 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2909 trap 'exit_status=$?
2910 # Save into config.log some information that might help in debugging.
2912 echo
2914 cat <<\_ASBOX
2915 ## ---------------- ##
2916 ## Cache variables. ##
2917 ## ---------------- ##
2918 _ASBOX
2919 echo
2920 # The following way of writing the cache mishandles newlines in values,
2922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2923 eval ac_val=\$$ac_var
2924 case $ac_val in #(
2925 *${as_nl}*)
2926 case $ac_var in #(
2927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2929 esac
2930 case $ac_var in #(
2931 _ | IFS | as_nl) ;; #(
2932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2933 *) { eval $ac_var=; unset $ac_var;} ;;
2934 esac ;;
2935 esac
2936 done
2937 (set) 2>&1 |
2938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2939 *${as_nl}ac_space=\ *)
2940 sed -n \
2941 "s/'\''/'\''\\\\'\'''\''/g;
2942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2943 ;; #(
2945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2947 esac |
2948 sort
2950 echo
2952 cat <<\_ASBOX
2953 ## ----------------- ##
2954 ## Output variables. ##
2955 ## ----------------- ##
2956 _ASBOX
2957 echo
2958 for ac_var in $ac_subst_vars
2960 eval ac_val=\$$ac_var
2961 case $ac_val in
2962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2963 esac
2964 $as_echo "$ac_var='\''$ac_val'\''"
2965 done | sort
2966 echo
2968 if test -n "$ac_subst_files"; then
2969 cat <<\_ASBOX
2970 ## ------------------- ##
2971 ## File substitutions. ##
2972 ## ------------------- ##
2973 _ASBOX
2974 echo
2975 for ac_var in $ac_subst_files
2977 eval ac_val=\$$ac_var
2978 case $ac_val in
2979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2980 esac
2981 $as_echo "$ac_var='\''$ac_val'\''"
2982 done | sort
2983 echo
2986 if test -s confdefs.h; then
2987 cat <<\_ASBOX
2988 ## ----------- ##
2989 ## confdefs.h. ##
2990 ## ----------- ##
2991 _ASBOX
2992 echo
2993 cat confdefs.h
2994 echo
2996 test "$ac_signal" != 0 &&
2997 $as_echo "$as_me: caught signal $ac_signal"
2998 $as_echo "$as_me: exit $exit_status"
2999 } >&5
3000 rm -f core *.core core.conftest.* &&
3001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3002 exit $exit_status
3004 for ac_signal in 1 2 13 15; do
3005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3006 done
3007 ac_signal=0
3009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3010 rm -f -r conftest* confdefs.h
3012 $as_echo "/* confdefs.h */" > confdefs.h
3014 # Predefined preprocessor variables.
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_NAME "$PACKAGE_NAME"
3018 _ACEOF
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3022 _ACEOF
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3026 _ACEOF
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_STRING "$PACKAGE_STRING"
3030 _ACEOF
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3034 _ACEOF
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_URL "$PACKAGE_URL"
3038 _ACEOF
3041 # Let the site file select an alternate cache file if it wants to.
3042 # Prefer an explicitly selected file to automatically selected ones.
3043 ac_site_file1=NONE
3044 ac_site_file2=NONE
3045 if test -n "$CONFIG_SITE"; then
3046 ac_site_file1=$CONFIG_SITE
3047 elif test "x$prefix" != xNONE; then
3048 ac_site_file1=$prefix/share/config.site
3049 ac_site_file2=$prefix/etc/config.site
3050 else
3051 ac_site_file1=$ac_default_prefix/share/config.site
3052 ac_site_file2=$ac_default_prefix/etc/config.site
3054 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3056 test "x$ac_site_file" = xNONE && continue
3057 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3059 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3060 sed 's/^/| /' "$ac_site_file" >&5
3061 . "$ac_site_file"
3063 done
3065 if test -r "$cache_file"; then
3066 # Some versions of bash will fail to source /dev/null (special files
3067 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3068 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3070 $as_echo "$as_me: loading cache $cache_file" >&6;}
3071 case $cache_file in
3072 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3073 *) . "./$cache_file";;
3074 esac
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3078 $as_echo "$as_me: creating cache $cache_file" >&6;}
3079 >$cache_file
3082 as_fn_append ac_header_list " stdlib.h"
3083 as_fn_append ac_header_list " unistd.h"
3084 as_fn_append ac_header_list " sys/param.h"
3085 as_fn_append ac_func_list " readlinkat"
3086 gl_getopt_required=GNU
3087 as_fn_append ac_header_list " getopt.h"
3088 as_fn_append ac_header_list " wchar.h"
3089 as_fn_append ac_header_list " stdint.h"
3090 as_fn_append ac_header_list " inttypes.h"
3091 as_fn_append ac_func_list " lstat"
3092 as_fn_append ac_func_list " alarm"
3093 as_fn_append ac_func_list " readlink"
3094 as_fn_append ac_header_list " sys/socket.h"
3095 as_fn_append ac_func_list " tzset"
3096 as_fn_append ac_func_list " symlink"
3097 as_fn_append ac_header_list " sys/stat.h"
3098 as_fn_append ac_header_list " sys/time.h"
3099 as_fn_append ac_func_list " localtime_r"
3100 # Check that the precious variables saved in the cache have kept the same
3101 # value.
3102 ac_cache_corrupted=false
3103 for ac_var in $ac_precious_vars; do
3104 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3105 eval ac_new_set=\$ac_env_${ac_var}_set
3106 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3107 eval ac_new_val=\$ac_env_${ac_var}_value
3108 case $ac_old_set,$ac_new_set in
3109 set,)
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3111 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3112 ac_cache_corrupted=: ;;
3113 ,set)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3115 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3116 ac_cache_corrupted=: ;;
3117 ,);;
3119 if test "x$ac_old_val" != "x$ac_new_val"; then
3120 # differences in whitespace do not lead to failure.
3121 ac_old_val_w=`echo x $ac_old_val`
3122 ac_new_val_w=`echo x $ac_new_val`
3123 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3125 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3126 ac_cache_corrupted=:
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3129 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3130 eval $ac_var=\$ac_old_val
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3133 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3135 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3136 fi;;
3137 esac
3138 # Pass precious variables to config.status.
3139 if test "$ac_new_set" = set; then
3140 case $ac_new_val in
3141 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3142 *) ac_arg=$ac_var=$ac_new_val ;;
3143 esac
3144 case " $ac_configure_args " in
3145 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3146 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3147 esac
3149 done
3150 if $ac_cache_corrupted; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3154 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3155 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157 ## -------------------- ##
3158 ## Main body of script. ##
3159 ## -------------------- ##
3161 ac_ext=c
3162 ac_cpp='$CPP $CPPFLAGS'
3163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3171 am__api_version='1.11'
3173 ac_aux_dir=
3174 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3175 for ac_t in install-sh install.sh shtool; do
3176 if test -f "$ac_dir/$ac_t"; then
3177 ac_aux_dir=$ac_dir
3178 ac_install_sh="$ac_aux_dir/$ac_t -c"
3179 break 2
3181 done
3182 done
3183 if test -z "$ac_aux_dir"; then
3184 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3187 # These three variables are undocumented and unsupported,
3188 # and are intended to be withdrawn in a future Autoconf release.
3189 # They can cause serious problems if a builder's source tree is in a directory
3190 # whose full name contains unusual characters.
3191 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3192 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3193 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3196 # Find a good install program. We prefer a C program (faster),
3197 # so one script is as good as another. But avoid the broken or
3198 # incompatible versions:
3199 # SysV /etc/install, /usr/sbin/install
3200 # SunOS /usr/etc/install
3201 # IRIX /sbin/install
3202 # AIX /bin/install
3203 # AmigaOS /C/install, which installs bootblocks on floppy discs
3204 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3205 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3206 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3207 # OS/2's system install, which has a completely different semantic
3208 # ./install, which can be erroneously created by make from ./install.sh.
3209 # Reject install programs that cannot install multiple files.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3211 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3212 if test -z "$INSTALL"; then
3213 if test "${ac_cv_path_install+set}" = set; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 # Account for people who put trailing slashes in PATH elements.
3222 case $as_dir/ in #((
3223 ./ | .// | /[cC]/* | \
3224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3225 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3226 /usr/ucb/* ) ;;
3228 # OSF1 and SCO ODT 3.0 have their own names for install.
3229 # Don't use installbsd from OSF since it installs stuff as root
3230 # by default.
3231 for ac_prog in ginstall scoinst install; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3234 if test $ac_prog = install &&
3235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3236 # AIX install. It has an incompatible calling convention.
3238 elif test $ac_prog = install &&
3239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3240 # program-specific install script used by HP pwplus--don't use.
3242 else
3243 rm -rf conftest.one conftest.two conftest.dir
3244 echo one > conftest.one
3245 echo two > conftest.two
3246 mkdir conftest.dir
3247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3248 test -s conftest.one && test -s conftest.two &&
3249 test -s conftest.dir/conftest.one &&
3250 test -s conftest.dir/conftest.two
3251 then
3252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3253 break 3
3257 done
3258 done
3260 esac
3262 done
3263 IFS=$as_save_IFS
3265 rm -rf conftest.one conftest.two conftest.dir
3268 if test "${ac_cv_path_install+set}" = set; then
3269 INSTALL=$ac_cv_path_install
3270 else
3271 # As a last resort, use the slow shell script. Don't cache a
3272 # value for INSTALL within a source directory, because that will
3273 # break other packages using the cache if that directory is
3274 # removed, or if the value is a relative name.
3275 INSTALL=$ac_install_sh
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3279 $as_echo "$INSTALL" >&6; }
3281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3282 # It thinks the first close brace ends the variable substitution.
3283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3290 $as_echo_n "checking whether build environment is sane... " >&6; }
3291 # Just in case
3292 sleep 1
3293 echo timestamp > conftest.file
3294 # Reject unsafe characters in $srcdir or the absolute working directory
3295 # name. Accept space and tab only in the latter.
3296 am_lf='
3298 case `pwd` in
3299 *[\\\"\#\$\&\'\`$am_lf]*)
3300 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3301 esac
3302 case $srcdir in
3303 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3304 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3305 esac
3307 # Do `set' in a subshell so we don't clobber the current shell's
3308 # arguments. Must try -L first in case configure is actually a
3309 # symlink; some systems play weird games with the mod time of symlinks
3310 # (eg FreeBSD returns the mod time of the symlink's containing
3311 # directory).
3312 if (
3313 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3314 if test "$*" = "X"; then
3315 # -L didn't work.
3316 set X `ls -t "$srcdir/configure" conftest.file`
3318 rm -f conftest.file
3319 if test "$*" != "X $srcdir/configure conftest.file" \
3320 && test "$*" != "X conftest.file $srcdir/configure"; then
3322 # If neither matched, then we have a broken ls. This can happen
3323 # if, for instance, CONFIG_SHELL is bash and it inherits a
3324 # broken ls alias from the environment. This has actually
3325 # happened. Such a system could not be considered "sane".
3326 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3327 alias in your environment" "$LINENO" 5
3330 test "$2" = conftest.file
3332 then
3333 # Ok.
3335 else
3336 as_fn_error "newly created file is older than distributed files!
3337 Check your system clock" "$LINENO" 5
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 test "$program_prefix" != NONE &&
3342 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3343 # Use a double $ so make ignores it.
3344 test "$program_suffix" != NONE &&
3345 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3346 # Double any \ or $.
3347 # By default was `s,x,x', remove it if useless.
3348 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3349 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3351 # expand $ac_aux_dir to an absolute path
3352 am_aux_dir=`cd $ac_aux_dir && pwd`
3354 if test x"${MISSING+set}" != xset; then
3355 case $am_aux_dir in
3356 *\ * | *\ *)
3357 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3359 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3360 esac
3362 # Use eval to expand $SHELL
3363 if eval "$MISSING --run true"; then
3364 am_missing_run="$MISSING --run "
3365 else
3366 am_missing_run=
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3368 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3371 if test x"${install_sh}" != xset; then
3372 case $am_aux_dir in
3373 *\ * | *\ *)
3374 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3376 install_sh="\${SHELL} $am_aux_dir/install-sh"
3377 esac
3380 # Installed binaries are usually stripped using `strip' when the user
3381 # run `make install-strip'. However `strip' might not be the right
3382 # tool to use in cross-compilation environments, therefore Automake
3383 # will honor the `STRIP' environment variable to overrule this program.
3384 if test "$cross_compiling" != no; then
3385 if test -n "$ac_tool_prefix"; then
3386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}strip; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_STRIP+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 if test -n "$STRIP"; then
3394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3409 IFS=$as_save_IFS
3413 STRIP=$ac_cv_prog_STRIP
3414 if test -n "$STRIP"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3416 $as_echo "$STRIP" >&6; }
3417 else
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3424 if test -z "$ac_cv_prog_STRIP"; then
3425 ac_ct_STRIP=$STRIP
3426 # Extract the first word of "strip", so it can be a program name with args.
3427 set dummy strip; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$ac_ct_STRIP"; then
3434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_STRIP="strip"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3447 done
3448 done
3449 IFS=$as_save_IFS
3453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3454 if test -n "$ac_ct_STRIP"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3456 $as_echo "$ac_ct_STRIP" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3462 if test "x$ac_ct_STRIP" = x; then
3463 STRIP=":"
3464 else
3465 case $cross_compiling:$ac_tool_warned in
3466 yes:)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3469 ac_tool_warned=yes ;;
3470 esac
3471 STRIP=$ac_ct_STRIP
3473 else
3474 STRIP="$ac_cv_prog_STRIP"
3478 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3481 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3482 if test -z "$MKDIR_P"; then
3483 if test "${ac_cv_path_mkdir+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_prog in mkdir gmkdir; do
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3494 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3495 'mkdir (GNU coreutils) '* | \
3496 'mkdir (coreutils) '* | \
3497 'mkdir (fileutils) '4.1*)
3498 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3499 break 3;;
3500 esac
3501 done
3502 done
3503 done
3504 IFS=$as_save_IFS
3508 test -d ./--version && rmdir ./--version
3509 if test "${ac_cv_path_mkdir+set}" = set; then
3510 MKDIR_P="$ac_cv_path_mkdir -p"
3511 else
3512 # As a last resort, use the slow shell script. Don't cache a
3513 # value for MKDIR_P within a source directory, because that will
3514 # break other packages using the cache if that directory is
3515 # removed, or if the value is a relative name.
3516 MKDIR_P="$ac_install_sh -d"
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3520 $as_echo "$MKDIR_P" >&6; }
3523 mkdir_p="$MKDIR_P"
3524 case $mkdir_p in
3525 [\\/$]* | ?:[\\/]*) ;;
3526 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3527 esac
3529 for ac_prog in gawk mawk nawk awk
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_AWK+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$AWK"; then
3539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_AWK="$ac_prog"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 AWK=$ac_cv_prog_AWK
3559 if test -n "$AWK"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3561 $as_echo "$AWK" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3568 test -n "$AWK" && break
3569 done
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3573 set x ${MAKE-make}
3574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 cat >conftest.make <<\_ACEOF
3579 SHELL = /bin/sh
3580 all:
3581 @echo '@@@%%%=$(MAKE)=@@@%%%'
3582 _ACEOF
3583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3585 *@@@%%%=?*=@@@%%%*)
3586 eval ac_cv_prog_make_${ac_make}_set=yes;;
3588 eval ac_cv_prog_make_${ac_make}_set=no;;
3589 esac
3590 rm -f conftest.make
3592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 SET_MAKE=
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 SET_MAKE="MAKE=${MAKE-make}"
3602 rm -rf .tst 2>/dev/null
3603 mkdir .tst 2>/dev/null
3604 if test -d .tst; then
3605 am__leading_dot=.
3606 else
3607 am__leading_dot=_
3609 rmdir .tst 2>/dev/null
3611 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3612 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3613 # is not polluted with repeated "-I."
3614 am__isrc=' -I$(srcdir)'
3615 # test to see if srcdir already configured
3616 if test -f $srcdir/config.status; then
3617 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3621 # test whether we have cygpath
3622 if test -z "$CYGPATH_W"; then
3623 if (cygpath --version) >/dev/null 2>/dev/null; then
3624 CYGPATH_W='cygpath -w'
3625 else
3626 CYGPATH_W=echo
3631 # Define the identity of the package.
3632 PACKAGE='emacs'
3633 VERSION='24.0.50'
3636 cat >>confdefs.h <<_ACEOF
3637 #define PACKAGE "$PACKAGE"
3638 _ACEOF
3641 cat >>confdefs.h <<_ACEOF
3642 #define VERSION "$VERSION"
3643 _ACEOF
3645 # Some tools Automake needs.
3647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3661 # We need awk for the "check" target. The system "awk" is bad on
3662 # some platforms.
3663 # Always define AMTAR for backward compatibility.
3665 AMTAR=${AMTAR-"${am_missing_run}tar"}
3667 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3676 lispdir='${datadir}/emacs/${version}/lisp'
3677 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3678 '${datadir}/emacs/site-lisp'
3679 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3680 etcdir='${datadir}/emacs/${version}/etc'
3681 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3682 docdir='${datadir}/emacs/${version}/etc'
3683 gamedir='${localstatedir}/games/emacs'
3688 # Check whether --with-pop was given.
3689 if test "${with_pop+set}" = set; then :
3690 withval=$with_pop;
3691 else
3692 with_pop=yes
3695 if test "$with_pop" = yes; then
3696 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3701 # Check whether --with-kerberos was given.
3702 if test "${with_kerberos+set}" = set; then :
3703 withval=$with_kerberos;
3704 else
3705 with_kerberos=no
3708 if test "$with_kerberos" != no; then
3709 $as_echo "#define KERBEROS 1" >>confdefs.h
3714 # Check whether --with-kerberos5 was given.
3715 if test "${with_kerberos5+set}" = set; then :
3716 withval=$with_kerberos5;
3717 else
3718 with_kerberos5=no
3721 if test "${with_kerberos5}" != no; then
3722 if test "${with_kerberos}" = no; then
3723 with_kerberos=yes
3724 $as_echo "#define KERBEROS 1" >>confdefs.h
3728 $as_echo "#define KERBEROS5 1" >>confdefs.h
3733 # Check whether --with-hesiod was given.
3734 if test "${with_hesiod+set}" = set; then :
3735 withval=$with_hesiod;
3736 else
3737 with_hesiod=no
3740 if test "$with_hesiod" != no; then
3742 $as_echo "#define HESIOD 1" >>confdefs.h
3747 # Check whether --with-mmdf was given.
3748 if test "${with_mmdf+set}" = set; then :
3749 withval=$with_mmdf;
3750 else
3751 with_mmdf=no
3754 if test "$with_mmdf" != no; then
3756 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3761 # Check whether --with-mail-unlink was given.
3762 if test "${with_mail_unlink+set}" = set; then :
3763 withval=$with_mail_unlink;
3764 else
3765 with_mail_unlink=no
3768 if test "$with_mail_unlink" != no; then
3770 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3775 # Check whether --with-mailhost was given.
3776 if test "${with_mailhost+set}" = set; then :
3777 withval=$with_mailhost;
3778 cat >>confdefs.h <<_ACEOF
3779 #define MAILHOST "$withval"
3780 _ACEOF
3786 # Check whether --with-sound was given.
3787 if test "${with_sound+set}" = set; then :
3788 withval=$with_sound;
3789 else
3790 with_sound=yes
3795 # Check whether --with-sync-input was given.
3796 if test "${with_sync_input+set}" = set; then :
3797 withval=$with_sync_input;
3798 else
3799 with_sync_input=yes
3802 if test "$with_sync_input" = yes; then
3804 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3809 # Check whether --with-x-toolkit was given.
3810 if test "${with_x_toolkit+set}" = set; then :
3811 withval=$with_x_toolkit; case "${withval}" in
3812 y | ye | yes ) val=gtk ;;
3813 n | no ) val=no ;;
3814 l | lu | luc | luci | lucid ) val=lucid ;;
3815 a | at | ath | athe | athen | athena ) val=athena ;;
3816 m | mo | mot | moti | motif ) val=motif ;;
3817 g | gt | gtk ) val=gtk ;;
3818 gtk3 ) val=gtk3 ;;
3820 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3821 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3822 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3824 esac
3825 with_x_toolkit=$val
3831 # Check whether --with-wide-int was given.
3832 if test "${with_wide_int+set}" = set; then :
3833 withval=$with_wide_int;
3834 else
3835 with_wide_int=no
3838 if test "$with_wide_int" = yes; then
3840 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3845 # Check whether --with-xpm was given.
3846 if test "${with_xpm+set}" = set; then :
3847 withval=$with_xpm;
3848 else
3849 with_xpm=yes
3853 # Check whether --with-jpeg was given.
3854 if test "${with_jpeg+set}" = set; then :
3855 withval=$with_jpeg;
3856 else
3857 with_jpeg=yes
3861 # Check whether --with-tiff was given.
3862 if test "${with_tiff+set}" = set; then :
3863 withval=$with_tiff;
3864 else
3865 with_tiff=yes
3869 # Check whether --with-gif was given.
3870 if test "${with_gif+set}" = set; then :
3871 withval=$with_gif;
3872 else
3873 with_gif=yes
3877 # Check whether --with-png was given.
3878 if test "${with_png+set}" = set; then :
3879 withval=$with_png;
3880 else
3881 with_png=yes
3885 # Check whether --with-rsvg was given.
3886 if test "${with_rsvg+set}" = set; then :
3887 withval=$with_rsvg;
3888 else
3889 with_rsvg=yes
3893 # Check whether --with-xml2 was given.
3894 if test "${with_xml2+set}" = set; then :
3895 withval=$with_xml2;
3896 else
3897 with_xml2=yes
3901 # Check whether --with-imagemagick was given.
3902 if test "${with_imagemagick+set}" = set; then :
3903 withval=$with_imagemagick;
3904 else
3905 with_imagemagick=yes
3910 # Check whether --with-xft was given.
3911 if test "${with_xft+set}" = set; then :
3912 withval=$with_xft;
3913 else
3914 with_xft=yes
3918 # Check whether --with-libotf was given.
3919 if test "${with_libotf+set}" = set; then :
3920 withval=$with_libotf;
3921 else
3922 with_libotf=yes
3926 # Check whether --with-m17n-flt was given.
3927 if test "${with_m17n_flt+set}" = set; then :
3928 withval=$with_m17n_flt;
3929 else
3930 with_m17n_flt=yes
3935 # Check whether --with-toolkit-scroll-bars was given.
3936 if test "${with_toolkit_scroll_bars+set}" = set; then :
3937 withval=$with_toolkit_scroll_bars;
3938 else
3939 with_toolkit_scroll_bars=yes
3943 # Check whether --with-xaw3d was given.
3944 if test "${with_xaw3d+set}" = set; then :
3945 withval=$with_xaw3d;
3946 else
3947 with_xaw3d=yes
3951 # Check whether --with-xim was given.
3952 if test "${with_xim+set}" = set; then :
3953 withval=$with_xim;
3954 else
3955 with_xim=yes
3959 # Check whether --with-ns was given.
3960 if test "${with_ns+set}" = set; then :
3961 withval=$with_ns;
3962 else
3963 with_ns=no
3968 # Check whether --with-gpm was given.
3969 if test "${with_gpm+set}" = set; then :
3970 withval=$with_gpm;
3971 else
3972 with_gpm=yes
3976 # Check whether --with-dbus was given.
3977 if test "${with_dbus+set}" = set; then :
3978 withval=$with_dbus;
3979 else
3980 with_dbus=yes
3984 # Check whether --with-gconf was given.
3985 if test "${with_gconf+set}" = set; then :
3986 withval=$with_gconf;
3987 else
3988 with_gconf=yes
3992 # Check whether --with-selinux was given.
3993 if test "${with_selinux+set}" = set; then :
3994 withval=$with_selinux;
3995 else
3996 with_selinux=yes
4000 # Check whether --with-gnutls was given.
4001 if test "${with_gnutls+set}" = set; then :
4002 withval=$with_gnutls;
4003 else
4004 with_gnutls=yes
4008 ## For the times when you want to build Emacs but don't have
4009 ## a suitable makeinfo, and can live without the manuals.
4011 # Check whether --with-makeinfo was given.
4012 if test "${with_makeinfo+set}" = set; then :
4013 withval=$with_makeinfo;
4014 else
4015 with_makeinfo=yes
4019 ## This is an option because I do not know if all info/man support
4020 ## compressed files, nor how to test if they do so.
4022 # Check whether --with-compress-info was given.
4023 if test "${with_compress_info+set}" = set; then :
4024 withval=$with_compress_info;
4025 else
4026 with_compress_info=yes
4029 if test $with_compress_info = yes; then
4030 GZIP_INFO=yes
4031 else
4032 GZIP_INFO=
4037 # Check whether --with-pkg-config-prog was given.
4038 if test "${with_pkg_config_prog+set}" = set; then :
4039 withval=$with_pkg_config_prog;
4042 if test "X${with_pkg_config_prog}" != X; then
4043 if test "${with_pkg_config_prog}" != yes; then
4044 PKG_CONFIG="${with_pkg_config_prog}"
4048 CRT_DIR=
4050 # Check whether --with-crt-dir was given.
4051 if test "${with_crt_dir+set}" = set; then :
4052 withval=$with_crt_dir;
4055 CRT_DIR="${with_crt_dir}"
4058 # Check whether --with-gameuser was given.
4059 if test "${with_gameuser+set}" = set; then :
4060 withval=$with_gameuser;
4063 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4064 && gameuser="${with_gameuser}"
4065 test "X$gameuser" = X && gameuser=games
4068 # Check whether --with-gnustep-conf was given.
4069 if test "${with_gnustep_conf+set}" = set; then :
4070 withval=$with_gnustep_conf;
4073 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4074 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4075 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4076 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4078 # Check whether --enable-ns-self-contained was given.
4079 if test "${enable_ns_self_contained+set}" = set; then :
4080 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4081 else
4082 EN_NS_SELF_CONTAINED=yes
4086 # Check whether --enable-asserts was given.
4087 if test "${enable_asserts+set}" = set; then :
4088 enableval=$enable_asserts; USE_XASSERTS=$enableval
4089 else
4090 USE_XASSERTS=no
4094 # Check whether --enable-maintainer-mode was given.
4095 if test "${enable_maintainer_mode+set}" = set; then :
4096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4097 else
4098 USE_MAINTAINER_MODE=yes
4101 if test $USE_MAINTAINER_MODE = yes; then
4102 MAINT=
4103 else
4104 MAINT=#
4108 # Check whether --enable-locallisppath was given.
4109 if test "${enable_locallisppath+set}" = set; then :
4110 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4111 locallisppath=
4112 elif test "${enableval}" != "yes"; then
4113 locallisppath=${enableval}
4118 # Check whether --enable-checking was given.
4119 if test "${enable_checking+set}" = set; then :
4120 enableval=$enable_checking; ac_checking_flags="${enableval}"
4123 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4124 for check in $ac_checking_flags
4126 case $check in
4127 # these set all the flags to specific states
4128 yes) ac_enable_checking=1 ;;
4129 no) ac_enable_checking= ;
4130 ac_gc_check_stringbytes= ;
4131 ac_gc_check_string_overrun= ;
4132 ac_gc_check_string_free_list= ;
4133 ac_xmalloc_overrun= ;
4134 ac_gc_check_cons_list= ;;
4135 all) ac_enable_checking=1 ;
4136 ac_gc_check_stringbytes=1 ;
4137 ac_gc_check_string_overrun=1 ;
4138 ac_gc_check_string_free_list=1 ;
4139 ac_xmalloc_overrun=1 ;
4140 ac_gc_check_cons_list=1 ;;
4141 # these enable particular checks
4142 stringbytes) ac_gc_check_stringbytes=1 ;;
4143 stringoverrun) ac_gc_check_string_overrun=1 ;;
4144 stringfreelist) ac_gc_check_string_free_list=1 ;;
4145 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4146 conslist) ac_gc_check_cons_list=1 ;;
4147 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4148 esac
4149 done
4150 IFS="$ac_save_IFS"
4152 if test x$ac_enable_checking != x ; then
4154 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4157 if test x$ac_gc_check_stringbytes != x ; then
4159 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4162 if test x$ac_gc_check_string_overrun != x ; then
4164 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4167 if test x$ac_gc_check_string_free_list != x ; then
4169 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4172 if test x$ac_xmalloc_overrun != x ; then
4174 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4177 if test x$ac_gc_check_cons_list != x ; then
4179 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4183 # Check whether --enable-use-lisp-union-type was given.
4184 if test "${enable_use_lisp_union_type+set}" = set; then :
4185 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4187 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4194 # Check whether --enable-profiling was given.
4195 if test "${enable_profiling+set}" = set; then :
4196 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4199 if test x$ac_enable_profiling != x ; then
4200 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4201 else
4202 PROFILING_CFLAGS=
4206 # Check whether --enable-autodepend was given.
4207 if test "${enable_autodepend+set}" = set; then :
4208 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4209 else
4210 ac_enable_autodepend=yes
4214 #### Make srcdir absolute, if it isn't already. It's important to
4215 #### avoid running the path through pwd unnecessarily, since pwd can
4216 #### give you automounter prefixes, which can go away. We do all this
4217 #### so Emacs can find its files when run uninstalled.
4218 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4219 unset CDPATH
4220 case "${srcdir}" in
4221 /* ) ;;
4223 ## We may be able to use the $PWD environment variable to make this
4224 ## absolute. But sometimes PWD is inaccurate.
4225 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4226 ## but that tested only for a well-formed and valid PWD,
4227 ## it did not object when PWD was well-formed and valid but just wrong.
4228 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4229 then
4230 srcdir="$PWD"
4231 else
4232 srcdir="`(cd ${srcdir}; pwd)`"
4235 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4236 esac
4238 #### Given the configuration name, set machfile and opsysfile to the
4239 #### names of the m/*.h and s/*.h files we should use.
4241 ### Canonicalize the configuration name.
4243 # Make sure we can run config.sub.
4244 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4245 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4248 $as_echo_n "checking build system type... " >&6; }
4249 if test "${ac_cv_build+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 ac_build_alias=$build_alias
4253 test "x$ac_build_alias" = x &&
4254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4255 test "x$ac_build_alias" = x &&
4256 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4257 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4258 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4262 $as_echo "$ac_cv_build" >&6; }
4263 case $ac_cv_build in
4264 *-*-*) ;;
4265 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4266 esac
4267 build=$ac_cv_build
4268 ac_save_IFS=$IFS; IFS='-'
4269 set x $ac_cv_build
4270 shift
4271 build_cpu=$1
4272 build_vendor=$2
4273 shift; shift
4274 # Remember, the first character of IFS is used to create $*,
4275 # except with old shells:
4276 build_os=$*
4277 IFS=$ac_save_IFS
4278 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4282 $as_echo_n "checking host system type... " >&6; }
4283 if test "${ac_cv_host+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if test "x$host_alias" = x; then
4287 ac_cv_host=$ac_cv_build
4288 else
4289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4290 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4295 $as_echo "$ac_cv_host" >&6; }
4296 case $ac_cv_host in
4297 *-*-*) ;;
4298 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4299 esac
4300 host=$ac_cv_host
4301 ac_save_IFS=$IFS; IFS='-'
4302 set x $ac_cv_host
4303 shift
4304 host_cpu=$1
4305 host_vendor=$2
4306 shift; shift
4307 # Remember, the first character of IFS is used to create $*,
4308 # except with old shells:
4309 host_os=$*
4310 IFS=$ac_save_IFS
4311 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4314 canonical=$host
4315 configuration=${host_alias-${build_alias-$host}}
4319 ### If you add support for a new configuration, add code to this
4320 ### switch statement to recognize your configuration name and select
4321 ### the appropriate operating system and machine description files.
4323 ### You would hope that you could choose an m/*.h file pretty much
4324 ### based on the machine portion of the configuration name, and an s/*.h
4325 ### file based on the operating system portion. However, it turns out
4326 ### that each m/*.h file is pretty manufacturer-specific - for
4327 ### example mips.h is MIPS
4328 ### So we basically have to have a special case for each
4329 ### configuration name.
4331 ### As far as handling version numbers on operating systems is
4332 ### concerned, make sure things will fail in a fixable way. If
4333 ### /etc/MACHINES doesn't say anything about version numbers, be
4334 ### prepared to handle anything reasonably. If version numbers
4335 ### matter, be sure /etc/MACHINES says something about it.
4337 machine='' opsys='' unported=no
4338 case "${canonical}" in
4340 ## GNU/Linux ports
4341 *-*-linux-gnu*)
4342 opsys=gnu-linux
4343 case ${canonical} in
4344 alpha*) machine=alpha ;;
4345 s390-*) machine=ibms390 ;;
4346 s390x-*) machine=ibms390x ;;
4347 powerpc*) machine=macppc ;;
4348 sparc*) machine=sparc ;;
4349 ia64*) machine=ia64 ;;
4350 m68k*) machine=m68k ;;
4351 x86_64*) machine=amdx86-64 ;;
4352 esac
4355 ## FreeBSD ports
4356 *-*-freebsd* )
4357 opsys=freebsd
4358 case "${canonical}" in
4359 alpha*) machine=alpha ;;
4360 amd64-*|x86_64-*) machine=amdx86-64 ;;
4361 ia64-*) machine=ia64 ;;
4362 i[3456]86-*) machine=intel386 ;;
4363 powerpc-*) machine=macppc ;;
4364 sparc-*) machine=sparc ;;
4365 sparc64-*) machine=sparc ;;
4366 esac
4369 ## FreeBSD kernel + glibc based userland
4370 *-*-kfreebsd*gnu* )
4371 opsys=gnu-kfreebsd
4372 case "${canonical}" in
4373 alpha*) machine=alpha ;;
4374 amd64-*|x86_64-*) machine=amdx86-64 ;;
4375 ia64-*) machine=ia64 ;;
4376 i[3456]86-*) machine=intel386 ;;
4377 powerpc-*) machine=macppc ;;
4378 sparc-*) machine=sparc ;;
4379 sparc64-*) machine=sparc ;;
4380 esac
4383 ## NetBSD ports
4384 *-*-netbsd* )
4385 opsys=netbsd
4386 case "${canonical}" in
4387 alpha*) machine=alpha ;;
4388 x86_64-*) machine=amdx86-64 ;;
4389 i[3456]86-*) machine=intel386 ;;
4390 m68k-*) machine=m68k ;;
4391 powerpc-*) machine=macppc ;;
4392 sparc*-) machine=sparc ;;
4393 vax-*) machine=vax ;;
4394 esac
4397 ## OpenBSD ports
4398 *-*-openbsd* )
4399 opsys=openbsd
4400 case "${canonical}" in
4401 alpha*) machine=alpha ;;
4402 x86_64-*) machine=amdx86-64 ;;
4403 i386-*) machine=intel386 ;;
4404 powerpc-*) machine=macppc ;;
4405 sparc*) machine=sparc ;;
4406 vax-*) machine=vax ;;
4407 esac
4410 ## Apple Darwin / Mac OS X
4411 *-apple-darwin* )
4412 case "${canonical}" in
4413 i[3456]86-* ) machine=intel386 ;;
4414 powerpc-* ) machine=macppc ;;
4415 x86_64-* ) machine=amdx86-64 ;;
4416 * ) unported=yes ;;
4417 esac
4418 opsys=darwin
4419 # Define CPP as follows to make autoconf work correctly.
4420 CPP="${CC-cc} -E -no-cpp-precomp"
4421 # Use fink packages if available.
4422 if test -d /sw/include && test -d /sw/lib; then
4423 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4424 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4425 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4429 ## HP 9000 series 700 and 800, running HP/UX
4430 hppa*-hp-hpux10.2* )
4431 opsys=hpux10-20
4433 hppa*-hp-hpux1[1-9]* )
4434 opsys=hpux11
4435 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4438 ia64*-hp-hpux1[1-9]* )
4439 machine=hp800 opsys=hpux11
4440 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4441 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4442 CANNOT_DUMP=yes
4445 hppa*-*-linux-gnu* )
4446 machine=hp800 opsys=gnu-linux
4449 ## IBM machines
4450 rs6000-ibm-aix4.[23]* )
4451 machine=ibmrs6000 opsys=aix4-2
4453 powerpc-ibm-aix4.[23]* )
4454 machine=ibmrs6000 opsys=aix4-2
4456 rs6000-ibm-aix[56]* )
4457 machine=ibmrs6000 opsys=aix4-2
4459 powerpc-ibm-aix[56]* )
4460 machine=ibmrs6000 opsys=aix4-2
4463 ## Silicon Graphics machines
4464 ## Iris 4D
4465 mips-sgi-irix6.5 )
4466 machine=iris4d opsys=irix6-5
4467 # Without defining _LANGUAGE_C, things get masked out in the headers
4468 # so that, for instance, grepping for `free' in stdlib.h fails and
4469 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4470 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4471 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4474 ## Suns
4475 *-sun-solaris* \
4476 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4477 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4478 case "${canonical}" in
4479 i[3456]86-*-* ) machine=intel386 ;;
4480 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4481 sparc* ) machine=sparc ;;
4482 * ) unported=yes ;;
4483 esac
4484 case "${canonical}" in
4485 *-sunos5.6* | *-solaris2.6* )
4486 opsys=sol2-6
4487 NON_GNU_CPP=/usr/ccs/lib/cpp
4488 RANLIB="ar -ts"
4490 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4491 opsys=sol2-6
4492 emacs_check_sunpro_c=yes
4493 NON_GNU_CPP=/usr/ccs/lib/cpp
4495 *-sunos5* | *-solaris* )
4496 opsys=sol2-10
4497 emacs_check_sunpro_c=yes
4498 NON_GNU_CPP=/usr/ccs/lib/cpp
4500 esac
4501 ## Watch out for a compiler that we know will not work.
4502 case "${canonical}" in
4503 *-solaris* | *-sunos5* )
4504 if [ "x$CC" = x/usr/ucb/cc ]; then
4505 ## /usr/ucb/cc doesn't work;
4506 ## we should find some other compiler that does work.
4507 unset CC
4510 *) ;;
4511 esac
4514 ## Intel 386 machines where we don't care about the manufacturer.
4515 i[3456]86-*-* )
4516 machine=intel386
4517 case "${canonical}" in
4518 *-cygwin ) opsys=cygwin ;;
4519 *-darwin* ) opsys=darwin
4520 CPP="${CC-cc} -E -no-cpp-precomp"
4522 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4523 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4524 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4525 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4526 esac
4530 unported=yes
4532 esac
4534 ### If the code above didn't choose an operating system, just choose
4535 ### an operating system based on the configuration name. You really
4536 ### only want to use this when you have no idea what the right
4537 ### operating system is; if you know what operating systems a machine
4538 ### runs, it's cleaner to make it explicit in the case statement
4539 ### above.
4540 if test x"${opsys}" = x; then
4541 case "${canonical}" in
4542 *-gnu* ) opsys=gnu ;;
4544 unported=yes
4546 esac
4551 if test $unported = yes; then
4552 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4553 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4556 if test -n "$machine"; then
4557 machfile="m/${machine}.h"
4558 else
4559 machfile=
4561 opsysfile="s/${opsys}.h"
4564 #### Choose a compiler.
4565 test -n "$CC" && cc_specified=yes
4567 # Save the value of CFLAGS that the user specified.
4568 SPECIFIED_CFLAGS="$CFLAGS"
4570 ac_ext=c
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 CC=$ac_cv_prog_CC
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4614 if test -z "$ac_cv_prog_CC"; then
4615 ac_ct_CC=$CC
4616 # Extract the first word of "gcc", so it can be a program name with args.
4617 set dummy gcc; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$ac_ct_CC"; then
4624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_ac_ct_CC="gcc"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4644 if test -n "$ac_ct_CC"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4646 $as_echo "$ac_ct_CC" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4652 if test "x$ac_ct_CC" = x; then
4653 CC=""
4654 else
4655 case $cross_compiling:$ac_tool_warned in
4656 yes:)
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4659 ac_tool_warned=yes ;;
4660 esac
4661 CC=$ac_ct_CC
4663 else
4664 CC="$ac_cv_prog_CC"
4667 if test -z "$CC"; then
4668 if test -n "$ac_tool_prefix"; then
4669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4670 set dummy ${ac_tool_prefix}cc; ac_word=$2
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_CC+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test -n "$CC"; then
4677 ac_cv_prog_CC="$CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686 ac_cv_prog_CC="${ac_tool_prefix}cc"
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4690 done
4691 done
4692 IFS=$as_save_IFS
4696 CC=$ac_cv_prog_CC
4697 if test -n "$CC"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4699 $as_echo "$CC" >&6; }
4700 else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 $as_echo "no" >&6; }
4708 if test -z "$CC"; then
4709 # Extract the first word of "cc", so it can be a program name with args.
4710 set dummy cc; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_prog_CC+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
4718 else
4719 ac_prog_rejected=no
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4728 ac_prog_rejected=yes
4729 continue
4731 ac_cv_prog_CC="cc"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4739 if test $ac_prog_rejected = yes; then
4740 # We found a bogon in the path, so make sure we never use it.
4741 set dummy $ac_cv_prog_CC
4742 shift
4743 if test $# != 0; then
4744 # We chose a different compiler from the bogus one.
4745 # However, it has the same basename, so the bogon will be chosen
4746 # first if we set CC to just the basename; use the full file name.
4747 shift
4748 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4753 CC=$ac_cv_prog_CC
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4764 if test -z "$CC"; then
4765 if test -n "$ac_tool_prefix"; then
4766 for ac_prog in cl.exe
4768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_CC+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$CC"; then
4776 ac_cv_prog_CC="$CC" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4789 done
4790 done
4791 IFS=$as_save_IFS
4795 CC=$ac_cv_prog_CC
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4805 test -n "$CC" && break
4806 done
4808 if test -z "$CC"; then
4809 ac_ct_CC=$CC
4810 for ac_prog in cl.exe
4812 # Extract the first word of "$ac_prog", so it can be a program name with args.
4813 set dummy $ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$ac_ct_CC"; then
4820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_ac_ct_CC="$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4840 if test -n "$ac_ct_CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4842 $as_echo "$ac_ct_CC" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$ac_ct_CC" && break
4850 done
4852 if test "x$ac_ct_CC" = x; then
4853 CC=""
4854 else
4855 case $cross_compiling:$ac_tool_warned in
4856 yes:)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859 ac_tool_warned=yes ;;
4860 esac
4861 CC=$ac_ct_CC
4868 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4870 as_fn_error "no acceptable C compiler found in \$PATH
4871 See \`config.log' for more details." "$LINENO" 5; }
4873 # Provide some information about the compiler.
4874 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4875 set X $ac_compile
4876 ac_compiler=$2
4877 for ac_option in --version -v -V -qversion; do
4878 { { ac_try="$ac_compiler $ac_option >&5"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4884 $as_echo "$ac_try_echo"; } >&5
4885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4886 ac_status=$?
4887 if test -s conftest.err; then
4888 sed '10a\
4889 ... rest of stderr output deleted ...
4890 10q' conftest.err >conftest.er1
4891 cat conftest.er1 >&5
4893 rm -f conftest.er1 conftest.err
4894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4895 test $ac_status = 0; }
4896 done
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4902 main ()
4906 return 0;
4908 _ACEOF
4909 ac_clean_files_save=$ac_clean_files
4910 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4911 # Try to create an executable without -o first, disregard a.out.
4912 # It will help us diagnose broken compilers, and finding out an intuition
4913 # of exeext.
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4915 $as_echo_n "checking whether the C compiler works... " >&6; }
4916 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4918 # The possible output files:
4919 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4921 ac_rmfiles=
4922 for ac_file in $ac_files
4924 case $ac_file in
4925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4926 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4927 esac
4928 done
4929 rm -f $ac_rmfiles
4931 if { { ac_try="$ac_link_default"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937 $as_echo "$ac_try_echo"; } >&5
4938 (eval "$ac_link_default") 2>&5
4939 ac_status=$?
4940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941 test $ac_status = 0; }; then :
4942 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4943 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4944 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4945 # so that the user can short-circuit this test for compilers unknown to
4946 # Autoconf.
4947 for ac_file in $ac_files ''
4949 test -f "$ac_file" || continue
4950 case $ac_file in
4951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4953 [ab].out )
4954 # We found the default executable, but exeext='' is most
4955 # certainly right.
4956 break;;
4957 *.* )
4958 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4959 then :; else
4960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4962 # We set ac_cv_exeext here because the later test for it is not
4963 # safe: cross compilers may not add the suffix if given an `-o'
4964 # argument, so we may need to know it at that point already.
4965 # Even if this section looks crufty: it has the advantage of
4966 # actually working.
4967 break;;
4969 break;;
4970 esac
4971 done
4972 test "$ac_cv_exeext" = no && ac_cv_exeext=
4974 else
4975 ac_file=''
4977 if test -z "$ac_file"; then :
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4985 { as_fn_set_status 77
4986 as_fn_error "C compiler cannot create executables
4987 See \`config.log' for more details." "$LINENO" 5; }; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990 $as_echo "yes" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4993 $as_echo_n "checking for C compiler default output file name... " >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4995 $as_echo "$ac_file" >&6; }
4996 ac_exeext=$ac_cv_exeext
4998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4999 ac_clean_files=$ac_clean_files_save
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5001 $as_echo_n "checking for suffix of executables... " >&6; }
5002 if { { ac_try="$ac_link"
5003 case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006 esac
5007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5008 $as_echo "$ac_try_echo"; } >&5
5009 (eval "$ac_link") 2>&5
5010 ac_status=$?
5011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5012 test $ac_status = 0; }; then :
5013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5015 # work properly (i.e., refer to `conftest.exe'), while it won't with
5016 # `rm'.
5017 for ac_file in conftest.exe conftest conftest.*; do
5018 test -f "$ac_file" || continue
5019 case $ac_file in
5020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5022 break;;
5023 * ) break;;
5024 esac
5025 done
5026 else
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 as_fn_error "cannot compute suffix of executables: cannot compile and link
5030 See \`config.log' for more details." "$LINENO" 5; }
5032 rm -f conftest conftest$ac_cv_exeext
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5034 $as_echo "$ac_cv_exeext" >&6; }
5036 rm -f conftest.$ac_ext
5037 EXEEXT=$ac_cv_exeext
5038 ac_exeext=$EXEEXT
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5041 #include <stdio.h>
5043 main ()
5045 FILE *f = fopen ("conftest.out", "w");
5046 return ferror (f) || fclose (f) != 0;
5049 return 0;
5051 _ACEOF
5052 ac_clean_files="$ac_clean_files conftest.out"
5053 # Check that the compiler produces executables we can run. If not, either
5054 # the compiler is broken, or we cross compile.
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5056 $as_echo_n "checking whether we are cross compiling... " >&6; }
5057 if test "$cross_compiling" != yes; then
5058 { { ac_try="$ac_link"
5059 case "(($ac_try" in
5060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061 *) ac_try_echo=$ac_try;;
5062 esac
5063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5064 $as_echo "$ac_try_echo"; } >&5
5065 (eval "$ac_link") 2>&5
5066 ac_status=$?
5067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5068 test $ac_status = 0; }
5069 if { ac_try='./conftest$ac_cv_exeext'
5070 { { case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5075 $as_echo "$ac_try_echo"; } >&5
5076 (eval "$ac_try") 2>&5
5077 ac_status=$?
5078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5079 test $ac_status = 0; }; }; then
5080 cross_compiling=no
5081 else
5082 if test "$cross_compiling" = maybe; then
5083 cross_compiling=yes
5084 else
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error "cannot run C compiled programs.
5088 If you meant to cross compile, use \`--host'.
5089 See \`config.log' for more details." "$LINENO" 5; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5094 $as_echo "$cross_compiling" >&6; }
5096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5097 ac_clean_files=$ac_clean_files_save
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5099 $as_echo_n "checking for suffix of object files... " >&6; }
5100 if test "${ac_cv_objext+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5107 main ()
5111 return 0;
5113 _ACEOF
5114 rm -f conftest.o conftest.obj
5115 if { { ac_try="$ac_compile"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121 $as_echo "$ac_try_echo"; } >&5
5122 (eval "$ac_compile") 2>&5
5123 ac_status=$?
5124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }; then :
5126 for ac_file in conftest.o conftest.obj conftest.*; do
5127 test -f "$ac_file" || continue;
5128 case $ac_file in
5129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5130 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5131 break;;
5132 esac
5133 done
5134 else
5135 $as_echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5140 as_fn_error "cannot compute suffix of object files: cannot compile
5141 See \`config.log' for more details." "$LINENO" 5; }
5143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5146 $as_echo "$ac_cv_objext" >&6; }
5147 OBJEXT=$ac_cv_objext
5148 ac_objext=$OBJEXT
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5151 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5158 main ()
5160 #ifndef __GNUC__
5161 choke me
5162 #endif
5165 return 0;
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_compiler_gnu=yes
5170 else
5171 ac_compiler_gnu=no
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5179 if test $ac_compiler_gnu = yes; then
5180 GCC=yes
5181 else
5182 GCC=
5184 ac_test_CFLAGS=${CFLAGS+set}
5185 ac_save_CFLAGS=$CFLAGS
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5188 if test "${ac_cv_prog_cc_g+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 ac_save_c_werror_flag=$ac_c_werror_flag
5192 ac_c_werror_flag=yes
5193 ac_cv_prog_cc_g=no
5194 CFLAGS="-g"
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5199 main ()
5203 return 0;
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"; then :
5207 ac_cv_prog_cc_g=yes
5208 else
5209 CFLAGS=""
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5214 main ()
5218 return 0;
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"; then :
5223 else
5224 ac_c_werror_flag=$ac_save_c_werror_flag
5225 CFLAGS="-g"
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5230 main ()
5234 return 0;
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 ac_cv_prog_cc_g=yes
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245 ac_c_werror_flag=$ac_save_c_werror_flag
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5248 $as_echo "$ac_cv_prog_cc_g" >&6; }
5249 if test "$ac_test_CFLAGS" = set; then
5250 CFLAGS=$ac_save_CFLAGS
5251 elif test $ac_cv_prog_cc_g = yes; then
5252 if test "$GCC" = yes; then
5253 CFLAGS="-g -O2"
5254 else
5255 CFLAGS="-g"
5257 else
5258 if test "$GCC" = yes; then
5259 CFLAGS="-O2"
5260 else
5261 CFLAGS=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5266 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 ac_cv_prog_cc_c89=no
5270 ac_save_CC=$CC
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <stdarg.h>
5274 #include <stdio.h>
5275 #include <sys/types.h>
5276 #include <sys/stat.h>
5277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5278 struct buf { int x; };
5279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5280 static char *e (p, i)
5281 char **p;
5282 int i;
5284 return p[i];
5286 static char *f (char * (*g) (char **, int), char **p, ...)
5288 char *s;
5289 va_list v;
5290 va_start (v,p);
5291 s = g (p, va_arg (v,int));
5292 va_end (v);
5293 return s;
5296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5297 function prototypes and stuff, but not '\xHH' hex character constants.
5298 These don't provoke an error unfortunately, instead are silently treated
5299 as 'x'. The following induces an error, until -std is added to get
5300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5301 array size at least. It's necessary to write '\x00'==0 to get something
5302 that's true only with -std. */
5303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5306 inside strings and character constants. */
5307 #define FOO(x) 'x'
5308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5310 int test (int i, double x);
5311 struct s1 {int (*f) (int a);};
5312 struct s2 {int (*f) (double a);};
5313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5314 int argc;
5315 char **argv;
5317 main ()
5319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5321 return 0;
5323 _ACEOF
5324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5327 CC="$ac_save_CC $ac_arg"
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_cv_prog_cc_c89=$ac_arg
5331 rm -f core conftest.err conftest.$ac_objext
5332 test "x$ac_cv_prog_cc_c89" != "xno" && break
5333 done
5334 rm -f conftest.$ac_ext
5335 CC=$ac_save_CC
5338 # AC_CACHE_VAL
5339 case "x$ac_cv_prog_cc_c89" in
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5342 $as_echo "none needed" >&6; } ;;
5343 xno)
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5345 $as_echo "unsupported" >&6; } ;;
5347 CC="$CC $ac_cv_prog_cc_c89"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5350 esac
5351 if test "x$ac_cv_prog_cc_c89" != xno; then :
5355 ac_ext=c
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 DEPDIR="${am__leading_dot}deps"
5362 ac_config_commands="$ac_config_commands depfiles"
5365 am_make=${MAKE-make}
5366 cat > confinc << 'END'
5367 am__doit:
5368 @echo this is the am__doit target
5369 .PHONY: am__doit
5371 # If we don't find an include directive, just comment out the code.
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5373 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5374 am__include="#"
5375 am__quote=
5376 _am_result=none
5377 # First try GNU make style include.
5378 echo "include confinc" > confmf
5379 # Ignore all kinds of additional output from `make'.
5380 case `$am_make -s -f confmf 2> /dev/null` in #(
5381 *the\ am__doit\ target*)
5382 am__include=include
5383 am__quote=
5384 _am_result=GNU
5386 esac
5387 # Now try BSD make style include.
5388 if test "$am__include" = "#"; then
5389 echo '.include "confinc"' > confmf
5390 case `$am_make -s -f confmf 2> /dev/null` in #(
5391 *the\ am__doit\ target*)
5392 am__include=.include
5393 am__quote="\""
5394 _am_result=BSD
5396 esac
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5401 $as_echo "$_am_result" >&6; }
5402 rm -f confinc confmf
5404 # Check whether --enable-dependency-tracking was given.
5405 if test "${enable_dependency_tracking+set}" = set; then :
5406 enableval=$enable_dependency_tracking;
5409 if test "x$enable_dependency_tracking" != xno; then
5410 am_depcomp="$ac_aux_dir/depcomp"
5411 AMDEPBACKSLASH='\'
5413 if test "x$enable_dependency_tracking" != xno; then
5414 AMDEP_TRUE=
5415 AMDEP_FALSE='#'
5416 else
5417 AMDEP_TRUE='#'
5418 AMDEP_FALSE=
5423 depcc="$CC" am_compiler_list=
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5426 $as_echo_n "checking dependency style of $depcc... " >&6; }
5427 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5431 # We make a subdir and do the tests there. Otherwise we can end up
5432 # making bogus files that we don't know about and never remove. For
5433 # instance it was reported that on HP-UX the gcc test will end up
5434 # making a dummy file named `D' -- because `-MD' means `put the output
5435 # in D'.
5436 mkdir conftest.dir
5437 # Copy depcomp to subdir because otherwise we won't find it if we're
5438 # using a relative directory.
5439 cp "$am_depcomp" conftest.dir
5440 cd conftest.dir
5441 # We will build objects and dependencies in a subdirectory because
5442 # it helps to detect inapplicable dependency modes. For instance
5443 # both Tru64's cc and ICC support -MD to output dependencies as a
5444 # side effect of compilation, but ICC will put the dependencies in
5445 # the current directory while Tru64 will put them in the object
5446 # directory.
5447 mkdir sub
5449 am_cv_CC_dependencies_compiler_type=none
5450 if test "$am_compiler_list" = ""; then
5451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5453 am__universal=false
5454 case " $depcc " in #(
5455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5456 esac
5458 for depmode in $am_compiler_list; do
5459 # Setup a source with many dependencies, because some compilers
5460 # like to wrap large dependency lists on column 80 (with \), and
5461 # we should not choose a depcomp mode which is confused by this.
5463 # We need to recreate these files for each test, as the compiler may
5464 # overwrite some of them when testing with obscure command lines.
5465 # This happens at least with the AIX C compiler.
5466 : > sub/conftest.c
5467 for i in 1 2 3 4 5 6; do
5468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5470 # Solaris 8's {/usr,}/bin/sh.
5471 touch sub/conftst$i.h
5472 done
5473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5476 # mode. It turns out that the SunPro C++ compiler does not properly
5477 # handle `-M -o', and we need to detect this. Also, some Intel
5478 # versions had trouble with output in subdirs
5479 am__obj=sub/conftest.${OBJEXT-o}
5480 am__minus_obj="-o $am__obj"
5481 case $depmode in
5482 gcc)
5483 # This depmode causes a compiler race in universal mode.
5484 test "$am__universal" = false || continue
5486 nosideeffect)
5487 # after this tag, mechanisms are not by side-effect, so they'll
5488 # only be used when explicitly requested
5489 if test "x$enable_dependency_tracking" = xyes; then
5490 continue
5491 else
5492 break
5495 msvisualcpp | msvcmsys)
5496 # This compiler won't grok `-c -o', but also, the minuso test has
5497 # not run yet. These depmodes are late enough in the game, and
5498 # so weak that their functioning should not be impacted.
5499 am__obj=conftest.${OBJEXT-o}
5500 am__minus_obj=
5502 none) break ;;
5503 esac
5504 if depmode=$depmode \
5505 source=sub/conftest.c object=$am__obj \
5506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5508 >/dev/null 2>conftest.err &&
5509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5513 # icc doesn't choke on unknown options, it will just issue warnings
5514 # or remarks (even with -Werror). So we grep stderr for any message
5515 # that says an option was ignored or not supported.
5516 # When given -MP, icc 7.0 and 7.1 complain thusly:
5517 # icc: Command line warning: ignoring option '-M'; no argument required
5518 # The diagnosis changed in icc 8.0:
5519 # icc: Command line remark: option '-MP' not supported
5520 if (grep 'ignoring option' conftest.err ||
5521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5522 am_cv_CC_dependencies_compiler_type=$depmode
5523 break
5526 done
5528 cd ..
5529 rm -rf conftest.dir
5530 else
5531 am_cv_CC_dependencies_compiler_type=none
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5536 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5540 test "x$enable_dependency_tracking" != xno \
5541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5542 am__fastdepCC_TRUE=
5543 am__fastdepCC_FALSE='#'
5544 else
5545 am__fastdepCC_TRUE='#'
5546 am__fastdepCC_FALSE=
5550 if test "x$CC" != xcc; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5552 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5555 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5557 set dummy $CC; ac_cc=`$as_echo "$2" |
5558 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5559 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5566 main ()
5570 return 0;
5572 _ACEOF
5573 # Make sure it works both with $CC and with simple cc.
5574 # We do the test twice because some compilers refuse to overwrite an
5575 # existing .o file with -o, though they will create one.
5576 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5577 rm -f conftest2.*
5578 if { { case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581 esac
5582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5583 $as_echo "$ac_try_echo"; } >&5
5584 (eval "$ac_try") 2>&5
5585 ac_status=$?
5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587 test $ac_status = 0; } &&
5588 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5593 $as_echo "$ac_try_echo"; } >&5
5594 (eval "$ac_try") 2>&5
5595 ac_status=$?
5596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5597 test $ac_status = 0; };
5598 then
5599 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5600 if test "x$CC" != xcc; then
5601 # Test first that cc exists at all.
5602 if { ac_try='cc -c conftest.$ac_ext >&5'
5603 { { case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5608 $as_echo "$ac_try_echo"; } >&5
5609 (eval "$ac_try") 2>&5
5610 ac_status=$?
5611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5612 test $ac_status = 0; }; }; then
5613 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5614 rm -f conftest2.*
5615 if { { case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5620 $as_echo "$ac_try_echo"; } >&5
5621 (eval "$ac_try") 2>&5
5622 ac_status=$?
5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624 test $ac_status = 0; } &&
5625 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5630 $as_echo "$ac_try_echo"; } >&5
5631 (eval "$ac_try") 2>&5
5632 ac_status=$?
5633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634 test $ac_status = 0; };
5635 then
5636 # cc works too.
5638 else
5639 # cc exists but doesn't like -o.
5640 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5644 else
5645 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5647 rm -f core conftest*
5650 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5657 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5661 # FIXME: we rely on the cache variable name because
5662 # there is no other way.
5663 set dummy $CC
5664 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5665 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5666 if test "$am_t" != yes; then
5667 # Losing compiler, so override with the script.
5668 # FIXME: It is wrong to rewrite CC.
5669 # But if we don't then we get into trouble of one sort or another.
5670 # A longer-term fix would be to have automake use am__CC in this case,
5671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5672 CC="$am_aux_dir/compile $CC"
5677 # Initialize gnulib right after verifying that the C compiler works.
5678 if test -n "$ac_tool_prefix"; then
5679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$RANLIB"; then
5687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5700 done
5701 done
5702 IFS=$as_save_IFS
5706 RANLIB=$ac_cv_prog_RANLIB
5707 if test -n "$RANLIB"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5709 $as_echo "$RANLIB" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5717 if test -z "$ac_cv_prog_RANLIB"; then
5718 ac_ct_RANLIB=$RANLIB
5719 # Extract the first word of "ranlib", so it can be a program name with args.
5720 set dummy ranlib; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$ac_ct_RANLIB"; then
5727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_ac_ct_RANLIB="ranlib"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5740 done
5741 done
5742 IFS=$as_save_IFS
5746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5747 if test -n "$ac_ct_RANLIB"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5749 $as_echo "$ac_ct_RANLIB" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5755 if test "x$ac_ct_RANLIB" = x; then
5756 RANLIB=":"
5757 else
5758 case $cross_compiling:$ac_tool_warned in
5759 yes:)
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5762 ac_tool_warned=yes ;;
5763 esac
5764 RANLIB=$ac_ct_RANLIB
5766 else
5767 RANLIB="$ac_cv_prog_RANLIB"
5771 ac_ext=c
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5778 # On Suns, sometimes $CPP names a directory.
5779 if test -n "$CPP" && test -d "$CPP"; then
5780 CPP=
5782 if test -z "$CPP"; then
5783 if test "${ac_cv_prog_CPP+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 # Double quotes because CPP needs to be expanded
5787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5789 ac_preproc_ok=false
5790 for ac_c_preproc_warn_flag in '' yes
5792 # Use a header file that comes with gcc, so configuring glibc
5793 # with a fresh cross-compiler works.
5794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5795 # <limits.h> exists even on freestanding compilers.
5796 # On the NeXT, cc -E runs the code through the compiler's parser,
5797 # not just through cpp. "Syntax error" is here to catch this case.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #ifdef __STDC__
5801 # include <limits.h>
5802 #else
5803 # include <assert.h>
5804 #endif
5805 Syntax error
5806 _ACEOF
5807 if ac_fn_c_try_cpp "$LINENO"; then :
5809 else
5810 # Broken: fails on valid input.
5811 continue
5813 rm -f conftest.err conftest.$ac_ext
5815 # OK, works on sane cases. Now check whether nonexistent headers
5816 # can be detected and how.
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <ac_nonexistent.h>
5820 _ACEOF
5821 if ac_fn_c_try_cpp "$LINENO"; then :
5822 # Broken: success on invalid input.
5823 continue
5824 else
5825 # Passes both tests.
5826 ac_preproc_ok=:
5827 break
5829 rm -f conftest.err conftest.$ac_ext
5831 done
5832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5833 rm -f conftest.err conftest.$ac_ext
5834 if $ac_preproc_ok; then :
5835 break
5838 done
5839 ac_cv_prog_CPP=$CPP
5842 CPP=$ac_cv_prog_CPP
5843 else
5844 ac_cv_prog_CPP=$CPP
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5847 $as_echo "$CPP" >&6; }
5848 ac_preproc_ok=false
5849 for ac_c_preproc_warn_flag in '' yes
5851 # Use a header file that comes with gcc, so configuring glibc
5852 # with a fresh cross-compiler works.
5853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5854 # <limits.h> exists even on freestanding compilers.
5855 # On the NeXT, cc -E runs the code through the compiler's parser,
5856 # not just through cpp. "Syntax error" is here to catch this case.
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #ifdef __STDC__
5860 # include <limits.h>
5861 #else
5862 # include <assert.h>
5863 #endif
5864 Syntax error
5865 _ACEOF
5866 if ac_fn_c_try_cpp "$LINENO"; then :
5868 else
5869 # Broken: fails on valid input.
5870 continue
5872 rm -f conftest.err conftest.$ac_ext
5874 # OK, works on sane cases. Now check whether nonexistent headers
5875 # can be detected and how.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <ac_nonexistent.h>
5879 _ACEOF
5880 if ac_fn_c_try_cpp "$LINENO"; then :
5881 # Broken: success on invalid input.
5882 continue
5883 else
5884 # Passes both tests.
5885 ac_preproc_ok=:
5886 break
5888 rm -f conftest.err conftest.$ac_ext
5890 done
5891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5892 rm -f conftest.err conftest.$ac_ext
5893 if $ac_preproc_ok; then :
5895 else
5896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5899 See \`config.log' for more details." "$LINENO" 5; }
5902 ac_ext=c
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5910 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5911 if test "${ac_cv_path_GREP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -z "$GREP"; then
5915 ac_path_GREP_found=false
5916 # Loop through the user's path and test for each of PROGNAME-LIST
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_prog in grep ggrep; do
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5925 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5926 # Check for GNU ac_path_GREP and select it if it is found.
5927 # Check for GNU $ac_path_GREP
5928 case `"$ac_path_GREP" --version 2>&1` in
5929 *GNU*)
5930 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5932 ac_count=0
5933 $as_echo_n 0123456789 >"conftest.in"
5934 while :
5936 cat "conftest.in" "conftest.in" >"conftest.tmp"
5937 mv "conftest.tmp" "conftest.in"
5938 cp "conftest.in" "conftest.nl"
5939 $as_echo 'GREP' >> "conftest.nl"
5940 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5942 as_fn_arith $ac_count + 1 && ac_count=$as_val
5943 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5944 # Best one so far, save it but keep looking for a better one
5945 ac_cv_path_GREP="$ac_path_GREP"
5946 ac_path_GREP_max=$ac_count
5948 # 10*(2^10) chars as input seems more than enough
5949 test $ac_count -gt 10 && break
5950 done
5951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5952 esac
5954 $ac_path_GREP_found && break 3
5955 done
5956 done
5957 done
5958 IFS=$as_save_IFS
5959 if test -z "$ac_cv_path_GREP"; then
5960 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5962 else
5963 ac_cv_path_GREP=$GREP
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5968 $as_echo "$ac_cv_path_GREP" >&6; }
5969 GREP="$ac_cv_path_GREP"
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5973 $as_echo_n "checking for egrep... " >&6; }
5974 if test "${ac_cv_path_EGREP+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5978 then ac_cv_path_EGREP="$GREP -E"
5979 else
5980 if test -z "$EGREP"; then
5981 ac_path_EGREP_found=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_prog in egrep; do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5991 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5992 # Check for GNU ac_path_EGREP and select it if it is found.
5993 # Check for GNU $ac_path_EGREP
5994 case `"$ac_path_EGREP" --version 2>&1` in
5995 *GNU*)
5996 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5998 ac_count=0
5999 $as_echo_n 0123456789 >"conftest.in"
6000 while :
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'EGREP' >> "conftest.nl"
6006 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_EGREP="$ac_path_EGREP"
6012 ac_path_EGREP_max=$ac_count
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6016 done
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6020 $ac_path_EGREP_found && break 3
6021 done
6022 done
6023 done
6024 IFS=$as_save_IFS
6025 if test -z "$ac_cv_path_EGREP"; then
6026 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6028 else
6029 ac_cv_path_EGREP=$EGREP
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6035 $as_echo "$ac_cv_path_EGREP" >&6; }
6036 EGREP="$ac_cv_path_EGREP"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6040 $as_echo_n "checking for ANSI C header files... " >&6; }
6041 if test "${ac_cv_header_stdc+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <stdlib.h>
6047 #include <stdarg.h>
6048 #include <string.h>
6049 #include <float.h>
6052 main ()
6056 return 0;
6058 _ACEOF
6059 if ac_fn_c_try_compile "$LINENO"; then :
6060 ac_cv_header_stdc=yes
6061 else
6062 ac_cv_header_stdc=no
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 if test $ac_cv_header_stdc = yes; then
6067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <string.h>
6072 _ACEOF
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "memchr" >/dev/null 2>&1; then :
6076 else
6077 ac_cv_header_stdc=no
6079 rm -f conftest*
6083 if test $ac_cv_header_stdc = yes; then
6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 #include <stdlib.h>
6089 _ACEOF
6090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6091 $EGREP "free" >/dev/null 2>&1; then :
6093 else
6094 ac_cv_header_stdc=no
6096 rm -f conftest*
6100 if test $ac_cv_header_stdc = yes; then
6101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6102 if test "$cross_compiling" = yes; then :
6104 else
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #include <ctype.h>
6108 #include <stdlib.h>
6109 #if ((' ' & 0x0FF) == 0x020)
6110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6112 #else
6113 # define ISLOWER(c) \
6114 (('a' <= (c) && (c) <= 'i') \
6115 || ('j' <= (c) && (c) <= 'r') \
6116 || ('s' <= (c) && (c) <= 'z'))
6117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6118 #endif
6120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6122 main ()
6124 int i;
6125 for (i = 0; i < 256; i++)
6126 if (XOR (islower (i), ISLOWER (i))
6127 || toupper (i) != TOUPPER (i))
6128 return 2;
6129 return 0;
6131 _ACEOF
6132 if ac_fn_c_try_run "$LINENO"; then :
6134 else
6135 ac_cv_header_stdc=no
6137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6138 conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6144 $as_echo "$ac_cv_header_stdc" >&6; }
6145 if test $ac_cv_header_stdc = yes; then
6147 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6151 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6152 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6153 inttypes.h stdint.h unistd.h
6154 do :
6155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6156 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6158 eval as_val=\$$as_ac_Header
6159 if test "x$as_val" = x""yes; then :
6160 cat >>confdefs.h <<_ACEOF
6161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6162 _ACEOF
6166 done
6172 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6173 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6174 MINIX=yes
6175 else
6176 MINIX=
6180 if test "$MINIX" = yes; then
6182 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6185 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6188 $as_echo "#define _MINIX 1" >>confdefs.h
6192 case "$host_os" in
6193 hpux*)
6195 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6198 esac
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6202 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6203 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6209 # define __EXTENSIONS__ 1
6210 $ac_includes_default
6212 main ()
6216 return 0;
6218 _ACEOF
6219 if ac_fn_c_try_compile "$LINENO"; then :
6220 ac_cv_safe_to_define___extensions__=yes
6221 else
6222 ac_cv_safe_to_define___extensions__=no
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6227 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6228 test $ac_cv_safe_to_define___extensions__ = yes &&
6229 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6231 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6233 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6235 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6237 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6246 case $ac_cv_prog_cc_stdc in #(
6247 no) :
6248 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6249 *) :
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6251 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6252 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 ac_cv_prog_cc_c99=no
6256 ac_save_CC=$CC
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #include <stdarg.h>
6260 #include <stdbool.h>
6261 #include <stdlib.h>
6262 #include <wchar.h>
6263 #include <stdio.h>
6265 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6266 #define debug(...) fprintf (stderr, __VA_ARGS__)
6267 #define showlist(...) puts (#__VA_ARGS__)
6268 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6269 static void
6270 test_varargs_macros (void)
6272 int x = 1234;
6273 int y = 5678;
6274 debug ("Flag");
6275 debug ("X = %d\n", x);
6276 showlist (The first, second, and third items.);
6277 report (x>y, "x is %d but y is %d", x, y);
6280 // Check long long types.
6281 #define BIG64 18446744073709551615ull
6282 #define BIG32 4294967295ul
6283 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6284 #if !BIG_OK
6285 your preprocessor is broken;
6286 #endif
6287 #if BIG_OK
6288 #else
6289 your preprocessor is broken;
6290 #endif
6291 static long long int bignum = -9223372036854775807LL;
6292 static unsigned long long int ubignum = BIG64;
6294 struct incomplete_array
6296 int datasize;
6297 double data[];
6300 struct named_init {
6301 int number;
6302 const wchar_t *name;
6303 double average;
6306 typedef const char *ccp;
6308 static inline int
6309 test_restrict (ccp restrict text)
6311 // See if C++-style comments work.
6312 // Iterate through items via the restricted pointer.
6313 // Also check for declarations in for loops.
6314 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6315 continue;
6316 return 0;
6319 // Check varargs and va_copy.
6320 static void
6321 test_varargs (const char *format, ...)
6323 va_list args;
6324 va_start (args, format);
6325 va_list args_copy;
6326 va_copy (args_copy, args);
6328 const char *str;
6329 int number;
6330 float fnumber;
6332 while (*format)
6334 switch (*format++)
6336 case 's': // string
6337 str = va_arg (args_copy, const char *);
6338 break;
6339 case 'd': // int
6340 number = va_arg (args_copy, int);
6341 break;
6342 case 'f': // float
6343 fnumber = va_arg (args_copy, double);
6344 break;
6345 default:
6346 break;
6349 va_end (args_copy);
6350 va_end (args);
6354 main ()
6357 // Check bool.
6358 _Bool success = false;
6360 // Check restrict.
6361 if (test_restrict ("String literal") == 0)
6362 success = true;
6363 char *restrict newvar = "Another string";
6365 // Check varargs.
6366 test_varargs ("s, d' f .", "string", 65, 34.234);
6367 test_varargs_macros ();
6369 // Check flexible array members.
6370 struct incomplete_array *ia =
6371 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6372 ia->datasize = 10;
6373 for (int i = 0; i < ia->datasize; ++i)
6374 ia->data[i] = i * 1.234;
6376 // Check named initializers.
6377 struct named_init ni = {
6378 .number = 34,
6379 .name = L"Test wide string",
6380 .average = 543.34343,
6383 ni.number = 58;
6385 int dynamic_array[ni.number];
6386 dynamic_array[ni.number - 1] = 543;
6388 // work around unused variable warnings
6389 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6390 || dynamic_array[ni.number - 1] != 543);
6393 return 0;
6395 _ACEOF
6396 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6398 CC="$ac_save_CC $ac_arg"
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 ac_cv_prog_cc_c99=$ac_arg
6402 rm -f core conftest.err conftest.$ac_objext
6403 test "x$ac_cv_prog_cc_c99" != "xno" && break
6404 done
6405 rm -f conftest.$ac_ext
6406 CC=$ac_save_CC
6409 # AC_CACHE_VAL
6410 case "x$ac_cv_prog_cc_c99" in
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6413 $as_echo "none needed" >&6; } ;;
6414 xno)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6416 $as_echo "unsupported" >&6; } ;;
6418 CC="$CC $ac_cv_prog_cc_c99"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6420 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6421 esac
6422 if test "x$ac_cv_prog_cc_c99" != xno; then :
6423 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6426 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6427 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 ac_cv_prog_cc_c89=no
6431 ac_save_CC=$CC
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <stdarg.h>
6435 #include <stdio.h>
6436 #include <sys/types.h>
6437 #include <sys/stat.h>
6438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6439 struct buf { int x; };
6440 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6441 static char *e (p, i)
6442 char **p;
6443 int i;
6445 return p[i];
6447 static char *f (char * (*g) (char **, int), char **p, ...)
6449 char *s;
6450 va_list v;
6451 va_start (v,p);
6452 s = g (p, va_arg (v,int));
6453 va_end (v);
6454 return s;
6457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6458 function prototypes and stuff, but not '\xHH' hex character constants.
6459 These don't provoke an error unfortunately, instead are silently treated
6460 as 'x'. The following induces an error, until -std is added to get
6461 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6462 array size at least. It's necessary to write '\x00'==0 to get something
6463 that's true only with -std. */
6464 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6466 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6467 inside strings and character constants. */
6468 #define FOO(x) 'x'
6469 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6471 int test (int i, double x);
6472 struct s1 {int (*f) (int a);};
6473 struct s2 {int (*f) (double a);};
6474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6475 int argc;
6476 char **argv;
6478 main ()
6480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6482 return 0;
6484 _ACEOF
6485 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6486 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6488 CC="$ac_save_CC $ac_arg"
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 ac_cv_prog_cc_c89=$ac_arg
6492 rm -f core conftest.err conftest.$ac_objext
6493 test "x$ac_cv_prog_cc_c89" != "xno" && break
6494 done
6495 rm -f conftest.$ac_ext
6496 CC=$ac_save_CC
6499 # AC_CACHE_VAL
6500 case "x$ac_cv_prog_cc_c89" in
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6503 $as_echo "none needed" >&6; } ;;
6504 xno)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6506 $as_echo "unsupported" >&6; } ;;
6508 CC="$CC $ac_cv_prog_cc_c89"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6510 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6511 esac
6512 if test "x$ac_cv_prog_cc_c89" != xno; then :
6513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6514 else
6515 ac_cv_prog_cc_stdc=no
6520 esac
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6522 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6523 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6527 case $ac_cv_prog_cc_stdc in #(
6528 no) :
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6530 $as_echo "unsupported" >&6; } ;; #(
6531 '') :
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6533 $as_echo "none needed" >&6; } ;; #(
6534 *) :
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6536 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6537 esac
6541 # Code from module alloca-opt:
6542 # Code from module allocator:
6543 # Code from module arg-nonnull:
6544 # Code from module c++defs:
6545 # Code from module careadlinkat:
6546 # Code from module crypto/md5:
6547 # Code from module crypto/sha1:
6548 # Code from module crypto/sha256:
6549 # Code from module crypto/sha512:
6550 # Code from module dosname:
6551 # Code from module dtoastr:
6552 # Code from module extensions:
6554 # Code from module filemode:
6555 # Code from module getloadavg:
6556 # Code from module getopt-gnu:
6557 # Code from module getopt-posix:
6558 # Code from module gettext-h:
6559 # Code from module ignore-value:
6560 # Code from module include_next:
6561 # Code from module intprops:
6562 # Code from module inttypes-incomplete:
6563 # Code from module lstat:
6564 # Code from module mktime:
6565 # Code from module multiarch:
6566 # Code from module readlink:
6567 # Code from module socklen:
6568 # Code from module ssize_t:
6569 # Code from module stat:
6570 # Code from module stdarg:
6572 # Code from module stdbool:
6573 # Code from module stddef:
6574 # Code from module stdint:
6575 # Code from module stdio:
6576 # Code from module stdlib:
6577 # Code from module strftime:
6578 # Code from module strtoull:
6579 # Code from module strtoumax:
6580 # Code from module symlink:
6581 # Code from module sys_stat:
6582 # Code from module time:
6583 # Code from module time_r:
6584 # Code from module u64:
6585 # Code from module unistd:
6586 # Code from module verify:
6587 # Code from module warn-on-use:
6590 # On Suns, sometimes $CPP names a directory.
6591 if test -n "$CPP" && test -d "$CPP"; then
6592 CPP=
6595 ## If not using gcc, and on Solaris, and no CPP specified, see if
6596 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6597 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6598 test x"$CPP" = x; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6600 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6601 if test "${emacs_cv_sunpro_c+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6608 main ()
6610 #ifndef __SUNPRO_C
6611 fail;
6612 #endif
6615 return 0;
6617 _ACEOF
6618 if ac_fn_c_try_link "$LINENO"; then :
6619 emacs_cv_sunpro_c=yes
6620 else
6621 emacs_cv_sunpro_c=no
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6628 $as_echo "$emacs_cv_sunpro_c" >&6; }
6630 if test x"$emacs_cv_sunpro_c" = xyes; then
6631 NON_GNU_CPP="$CC -E -Xs"
6635 #### Some systems specify a CPP to use unless we are using GCC.
6636 #### Now that we know whether we are using GCC, we can decide whether
6637 #### to use that one.
6638 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6639 then
6640 CPP="$NON_GNU_CPP"
6643 #### Some systems specify a CC to use unless we are using GCC.
6644 #### Now that we know whether we are using GCC, we can decide whether
6645 #### to use that one.
6646 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6647 test x$cc_specified != xyes
6648 then
6649 CC="$NON_GNU_CC"
6652 if test x$GCC = xyes; then
6653 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6654 else
6655 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6658 ### Use -Wdeclaration-after-statement if the compiler supports it
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6660 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6661 SAVE_CFLAGS="$CFLAGS"
6662 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6667 main ()
6671 return 0;
6673 _ACEOF
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675 has_option=yes
6676 else
6677 has_option=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 if test $has_option = yes; then
6681 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6684 $as_echo "$has_option" >&6; }
6685 CFLAGS="$SAVE_CFLAGS"
6686 unset has_option
6687 unset SAVE_CFLAGS
6689 ### Use -Wold-style-definition if the compiler supports it
6690 # This can be removed when conversion to standard C is finished.
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6692 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6693 SAVE_CFLAGS="$CFLAGS"
6694 CFLAGS="$CFLAGS -Wold-style-definition"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6699 main ()
6703 return 0;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 has_option=yes
6708 else
6709 has_option=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 if test $has_option = yes; then
6713 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6716 $as_echo "$has_option" >&6; }
6717 CFLAGS="$SAVE_CFLAGS"
6718 unset has_option
6719 unset SAVE_CFLAGS
6721 ### Use -Wimplicit-function-declaration if the compiler supports it
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6723 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6724 SAVE_CFLAGS="$CFLAGS"
6725 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6730 main ()
6734 return 0;
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 has_option=yes
6739 else
6740 has_option=no
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 if test $has_option = yes; then
6744 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6747 $as_echo "$has_option" >&6; }
6748 CFLAGS="$SAVE_CFLAGS"
6749 unset has_option
6750 unset SAVE_CFLAGS
6755 #### Some other nice autoconf tests.
6757 ac_ext=c
6758 ac_cpp='$CPP $CPPFLAGS'
6759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6764 # On Suns, sometimes $CPP names a directory.
6765 if test -n "$CPP" && test -d "$CPP"; then
6766 CPP=
6768 if test -z "$CPP"; then
6769 if test "${ac_cv_prog_CPP+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 # Double quotes because CPP needs to be expanded
6773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6775 ac_preproc_ok=false
6776 for ac_c_preproc_warn_flag in '' yes
6778 # Use a header file that comes with gcc, so configuring glibc
6779 # with a fresh cross-compiler works.
6780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6781 # <limits.h> exists even on freestanding compilers.
6782 # On the NeXT, cc -E runs the code through the compiler's parser,
6783 # not just through cpp. "Syntax error" is here to catch this case.
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #ifdef __STDC__
6787 # include <limits.h>
6788 #else
6789 # include <assert.h>
6790 #endif
6791 Syntax error
6792 _ACEOF
6793 if ac_fn_c_try_cpp "$LINENO"; then :
6795 else
6796 # Broken: fails on valid input.
6797 continue
6799 rm -f conftest.err conftest.$ac_ext
6801 # OK, works on sane cases. Now check whether nonexistent headers
6802 # can be detected and how.
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6805 #include <ac_nonexistent.h>
6806 _ACEOF
6807 if ac_fn_c_try_cpp "$LINENO"; then :
6808 # Broken: success on invalid input.
6809 continue
6810 else
6811 # Passes both tests.
6812 ac_preproc_ok=:
6813 break
6815 rm -f conftest.err conftest.$ac_ext
6817 done
6818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6819 rm -f conftest.err conftest.$ac_ext
6820 if $ac_preproc_ok; then :
6821 break
6824 done
6825 ac_cv_prog_CPP=$CPP
6828 CPP=$ac_cv_prog_CPP
6829 else
6830 ac_cv_prog_CPP=$CPP
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6833 $as_echo "$CPP" >&6; }
6834 ac_preproc_ok=false
6835 for ac_c_preproc_warn_flag in '' yes
6837 # Use a header file that comes with gcc, so configuring glibc
6838 # with a fresh cross-compiler works.
6839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6840 # <limits.h> exists even on freestanding compilers.
6841 # On the NeXT, cc -E runs the code through the compiler's parser,
6842 # not just through cpp. "Syntax error" is here to catch this case.
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #ifdef __STDC__
6846 # include <limits.h>
6847 #else
6848 # include <assert.h>
6849 #endif
6850 Syntax error
6851 _ACEOF
6852 if ac_fn_c_try_cpp "$LINENO"; then :
6854 else
6855 # Broken: fails on valid input.
6856 continue
6858 rm -f conftest.err conftest.$ac_ext
6860 # OK, works on sane cases. Now check whether nonexistent headers
6861 # can be detected and how.
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <ac_nonexistent.h>
6865 _ACEOF
6866 if ac_fn_c_try_cpp "$LINENO"; then :
6867 # Broken: success on invalid input.
6868 continue
6869 else
6870 # Passes both tests.
6871 ac_preproc_ok=:
6872 break
6874 rm -f conftest.err conftest.$ac_ext
6876 done
6877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6878 rm -f conftest.err conftest.$ac_ext
6879 if $ac_preproc_ok; then :
6881 else
6882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6884 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6885 See \`config.log' for more details." "$LINENO" 5; }
6888 ac_ext=c
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6895 if test "x$RANLIB" = x; then
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 if test -n "$RANLIB"; then
6905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906 else
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6924 RANLIB=$ac_cv_prog_RANLIB
6925 if test -n "$RANLIB"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6927 $as_echo "$RANLIB" >&6; }
6928 else
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6935 if test -z "$ac_cv_prog_RANLIB"; then
6936 ac_ct_RANLIB=$RANLIB
6937 # Extract the first word of "ranlib", so it can be a program name with args.
6938 set dummy ranlib; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$ac_ct_RANLIB"; then
6945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_ac_ct_RANLIB="ranlib"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6958 done
6959 done
6960 IFS=$as_save_IFS
6964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6965 if test -n "$ac_ct_RANLIB"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6967 $as_echo "$ac_ct_RANLIB" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6973 if test "x$ac_ct_RANLIB" = x; then
6974 RANLIB=":"
6975 else
6976 case $cross_compiling:$ac_tool_warned in
6977 yes:)
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6981 esac
6982 RANLIB=$ac_ct_RANLIB
6984 else
6985 RANLIB="$ac_cv_prog_RANLIB"
6990 ## Although we're running on an amd64 kernel, we're actually compiling for
6991 ## the x86 architecture. The user should probably have provided an
6992 ## explicit --build to `configure', but if everything else than the kernel
6993 ## is running in i386 mode, we can help them out.
6994 if test "$machine" = "amdx86-64"; then
6995 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6996 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7000 if test "$ac_cv_have_decl_i386" = "yes"; then
7001 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7002 machine=intel386
7003 machfile="m/${machine}.h"
7007 # Extract the first word of "install-info", so it can be a program name with args.
7008 set dummy install-info; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 case $INSTALL_INFO in
7015 [\\/]* | ?:[\\/]*)
7016 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7030 done
7031 done
7032 IFS=$as_save_IFS
7035 esac
7037 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7038 if test -n "$INSTALL_INFO"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7040 $as_echo "$INSTALL_INFO" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7047 # Extract the first word of "install-info", so it can be a program name with args.
7048 set dummy install-info; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 case $INSTALL_INFO in
7055 [\\/]* | ?:[\\/]*)
7056 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in /usr/sbin
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7070 done
7071 done
7072 IFS=$as_save_IFS
7075 esac
7077 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7078 if test -n "$INSTALL_INFO"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7080 $as_echo "$INSTALL_INFO" >&6; }
7081 else
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7087 # Extract the first word of "install-info", so it can be a program name with args.
7088 set dummy install-info; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 case $INSTALL_INFO in
7095 [\\/]* | ?:[\\/]*)
7096 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in /sbin
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7110 done
7111 done
7112 IFS=$as_save_IFS
7114 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7116 esac
7118 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7119 if test -n "$INSTALL_INFO"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7121 $as_echo "$INSTALL_INFO" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7128 # Extract the first word of "gzip", so it can be a program name with args.
7129 set dummy gzip; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 case $GZIP_PROG in
7136 [\\/]* | ?:[\\/]*)
7137 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7147 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7151 done
7152 done
7153 IFS=$as_save_IFS
7156 esac
7158 GZIP_PROG=$ac_cv_path_GZIP_PROG
7159 if test -n "$GZIP_PROG"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7161 $as_echo "$GZIP_PROG" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7170 ## Need makeinfo >= 4.6 (?) to build the manuals.
7171 # Extract the first word of "makeinfo", so it can be a program name with args.
7172 set dummy makeinfo; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 case $MAKEINFO in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7194 done
7195 done
7196 IFS=$as_save_IFS
7198 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7200 esac
7202 MAKEINFO=$ac_cv_path_MAKEINFO
7203 if test -n "$MAKEINFO"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7205 $as_echo "$MAKEINFO" >&6; }
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7212 if test "$MAKEINFO" != "no" && \
7213 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
7214 MAKEINFO=no
7217 ## Makeinfo is unusual. For a released Emacs, the manuals are
7218 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7219 ## therefore in the category of "special tools" not normally required, which
7220 ## configure does not have to check for (eg autoconf itself).
7221 ## In a Bazaar checkout on the other hand, the manuals are not included.
7222 ## So makeinfo is a requirement to build from Bazaar, and configure
7223 ## should test for it as it does for any other build requirement.
7224 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7225 ## with pre-built manuals, from a Bazaar checkout.
7226 HAVE_MAKEINFO=yes
7228 if test "$MAKEINFO" = "no"; then
7229 MAKEINFO=makeinfo
7230 if test "x${with_makeinfo}" = "xno"; then
7231 HAVE_MAKEINFO=no
7232 elif test ! -e $srcdir/info/emacs; then
7233 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7234 source tree does not seem to have pre-built manuals in the \`info' directory.
7235 Either install a suitable version of makeinfo, or re-run configure
7236 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7242 if test x$GCC = xyes; then
7243 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7244 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7245 else
7246 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7247 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7251 late_LDFLAGS=$LDFLAGS
7252 if test x$GCC = xyes; then
7253 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7254 else
7255 LDFLAGS="$LDFLAGS -znocombreloc"
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7259 $as_echo_n "checking for -znocombreloc... " >&6; }
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7264 main ()
7268 return 0;
7270 _ACEOF
7271 if ac_fn_c_try_link "$LINENO"; then :
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7273 $as_echo "yes" >&6; }
7274 else
7275 LDFLAGS=$late_LDFLAGS
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7279 rm -f core conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
7283 # The value of CPP is a quoted variable reference, so we need to do this
7284 # to get its actual value...
7285 CPP=`eval "echo $CPP"`
7288 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7289 case "$opsys" in
7290 your-opsys-here) CANNOT_DUMP=yes ;;
7291 esac
7293 test "$CANNOT_DUMP" = "yes" && \
7295 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7301 UNEXEC_OBJ=unexelf.o
7302 case "$opsys" in
7303 # MSDOS uses unexcoff.o
7304 # MSWindows uses unexw32.o
7305 aix4-2)
7306 UNEXEC_OBJ=unexaix.o
7308 cygwin)
7309 UNEXEC_OBJ=unexcw.o
7311 darwin)
7312 UNEXEC_OBJ=unexmacosx.o
7314 hpux10-20 | hpux11)
7315 UNEXEC_OBJ=unexhp9k800.o
7317 sol2-10)
7318 # Use the Solaris dldump() function, called from unexsol.c, to dump
7319 # emacs, instead of the generic ELF dump code found in unexelf.c.
7320 # The resulting binary has a complete symbol table, and is better
7321 # for debugging and other observability tools (debuggers, pstack, etc).
7323 # If you encounter a problem using dldump(), please consider sending
7324 # a message to the OpenSolaris tools-linking mailing list:
7325 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7327 # It is likely that dldump() works with older Solaris too, but this has
7328 # not been tested, so for now this change is for Solaris 10 or newer.
7329 UNEXEC_OBJ=unexsol.o
7331 esac
7333 LD_SWITCH_SYSTEM=
7334 case "$opsys" in
7335 freebsd)
7336 ## Let `ld' find image libs and similar things in /usr/local/lib.
7337 ## The system compiler, GCC, has apparently been modified to not
7338 ## look there, contrary to what a stock GCC would do.
7339 LD_SWITCH_SYSTEM=-L/usr/local/lib
7342 gnu-linux)
7343 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7344 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7347 netbsd)
7348 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7351 openbsd)
7352 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7353 ## otherwise Emacs dumps core on elf systems.
7354 LD_SWITCH_SYSTEM="-Z"
7356 esac
7359 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7361 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7362 ## which has not been defined yet. When this was handled with cpp,
7363 ## it was expanded to null when configure sourced the s/*.h file.
7364 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7365 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7366 ## (or somesuch), but because it is supposed to go at the _front_
7367 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7368 ## Compare with the gnu-linux case below, which added to the end
7369 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7370 ## LD_SWITCH_SYSTEM_TEMACS.
7371 case "$opsys" in
7372 netbsd|openbsd)
7373 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7374 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7375 esac
7378 C_SWITCH_MACHINE=
7379 if test "$machine" = "alpha"; then
7380 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7381 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7385 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7386 ## With ELF, make sure that all common symbols get allocated to in the
7387 ## data section. Otherwise, the dump of temacs may miss variables in
7388 ## the shared library that have been initialized. For example, with
7389 ## GNU libc, __malloc_initialized would normally be resolved to the
7390 ## shared library's .bss section, which is fatal.
7391 if test "x$GCC" = "xyes"; then
7392 C_SWITCH_MACHINE="-fno-common"
7393 else
7394 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7396 else
7397 UNEXEC_OBJ=unexalpha.o
7404 C_SWITCH_SYSTEM=
7405 ## Some programs in src produce warnings saying certain subprograms
7406 ## are too complex and need a MAXMEM value greater than 2000 for
7407 ## additional optimization. --nils@exp-math.uni-essen.de
7408 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7409 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7410 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7411 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7415 LIBS_SYSTEM=
7416 case "$opsys" in
7417 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7418 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7420 freebsd) LIBS_SYSTEM="-lutil" ;;
7422 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7424 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7426 ## Motif needs -lgen.
7427 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7428 esac
7432 ### Make sure subsequent tests use flags consistent with the build flags.
7434 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7435 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7436 else
7437 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7440 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7443 # Check whether --enable-largefile was given.
7444 if test "${enable_largefile+set}" = set; then :
7445 enableval=$enable_largefile;
7448 if test "$enable_largefile" != no; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7451 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7452 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 ac_cv_sys_largefile_CC=no
7456 if test "$GCC" != yes; then
7457 ac_save_CC=$CC
7458 while :; do
7459 # IRIX 6.2 and later do not support large files by default,
7460 # so use the C compiler's -n32 option if that helps.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <sys/types.h>
7464 /* Check that off_t can represent 2**63 - 1 correctly.
7465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7466 since some C++ compilers masquerading as C compilers
7467 incorrectly reject 9223372036854775807. */
7468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7470 && LARGE_OFF_T % 2147483647 == 1)
7471 ? 1 : -1];
7473 main ()
7477 return 0;
7479 _ACEOF
7480 if ac_fn_c_try_compile "$LINENO"; then :
7481 break
7483 rm -f core conftest.err conftest.$ac_objext
7484 CC="$CC -n32"
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 ac_cv_sys_largefile_CC=' -n32'; break
7488 rm -f core conftest.err conftest.$ac_objext
7489 break
7490 done
7491 CC=$ac_save_CC
7492 rm -f conftest.$ac_ext
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7496 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7497 if test "$ac_cv_sys_largefile_CC" != no; then
7498 CC=$CC$ac_cv_sys_largefile_CC
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7502 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7503 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 while :; do
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #include <sys/types.h>
7510 /* Check that off_t can represent 2**63 - 1 correctly.
7511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7512 since some C++ compilers masquerading as C compilers
7513 incorrectly reject 9223372036854775807. */
7514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7516 && LARGE_OFF_T % 2147483647 == 1)
7517 ? 1 : -1];
7519 main ()
7523 return 0;
7525 _ACEOF
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 ac_cv_sys_file_offset_bits=no; break
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 #define _FILE_OFFSET_BITS 64
7533 #include <sys/types.h>
7534 /* Check that off_t can represent 2**63 - 1 correctly.
7535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7536 since some C++ compilers masquerading as C compilers
7537 incorrectly reject 9223372036854775807. */
7538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7540 && LARGE_OFF_T % 2147483647 == 1)
7541 ? 1 : -1];
7543 main ()
7547 return 0;
7549 _ACEOF
7550 if ac_fn_c_try_compile "$LINENO"; then :
7551 ac_cv_sys_file_offset_bits=64; break
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 ac_cv_sys_file_offset_bits=unknown
7555 break
7556 done
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7559 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7560 case $ac_cv_sys_file_offset_bits in #(
7561 no | unknown) ;;
7563 cat >>confdefs.h <<_ACEOF
7564 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7565 _ACEOF
7567 esac
7568 rm -rf conftest*
7569 if test $ac_cv_sys_file_offset_bits = unknown; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7571 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7572 if test "${ac_cv_sys_large_files+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 while :; do
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #include <sys/types.h>
7579 /* Check that off_t can represent 2**63 - 1 correctly.
7580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7581 since some C++ compilers masquerading as C compilers
7582 incorrectly reject 9223372036854775807. */
7583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7585 && LARGE_OFF_T % 2147483647 == 1)
7586 ? 1 : -1];
7588 main ()
7592 return 0;
7594 _ACEOF
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 ac_cv_sys_large_files=no; break
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 #define _LARGE_FILES 1
7602 #include <sys/types.h>
7603 /* Check that off_t can represent 2**63 - 1 correctly.
7604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7605 since some C++ compilers masquerading as C compilers
7606 incorrectly reject 9223372036854775807. */
7607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7609 && LARGE_OFF_T % 2147483647 == 1)
7610 ? 1 : -1];
7612 main ()
7616 return 0;
7618 _ACEOF
7619 if ac_fn_c_try_compile "$LINENO"; then :
7620 ac_cv_sys_large_files=1; break
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 ac_cv_sys_large_files=unknown
7624 break
7625 done
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7628 $as_echo "$ac_cv_sys_large_files" >&6; }
7629 case $ac_cv_sys_large_files in #(
7630 no | unknown) ;;
7632 cat >>confdefs.h <<_ACEOF
7633 #define _LARGE_FILES $ac_cv_sys_large_files
7634 _ACEOF
7636 esac
7637 rm -rf conftest*
7643 ## If user specified a crt-dir, use that unconditionally.
7644 if test "X$CRT_DIR" = "X"; then
7646 case "$canonical" in
7647 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7648 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7649 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7650 ## For anything else (eg /usr/lib32), it is up the user to specify
7651 ## the location (bug#5655).
7652 ## Test for crtn.o, not just the directory, because sometimes the
7653 ## directory exists but does not have the relevant files (bug#1287).
7654 ## FIXME better to test for binary compatibility somehow.
7655 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7658 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7659 esac
7661 case "$opsys" in
7662 hpux10-20) CRT_DIR=/lib ;;
7663 esac
7665 ## Default is /usr/lib.
7666 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7668 ## If we're using gcc, try to determine it automatically by asking
7669 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7670 ## system-dependent default from above.]
7671 if test "x${GCC}" = xyes; then
7672 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
7673 case "$crt_file" in
7674 */*)
7675 CRT_DIR=`$as_dirname -- "$crt_file" ||
7676 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7677 X"$crt_file" : 'X\(//\)[^/]' \| \
7678 X"$crt_file" : 'X\(//\)$' \| \
7679 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7680 $as_echo X"$crt_file" |
7681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7682 s//\1/
7685 /^X\(\/\/\)[^/].*/{
7686 s//\1/
7689 /^X\(\/\/\)$/{
7690 s//\1/
7693 /^X\(\/\).*/{
7694 s//\1/
7697 s/.*/./; q'`
7699 esac
7702 else
7704 ## Some platforms don't use any of these files, so it is not
7705 ## appropriate to put this test outside the if block.
7706 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7707 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7713 LIB_MATH=-lm
7714 LIB_STANDARD=
7715 START_FILES=
7717 case $opsys in
7718 cygwin )
7719 LIB_MATH=
7720 START_FILES='pre-crt0.o'
7722 darwin )
7723 ## Adding -lm confuses the dynamic linker, so omit it.
7724 LIB_MATH=
7725 START_FILES='pre-crt0.o'
7727 freebsd )
7728 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7729 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7731 gnu-linux | gnu-kfreebsd )
7732 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7733 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7735 hpux10-20 | hpux11 )
7736 LIB_STANDARD=-lc
7737 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7739 netbsd | openbsd )
7740 if test -f $CRT_DIR/crti.o; then
7741 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7742 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7743 else
7744 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7745 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7748 esac
7756 if test "${with_sound}" != "no"; then
7757 # Sound support for GNU/Linux and the free BSDs.
7758 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7759 do :
7760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7761 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7762 eval as_val=\$$as_ac_Header
7763 if test "x$as_val" = x""yes; then :
7764 cat >>confdefs.h <<_ACEOF
7765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 _ACEOF
7767 have_sound_header=yes
7770 done
7772 # Emulation library used on NetBSD.
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7774 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7775 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lossaudio $LIBS"
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7783 /* Override any GCC internal prototype to avoid an error.
7784 Use char because int might match the return type of a GCC
7785 builtin and then its argument prototype would still apply. */
7786 #ifdef __cplusplus
7787 extern "C"
7788 #endif
7789 char _oss_ioctl ();
7791 main ()
7793 return _oss_ioctl ();
7795 return 0;
7797 _ACEOF
7798 if ac_fn_c_try_link "$LINENO"; then :
7799 ac_cv_lib_ossaudio__oss_ioctl=yes
7800 else
7801 ac_cv_lib_ossaudio__oss_ioctl=no
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7808 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7809 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7810 LIBSOUND=-lossaudio
7811 else
7812 LIBSOUND=
7817 ALSA_REQUIRED=1.0.0
7818 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7820 succeeded=no
7822 # Extract the first word of "pkg-config", so it can be a program name with args.
7823 set dummy pkg-config; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 case $PKG_CONFIG in
7830 [\\/]* | ?:[\\/]*)
7831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7845 done
7846 done
7847 IFS=$as_save_IFS
7849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7851 esac
7853 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7854 if test -n "$PKG_CONFIG"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7856 $as_echo "$PKG_CONFIG" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7864 if test "$PKG_CONFIG" = "no" ; then
7865 HAVE_ALSA=no
7866 else
7867 PKG_CONFIG_MIN_VERSION=0.9.0
7868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7870 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7872 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874 $as_echo "yes" >&6; }
7875 succeeded=yes
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7878 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7879 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7881 $as_echo "$ALSA_CFLAGS" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7884 $as_echo_n "checking ALSA_LIBS... " >&6; }
7885 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7887 $as_echo "$ALSA_LIBS" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 ALSA_CFLAGS=""
7892 ALSA_LIBS=""
7893 ## If we have a custom action on failure, don't print errors, but
7894 ## do set a variable so people can do so.
7895 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7901 else
7902 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7903 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7907 if test $succeeded = yes; then
7908 HAVE_ALSA=yes
7909 else
7910 HAVE_ALSA=no
7913 if test $HAVE_ALSA = yes; then
7914 SAVE_CFLAGS="$CFLAGS"
7915 SAVE_LDFLAGS="$LDFLAGS"
7916 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7917 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <asoundlib.h>
7922 main ()
7924 snd_lib_error_set_handler (0);
7926 return 0;
7928 _ACEOF
7929 if ac_fn_c_try_compile "$LINENO"; then :
7930 emacs_alsa_normal=yes
7931 else
7932 emacs_alsa_normal=no
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 if test "$emacs_alsa_normal" != yes; then
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 #include <alsa/asoundlib.h>
7940 main ()
7942 snd_lib_error_set_handler (0);
7944 return 0;
7946 _ACEOF
7947 if ac_fn_c_try_compile "$LINENO"; then :
7948 emacs_alsa_subdir=yes
7949 else
7950 emacs_alsa_subdir=no
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 if test "$emacs_alsa_subdir" != yes; then
7954 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7956 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7959 CFLAGS="$SAVE_CFLAGS"
7960 LDFLAGS="$SAVE_LDFLAGS"
7961 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7962 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7964 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7968 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7969 case "$opsys" in
7970 gnu-linux|freebsd|netbsd)
7972 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7975 esac
7981 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7982 linux/version.h sys/systeminfo.h limits.h \
7983 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7984 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7985 sys/utsname.h pwd.h utmp.h dirent.h util.h
7986 do :
7987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7989 eval as_val=\$$as_ac_Header
7990 if test "x$as_val" = x""yes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7993 _ACEOF
7997 done
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8001 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #include <sys/personality.h>
8006 main ()
8008 personality (PER_LINUX32)
8010 return 0;
8012 _ACEOF
8013 if ac_fn_c_try_compile "$LINENO"; then :
8014 emacs_cv_personality_linux32=yes
8015 else
8016 emacs_cv_personality_linux32=no
8018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8020 $as_echo "$emacs_cv_personality_linux32" >&6; }
8022 if test $emacs_cv_personality_linux32 = yes; then
8024 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8028 for ac_header in term.h
8029 do :
8030 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8031 if test "x$ac_cv_header_term_h" = x""yes; then :
8032 cat >>confdefs.h <<_ACEOF
8033 #define HAVE_TERM_H 1
8034 _ACEOF
8038 done
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8041 $as_echo_n "checking for ANSI C header files... " >&6; }
8042 if test "${ac_cv_header_stdc+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 #include <stdlib.h>
8048 #include <stdarg.h>
8049 #include <string.h>
8050 #include <float.h>
8053 main ()
8057 return 0;
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061 ac_cv_header_stdc=yes
8062 else
8063 ac_cv_header_stdc=no
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 if test $ac_cv_header_stdc = yes; then
8068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <string.h>
8073 _ACEOF
8074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8075 $EGREP "memchr" >/dev/null 2>&1; then :
8077 else
8078 ac_cv_header_stdc=no
8080 rm -f conftest*
8084 if test $ac_cv_header_stdc = yes; then
8085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <stdlib.h>
8090 _ACEOF
8091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8092 $EGREP "free" >/dev/null 2>&1; then :
8094 else
8095 ac_cv_header_stdc=no
8097 rm -f conftest*
8101 if test $ac_cv_header_stdc = yes; then
8102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8103 if test "$cross_compiling" = yes; then :
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 #include <ctype.h>
8109 #include <stdlib.h>
8110 #if ((' ' & 0x0FF) == 0x020)
8111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8113 #else
8114 # define ISLOWER(c) \
8115 (('a' <= (c) && (c) <= 'i') \
8116 || ('j' <= (c) && (c) <= 'r') \
8117 || ('s' <= (c) && (c) <= 'z'))
8118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8119 #endif
8121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8123 main ()
8125 int i;
8126 for (i = 0; i < 256; i++)
8127 if (XOR (islower (i), ISLOWER (i))
8128 || toupper (i) != TOUPPER (i))
8129 return 2;
8130 return 0;
8132 _ACEOF
8133 if ac_fn_c_try_run "$LINENO"; then :
8135 else
8136 ac_cv_header_stdc=no
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8139 conftest.$ac_objext conftest.beam conftest.$ac_ext
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8145 $as_echo "$ac_cv_header_stdc" >&6; }
8146 if test $ac_cv_header_stdc = yes; then
8148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8153 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8154 if test "${ac_cv_header_time+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 #include <sys/types.h>
8160 #include <sys/time.h>
8161 #include <time.h>
8164 main ()
8166 if ((struct tm *) 0)
8167 return 0;
8169 return 0;
8171 _ACEOF
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173 ac_cv_header_time=yes
8174 else
8175 ac_cv_header_time=no
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8180 $as_echo "$ac_cv_header_time" >&6; }
8181 if test $ac_cv_header_time = yes; then
8183 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8187 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8188 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8189 ac_have_decl=1
8190 else
8191 ac_have_decl=0
8194 cat >>confdefs.h <<_ACEOF
8195 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8196 _ACEOF
8198 if test $ac_cv_have_decl_sys_siglist != yes; then
8199 # For Tru64, at least:
8200 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8201 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8202 ac_have_decl=1
8203 else
8204 ac_have_decl=0
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8209 _ACEOF
8211 if test $ac_cv_have_decl___sys_siglist = yes; then
8213 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8218 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8219 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 #include <sys/types.h>
8225 #include <sys/wait.h>
8226 #ifndef WEXITSTATUS
8227 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8228 #endif
8229 #ifndef WIFEXITED
8230 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8231 #endif
8234 main ()
8236 int s;
8237 wait (&s);
8238 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8240 return 0;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 ac_cv_header_sys_wait_h=yes
8245 else
8246 ac_cv_header_sys_wait_h=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8251 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8252 if test $ac_cv_header_sys_wait_h = yes; then
8254 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8260 $as_echo_n "checking for struct utimbuf... " >&6; }
8261 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 #ifdef TIME_WITH_SYS_TIME
8267 #include <sys/time.h>
8268 #include <time.h>
8269 #else
8270 #ifdef HAVE_SYS_TIME_H
8271 #include <sys/time.h>
8272 #else
8273 #include <time.h>
8274 #endif
8275 #endif
8276 #ifdef HAVE_UTIME_H
8277 #include <utime.h>
8278 #endif
8280 main ()
8282 static struct utimbuf x; x.actime = x.modtime;
8284 return 0;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 emacs_cv_struct_utimbuf=yes
8289 else
8290 emacs_cv_struct_utimbuf=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8295 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8296 if test $emacs_cv_struct_utimbuf = yes; then
8298 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8303 $as_echo_n "checking for speed_t... " >&6; }
8304 if test "${emacs_cv_speed_t+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <termios.h>
8311 main ()
8313 speed_t x = 1;
8315 return 0;
8317 _ACEOF
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319 emacs_cv_speed_t=yes
8320 else
8321 emacs_cv_speed_t=no
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8326 $as_echo "$emacs_cv_speed_t" >&6; }
8327 if test $emacs_cv_speed_t = yes; then
8329 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8334 $as_echo_n "checking for struct timeval... " >&6; }
8335 if test "${emacs_cv_struct_timeval+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #ifdef TIME_WITH_SYS_TIME
8341 #include <sys/time.h>
8342 #include <time.h>
8343 #else
8344 #ifdef HAVE_SYS_TIME_H
8345 #include <sys/time.h>
8346 #else
8347 #include <time.h>
8348 #endif
8349 #endif
8351 main ()
8353 static struct timeval x; x.tv_sec = x.tv_usec;
8355 return 0;
8357 _ACEOF
8358 if ac_fn_c_try_compile "$LINENO"; then :
8359 emacs_cv_struct_timeval=yes
8360 else
8361 emacs_cv_struct_timeval=no
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8366 $as_echo "$emacs_cv_struct_timeval" >&6; }
8367 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8368 if test $emacs_cv_struct_timeval = yes; then
8370 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8375 $as_echo_n "checking for struct exception... " >&6; }
8376 if test "${emacs_cv_struct_exception+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8381 #include <math.h>
8383 main ()
8385 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8387 return 0;
8389 _ACEOF
8390 if ac_fn_c_try_compile "$LINENO"; then :
8391 emacs_cv_struct_exception=yes
8392 else
8393 emacs_cv_struct_exception=no
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8398 $as_echo "$emacs_cv_struct_exception" >&6; }
8399 HAVE_EXCEPTION=$emacs_cv_struct_exception
8400 if test $emacs_cv_struct_exception != yes; then
8402 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8406 for ac_header in net/if.h
8407 do :
8408 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8409 #if HAVE_SYS_SOCKET_H
8410 #include <sys/socket.h>
8411 #endif
8413 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8414 cat >>confdefs.h <<_ACEOF
8415 #define HAVE_NET_IF_H 1
8416 _ACEOF
8420 done
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8424 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8425 if test "${ac_cv_struct_tm+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 #include <sys/types.h>
8431 #include <time.h>
8434 main ()
8436 struct tm tm;
8437 int *p = &tm.tm_sec;
8438 return !p;
8440 return 0;
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8444 ac_cv_struct_tm=time.h
8445 else
8446 ac_cv_struct_tm=sys/time.h
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8451 $as_echo "$ac_cv_struct_tm" >&6; }
8452 if test $ac_cv_struct_tm = sys/time.h; then
8454 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8458 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8459 #include <$ac_cv_struct_tm>
8462 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_STRUCT_TM_TM_ZONE 1
8466 _ACEOF
8471 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8473 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8475 else
8476 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8478 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8479 ac_have_decl=1
8480 else
8481 ac_have_decl=0
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE_DECL_TZNAME $ac_have_decl
8486 _ACEOF
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8489 $as_echo_n "checking for tzname... " >&6; }
8490 if test "${ac_cv_var_tzname+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <time.h>
8496 #if !HAVE_DECL_TZNAME
8497 extern char *tzname[];
8498 #endif
8501 main ()
8503 return tzname[0][0];
8505 return 0;
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"; then :
8509 ac_cv_var_tzname=yes
8510 else
8511 ac_cv_var_tzname=no
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8517 $as_echo "$ac_cv_var_tzname" >&6; }
8518 if test $ac_cv_var_tzname = yes; then
8520 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8525 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8527 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8529 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8533 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8534 #if HAVE_SYS_SOCKET_H
8535 #include <sys/socket.h>
8536 #endif
8537 #if HAVE_NET_IF_H
8538 #include <net/if.h>
8539 #endif
8541 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8545 _ACEOF
8549 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8550 #if HAVE_SYS_SOCKET_H
8551 #include <sys/socket.h>
8552 #endif
8553 #if HAVE_NET_IF_H
8554 #include <net/if.h>
8555 #endif
8557 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8559 cat >>confdefs.h <<_ACEOF
8560 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8561 _ACEOF
8565 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8566 #if HAVE_SYS_SOCKET_H
8567 #include <sys/socket.h>
8568 #endif
8569 #if HAVE_NET_IF_H
8570 #include <net/if.h>
8571 #endif
8573 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8575 cat >>confdefs.h <<_ACEOF
8576 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8577 _ACEOF
8581 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8582 #if HAVE_SYS_SOCKET_H
8583 #include <sys/socket.h>
8584 #endif
8585 #if HAVE_NET_IF_H
8586 #include <net/if.h>
8587 #endif
8589 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8593 _ACEOF
8597 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8598 #if HAVE_SYS_SOCKET_H
8599 #include <sys/socket.h>
8600 #endif
8601 #if HAVE_NET_IF_H
8602 #include <net/if.h>
8603 #endif
8605 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8607 cat >>confdefs.h <<_ACEOF
8608 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8609 _ACEOF
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8617 $as_echo_n "checking for function prototypes... " >&6; }
8618 if test "$ac_cv_prog_cc_c89" != no; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8620 $as_echo "yes" >&6; }
8622 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8625 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8633 $as_echo_n "checking for working volatile... " >&6; }
8634 if test "${ac_cv_c_volatile+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8641 main ()
8644 volatile int x;
8645 int * volatile y = (int *) 0;
8646 return !x && !y;
8648 return 0;
8650 _ACEOF
8651 if ac_fn_c_try_compile "$LINENO"; then :
8652 ac_cv_c_volatile=yes
8653 else
8654 ac_cv_c_volatile=no
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8659 $as_echo "$ac_cv_c_volatile" >&6; }
8660 if test $ac_cv_c_volatile = no; then
8662 $as_echo "#define volatile /**/" >>confdefs.h
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8667 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8668 if test "${ac_cv_c_const+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8675 main ()
8677 /* FIXME: Include the comments suggested by Paul. */
8678 #ifndef __cplusplus
8679 /* Ultrix mips cc rejects this. */
8680 typedef int charset[2];
8681 const charset cs;
8682 /* SunOS 4.1.1 cc rejects this. */
8683 char const *const *pcpcc;
8684 char **ppc;
8685 /* NEC SVR4.0.2 mips cc rejects this. */
8686 struct point {int x, y;};
8687 static struct point const zero = {0,0};
8688 /* AIX XL C 1.02.0.0 rejects this.
8689 It does not let you subtract one const X* pointer from another in
8690 an arm of an if-expression whose if-part is not a constant
8691 expression */
8692 const char *g = "string";
8693 pcpcc = &g + (g ? g-g : 0);
8694 /* HPUX 7.0 cc rejects these. */
8695 ++pcpcc;
8696 ppc = (char**) pcpcc;
8697 pcpcc = (char const *const *) ppc;
8698 { /* SCO 3.2v4 cc rejects this. */
8699 char *t;
8700 char const *s = 0 ? (char *) 0 : (char const *) 0;
8702 *t++ = 0;
8703 if (s) return 0;
8705 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8706 int x[] = {25, 17};
8707 const int *foo = &x[0];
8708 ++foo;
8710 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8711 typedef const int *iptr;
8712 iptr p = 0;
8713 ++p;
8715 { /* AIX XL C 1.02.0.0 rejects this saying
8716 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8717 struct s { int j; const int *ap[3]; };
8718 struct s *b; b->j = 5;
8720 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8721 const int foo = 10;
8722 if (!foo) return 0;
8724 return !cs[0] && !zero.x;
8725 #endif
8728 return 0;
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 ac_cv_c_const=yes
8733 else
8734 ac_cv_c_const=no
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8739 $as_echo "$ac_cv_c_const" >&6; }
8740 if test $ac_cv_c_const = no; then
8742 $as_echo "#define const /**/" >>confdefs.h
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8747 $as_echo_n "checking for void * support... " >&6; }
8748 if test "${emacs_cv_void_star+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8755 main ()
8757 void * foo;
8759 return 0;
8761 _ACEOF
8762 if ac_fn_c_try_compile "$LINENO"; then :
8763 emacs_cv_void_star=yes
8764 else
8765 emacs_cv_void_star=no
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8770 $as_echo "$emacs_cv_void_star" >&6; }
8771 if test $emacs_cv_void_star = yes; then
8772 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8774 else
8775 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8780 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8781 if test "${ac_cv_c_bigendian+set}" = set; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 ac_cv_c_bigendian=unknown
8785 # See if we're dealing with a universal compiler.
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8788 #ifndef __APPLE_CC__
8789 not a universal capable compiler
8790 #endif
8791 typedef int dummy;
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8796 # Check for potential -arch flags. It is not universal unless
8797 # there are at least two -arch flags with different values.
8798 ac_arch=
8799 ac_prev=
8800 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8801 if test -n "$ac_prev"; then
8802 case $ac_word in
8803 i?86 | x86_64 | ppc | ppc64)
8804 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8805 ac_arch=$ac_word
8806 else
8807 ac_cv_c_bigendian=universal
8808 break
8811 esac
8812 ac_prev=
8813 elif test "x$ac_word" = "x-arch"; then
8814 ac_prev=arch
8816 done
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 if test $ac_cv_c_bigendian = unknown; then
8820 # See if sys/param.h defines the BYTE_ORDER macro.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #include <sys/types.h>
8824 #include <sys/param.h>
8827 main ()
8829 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8830 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8831 && LITTLE_ENDIAN)
8832 bogus endian macros
8833 #endif
8836 return 0;
8838 _ACEOF
8839 if ac_fn_c_try_compile "$LINENO"; then :
8840 # It does; now see whether it defined to BIG_ENDIAN or not.
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <sys/types.h>
8844 #include <sys/param.h>
8847 main ()
8849 #if BYTE_ORDER != BIG_ENDIAN
8850 not big endian
8851 #endif
8854 return 0;
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"; then :
8858 ac_cv_c_bigendian=yes
8859 else
8860 ac_cv_c_bigendian=no
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 if test $ac_cv_c_bigendian = unknown; then
8867 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <limits.h>
8873 main ()
8875 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8876 bogus endian macros
8877 #endif
8880 return 0;
8882 _ACEOF
8883 if ac_fn_c_try_compile "$LINENO"; then :
8884 # It does; now see whether it defined to _BIG_ENDIAN or not.
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8887 #include <limits.h>
8890 main ()
8892 #ifndef _BIG_ENDIAN
8893 not big endian
8894 #endif
8897 return 0;
8899 _ACEOF
8900 if ac_fn_c_try_compile "$LINENO"; then :
8901 ac_cv_c_bigendian=yes
8902 else
8903 ac_cv_c_bigendian=no
8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909 if test $ac_cv_c_bigendian = unknown; then
8910 # Compile a test program.
8911 if test "$cross_compiling" = yes; then :
8912 # Try to guess by grepping values from an object file.
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 short int ascii_mm[] =
8916 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8917 short int ascii_ii[] =
8918 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8919 int use_ascii (int i) {
8920 return ascii_mm[i] + ascii_ii[i];
8922 short int ebcdic_ii[] =
8923 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8924 short int ebcdic_mm[] =
8925 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8926 int use_ebcdic (int i) {
8927 return ebcdic_mm[i] + ebcdic_ii[i];
8929 extern int foo;
8932 main ()
8934 return use_ascii (foo) == use_ebcdic (foo);
8936 return 0;
8938 _ACEOF
8939 if ac_fn_c_try_compile "$LINENO"; then :
8940 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8941 ac_cv_c_bigendian=yes
8943 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8944 if test "$ac_cv_c_bigendian" = unknown; then
8945 ac_cv_c_bigendian=no
8946 else
8947 # finding both strings is unlikely to happen, but who knows?
8948 ac_cv_c_bigendian=unknown
8952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 else
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 $ac_includes_default
8958 main ()
8961 /* Are we little or big endian? From Harbison&Steele. */
8962 union
8964 long int l;
8965 char c[sizeof (long int)];
8966 } u;
8967 u.l = 1;
8968 return u.c[sizeof (long int) - 1] == 1;
8971 return 0;
8973 _ACEOF
8974 if ac_fn_c_try_run "$LINENO"; then :
8975 ac_cv_c_bigendian=no
8976 else
8977 ac_cv_c_bigendian=yes
8979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8980 conftest.$ac_objext conftest.beam conftest.$ac_ext
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8986 $as_echo "$ac_cv_c_bigendian" >&6; }
8987 case $ac_cv_c_bigendian in #(
8988 yes)
8989 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8990 ;; #(
8992 ;; #(
8993 universal)
8995 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8997 ;; #(
8999 as_fn_error "unknown endianness
9000 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9001 esac
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9005 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9006 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 char __attribute__ ((__aligned__ (1 << 3))) c;
9013 main ()
9017 return 0;
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 emacs_cv_attribute_aligned=yes
9022 else
9023 emacs_cv_attribute_aligned=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9028 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9029 if test $emacs_cv_attribute_aligned = yes; then
9031 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9036 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9037 set x ${MAKE-make}
9038 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9039 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 cat >conftest.make <<\_ACEOF
9043 SHELL = /bin/sh
9044 all:
9045 @echo '@@@%%%=$(MAKE)=@@@%%%'
9046 _ACEOF
9047 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9048 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9049 *@@@%%%=?*=@@@%%%*)
9050 eval ac_cv_prog_make_${ac_make}_set=yes;;
9052 eval ac_cv_prog_make_${ac_make}_set=no;;
9053 esac
9054 rm -f conftest.make
9056 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9058 $as_echo "yes" >&6; }
9059 SET_MAKE=
9060 else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063 SET_MAKE="MAKE=${MAKE-make}"
9067 DEPFLAGS=
9068 MKDEPDIR=":"
9069 deps_frag=deps.mk
9070 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9072 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9073 HAVE_GNU_MAKE=no
9074 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9075 if test "x$testval" != x; then
9076 HAVE_GNU_MAKE=yes
9077 else
9078 ac_enable_autodepend=no
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9081 $as_echo "$HAVE_GNU_MAKE" >&6; }
9082 if test $HAVE_GNU_MAKE = yes; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9084 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9085 SAVE_CFLAGS="$CFLAGS"
9086 CFLAGS="$CFLAGS -MMD -MF deps.d"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9091 main ()
9095 return 0;
9097 _ACEOF
9098 if ac_fn_c_try_compile "$LINENO"; then :
9100 else
9101 ac_enable_autodepend=no
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 CFLAGS="$SAVE_CFLAGS"
9105 test -f deps.d || ac_enable_autodepend=no
9106 rm -rf deps.d
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9108 $as_echo "$ac_enable_autodepend" >&6; }
9110 if test $ac_enable_autodepend = yes; then
9111 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9112 ## In parallel builds, another make might create depdir between
9113 ## the first test and mkdir, so stick another test on the end.
9114 ## Or use install-sh -d? mkdir -p is not portable.
9115 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9116 deps_frag=autodeps.mk
9119 deps_frag=$srcdir/src/$deps_frag
9125 lisp_frag=$srcdir/src/lisp.mk
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9130 $as_echo_n "checking for long file names... " >&6; }
9131 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 ac_cv_sys_long_file_names=yes
9135 # Test for long file names in all the places we know might matter:
9136 # . the current directory, where building will happen
9137 # $prefix/lib where we will be installing things
9138 # $exec_prefix/lib likewise
9139 # $TMPDIR if set, where it might want to write temporary files
9140 # /tmp where it might want to write temporary files
9141 # /var/tmp likewise
9142 # /usr/tmp likewise
9143 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9144 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9145 # in the usual case where exec_prefix is '${prefix}'.
9146 case $ac_dir in #(
9147 . | /* | ?:[\\/]*) ;; #(
9148 *) continue;;
9149 esac
9150 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9151 ac_xdir=$ac_dir/cf$$
9152 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9153 ac_tf1=$ac_xdir/conftest9012345
9154 ac_tf2=$ac_xdir/conftest9012346
9155 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9156 ac_cv_sys_long_file_names=no
9157 rm -f -r "$ac_xdir" 2>/dev/null
9158 test $ac_cv_sys_long_file_names = no && break
9159 done
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9162 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9163 if test $ac_cv_sys_long_file_names = yes; then
9165 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9170 #### Choose a window system.
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9173 $as_echo_n "checking for X... " >&6; }
9176 # Check whether --with-x was given.
9177 if test "${with_x+set}" = set; then :
9178 withval=$with_x;
9181 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9182 if test "x$with_x" = xno; then
9183 # The user explicitly disabled X.
9184 have_x=disabled
9185 else
9186 case $x_includes,$x_libraries in #(
9187 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9188 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 # One or both of the vars are not set, and there is no cached value.
9192 ac_x_includes=no ac_x_libraries=no
9193 rm -f -r conftest.dir
9194 if mkdir conftest.dir; then
9195 cd conftest.dir
9196 cat >Imakefile <<'_ACEOF'
9197 incroot:
9198 @echo incroot='${INCROOT}'
9199 usrlibdir:
9200 @echo usrlibdir='${USRLIBDIR}'
9201 libdir:
9202 @echo libdir='${LIBDIR}'
9203 _ACEOF
9204 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9206 for ac_var in incroot usrlibdir libdir; do
9207 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9208 done
9209 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9210 for ac_extension in a so sl dylib la dll; do
9211 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9212 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9213 ac_im_usrlibdir=$ac_im_libdir; break
9215 done
9216 # Screen out bogus values from the imake configuration. They are
9217 # bogus both because they are the default anyway, and because
9218 # using them would break gcc on systems where it needs fixed includes.
9219 case $ac_im_incroot in
9220 /usr/include) ac_x_includes= ;;
9221 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9222 esac
9223 case $ac_im_usrlibdir in
9224 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9225 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9226 esac
9228 cd ..
9229 rm -f -r conftest.dir
9232 # Standard set of common directories for X headers.
9233 # Check X11 before X11Rn because it is often a symlink to the current release.
9234 ac_x_header_dirs='
9235 /usr/X11/include
9236 /usr/X11R7/include
9237 /usr/X11R6/include
9238 /usr/X11R5/include
9239 /usr/X11R4/include
9241 /usr/include/X11
9242 /usr/include/X11R7
9243 /usr/include/X11R6
9244 /usr/include/X11R5
9245 /usr/include/X11R4
9247 /usr/local/X11/include
9248 /usr/local/X11R7/include
9249 /usr/local/X11R6/include
9250 /usr/local/X11R5/include
9251 /usr/local/X11R4/include
9253 /usr/local/include/X11
9254 /usr/local/include/X11R7
9255 /usr/local/include/X11R6
9256 /usr/local/include/X11R5
9257 /usr/local/include/X11R4
9259 /usr/X386/include
9260 /usr/x386/include
9261 /usr/XFree86/include/X11
9263 /usr/include
9264 /usr/local/include
9265 /usr/unsupported/include
9266 /usr/athena/include
9267 /usr/local/x11r5/include
9268 /usr/lpp/Xamples/include
9270 /usr/openwin/include
9271 /usr/openwin/share/include'
9273 if test "$ac_x_includes" = no; then
9274 # Guess where to find include files, by looking for Xlib.h.
9275 # First, try using that file with no special directory specified.
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 #include <X11/Xlib.h>
9279 _ACEOF
9280 if ac_fn_c_try_cpp "$LINENO"; then :
9281 # We can compile using X headers with no special include directory.
9282 ac_x_includes=
9283 else
9284 for ac_dir in $ac_x_header_dirs; do
9285 if test -r "$ac_dir/X11/Xlib.h"; then
9286 ac_x_includes=$ac_dir
9287 break
9289 done
9291 rm -f conftest.err conftest.$ac_ext
9292 fi # $ac_x_includes = no
9294 if test "$ac_x_libraries" = no; then
9295 # Check for the libraries.
9296 # See if we find them without any special options.
9297 # Don't add to $LIBS permanently.
9298 ac_save_LIBS=$LIBS
9299 LIBS="-lX11 $LIBS"
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 #include <X11/Xlib.h>
9304 main ()
9306 XrmInitialize ()
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 LIBS=$ac_save_LIBS
9313 # We can link X programs with no special library path.
9314 ac_x_libraries=
9315 else
9316 LIBS=$ac_save_LIBS
9317 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9319 # Don't even attempt the hair of trying to link an X program!
9320 for ac_extension in a so sl dylib la dll; do
9321 if test -r "$ac_dir/libX11.$ac_extension"; then
9322 ac_x_libraries=$ac_dir
9323 break 2
9325 done
9326 done
9328 rm -f core conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 fi # $ac_x_libraries = no
9332 case $ac_x_includes,$ac_x_libraries in #(
9333 no,* | *,no | *\'*)
9334 # Didn't find X, or a directory has "'" in its name.
9335 ac_cv_have_x="have_x=no";; #(
9337 # Record where we found X for the cache.
9338 ac_cv_have_x="have_x=yes\
9339 ac_x_includes='$ac_x_includes'\
9340 ac_x_libraries='$ac_x_libraries'"
9341 esac
9343 ;; #(
9344 *) have_x=yes;;
9345 esac
9346 eval "$ac_cv_have_x"
9347 fi # $with_x != no
9349 if test "$have_x" != yes; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9351 $as_echo "$have_x" >&6; }
9352 no_x=yes
9353 else
9354 # If each of the values was on the command line, it overrides each guess.
9355 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9356 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9357 # Update the cache value to reflect the command line values.
9358 ac_cv_have_x="have_x=yes\
9359 ac_x_includes='$x_includes'\
9360 ac_x_libraries='$x_libraries'"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9362 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9365 if test "$no_x" = yes; then
9366 window_system=none
9367 else
9368 window_system=x11
9371 ## Workaround for bug in autoconf <= 2.62.
9372 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9373 ## No need to do anything special for these standard directories.
9374 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9376 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9380 LD_SWITCH_X_SITE_AUX=
9381 LD_SWITCH_X_SITE_AUX_RPATH=
9382 if test "${x_libraries}" != NONE; then
9383 if test -n "${x_libraries}"; then
9384 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9385 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9386 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9388 x_default_search_path=""
9389 x_search_path=${x_libraries}
9390 if test -z "${x_search_path}"; then
9391 x_search_path=/usr/lib
9393 for x_library in `echo ${x_search_path}: | \
9394 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9395 x_search_path="\
9396 ${x_library}/X11/%L/%T/%N%C%S:\
9397 ${x_library}/X11/%l/%T/%N%C%S:\
9398 ${x_library}/X11/%T/%N%C%S:\
9399 ${x_library}/X11/%L/%T/%N%S:\
9400 ${x_library}/X11/%l/%T/%N%S:\
9401 ${x_library}/X11/%T/%N%S"
9402 if test x"${x_default_search_path}" = x; then
9403 x_default_search_path=${x_search_path}
9404 else
9405 x_default_search_path="${x_search_path}:${x_default_search_path}"
9407 done
9412 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9413 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9416 if test x"${x_includes}" = x; then
9417 bitmapdir=/usr/include/X11/bitmaps
9418 else
9419 # accumulate include directories that have X11 bitmap subdirectories
9420 bmd_acc="dummyval"
9421 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9422 if test -d "${bmd}/X11/bitmaps"; then
9423 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9425 if test -d "${bmd}/bitmaps"; then
9426 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9428 done
9429 if test ${bmd_acc} != "dummyval"; then
9430 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9434 HAVE_NS=no
9435 NS_IMPL_COCOA=no
9436 NS_IMPL_GNUSTEP=no
9437 tmp_CPPFLAGS="$CPPFLAGS"
9438 tmp_CFLAGS="$CFLAGS"
9439 CPPFLAGS="$CPPFLAGS -x objective-c"
9440 CFLAGS="$CFLAGS -x objective-c"
9441 TEMACS_LDFLAGS2="\${LDFLAGS}"
9442 if test "${with_ns}" != no; then
9443 if test "${opsys}" = darwin; then
9444 NS_IMPL_COCOA=yes
9445 ns_appdir=`pwd`/nextstep/Emacs.app
9446 ns_appbindir=${ns_appdir}/Contents/MacOS/
9447 ns_appresdir=${ns_appdir}/Contents/Resources
9448 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9449 elif test -f $GNUSTEP_CONFIG_FILE; then
9450 NS_IMPL_GNUSTEP=yes
9451 ns_appdir=`pwd`/nextstep/Emacs.app
9452 ns_appbindir=${ns_appdir}/
9453 ns_appresdir=${ns_appdir}/Resources
9454 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9455 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9456 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9457 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9458 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9459 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9460 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9461 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9462 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9463 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9464 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9465 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9466 LIB_STANDARD=
9467 START_FILES=
9468 TEMACS_LDFLAGS2=
9470 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9471 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9472 HAVE_NS=yes
9473 else
9474 as_fn_error "\`--with-ns' was specified, but the include
9475 files are missing or cannot be compiled." "$LINENO" 5
9479 NS_HAVE_NSINTEGER=yes
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <Foundation/NSObjCRuntime.h>
9484 main ()
9486 NSInteger i;
9488 return 0;
9490 _ACEOF
9491 if ac_fn_c_try_compile "$LINENO"; then :
9492 ns_have_nsinteger=yes
9493 else
9494 ns_have_nsinteger=no
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 if test $ns_have_nsinteger = no; then
9498 NS_HAVE_NSINTEGER=no
9503 ns_frag=/dev/null
9504 NS_OBJ=
9505 NS_OBJC_OBJ=
9506 if test "${HAVE_NS}" = yes; then
9507 window_system=nextstep
9508 with_xft=no
9509 # set up packaging dirs
9510 exec_prefix=${ns_appbindir}
9511 libexecdir=${ns_appbindir}/libexec
9512 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9513 prefix=${ns_appresdir}
9515 ns_frag=$srcdir/src/ns.mk
9516 NS_OBJ="fontset.o fringe.o image.o"
9517 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9519 CFLAGS="$tmp_CFLAGS"
9520 CPPFLAGS="$tmp_CPPFLAGS"
9526 case "${window_system}" in
9527 x11 )
9528 HAVE_X_WINDOWS=yes
9529 HAVE_X11=yes
9530 case "${with_x_toolkit}" in
9531 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9532 motif ) USE_X_TOOLKIT=MOTIF ;;
9533 gtk ) with_gtk=yes
9534 USE_X_TOOLKIT=none ;;
9535 gtk3 ) with_gtk3=yes
9536 USE_X_TOOLKIT=none ;;
9537 no ) USE_X_TOOLKIT=none ;;
9538 * ) USE_X_TOOLKIT=maybe ;;
9539 esac
9541 nextstep | none )
9542 HAVE_X_WINDOWS=no
9543 HAVE_X11=no
9544 USE_X_TOOLKIT=none
9546 esac
9548 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9549 # Extract the first word of "X", so it can be a program name with args.
9550 set dummy X; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 if test -n "$HAVE_XSERVER"; then
9557 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_HAVE_XSERVER="true"
9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9570 done
9571 done
9572 IFS=$as_save_IFS
9574 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9577 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9578 if test -n "$HAVE_XSERVER"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9580 $as_echo "$HAVE_XSERVER" >&6; }
9581 else
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9587 if test "$HAVE_XSERVER" = true ||
9588 test -n "$DISPLAY" ||
9589 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9590 as_fn_error "You seem to be running X, but no X development libraries
9591 were found. You should install the relevant development files for X
9592 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9593 sure you have development files for image handling, i.e.
9594 tiff, gif, jpeg, png and xpm.
9595 If you are sure you want Emacs compiled without X window support, pass
9596 --without-x
9597 to configure." "$LINENO" 5
9601 ### If we're using X11, we should use the X menu package.
9602 HAVE_MENUS=no
9603 case ${HAVE_X11} in
9604 yes ) HAVE_MENUS=yes ;;
9605 esac
9607 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9608 # Assume not, until told otherwise.
9609 GNU_MALLOC=yes
9610 doug_lea_malloc=yes
9611 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9612 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9614 else
9615 doug_lea_malloc=no
9618 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9619 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9621 else
9622 doug_lea_malloc=no
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9626 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9627 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 extern void (* __after_morecore_hook)();
9634 main ()
9636 __after_morecore_hook = 0
9638 return 0;
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"; then :
9642 emacs_cv_var___after_morecore_hook=yes
9643 else
9644 emacs_cv_var___after_morecore_hook=no
9646 rm -f core conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9650 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9651 if test $emacs_cv_var___after_morecore_hook = no; then
9652 doug_lea_malloc=no
9656 system_malloc=no
9657 case "$opsys" in
9658 ## darwin ld insists on the use of malloc routines in the System framework.
9659 darwin|sol2-10) system_malloc=yes ;;
9660 esac
9662 if test "${system_malloc}" = "yes"; then
9664 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9666 GNU_MALLOC=no
9667 GNU_MALLOC_reason="
9668 (The GNU allocators don't work with this system configuration.)"
9669 GMALLOC_OBJ=
9670 VMLIMIT_OBJ=
9671 else
9672 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9673 VMLIMIT_OBJ=vm-limit.o
9678 if test "$doug_lea_malloc" = "yes" ; then
9679 if test "$GNU_MALLOC" = yes ; then
9680 GNU_MALLOC_reason="
9681 (Using Doug Lea's new malloc from the GNU C Library.)"
9684 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9687 ## Use mmap directly for allocating larger buffers.
9688 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9689 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9690 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9691 case "$opsys" in
9692 gnu*) REL_ALLOC=no ;;
9693 esac
9696 if test x"${REL_ALLOC}" = x; then
9697 REL_ALLOC=${GNU_MALLOC}
9700 use_mmap_for_buffers=no
9701 case "$opsys" in
9702 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9703 esac
9708 for ac_header in $ac_header_list
9709 do :
9710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9713 eval as_val=\$$as_ac_Header
9714 if test "x$as_val" = x""yes; then :
9715 cat >>confdefs.h <<_ACEOF
9716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9717 _ACEOF
9721 done
9730 for ac_func in getpagesize
9731 do :
9732 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9733 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9734 cat >>confdefs.h <<_ACEOF
9735 #define HAVE_GETPAGESIZE 1
9736 _ACEOF
9739 done
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9742 $as_echo_n "checking for working mmap... " >&6; }
9743 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 if test "$cross_compiling" = yes; then :
9747 ac_cv_func_mmap_fixed_mapped=no
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 $ac_includes_default
9752 /* malloc might have been renamed as rpl_malloc. */
9753 #undef malloc
9755 /* Thanks to Mike Haertel and Jim Avera for this test.
9756 Here is a matrix of mmap possibilities:
9757 mmap private not fixed
9758 mmap private fixed at somewhere currently unmapped
9759 mmap private fixed at somewhere already mapped
9760 mmap shared not fixed
9761 mmap shared fixed at somewhere currently unmapped
9762 mmap shared fixed at somewhere already mapped
9763 For private mappings, we should verify that changes cannot be read()
9764 back from the file, nor mmap's back from the file at a different
9765 address. (There have been systems where private was not correctly
9766 implemented like the infamous i386 svr4.0, and systems where the
9767 VM page cache was not coherent with the file system buffer cache
9768 like early versions of FreeBSD and possibly contemporary NetBSD.)
9769 For shared mappings, we should conversely verify that changes get
9770 propagated back to all the places they're supposed to be.
9772 Grep wants private fixed already mapped.
9773 The main things grep needs to know about mmap are:
9774 * does it exist and is it safe to write into the mmap'd area
9775 * how to use it (BSD variants) */
9777 #include <fcntl.h>
9778 #include <sys/mman.h>
9780 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9781 char *malloc ();
9782 #endif
9784 /* This mess was copied from the GNU getpagesize.h. */
9785 #ifndef HAVE_GETPAGESIZE
9786 # ifdef _SC_PAGESIZE
9787 # define getpagesize() sysconf(_SC_PAGESIZE)
9788 # else /* no _SC_PAGESIZE */
9789 # ifdef HAVE_SYS_PARAM_H
9790 # include <sys/param.h>
9791 # ifdef EXEC_PAGESIZE
9792 # define getpagesize() EXEC_PAGESIZE
9793 # else /* no EXEC_PAGESIZE */
9794 # ifdef NBPG
9795 # define getpagesize() NBPG * CLSIZE
9796 # ifndef CLSIZE
9797 # define CLSIZE 1
9798 # endif /* no CLSIZE */
9799 # else /* no NBPG */
9800 # ifdef NBPC
9801 # define getpagesize() NBPC
9802 # else /* no NBPC */
9803 # ifdef PAGESIZE
9804 # define getpagesize() PAGESIZE
9805 # endif /* PAGESIZE */
9806 # endif /* no NBPC */
9807 # endif /* no NBPG */
9808 # endif /* no EXEC_PAGESIZE */
9809 # else /* no HAVE_SYS_PARAM_H */
9810 # define getpagesize() 8192 /* punt totally */
9811 # endif /* no HAVE_SYS_PARAM_H */
9812 # endif /* no _SC_PAGESIZE */
9814 #endif /* no HAVE_GETPAGESIZE */
9817 main ()
9819 char *data, *data2, *data3;
9820 const char *cdata2;
9821 int i, pagesize;
9822 int fd, fd2;
9824 pagesize = getpagesize ();
9826 /* First, make a file with some known garbage in it. */
9827 data = (char *) malloc (pagesize);
9828 if (!data)
9829 return 1;
9830 for (i = 0; i < pagesize; ++i)
9831 *(data + i) = rand ();
9832 umask (0);
9833 fd = creat ("conftest.mmap", 0600);
9834 if (fd < 0)
9835 return 2;
9836 if (write (fd, data, pagesize) != pagesize)
9837 return 3;
9838 close (fd);
9840 /* Next, check that the tail of a page is zero-filled. File must have
9841 non-zero length, otherwise we risk SIGBUS for entire page. */
9842 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9843 if (fd2 < 0)
9844 return 4;
9845 cdata2 = "";
9846 if (write (fd2, cdata2, 1) != 1)
9847 return 5;
9848 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9849 if (data2 == MAP_FAILED)
9850 return 6;
9851 for (i = 0; i < pagesize; ++i)
9852 if (*(data2 + i))
9853 return 7;
9854 close (fd2);
9855 if (munmap (data2, pagesize))
9856 return 8;
9858 /* Next, try to mmap the file at a fixed address which already has
9859 something else allocated at it. If we can, also make sure that
9860 we see the same garbage. */
9861 fd = open ("conftest.mmap", O_RDWR);
9862 if (fd < 0)
9863 return 9;
9864 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9865 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9866 return 10;
9867 for (i = 0; i < pagesize; ++i)
9868 if (*(data + i) != *(data2 + i))
9869 return 11;
9871 /* Finally, make sure that changes to the mapped area do not
9872 percolate back to the file as seen by read(). (This is a bug on
9873 some variants of i386 svr4.0.) */
9874 for (i = 0; i < pagesize; ++i)
9875 *(data2 + i) = *(data2 + i) + 1;
9876 data3 = (char *) malloc (pagesize);
9877 if (!data3)
9878 return 12;
9879 if (read (fd, data3, pagesize) != pagesize)
9880 return 13;
9881 for (i = 0; i < pagesize; ++i)
9882 if (*(data + i) != *(data3 + i))
9883 return 14;
9884 close (fd);
9885 return 0;
9887 _ACEOF
9888 if ac_fn_c_try_run "$LINENO"; then :
9889 ac_cv_func_mmap_fixed_mapped=yes
9890 else
9891 ac_cv_func_mmap_fixed_mapped=no
9893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9894 conftest.$ac_objext conftest.beam conftest.$ac_ext
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9899 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9900 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9902 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9905 rm -f conftest.mmap conftest.txt
9907 if test $use_mmap_for_buffers = yes; then
9909 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9911 REL_ALLOC=no
9914 LIBS="$LIBS_SYSTEM $LIBS"
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9917 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9918 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-ldnet $LIBS"
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 char dnet_ntoa ();
9934 main ()
9936 return dnet_ntoa ();
9938 return 0;
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 ac_cv_lib_dnet_dnet_ntoa=yes
9943 else
9944 ac_cv_lib_dnet_dnet_ntoa=no
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9951 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9952 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_LIBDNET 1
9955 _ACEOF
9957 LIBS="-ldnet $LIBS"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9963 $as_echo_n "checking for main in -lXbsd... " >&6; }
9964 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9965 $as_echo_n "(cached) " >&6
9966 else
9967 ac_check_lib_save_LIBS=$LIBS
9968 LIBS="-lXbsd $LIBS"
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9974 main ()
9976 return main ();
9978 return 0;
9980 _ACEOF
9981 if ac_fn_c_try_link "$LINENO"; then :
9982 ac_cv_lib_Xbsd_main=yes
9983 else
9984 ac_cv_lib_Xbsd_main=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_Xbsd_main" >&5
9991 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9992 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9993 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9998 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9999 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-lpthreads $LIBS"
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char cma_open ();
10015 main ()
10017 return cma_open ();
10019 return 0;
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 ac_cv_lib_pthreads_cma_open=yes
10024 else
10025 ac_cv_lib_pthreads_cma_open=no
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10032 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10033 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_LIBPTHREADS 1
10036 _ACEOF
10038 LIBS="-lpthreads $LIBS"
10043 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10044 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10045 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10046 ## added to LIBS in configure would never contain the pthreads part,
10047 ## but the value used in Makefiles might. FIXME?
10049 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10050 ## be harmless on older versions of X where it happens to exist.
10051 test "$opsys" = "aix4-2" && \
10052 test $ac_cv_lib_pthreads_cma_open = yes && \
10053 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10056 case ${host_os} in
10057 aix*)
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10059 $as_echo_n "checking for -bbigtoc option... " >&6; }
10060 if test "${gdb_cv_bigtoc+set}" = set; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10064 case $GCC in
10065 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10066 *) gdb_cv_bigtoc=-bbigtoc ;;
10067 esac
10069 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10074 main ()
10076 int i;
10078 return 0;
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10083 else
10084 gdb_cv_bigtoc=
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10091 $as_echo "$gdb_cv_bigtoc" >&6; }
10093 esac
10095 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10096 # used for the tests that follow. We set them back to REAL_CFLAGS and
10097 # REAL_CPPFLAGS later on.
10099 REAL_CFLAGS="$CFLAGS"
10100 REAL_CPPFLAGS="$CPPFLAGS"
10102 if test "${HAVE_X11}" = "yes"; then
10103 DEFS="$C_SWITCH_X_SITE $DEFS"
10104 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10105 LIBS="-lX11 $LIBS"
10106 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10107 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10109 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10110 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10111 # but it's more convenient here to set LD_RUN_PATH
10112 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10113 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10114 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10115 export LD_RUN_PATH
10118 if test "${opsys}" = "gnu-linux"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10120 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10125 main ()
10127 XOpenDisplay ("foo");
10129 return 0;
10131 _ACEOF
10132 if ac_fn_c_try_link "$LINENO"; then :
10133 xlinux_first_failure=no
10134 else
10135 xlinux_first_failure=yes
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10139 if test "${xlinux_first_failure}" = "yes"; then
10140 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10141 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10142 OLD_CPPFLAGS="$CPPFLAGS"
10143 OLD_LIBS="$LIBS"
10144 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10145 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10146 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10147 LIBS="$LIBS -b i486-linuxaout"
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10152 main ()
10154 XOpenDisplay ("foo");
10156 return 0;
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 xlinux_second_failure=no
10161 else
10162 xlinux_second_failure=yes
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 if test "${xlinux_second_failure}" = "yes"; then
10167 # If we get the same failure with -b, there is no use adding -b.
10168 # So take it out. This plays safe.
10169 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10170 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10171 CPPFLAGS="$OLD_CPPFLAGS"
10172 LIBS="$OLD_LIBS"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10177 $as_echo "yes" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10185 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10186 # header files included from there.
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10188 $as_echo_n "checking for Xkb... " >&6; }
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <X11/Xlib.h>
10192 #include <X11/XKBlib.h>
10194 main ()
10196 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10198 return 0;
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10202 emacs_xkb=yes
10203 else
10204 emacs_xkb=no
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10209 $as_echo "$emacs_xkb" >&6; }
10210 if test $emacs_xkb = yes; then
10212 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10216 for ac_func in XrmSetDatabase XScreenResourceString \
10217 XScreenNumberOfScreen XSetWMProtocols
10218 do :
10219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10221 eval as_val=\$$as_ac_var
10222 if test "x$as_val" = x""yes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10225 _ACEOF
10228 done
10232 if test "${window_system}" = "x11"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10234 $as_echo_n "checking X11 version 6... " >&6; }
10235 if test "${emacs_cv_x11_version_6+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <X11/Xlib.h>
10242 main ()
10244 #if XlibSpecificationRelease < 6
10245 fail;
10246 #endif
10249 return 0;
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 emacs_cv_x11_version_6=yes
10254 else
10255 emacs_cv_x11_version_6=no
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10261 if test $emacs_cv_x11_version_6 = yes; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10263 $as_echo "6 or newer" >&6; }
10265 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10268 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10270 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10271 ## XIM support.
10272 case "$opsys" in
10273 sol2-*) : ;;
10275 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10278 esac
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10281 $as_echo "before 6" >&6; }
10286 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10287 HAVE_RSVG=no
10288 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
10289 if test "${with_rsvg}" != "no"; then
10290 RSVG_REQUIRED=2.11.0
10291 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10294 succeeded=no
10296 # Extract the first word of "pkg-config", so it can be a program name with args.
10297 set dummy pkg-config; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 case $PKG_CONFIG in
10304 [\\/]* | ?:[\\/]*)
10305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10325 esac
10327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10328 if test -n "$PKG_CONFIG"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10330 $as_echo "$PKG_CONFIG" >&6; }
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10338 if test "$PKG_CONFIG" = "no" ; then
10340 else
10341 PKG_CONFIG_MIN_VERSION=0.9.0
10342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10344 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10346 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10348 $as_echo "yes" >&6; }
10349 succeeded=yes
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10352 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10353 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10355 $as_echo "$RSVG_CFLAGS" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10358 $as_echo_n "checking RSVG_LIBS... " >&6; }
10359 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10361 $as_echo "$RSVG_LIBS" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10365 RSVG_CFLAGS=""
10366 RSVG_LIBS=""
10367 ## If we have a custom action on failure, don't print errors, but
10368 ## do set a variable so people can do so.
10369 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10375 else
10376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10381 if test $succeeded = yes; then
10382 HAVE_RSVG=yes
10383 else
10390 if test $HAVE_RSVG = yes; then
10392 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10394 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10395 LIBS="$RSVG_LIBS $LIBS"
10400 HAVE_IMAGEMAGICK=no
10401 if test "${HAVE_X11}" = "yes"; then
10402 if test "${with_imagemagick}" != "no"; then
10403 ## 6.2.8 is the earliest version known to work, but earlier versions
10404 ## might work - let us know if you find one.
10405 ## 6.0.7 does not work. See bug#7955.
10406 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10408 succeeded=no
10410 # Extract the first word of "pkg-config", so it can be a program name with args.
10411 set dummy pkg-config; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 case $PKG_CONFIG in
10418 [\\/]* | ?:[\\/]*)
10419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10433 done
10434 done
10435 IFS=$as_save_IFS
10437 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10439 esac
10441 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10442 if test -n "$PKG_CONFIG"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10444 $as_echo "$PKG_CONFIG" >&6; }
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10452 if test "$PKG_CONFIG" = "no" ; then
10454 else
10455 PKG_CONFIG_MIN_VERSION=0.9.0
10456 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10458 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10460 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10462 $as_echo "yes" >&6; }
10463 succeeded=yes
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10466 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10467 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10469 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10472 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10473 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10475 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 IMAGEMAGICK_CFLAGS=""
10480 IMAGEMAGICK_LIBS=""
10481 ## If we have a custom action on failure, don't print errors, but
10482 ## do set a variable so people can do so.
10483 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10489 else
10490 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10491 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10495 if test $succeeded = yes; then
10496 HAVE_IMAGEMAGICK=yes
10497 else
10504 if test $HAVE_IMAGEMAGICK = yes; then
10506 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10508 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10509 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10510 for ac_func in MagickExportImagePixels
10511 do :
10512 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10513 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10516 _ACEOF
10519 done
10526 HAVE_GTK=no
10527 GTK_OBJ=
10528 if test "${with_gtk3}" = "yes"; then
10529 GLIB_REQUIRED=2.28
10530 GTK_REQUIRED=3.0
10531 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10534 succeeded=no
10536 # Extract the first word of "pkg-config", so it can be a program name with args.
10537 set dummy pkg-config; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 case $PKG_CONFIG in
10544 [\\/]* | ?:[\\/]*)
10545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 break 2
10559 done
10560 done
10561 IFS=$as_save_IFS
10563 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10565 esac
10567 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10568 if test -n "$PKG_CONFIG"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10570 $as_echo "$PKG_CONFIG" >&6; }
10571 else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10578 if test "$PKG_CONFIG" = "no" ; then
10579 pkg_check_gtk=no
10580 else
10581 PKG_CONFIG_MIN_VERSION=0.9.0
10582 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10584 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10586 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10588 $as_echo "yes" >&6; }
10589 succeeded=yes
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10592 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10593 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10595 $as_echo "$GTK_CFLAGS" >&6; }
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10598 $as_echo_n "checking GTK_LIBS... " >&6; }
10599 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10601 $as_echo "$GTK_LIBS" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10605 GTK_CFLAGS=""
10606 GTK_LIBS=""
10607 ## If we have a custom action on failure, don't print errors, but
10608 ## do set a variable so people can do so.
10609 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10615 else
10616 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10617 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10621 if test $succeeded = yes; then
10622 pkg_check_gtk=yes
10623 else
10624 pkg_check_gtk=no
10627 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10628 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10631 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10633 GTK_OBJ=emacsgtkfixed.o
10636 if test "$pkg_check_gtk" != "yes"; then
10637 HAVE_GTK=no
10638 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10639 GLIB_REQUIRED=2.6
10640 GTK_REQUIRED=2.6
10641 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10644 succeeded=no
10646 # Extract the first word of "pkg-config", so it can be a program name with args.
10647 set dummy pkg-config; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 case $PKG_CONFIG in
10654 [\\/]* | ?:[\\/]*)
10655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10669 done
10670 done
10671 IFS=$as_save_IFS
10673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10675 esac
10677 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10678 if test -n "$PKG_CONFIG"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10680 $as_echo "$PKG_CONFIG" >&6; }
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10688 if test "$PKG_CONFIG" = "no" ; then
10689 pkg_check_gtk=no
10690 else
10691 PKG_CONFIG_MIN_VERSION=0.9.0
10692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10694 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10696 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10698 $as_echo "yes" >&6; }
10699 succeeded=yes
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10702 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10703 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10705 $as_echo "$GTK_CFLAGS" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10708 $as_echo_n "checking GTK_LIBS... " >&6; }
10709 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10711 $as_echo "$GTK_LIBS" >&6; }
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }
10715 GTK_CFLAGS=""
10716 GTK_LIBS=""
10717 ## If we have a custom action on failure, don't print errors, but
10718 ## do set a variable so people can do so.
10719 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10725 else
10726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10731 if test $succeeded = yes; then
10732 pkg_check_gtk=yes
10733 else
10734 pkg_check_gtk=no
10737 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10738 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10743 if test x"$pkg_check_gtk" = xyes; then
10747 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10748 CFLAGS="$CFLAGS $GTK_CFLAGS"
10749 LIBS="$GTK_LIBS $LIBS"
10750 GTK_COMPILES=no
10751 for ac_func in gtk_main
10752 do :
10753 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10754 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_GTK_MAIN 1
10757 _ACEOF
10758 GTK_COMPILES=yes
10760 done
10762 if test "${GTK_COMPILES}" != "yes"; then
10763 if test "$USE_X_TOOLKIT" != "maybe"; then
10764 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10766 else
10767 HAVE_GTK=yes
10769 $as_echo "#define USE_GTK 1" >>confdefs.h
10771 GTK_OBJ="gtkutil.o $GTK_OBJ"
10772 USE_X_TOOLKIT=none
10773 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10777 closing open displays. This is no problem if you just use
10778 one display, but if you use more than one and close one of them
10779 Emacs may crash." >&5
10780 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10781 closing open displays. This is no problem if you just use
10782 one display, but if you use more than one and close one of them
10783 Emacs may crash." >&2;}
10784 sleep 3
10792 if test "${HAVE_GTK}" = "yes"; then
10794 if test "$with_toolkit_scroll_bars" != no; then
10795 with_toolkit_scroll_bars=yes
10798 HAVE_GTK_FILE_SELECTION=no
10799 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10800 #include <gtk/gtk.h>
10802 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10803 HAVE_GTK_FILE_SELECTION=yes
10804 else
10805 HAVE_GTK_FILE_SELECTION=no
10808 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10809 for ac_func in gtk_file_selection_new
10810 do :
10811 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10812 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10813 cat >>confdefs.h <<_ACEOF
10814 #define HAVE_GTK_FILE_SELECTION_NEW 1
10815 _ACEOF
10818 done
10822 HAVE_GTK_AND_PTHREAD=no
10823 for ac_header in pthread.h
10824 do :
10825 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10826 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10827 cat >>confdefs.h <<_ACEOF
10828 #define HAVE_PTHREAD_H 1
10829 _ACEOF
10833 done
10835 if test "$ac_cv_header_pthread_h"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10837 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10838 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lpthread $LIBS"
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char pthread_self ();
10854 main ()
10856 return pthread_self ();
10858 return 0;
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"; then :
10862 ac_cv_lib_pthread_pthread_self=yes
10863 else
10864 ac_cv_lib_pthread_pthread_self=no
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868 LIBS=$ac_check_lib_save_LIBS
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10871 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10872 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10873 HAVE_GTK_AND_PTHREAD=yes
10877 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10878 case "${canonical}" in
10879 *-hpux*) ;;
10880 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10881 esac
10883 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10887 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10888 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10889 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10890 gtk_orientable_set_orientation
10891 do :
10892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10894 eval as_val=\$$as_ac_var
10895 if test "x$as_val" = x""yes; then :
10896 cat >>confdefs.h <<_ACEOF
10897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10898 _ACEOF
10901 done
10906 HAVE_DBUS=no
10907 DBUS_OBJ=
10908 if test "${with_dbus}" = "yes"; then
10910 succeeded=no
10912 # Extract the first word of "pkg-config", so it can be a program name with args.
10913 set dummy pkg-config; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 case $PKG_CONFIG in
10920 [\\/]* | ?:[\\/]*)
10921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10927 IFS=$as_save_IFS
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10935 done
10936 done
10937 IFS=$as_save_IFS
10939 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10941 esac
10943 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10944 if test -n "$PKG_CONFIG"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10946 $as_echo "$PKG_CONFIG" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10954 if test "$PKG_CONFIG" = "no" ; then
10955 HAVE_DBUS=no
10956 else
10957 PKG_CONFIG_MIN_VERSION=0.9.0
10958 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10960 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10962 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964 $as_echo "yes" >&6; }
10965 succeeded=yes
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10968 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10969 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10971 $as_echo "$DBUS_CFLAGS" >&6; }
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10974 $as_echo_n "checking DBUS_LIBS... " >&6; }
10975 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10977 $as_echo "$DBUS_LIBS" >&6; }
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980 $as_echo "no" >&6; }
10981 DBUS_CFLAGS=""
10982 DBUS_LIBS=""
10983 ## If we have a custom action on failure, don't print errors, but
10984 ## do set a variable so people can do so.
10985 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10991 else
10992 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10993 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10997 if test $succeeded = yes; then
10998 HAVE_DBUS=yes
10999 else
11000 HAVE_DBUS=no
11003 if test "$HAVE_DBUS" = yes; then
11004 LIBS="$LIBS $DBUS_LIBS"
11006 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11008 for ac_func in dbus_watch_get_unix_fd
11009 do :
11010 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11011 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11014 _ACEOF
11017 done
11019 DBUS_OBJ=dbusbind.o
11024 HAVE_GCONF=no
11025 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11027 succeeded=no
11029 # Extract the first word of "pkg-config", so it can be a program name with args.
11030 set dummy pkg-config; ac_word=$2
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 case $PKG_CONFIG in
11037 [\\/]* | ?:[\\/]*)
11038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 break 2
11052 done
11053 done
11054 IFS=$as_save_IFS
11056 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11058 esac
11060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11061 if test -n "$PKG_CONFIG"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11063 $as_echo "$PKG_CONFIG" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11071 if test "$PKG_CONFIG" = "no" ; then
11072 HAVE_GCONF=no
11073 else
11074 PKG_CONFIG_MIN_VERSION=0.9.0
11075 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11077 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11079 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11081 $as_echo "yes" >&6; }
11082 succeeded=yes
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11085 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11086 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11088 $as_echo "$GCONF_CFLAGS" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11091 $as_echo_n "checking GCONF_LIBS... " >&6; }
11092 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11094 $as_echo "$GCONF_LIBS" >&6; }
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11098 GCONF_CFLAGS=""
11099 GCONF_LIBS=""
11100 ## If we have a custom action on failure, don't print errors, but
11101 ## do set a variable so people can do so.
11102 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11108 else
11109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11114 if test $succeeded = yes; then
11115 HAVE_GCONF=yes
11116 else
11117 HAVE_GCONF=no
11120 if test "$HAVE_GCONF" = yes; then
11122 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11124 for ac_func in g_type_init
11125 do :
11126 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11127 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_G_TYPE_INIT 1
11130 _ACEOF
11133 done
11138 HAVE_LIBSELINUX=no
11139 LIBSELINUX_LIBS=
11140 if test "${with_selinux}" = "yes"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11142 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11143 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-lselinux $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char lgetfilecon ();
11159 main ()
11161 return lgetfilecon ();
11163 return 0;
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_selinux_lgetfilecon=yes
11168 else
11169 ac_cv_lib_selinux_lgetfilecon=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11176 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11177 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11178 HAVE_LIBSELINUX=yes
11179 else
11180 HAVE_LIBSELINUX=no
11183 if test "$HAVE_LIBSELINUX" = yes; then
11185 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11187 LIBSELINUX_LIBS=-lselinux
11192 HAVE_GNUTLS=no
11193 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11194 if test "${with_gnutls}" = "yes" ; then
11196 succeeded=no
11198 # Extract the first word of "pkg-config", so it can be a program name with args.
11199 set dummy pkg-config; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 case $PKG_CONFIG in
11206 [\\/]* | ?:[\\/]*)
11207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11221 done
11222 done
11223 IFS=$as_save_IFS
11225 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11227 esac
11229 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11230 if test -n "$PKG_CONFIG"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11232 $as_echo "$PKG_CONFIG" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11240 if test "$PKG_CONFIG" = "no" ; then
11241 HAVE_GNUTLS=no
11242 else
11243 PKG_CONFIG_MIN_VERSION=0.9.0
11244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11246 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11248 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11250 $as_echo "yes" >&6; }
11251 succeeded=yes
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11254 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11255 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11257 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11260 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11261 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11263 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 LIBGNUTLS_CFLAGS=""
11268 LIBGNUTLS_LIBS=""
11269 ## If we have a custom action on failure, don't print errors, but
11270 ## do set a variable so people can do so.
11271 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11277 else
11278 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11279 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11283 if test $succeeded = yes; then
11284 HAVE_GNUTLS=yes
11285 else
11286 HAVE_GNUTLS=no
11289 if test "${HAVE_GNUTLS}" = "yes"; then
11291 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11295 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11296 LIBS="$LIBGNUTLS_LIBS $LIBS"
11297 for ac_func in gnutls_certificate_set_verify_function
11298 do :
11299 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11300 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11301 cat >>confdefs.h <<_ACEOF
11302 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11303 _ACEOF
11304 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11306 done
11309 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11311 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11319 HAVE_XAW3D=no
11320 LUCID_LIBW=
11321 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11322 if test "$with_xaw3d" != no; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11324 $as_echo_n "checking for xaw3d... " >&6; }
11325 if test "${emacs_cv_xaw3d+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11331 #include <X11/Intrinsic.h>
11332 #include <X11/Xaw3d/Simple.h>
11334 main ()
11338 return 0;
11340 _ACEOF
11341 if ac_fn_c_try_link "$LINENO"; then :
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11343 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11344 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-lXaw3d $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char XawScrollbarSetThumb ();
11360 main ()
11362 return XawScrollbarSetThumb ();
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11369 else
11370 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11377 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11378 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11379 emacs_cv_xaw3d=yes
11380 else
11381 emacs_cv_xaw3d=no
11384 else
11385 emacs_cv_xaw3d=no
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11391 else
11392 emacs_cv_xaw3d=no
11394 if test $emacs_cv_xaw3d = yes; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11396 $as_echo "yes; using Lucid toolkit" >&6; }
11397 USE_X_TOOLKIT=LUCID
11398 HAVE_XAW3D=yes
11399 LUCID_LIBW=-lXaw3d
11401 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11407 $as_echo_n "checking for libXaw... " >&6; }
11408 if test "${emacs_cv_xaw+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11414 #include <X11/Intrinsic.h>
11415 #include <X11/Xaw/Simple.h>
11417 main ()
11421 return 0;
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425 emacs_cv_xaw=yes
11426 else
11427 emacs_cv_xaw=no
11429 rm -f core conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11433 if test $emacs_cv_xaw = yes; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11435 $as_echo "yes; using Lucid toolkit" >&6; }
11436 USE_X_TOOLKIT=LUCID
11437 LUCID_LIBW=-lXaw
11438 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11439 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11440 else
11441 as_fn_error "No X toolkit could be found.
11442 If you are sure you want Emacs compiled without an X toolkit, pass
11443 --with-x-toolkit=no
11444 to configure. Otherwise, install the development libraries for the toolkit
11445 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11450 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11452 LIBXTR6=
11453 if test "${USE_X_TOOLKIT}" != "none"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11455 $as_echo_n "checking X11 toolkit version... " >&6; }
11456 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461 #include <X11/Intrinsic.h>
11463 main ()
11465 #if XtSpecificationRelease < 6
11466 fail;
11467 #endif
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 emacs_cv_x11_toolkit_version_6=yes
11475 else
11476 emacs_cv_x11_toolkit_version_6=no
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11482 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11483 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11485 $as_echo "6 or newer" >&6; }
11487 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11489 LIBXTR6="-lSM -lICE"
11490 case "$opsys" in
11491 ## Use libw.a along with X11R6 Xt.
11492 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11493 esac
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11496 $as_echo "before 6" >&6; }
11499 OLDLIBS="$LIBS"
11500 if test x$HAVE_X11XTR6 = xyes; then
11501 LIBS="-lXt -lSM -lICE $LIBS"
11502 else
11503 LIBS="-lXt $LIBS"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11506 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11507 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-lXmu $LIBS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char XmuConvertStandardSelection ();
11523 main ()
11525 return XmuConvertStandardSelection ();
11527 return 0;
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11532 else
11533 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11535 rm -f core conftest.err conftest.$ac_objext \
11536 conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11540 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11541 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11542 cat >>confdefs.h <<_ACEOF
11543 #define HAVE_LIBXMU 1
11544 _ACEOF
11546 LIBS="-lXmu $LIBS"
11550 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11554 LIBXMU=-lXmu
11555 case $opsys in
11556 ## These systems don't supply Xmu.
11557 hpux* | aix4-2 )
11558 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11560 esac
11563 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11564 if test "${HAVE_X11}" = "yes"; then
11565 if test "${USE_X_TOOLKIT}" != "none"; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11567 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11568 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-lXext $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char XShapeQueryExtension ();
11584 main ()
11586 return XShapeQueryExtension ();
11588 return 0;
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_Xext_XShapeQueryExtension=yes
11593 else
11594 ac_cv_lib_Xext_XShapeQueryExtension=no
11596 rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11601 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11602 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11603 cat >>confdefs.h <<_ACEOF
11604 #define HAVE_LIBXEXT 1
11605 _ACEOF
11607 LIBS="-lXext $LIBS"
11614 LIBXP=
11615 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11617 $as_echo_n "checking for Motif version 2.1... " >&6; }
11618 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623 #include <Xm/Xm.h>
11625 main ()
11627 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11628 int x = 5;
11629 #else
11630 Motif version prior to 2.1.
11631 #endif
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_compile "$LINENO"; then :
11637 emacs_cv_motif_version_2_1=yes
11638 else
11639 emacs_cv_motif_version_2_1=no
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11644 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11645 if test $emacs_cv_motif_version_2_1 = yes; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11647 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11648 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 ac_check_lib_save_LIBS=$LIBS
11652 LIBS="-lXp $LIBS"
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11656 /* Override any GCC internal prototype to avoid an error.
11657 Use char because int might match the return type of a GCC
11658 builtin and then its argument prototype would still apply. */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 char XpCreateContext ();
11664 main ()
11666 return XpCreateContext ();
11668 return 0;
11670 _ACEOF
11671 if ac_fn_c_try_link "$LINENO"; then :
11672 ac_cv_lib_Xp_XpCreateContext=yes
11673 else
11674 ac_cv_lib_Xp_XpCreateContext=no
11676 rm -f core conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11681 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11682 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11683 LIBXP=-lXp
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11688 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11689 if test "${emacs_cv_lesstif+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 # We put this in CFLAGS temporarily to precede other -I options
11693 # that might be in CFLAGS temporarily.
11694 # We put this in CPPFLAGS where it precedes the other -I options.
11695 OLD_CPPFLAGS=$CPPFLAGS
11696 OLD_CFLAGS=$CFLAGS
11697 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11698 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11703 main ()
11705 int x = 5;
11707 return 0;
11709 _ACEOF
11710 if ac_fn_c_try_compile "$LINENO"; then :
11711 emacs_cv_lesstif=yes
11712 else
11713 emacs_cv_lesstif=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11718 $as_echo "$emacs_cv_lesstif" >&6; }
11719 if test $emacs_cv_lesstif = yes; then
11720 # Make sure this -I option remains in CPPFLAGS after it is set
11721 # back to REAL_CPPFLAGS.
11722 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11723 # have those other -I options anyway. Ultimately, having this
11724 # directory ultimately in CPPFLAGS will be enough.
11725 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11726 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11727 else
11728 CFLAGS=$OLD_CFLAGS
11729 CPPFLAGS=$OLD_CPPFLAGS
11735 USE_TOOLKIT_SCROLL_BARS=no
11736 if test "${with_toolkit_scroll_bars}" != "no"; then
11737 if test "${USE_X_TOOLKIT}" != "none"; then
11738 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11739 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11741 HAVE_XAW3D=no
11742 USE_TOOLKIT_SCROLL_BARS=yes
11743 elif test "${HAVE_XAW3D}" = "yes"; then
11744 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11746 USE_TOOLKIT_SCROLL_BARS=yes
11748 elif test "${HAVE_GTK}" = "yes"; then
11749 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11751 USE_TOOLKIT_SCROLL_BARS=yes
11752 elif test "${HAVE_NS}" = "yes"; then
11753 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11755 USE_TOOLKIT_SCROLL_BARS=yes
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 #include <X11/Xlib.h>
11763 #include <X11/Xresource.h>
11765 main ()
11767 XIMProc callback;
11769 return 0;
11771 _ACEOF
11772 if ac_fn_c_try_compile "$LINENO"; then :
11773 HAVE_XIM=yes
11775 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11777 else
11778 HAVE_XIM=no
11780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 if test "${with_xim}" != "no"; then
11785 $as_echo "#define USE_XIM 1" >>confdefs.h
11790 if test "${HAVE_XIM}" != "no"; then
11791 late_CFLAGS=$CFLAGS
11792 if test "$GCC" = yes; then
11793 CFLAGS="$CFLAGS --pedantic-errors"
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11798 #include <X11/Xlib.h>
11799 #include <X11/Xresource.h>
11801 main ()
11803 Display *display;
11804 XrmDatabase db;
11805 char *res_name;
11806 char *res_class;
11807 XIMProc callback;
11808 XPointer *client_data;
11809 #ifndef __GNUC__
11810 /* If we're not using GCC, it's probably not XFree86, and this is
11811 probably right, but we can't use something like --pedantic-errors. */
11812 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11813 char*, XIMProc, XPointer*);
11814 #endif
11815 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11816 client_data);
11818 return 0;
11820 _ACEOF
11821 if ac_fn_c_try_compile "$LINENO"; then :
11822 emacs_cv_arg6_star=yes
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 if test "$emacs_cv_arg6_star" = yes; then
11826 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11828 else
11829 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11832 CFLAGS=$late_CFLAGS
11835 ### Start of font-backend (under any platform) section.
11836 # (nothing here yet -- this is a placeholder)
11837 ### End of font-backend (under any platform) section.
11839 ### Start of font-backend (under X11) section.
11840 if test "${HAVE_X11}" = "yes"; then
11842 succeeded=no
11844 # Extract the first word of "pkg-config", so it can be a program name with args.
11845 set dummy pkg-config; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 case $PKG_CONFIG in
11852 [\\/]* | ?:[\\/]*)
11853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11859 IFS=$as_save_IFS
11860 test -z "$as_dir" && as_dir=.
11861 for ac_exec_ext in '' $ac_executable_extensions; do
11862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865 break 2
11867 done
11868 done
11869 IFS=$as_save_IFS
11871 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11873 esac
11875 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11876 if test -n "$PKG_CONFIG"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11878 $as_echo "$PKG_CONFIG" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11886 if test "$PKG_CONFIG" = "no" ; then
11887 HAVE_FC=no
11888 else
11889 PKG_CONFIG_MIN_VERSION=0.9.0
11890 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11892 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11894 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896 $as_echo "yes" >&6; }
11897 succeeded=yes
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11900 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11901 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11903 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11906 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11907 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11909 $as_echo "$FONTCONFIG_LIBS" >&6; }
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11913 FONTCONFIG_CFLAGS=""
11914 FONTCONFIG_LIBS=""
11915 ## If we have a custom action on failure, don't print errors, but
11916 ## do set a variable so people can do so.
11917 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11923 else
11924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11929 if test $succeeded = yes; then
11930 HAVE_FC=yes
11931 else
11932 HAVE_FC=no
11936 ## Use -lXft if available, unless `--with-xft=no'.
11937 HAVE_XFT=maybe
11938 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11939 with_xft="no";
11941 if test "x${with_xft}" != "xno"; then
11944 succeeded=no
11946 # Extract the first word of "pkg-config", so it can be a program name with args.
11947 set dummy pkg-config; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 case $PKG_CONFIG in
11954 [\\/]* | ?:[\\/]*)
11955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11975 esac
11977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11978 if test -n "$PKG_CONFIG"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11980 $as_echo "$PKG_CONFIG" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11988 if test "$PKG_CONFIG" = "no" ; then
11989 HAVE_XFT=no
11990 else
11991 PKG_CONFIG_MIN_VERSION=0.9.0
11992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11994 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11996 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
11999 succeeded=yes
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12002 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12003 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12005 $as_echo "$XFT_CFLAGS" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12008 $as_echo_n "checking XFT_LIBS... " >&6; }
12009 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12011 $as_echo "$XFT_LIBS" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 XFT_CFLAGS=""
12016 XFT_LIBS=""
12017 ## If we have a custom action on failure, don't print errors, but
12018 ## do set a variable so people can do so.
12019 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12025 else
12026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12031 if test $succeeded = yes; then
12033 else
12034 HAVE_XFT=no
12037 ## Because xftfont.c uses XRenderQueryExtension, we also
12038 ## need to link to -lXrender.
12039 HAVE_XRENDER=no
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12041 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12042 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-lXrender $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 char XRenderQueryExtension ();
12058 main ()
12060 return XRenderQueryExtension ();
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12067 else
12068 ac_cv_lib_Xrender_XRenderQueryExtension=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12075 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12076 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12077 HAVE_XRENDER=yes
12080 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12081 OLD_CPPFLAGS="$CPPFLAGS"
12082 OLD_CFLAGS="$CFLAGS"
12083 OLD_LIBS="$LIBS"
12084 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12085 CFLAGS="$CFLAGS $XFT_CFLAGS"
12086 XFT_LIBS="-lXrender $XFT_LIBS"
12087 LIBS="$XFT_LIBS $LIBS"
12088 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12091 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12092 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lXft $XFT_LIBS $LIBS"
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char XftFontOpen ();
12108 main ()
12110 return XftFontOpen ();
12112 return 0;
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 ac_cv_lib_Xft_XftFontOpen=yes
12117 else
12118 ac_cv_lib_Xft_XftFontOpen=no
12120 rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12122 LIBS=$ac_check_lib_save_LIBS
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12125 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12126 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12127 HAVE_XFT=yes
12134 if test "${HAVE_XFT}" = "yes"; then
12136 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12139 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12140 else
12141 CPPFLAGS="$OLD_CPPFLAGS"
12142 CFLAGS="$OLD_CFLAGS"
12143 LIBS="$OLD_LIBS"
12144 fi # "${HAVE_XFT}" = "yes"
12145 fi # "$HAVE_XFT" != no
12146 fi # "x${with_xft}" != "xno"
12148 ## We used to allow building with FreeType and without Xft.
12149 ## However, the ftx font backend driver is not in good shape.
12150 if test "$HAVE_XFT" != "yes"; then
12151 HAVE_XFT=no
12152 HAVE_FREETYPE=no
12153 else
12155 succeeded=no
12157 # Extract the first word of "pkg-config", so it can be a program name with args.
12158 set dummy pkg-config; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 case $PKG_CONFIG in
12165 [\\/]* | ?:[\\/]*)
12166 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12180 done
12181 done
12182 IFS=$as_save_IFS
12184 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12186 esac
12188 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12189 if test -n "$PKG_CONFIG"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12191 $as_echo "$PKG_CONFIG" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12199 if test "$PKG_CONFIG" = "no" ; then
12200 HAVE_FREETYPE=no
12201 else
12202 PKG_CONFIG_MIN_VERSION=0.9.0
12203 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12205 $as_echo_n "checking for freetype2... " >&6; }
12207 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12209 $as_echo "yes" >&6; }
12210 succeeded=yes
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12213 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12214 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12216 $as_echo "$FREETYPE_CFLAGS" >&6; }
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12219 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12220 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12222 $as_echo "$FREETYPE_LIBS" >&6; }
12223 else
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225 $as_echo "no" >&6; }
12226 FREETYPE_CFLAGS=""
12227 FREETYPE_LIBS=""
12228 ## If we have a custom action on failure, don't print errors, but
12229 ## do set a variable so people can do so.
12230 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12236 else
12237 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12238 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12242 if test $succeeded = yes; then
12243 HAVE_FREETYPE=yes
12244 else
12245 HAVE_FREETYPE=no
12249 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12252 HAVE_LIBOTF=no
12253 if test "${HAVE_FREETYPE}" = "yes"; then
12255 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12257 if test "${with_libotf}" != "no"; then
12259 succeeded=no
12261 # Extract the first word of "pkg-config", so it can be a program name with args.
12262 set dummy pkg-config; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 case $PKG_CONFIG in
12269 [\\/]* | ?:[\\/]*)
12270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12280 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12284 done
12285 done
12286 IFS=$as_save_IFS
12288 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12290 esac
12292 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12293 if test -n "$PKG_CONFIG"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12295 $as_echo "$PKG_CONFIG" >&6; }
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12303 if test "$PKG_CONFIG" = "no" ; then
12304 HAVE_LIBOTF=no
12305 else
12306 PKG_CONFIG_MIN_VERSION=0.9.0
12307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12309 $as_echo_n "checking for libotf... " >&6; }
12311 if $PKG_CONFIG --exists "libotf" 2>&5; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 succeeded=yes
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12317 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12318 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12320 $as_echo "$LIBOTF_CFLAGS" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12323 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12324 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12326 $as_echo "$LIBOTF_LIBS" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 LIBOTF_CFLAGS=""
12331 LIBOTF_LIBS=""
12332 ## If we have a custom action on failure, don't print errors, but
12333 ## do set a variable so people can do so.
12334 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12340 else
12341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12346 if test $succeeded = yes; then
12347 HAVE_LIBOTF=yes
12348 else
12349 HAVE_LIBOTF=no
12352 if test "$HAVE_LIBOTF" = "yes"; then
12354 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12357 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12358 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lotf $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12369 #ifdef __cplusplus
12370 extern "C"
12371 #endif
12372 char OTF_get_variation_glyphs ();
12374 main ()
12376 return OTF_get_variation_glyphs ();
12378 return 0;
12380 _ACEOF
12381 if ac_fn_c_try_link "$LINENO"; then :
12382 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12383 else
12384 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12386 rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12391 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12392 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12393 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12394 else
12395 HAVE_OTF_GET_VARIATION_GLYPHS=no
12398 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12400 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12407 HAVE_M17N_FLT=no
12408 if test "${HAVE_LIBOTF}" = yes; then
12409 if test "${with_m17n_flt}" != "no"; then
12411 succeeded=no
12413 # Extract the first word of "pkg-config", so it can be a program name with args.
12414 set dummy pkg-config; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 case $PKG_CONFIG in
12421 [\\/]* | ?:[\\/]*)
12422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12436 done
12437 done
12438 IFS=$as_save_IFS
12440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12442 esac
12444 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12445 if test -n "$PKG_CONFIG"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12447 $as_echo "$PKG_CONFIG" >&6; }
12448 else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12455 if test "$PKG_CONFIG" = "no" ; then
12456 HAVE_M17N_FLT=no
12457 else
12458 PKG_CONFIG_MIN_VERSION=0.9.0
12459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12461 $as_echo_n "checking for m17n-flt... " >&6; }
12463 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466 succeeded=yes
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12469 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12470 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12472 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12475 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12476 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12478 $as_echo "$M17N_FLT_LIBS" >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 M17N_FLT_CFLAGS=""
12483 M17N_FLT_LIBS=""
12484 ## If we have a custom action on failure, don't print errors, but
12485 ## do set a variable so people can do so.
12486 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12492 else
12493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12498 if test $succeeded = yes; then
12499 HAVE_M17N_FLT=yes
12500 else
12501 HAVE_M17N_FLT=no
12504 if test "$HAVE_M17N_FLT" = "yes"; then
12506 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12511 else
12512 HAVE_XFT=no
12513 HAVE_FREETYPE=no
12514 HAVE_LIBOTF=no
12515 HAVE_M17N_FLT=no
12518 ### End of font-backend (under X11) section.
12529 ### Use -lXpm if available, unless `--with-xpm=no'.
12530 HAVE_XPM=no
12531 LIBXPM=
12532 if test "${HAVE_X11}" = "yes"; then
12533 if test "${with_xpm}" != "no"; then
12534 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12535 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12537 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12538 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-lXpm -lX11 $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 char XpmReadFileToPixmap ();
12554 main ()
12556 return XpmReadFileToPixmap ();
12558 return 0;
12560 _ACEOF
12561 if ac_fn_c_try_link "$LINENO"; then :
12562 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12563 else
12564 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12566 rm -f core conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12571 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12572 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12573 HAVE_XPM=yes
12579 if test "${HAVE_XPM}" = "yes"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12581 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 #include "X11/xpm.h"
12585 #ifndef XpmReturnAllocPixels
12586 no_return_alloc_pixels
12587 #endif
12589 _ACEOF
12590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12591 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12592 HAVE_XPM=no
12593 else
12594 HAVE_XPM=yes
12596 rm -f conftest*
12599 if test "${HAVE_XPM}" = "yes"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12609 if test "${HAVE_XPM}" = "yes"; then
12611 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12613 LIBXPM=-lXpm
12618 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12619 HAVE_JPEG=no
12620 LIBJPEG=
12621 if test "${HAVE_X11}" = "yes"; then
12622 if test "${with_jpeg}" != "no"; then
12623 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12624 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12626 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12627 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-ljpeg $LIBS"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char jpeg_destroy_compress ();
12643 main ()
12645 return jpeg_destroy_compress ();
12647 return 0;
12649 _ACEOF
12650 if ac_fn_c_try_link "$LINENO"; then :
12651 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12652 else
12653 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12660 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12661 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12662 HAVE_JPEG=yes
12670 if test "${HAVE_JPEG}" = "yes"; then
12671 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675 #include <jpeglib.h>
12676 version=JPEG_LIB_VERSION
12678 _ACEOF
12679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12680 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12681 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12685 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12686 HAVE_JPEG=no
12688 rm -f conftest*
12691 if test "${HAVE_JPEG}" = "yes"; then
12692 LIBJPEG=-ljpeg
12697 ### Use -lpng if available, unless `--with-png=no'.
12698 HAVE_PNG=no
12699 LIBPNG=
12700 if test "${HAVE_X11}" = "yes"; then
12701 if test "${with_png}" != "no"; then
12702 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12703 # in /usr/include/libpng.
12704 for ac_header in png.h libpng/png.h
12705 do :
12706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12707 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12708 eval as_val=\$$as_ac_Header
12709 if test "x$as_val" = x""yes; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712 _ACEOF
12716 done
12718 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12720 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12721 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 ac_check_lib_save_LIBS=$LIBS
12725 LIBS="-lpng -lz -lm $LIBS"
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12729 /* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 char png_get_channels ();
12737 main ()
12739 return png_get_channels ();
12741 return 0;
12743 _ACEOF
12744 if ac_fn_c_try_link "$LINENO"; then :
12745 ac_cv_lib_png_png_get_channels=yes
12746 else
12747 ac_cv_lib_png_png_get_channels=no
12749 rm -f core conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12754 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12755 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12756 HAVE_PNG=yes
12762 if test "${HAVE_PNG}" = "yes"; then
12764 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12766 LIBPNG="-lpng -lz -lm"
12771 ### Use -ltiff if available, unless `--with-tiff=no'.
12772 HAVE_TIFF=no
12773 LIBTIFF=
12774 if test "${HAVE_X11}" = "yes"; then
12775 if test "${with_tiff}" != "no"; then
12776 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12777 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12778 tifflibs="-lz -lm"
12779 # At least one tiff package requires the jpeg library.
12780 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12782 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12783 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 ac_check_lib_save_LIBS=$LIBS
12787 LIBS="-ltiff $tifflibs $LIBS"
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char TIFFGetVersion ();
12799 main ()
12801 return TIFFGetVersion ();
12803 return 0;
12805 _ACEOF
12806 if ac_fn_c_try_link "$LINENO"; then :
12807 ac_cv_lib_tiff_TIFFGetVersion=yes
12808 else
12809 ac_cv_lib_tiff_TIFFGetVersion=no
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12816 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12817 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12818 HAVE_TIFF=yes
12826 if test "${HAVE_TIFF}" = "yes"; then
12828 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12830 LIBTIFF=-ltiff
12835 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12836 HAVE_GIF=no
12837 LIBGIF=
12838 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12839 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12840 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12841 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12842 # Earlier versions can crash Emacs.
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12844 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12845 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-lgif $LIBS"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* Override any GCC internal prototype to avoid an error.
12854 Use char because int might match the return type of a GCC
12855 builtin and then its argument prototype would still apply. */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 char EGifPutExtensionLast ();
12861 main ()
12863 return EGifPutExtensionLast ();
12865 return 0;
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_lib_gif_EGifPutExtensionLast=yes
12870 else
12871 ac_cv_lib_gif_EGifPutExtensionLast=no
12873 rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12878 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12879 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12880 HAVE_GIF=yes
12881 else
12882 HAVE_GIF=maybe
12889 if test "$HAVE_GIF" = yes; then
12890 LIBGIF=-lgif
12891 elif test "$HAVE_GIF" = maybe; then
12892 # If gif_lib.h but no libgif, try libungif.
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12894 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12895 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-lungif $LIBS"
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 char EGifPutExtensionLast ();
12911 main ()
12913 return EGifPutExtensionLast ();
12915 return 0;
12917 _ACEOF
12918 if ac_fn_c_try_link "$LINENO"; then :
12919 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12920 else
12921 ac_cv_lib_ungif_EGifPutExtensionLast=no
12923 rm -f core conftest.err conftest.$ac_objext \
12924 conftest$ac_exeext conftest.$ac_ext
12925 LIBS=$ac_check_lib_save_LIBS
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12928 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12929 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12930 HAVE_GIF=yes
12931 else
12932 HAVE_GIF=no
12935 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12938 if test "${HAVE_GIF}" = "yes"; then
12940 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12946 if test "${HAVE_X11}" = "yes"; then
12947 MISSING=""
12948 WITH_NO=""
12949 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12950 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12951 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12952 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12953 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12954 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12955 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12956 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12957 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12958 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12960 if test "X${MISSING}" != X; then
12961 as_fn_error "The following required libraries were not found:
12962 $MISSING
12963 Maybe some development libraries/packages are missing?
12964 If you don't want to link with them give
12965 $WITH_NO
12966 as options to configure" "$LINENO" 5
12970 ### Use -lgpm if available, unless `--with-gpm=no'.
12971 HAVE_GPM=no
12972 LIBGPM=
12973 if test "${with_gpm}" != "no"; then
12974 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12975 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12977 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12978 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 ac_check_lib_save_LIBS=$LIBS
12982 LIBS="-lgpm $LIBS"
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12989 #ifdef __cplusplus
12990 extern "C"
12991 #endif
12992 char Gpm_Open ();
12994 main ()
12996 return Gpm_Open ();
12998 return 0;
13000 _ACEOF
13001 if ac_fn_c_try_link "$LINENO"; then :
13002 ac_cv_lib_gpm_Gpm_Open=yes
13003 else
13004 ac_cv_lib_gpm_Gpm_Open=no
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13011 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13012 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13013 HAVE_GPM=yes
13020 if test "${HAVE_GPM}" = "yes"; then
13022 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13024 LIBGPM=-lgpm
13029 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13030 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13032 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13038 C_SWITCH_X_SYSTEM=
13039 ### Use NeXTstep API to implement GUI.
13040 if test "${HAVE_NS}" = "yes"; then
13042 $as_echo "#define HAVE_NS 1" >>confdefs.h
13044 if test "${NS_IMPL_COCOA}" = "yes"; then
13046 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13048 GNU_OBJC_CFLAGS=
13050 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13052 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13054 # See also .m.o rule in Makefile.in */
13055 # FIXME: are all these flags really needed? Document here why. */
13056 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13057 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13059 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13061 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13064 # We also have mouse menus.
13065 HAVE_MENUS=yes
13066 OTHER_FILES=ns-app
13070 ### Use session management (-lSM -lICE) if available
13071 HAVE_X_SM=no
13072 LIBXSM=
13073 if test "${HAVE_X11}" = "yes"; then
13074 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13077 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13078 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 ac_check_lib_save_LIBS=$LIBS
13082 LIBS="-lSM -lICE $LIBS"
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13089 #ifdef __cplusplus
13090 extern "C"
13091 #endif
13092 char SmcOpenConnection ();
13094 main ()
13096 return SmcOpenConnection ();
13098 return 0;
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_lib_SM_SmcOpenConnection=yes
13103 else
13104 ac_cv_lib_SM_SmcOpenConnection=no
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 LIBS=$ac_check_lib_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13111 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13112 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13113 HAVE_X_SM=yes
13120 if test "${HAVE_X_SM}" = "yes"; then
13122 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13124 LIBXSM="-lSM -lICE"
13125 case "$LIBS" in
13126 *-lSM*) ;;
13127 *) LIBS="$LIBXSM $LIBS" ;;
13128 esac
13133 ### Use libxml (-lxml2) if available
13134 if test "${with_xml2}" != "no"; then
13135 ### I'm not sure what the version number should be, so I just guessed.
13137 succeeded=no
13139 # Extract the first word of "pkg-config", so it can be a program name with args.
13140 set dummy pkg-config; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 case $PKG_CONFIG in
13147 [\\/]* | ?:[\\/]*)
13148 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13158 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160 break 2
13162 done
13163 done
13164 IFS=$as_save_IFS
13166 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13168 esac
13170 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13171 if test -n "$PKG_CONFIG"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13173 $as_echo "$PKG_CONFIG" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13181 if test "$PKG_CONFIG" = "no" ; then
13182 HAVE_LIBXML2=no
13183 else
13184 PKG_CONFIG_MIN_VERSION=0.9.0
13185 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13187 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13189 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13191 $as_echo "yes" >&6; }
13192 succeeded=yes
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13195 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13196 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13198 $as_echo "$LIBXML2_CFLAGS" >&6; }
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13201 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13202 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13204 $as_echo "$LIBXML2_LIBS" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 LIBXML2_CFLAGS=""
13209 LIBXML2_LIBS=""
13210 ## If we have a custom action on failure, don't print errors, but
13211 ## do set a variable so people can do so.
13212 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13218 else
13219 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13220 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13224 if test $succeeded = yes; then
13225 HAVE_LIBXML2=yes
13226 else
13227 HAVE_LIBXML2=no
13230 if test "${HAVE_LIBXML2}" = "yes"; then
13231 LIBS="$LIBXML2_LIBS $LIBS"
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13233 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13234 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 ac_check_lib_save_LIBS=$LIBS
13238 LIBS="-lxml2 $LIBS"
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13242 /* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13245 #ifdef __cplusplus
13246 extern "C"
13247 #endif
13248 char htmlReadMemory ();
13250 main ()
13252 return htmlReadMemory ();
13254 return 0;
13256 _ACEOF
13257 if ac_fn_c_try_link "$LINENO"; then :
13258 ac_cv_lib_xml2_htmlReadMemory=yes
13259 else
13260 ac_cv_lib_xml2_htmlReadMemory=no
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 LIBS=$ac_check_lib_save_LIBS
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13267 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13268 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13269 HAVE_LIBXML2=yes
13270 else
13271 HAVE_LIBXML2=no
13274 if test "${HAVE_LIBXML2}" = "yes"; then
13276 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13278 else
13279 LIBXML2_LIBS=""
13280 LIBXML2_CFLAGS=""
13287 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13289 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13290 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #include <netdb.h>
13297 main ()
13299 return h_errno;
13301 return 0;
13303 _ACEOF
13304 if ac_fn_c_try_link "$LINENO"; then :
13305 emacs_cv_netdb_declares_h_errno=yes
13306 else
13307 emacs_cv_netdb_declares_h_errno=no
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13313 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13314 if test $emacs_cv_netdb_declares_h_errno = yes; then
13316 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13320 # fmod, logb, and frexp are found in -lm on most systems.
13321 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13323 $as_echo_n "checking for sqrt in -lm... " >&6; }
13324 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 ac_check_lib_save_LIBS=$LIBS
13328 LIBS="-lm $LIBS"
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13332 /* Override any GCC internal prototype to avoid an error.
13333 Use char because int might match the return type of a GCC
13334 builtin and then its argument prototype would still apply. */
13335 #ifdef __cplusplus
13336 extern "C"
13337 #endif
13338 char sqrt ();
13340 main ()
13342 return sqrt ();
13344 return 0;
13346 _ACEOF
13347 if ac_fn_c_try_link "$LINENO"; then :
13348 ac_cv_lib_m_sqrt=yes
13349 else
13350 ac_cv_lib_m_sqrt=no
13352 rm -f core conftest.err conftest.$ac_objext \
13353 conftest$ac_exeext conftest.$ac_ext
13354 LIBS=$ac_check_lib_save_LIBS
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13357 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13358 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13359 cat >>confdefs.h <<_ACEOF
13360 #define HAVE_LIBM 1
13361 _ACEOF
13363 LIBS="-lm $LIBS"
13368 # Check for mail-locking functions in a "mail" library. Probably this should
13369 # have the same check as for liblockfile below.
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13371 $as_echo_n "checking for maillock in -lmail... " >&6; }
13372 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 ac_check_lib_save_LIBS=$LIBS
13376 LIBS="-lmail $LIBS"
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13380 /* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383 #ifdef __cplusplus
13384 extern "C"
13385 #endif
13386 char maillock ();
13388 main ()
13390 return maillock ();
13392 return 0;
13394 _ACEOF
13395 if ac_fn_c_try_link "$LINENO"; then :
13396 ac_cv_lib_mail_maillock=yes
13397 else
13398 ac_cv_lib_mail_maillock=no
13400 rm -f core conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 LIBS=$ac_check_lib_save_LIBS
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13405 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13406 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13407 have_mail=yes
13408 else
13409 have_mail=no
13412 if test $have_mail = yes; then
13413 LIBS_MAIL=-lmail
13414 LIBS="$LIBS_MAIL $LIBS"
13416 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13418 else
13419 LIBS_MAIL=
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13422 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13423 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-llockfile $LIBS"
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13431 /* Override any GCC internal prototype to avoid an error.
13432 Use char because int might match the return type of a GCC
13433 builtin and then its argument prototype would still apply. */
13434 #ifdef __cplusplus
13435 extern "C"
13436 #endif
13437 char maillock ();
13439 main ()
13441 return maillock ();
13443 return 0;
13445 _ACEOF
13446 if ac_fn_c_try_link "$LINENO"; then :
13447 ac_cv_lib_lockfile_maillock=yes
13448 else
13449 ac_cv_lib_lockfile_maillock=no
13451 rm -f core conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13453 LIBS=$ac_check_lib_save_LIBS
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13456 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13457 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13458 have_lockfile=yes
13459 else
13460 have_lockfile=no
13463 if test $have_lockfile = yes; then
13464 LIBS_MAIL=-llockfile
13465 LIBS="$LIBS_MAIL $LIBS"
13467 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13469 else
13470 # If we have the shared liblockfile, assume we must use it for mail
13471 # locking (e.g. Debian). If we couldn't link against liblockfile
13472 # (no liblockfile.a installed), ensure that we don't need to.
13473 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13474 set dummy liblockfile.so; ac_word=$2
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
13479 else
13480 if test -n "$liblockfile"; then
13481 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13482 else
13483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13485 for as_dir in $as_dummy
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13491 ac_cv_prog_liblockfile="yes"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13495 done
13496 done
13497 IFS=$as_save_IFS
13499 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13502 liblockfile=$ac_cv_prog_liblockfile
13503 if test -n "$liblockfile"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13505 $as_echo "$liblockfile" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13512 if test $ac_cv_prog_liblockfile = yes; then
13513 as_fn_error "Shared liblockfile found but can't link against it.
13514 This probably means that movemail could lose mail.
13515 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13518 for ac_func in touchlock
13519 do :
13520 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13521 if test "x$ac_cv_func_touchlock" = x""yes; then :
13522 cat >>confdefs.h <<_ACEOF
13523 #define HAVE_TOUCHLOCK 1
13524 _ACEOF
13527 done
13529 for ac_header in maillock.h
13530 do :
13531 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13532 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13533 cat >>confdefs.h <<_ACEOF
13534 #define HAVE_MAILLOCK_H 1
13535 _ACEOF
13539 done
13543 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13544 ## interlock access to the mail spool. The alternative is a lock file named
13545 ## /usr/spool/mail/$USER.lock.
13546 mail_lock=no
13547 case "$opsys" in
13548 aix4-2) mail_lock="lockf" ;;
13550 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13552 ## On GNU/Linux systems, both methods are used by various mail programs.
13553 ## I assume most people are using newer mailers that have heard of flock.
13554 ## Change this if you need to.
13555 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13556 ## configure gets the right answers, and that means *NOT* using flock.
13557 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13558 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13559 ## Debian maintainer hasn't provided a clean fix for Emacs.
13560 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13561 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13562 ## correct logic. -- fx
13563 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13564 ## liblockfile is a Free Software replacement for libmail, used on
13565 ## Debian systems and elsewhere. -rfr.
13566 gnu-*)
13567 mail_lock="flock"
13568 if test $have_mail = yes || test $have_lockfile = yes; then
13569 test $ac_cv_header_maillock_h = yes && mail_lock=no
13572 esac
13574 BLESSMAIL_TARGET=
13575 case "$mail_lock" in
13576 flock)
13577 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13580 lockf)
13581 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13584 *) BLESSMAIL_TARGET="need-blessmail" ;;
13585 esac
13589 for ac_func in gethostname getdomainname dup2 \
13590 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13591 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13592 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13593 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13594 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13595 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13596 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13597 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13598 cfmakeraw cfsetspeed isnan copysign __executable_start
13599 do :
13600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13602 eval as_val=\$$as_ac_var
13603 if test "x$as_val" = x""yes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13606 _ACEOF
13609 done
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13613 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13614 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13621 main ()
13623 __builtin_unwind_init ();
13625 return 0;
13627 _ACEOF
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 emacs_cv_func___builtin_unwind_init=yes
13630 else
13631 emacs_cv_func___builtin_unwind_init=no
13633 rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13637 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13638 if test $emacs_cv_func___builtin_unwind_init = yes; then
13640 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13644 for ac_header in sys/un.h
13645 do :
13646 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13647 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13648 cat >>confdefs.h <<_ACEOF
13649 #define HAVE_SYS_UN_H 1
13650 _ACEOF
13654 done
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13658 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13659 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 while :; do
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665 #include <sys/types.h> /* for off_t */
13666 #include <stdio.h>
13668 main ()
13670 int (*fp) (FILE *, off_t, int) = fseeko;
13671 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13673 return 0;
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 ac_cv_sys_largefile_source=no; break
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #define _LARGEFILE_SOURCE 1
13684 #include <sys/types.h> /* for off_t */
13685 #include <stdio.h>
13687 main ()
13689 int (*fp) (FILE *, off_t, int) = fseeko;
13690 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13692 return 0;
13694 _ACEOF
13695 if ac_fn_c_try_link "$LINENO"; then :
13696 ac_cv_sys_largefile_source=1; break
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13700 ac_cv_sys_largefile_source=unknown
13701 break
13702 done
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13705 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13706 case $ac_cv_sys_largefile_source in #(
13707 no | unknown) ;;
13709 cat >>confdefs.h <<_ACEOF
13710 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13711 _ACEOF
13713 esac
13714 rm -rf conftest*
13716 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13717 # in glibc 2.1.3, but that breaks too many other things.
13718 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13719 if test $ac_cv_sys_largefile_source != unknown; then
13721 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13727 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13728 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 # Use it with a single arg.
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 $ac_includes_default
13736 main ()
13738 getpgrp (0);
13740 return 0;
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"; then :
13744 ac_cv_func_getpgrp_void=no
13745 else
13746 ac_cv_func_getpgrp_void=yes
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13752 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13753 if test $ac_cv_func_getpgrp_void = yes; then
13755 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13760 # Configure gnulib.
13771 LIBC_FATAL_STDERR_=1
13772 export LIBC_FATAL_STDERR_
13774 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13775 # for constant arguments. Useless!
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13777 $as_echo_n "checking for working alloca.h... " >&6; }
13778 if test "${ac_cv_working_alloca_h+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 #include <alloca.h>
13785 main ()
13787 char *p = (char *) alloca (2 * sizeof (int));
13788 if (p) return 0;
13790 return 0;
13792 _ACEOF
13793 if ac_fn_c_try_link "$LINENO"; then :
13794 ac_cv_working_alloca_h=yes
13795 else
13796 ac_cv_working_alloca_h=no
13798 rm -f core conftest.err conftest.$ac_objext \
13799 conftest$ac_exeext conftest.$ac_ext
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13802 $as_echo "$ac_cv_working_alloca_h" >&6; }
13803 if test $ac_cv_working_alloca_h = yes; then
13805 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13810 $as_echo_n "checking for alloca... " >&6; }
13811 if test "${ac_cv_func_alloca_works+set}" = set; then :
13812 $as_echo_n "(cached) " >&6
13813 else
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #ifdef __GNUC__
13817 # define alloca __builtin_alloca
13818 #else
13819 # ifdef _MSC_VER
13820 # include <malloc.h>
13821 # define alloca _alloca
13822 # else
13823 # ifdef HAVE_ALLOCA_H
13824 # include <alloca.h>
13825 # else
13826 # ifdef _AIX
13827 #pragma alloca
13828 # else
13829 # ifndef alloca /* predefined by HP cc +Olibcalls */
13830 char *alloca ();
13831 # endif
13832 # endif
13833 # endif
13834 # endif
13835 #endif
13838 main ()
13840 char *p = (char *) alloca (1);
13841 if (p) return 0;
13843 return 0;
13845 _ACEOF
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_func_alloca_works=yes
13848 else
13849 ac_cv_func_alloca_works=no
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13855 $as_echo "$ac_cv_func_alloca_works" >&6; }
13857 if test $ac_cv_func_alloca_works = yes; then
13859 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13861 else
13862 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13863 # that cause trouble. Some versions do not even contain alloca or
13864 # contain a buggy version. If you still want to use their alloca,
13865 # use ar to extract alloca.o from them instead of compiling alloca.c.
13871 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13873 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13877 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13878 if test "${ac_cv_os_cray+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 #if defined CRAY && ! defined CRAY2
13884 webecray
13885 #else
13886 wenotbecray
13887 #endif
13889 _ACEOF
13890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13891 $EGREP "webecray" >/dev/null 2>&1; then :
13892 ac_cv_os_cray=yes
13893 else
13894 ac_cv_os_cray=no
13896 rm -f conftest*
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13900 $as_echo "$ac_cv_os_cray" >&6; }
13901 if test $ac_cv_os_cray = yes; then
13902 for ac_func in _getb67 GETB67 getb67; do
13903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13905 eval as_val=\$$as_ac_var
13906 if test "x$as_val" = x""yes; then :
13908 cat >>confdefs.h <<_ACEOF
13909 #define CRAY_STACKSEG_END $ac_func
13910 _ACEOF
13912 break
13915 done
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13919 $as_echo_n "checking stack direction for C alloca... " >&6; }
13920 if test "${ac_cv_c_stack_direction+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
13922 else
13923 if test "$cross_compiling" = yes; then :
13924 ac_cv_c_stack_direction=0
13925 else
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 $ac_includes_default
13930 find_stack_direction (int *addr, int depth)
13932 int dir, dummy = 0;
13933 if (! addr)
13934 addr = &dummy;
13935 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13936 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13937 return dir + dummy;
13941 main (int argc, char **argv)
13943 return find_stack_direction (0, argc + !argv + 20) < 0;
13945 _ACEOF
13946 if ac_fn_c_try_run "$LINENO"; then :
13947 ac_cv_c_stack_direction=1
13948 else
13949 ac_cv_c_stack_direction=-1
13951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13952 conftest.$ac_objext conftest.beam conftest.$ac_ext
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13957 $as_echo "$ac_cv_c_stack_direction" >&6; }
13958 cat >>confdefs.h <<_ACEOF
13959 #define STACK_DIRECTION $ac_cv_c_stack_direction
13960 _ACEOF
13968 for ac_func in $ac_func_list
13969 do :
13970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13971 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13972 eval as_val=\$$as_ac_var
13973 if test "x$as_val" = x""yes; then :
13974 cat >>confdefs.h <<_ACEOF
13975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13976 _ACEOF
13979 done
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13985 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13986 if test "${ac_cv_c_bigendian+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 ac_cv_c_bigendian=unknown
13990 # See if we're dealing with a universal compiler.
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 #ifndef __APPLE_CC__
13994 not a universal capable compiler
13995 #endif
13996 typedef int dummy;
13998 _ACEOF
13999 if ac_fn_c_try_compile "$LINENO"; then :
14001 # Check for potential -arch flags. It is not universal unless
14002 # there are at least two -arch flags with different values.
14003 ac_arch=
14004 ac_prev=
14005 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14006 if test -n "$ac_prev"; then
14007 case $ac_word in
14008 i?86 | x86_64 | ppc | ppc64)
14009 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14010 ac_arch=$ac_word
14011 else
14012 ac_cv_c_bigendian=universal
14013 break
14016 esac
14017 ac_prev=
14018 elif test "x$ac_word" = "x-arch"; then
14019 ac_prev=arch
14021 done
14023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 if test $ac_cv_c_bigendian = unknown; then
14025 # See if sys/param.h defines the BYTE_ORDER macro.
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14029 #include <sys/param.h>
14032 main ()
14034 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14035 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14036 && LITTLE_ENDIAN)
14037 bogus endian macros
14038 #endif
14041 return 0;
14043 _ACEOF
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045 # It does; now see whether it defined to BIG_ENDIAN or not.
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 #include <sys/types.h>
14049 #include <sys/param.h>
14052 main ()
14054 #if BYTE_ORDER != BIG_ENDIAN
14055 not big endian
14056 #endif
14059 return 0;
14061 _ACEOF
14062 if ac_fn_c_try_compile "$LINENO"; then :
14063 ac_cv_c_bigendian=yes
14064 else
14065 ac_cv_c_bigendian=no
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 if test $ac_cv_c_bigendian = unknown; then
14072 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 #include <limits.h>
14078 main ()
14080 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14081 bogus endian macros
14082 #endif
14085 return 0;
14087 _ACEOF
14088 if ac_fn_c_try_compile "$LINENO"; then :
14089 # It does; now see whether it defined to _BIG_ENDIAN or not.
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <limits.h>
14095 main ()
14097 #ifndef _BIG_ENDIAN
14098 not big endian
14099 #endif
14102 return 0;
14104 _ACEOF
14105 if ac_fn_c_try_compile "$LINENO"; then :
14106 ac_cv_c_bigendian=yes
14107 else
14108 ac_cv_c_bigendian=no
14110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 if test $ac_cv_c_bigendian = unknown; then
14115 # Compile a test program.
14116 if test "$cross_compiling" = yes; then :
14117 # Try to guess by grepping values from an object file.
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120 short int ascii_mm[] =
14121 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14122 short int ascii_ii[] =
14123 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14124 int use_ascii (int i) {
14125 return ascii_mm[i] + ascii_ii[i];
14127 short int ebcdic_ii[] =
14128 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14129 short int ebcdic_mm[] =
14130 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14131 int use_ebcdic (int i) {
14132 return ebcdic_mm[i] + ebcdic_ii[i];
14134 extern int foo;
14137 main ()
14139 return use_ascii (foo) == use_ebcdic (foo);
14141 return 0;
14143 _ACEOF
14144 if ac_fn_c_try_compile "$LINENO"; then :
14145 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14146 ac_cv_c_bigendian=yes
14148 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14149 if test "$ac_cv_c_bigendian" = unknown; then
14150 ac_cv_c_bigendian=no
14151 else
14152 # finding both strings is unlikely to happen, but who knows?
14153 ac_cv_c_bigendian=unknown
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 else
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 $ac_includes_default
14163 main ()
14166 /* Are we little or big endian? From Harbison&Steele. */
14167 union
14169 long int l;
14170 char c[sizeof (long int)];
14171 } u;
14172 u.l = 1;
14173 return u.c[sizeof (long int) - 1] == 1;
14176 return 0;
14178 _ACEOF
14179 if ac_fn_c_try_run "$LINENO"; then :
14180 ac_cv_c_bigendian=no
14181 else
14182 ac_cv_c_bigendian=yes
14184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14185 conftest.$ac_objext conftest.beam conftest.$ac_ext
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14191 $as_echo "$ac_cv_c_bigendian" >&6; }
14192 case $ac_cv_c_bigendian in #(
14193 yes)
14194 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14195 ;; #(
14197 ;; #(
14198 universal)
14200 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14202 ;; #(
14204 as_fn_error "unknown endianness
14205 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14206 esac
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14210 $as_echo_n "checking for inline... " >&6; }
14211 if test "${ac_cv_c_inline+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_cv_c_inline=no
14215 for ac_kw in inline __inline__ __inline; do
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 #ifndef __cplusplus
14219 typedef int foo_t;
14220 static $ac_kw foo_t static_foo () {return 0; }
14221 $ac_kw foo_t foo () {return 0; }
14222 #endif
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 ac_cv_c_inline=$ac_kw
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14229 test "$ac_cv_c_inline" != no && break
14230 done
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14234 $as_echo "$ac_cv_c_inline" >&6; }
14236 case $ac_cv_c_inline in
14237 inline | yes) ;;
14239 case $ac_cv_c_inline in
14240 no) ac_val=;;
14241 *) ac_val=$ac_cv_c_inline;;
14242 esac
14243 cat >>confdefs.h <<_ACEOF
14244 #ifndef __cplusplus
14245 #define inline $ac_val
14246 #endif
14247 _ACEOF
14249 esac
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
14253 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
14254 if test "${gl_cv_func_c99_strtold+set}" = set; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 /* On HP-UX before 11.23, strtold returns a struct instead of
14260 long double. Reject implementations like that, by requiring
14261 compatibility with the C99 prototype. */
14262 #include <stdlib.h>
14263 static long double (*p) (char const *, char **) = strtold;
14264 static long double
14265 test (char const *nptr, char **endptr)
14267 long double r;
14268 r = strtold (nptr, endptr);
14269 return r;
14272 main ()
14274 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
14276 return 0;
14278 _ACEOF
14279 if ac_fn_c_try_link "$LINENO"; then :
14280 gl_cv_func_c99_strtold=yes
14281 else
14282 gl_cv_func_c99_strtold=no
14284 rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
14288 $as_echo "$gl_cv_func_c99_strtold" >&6; }
14289 if test $gl_cv_func_c99_strtold = yes; then
14291 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14296 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14297 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14303 #include <sys/types.h>
14304 #include <sys/stat.h>
14306 main ()
14308 struct stat s; s.st_dm_mode;
14310 return 0;
14312 _ACEOF
14313 if ac_fn_c_try_compile "$LINENO"; then :
14314 ac_cv_struct_st_dm_mode=yes
14315 else
14316 ac_cv_struct_st_dm_mode=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14321 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14323 if test $ac_cv_struct_st_dm_mode = yes; then
14325 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14330 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14331 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14332 ac_have_decl=1
14333 else
14334 ac_have_decl=0
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_DECL_STRMODE $ac_have_decl
14339 _ACEOF
14342 GNULIB__EXIT=0;
14343 GNULIB_ATOLL=0;
14344 GNULIB_CALLOC_POSIX=0;
14345 GNULIB_CANONICALIZE_FILE_NAME=0;
14346 GNULIB_GETLOADAVG=0;
14347 GNULIB_GETSUBOPT=0;
14348 GNULIB_GRANTPT=0;
14349 GNULIB_MALLOC_POSIX=0;
14350 GNULIB_MBTOWC=0;
14351 GNULIB_MKDTEMP=0;
14352 GNULIB_MKOSTEMP=0;
14353 GNULIB_MKOSTEMPS=0;
14354 GNULIB_MKSTEMP=0;
14355 GNULIB_MKSTEMPS=0;
14356 GNULIB_PTSNAME=0;
14357 GNULIB_PUTENV=0;
14358 GNULIB_RANDOM_R=0;
14359 GNULIB_REALLOC_POSIX=0;
14360 GNULIB_REALPATH=0;
14361 GNULIB_RPMATCH=0;
14362 GNULIB_SETENV=0;
14363 GNULIB_STRTOD=0;
14364 GNULIB_STRTOLL=0;
14365 GNULIB_STRTOULL=0;
14366 GNULIB_SYSTEM_POSIX=0;
14367 GNULIB_UNLOCKPT=0;
14368 GNULIB_UNSETENV=0;
14369 GNULIB_WCTOMB=0;
14370 HAVE__EXIT=1;
14371 HAVE_ATOLL=1;
14372 HAVE_CANONICALIZE_FILE_NAME=1;
14373 HAVE_DECL_GETLOADAVG=1;
14374 HAVE_GETSUBOPT=1;
14375 HAVE_GRANTPT=1;
14376 HAVE_MKDTEMP=1;
14377 HAVE_MKOSTEMP=1;
14378 HAVE_MKOSTEMPS=1;
14379 HAVE_MKSTEMP=1;
14380 HAVE_MKSTEMPS=1;
14381 HAVE_PTSNAME=1;
14382 HAVE_RANDOM_H=1;
14383 HAVE_RANDOM_R=1;
14384 HAVE_REALPATH=1;
14385 HAVE_RPMATCH=1;
14386 HAVE_SETENV=1;
14387 HAVE_DECL_SETENV=1;
14388 HAVE_STRTOD=1;
14389 HAVE_STRTOLL=1;
14390 HAVE_STRTOULL=1;
14391 HAVE_STRUCT_RANDOM_DATA=1;
14392 HAVE_SYS_LOADAVG_H=0;
14393 HAVE_UNLOCKPT=1;
14394 HAVE_DECL_UNSETENV=1;
14395 REPLACE_CALLOC=0;
14396 REPLACE_CANONICALIZE_FILE_NAME=0;
14397 REPLACE_MALLOC=0;
14398 REPLACE_MBTOWC=0;
14399 REPLACE_MKSTEMP=0;
14400 REPLACE_PUTENV=0;
14401 REPLACE_REALLOC=0;
14402 REPLACE_REALPATH=0;
14403 REPLACE_SETENV=0;
14404 REPLACE_STRTOD=0;
14405 REPLACE_UNSETENV=0;
14406 REPLACE_WCTOMB=0;
14409 GNULIB_CHOWN=0;
14410 GNULIB_CLOSE=0;
14411 GNULIB_DUP2=0;
14412 GNULIB_DUP3=0;
14413 GNULIB_ENVIRON=0;
14414 GNULIB_EUIDACCESS=0;
14415 GNULIB_FACCESSAT=0;
14416 GNULIB_FCHDIR=0;
14417 GNULIB_FCHOWNAT=0;
14418 GNULIB_FSYNC=0;
14419 GNULIB_FTRUNCATE=0;
14420 GNULIB_GETCWD=0;
14421 GNULIB_GETDOMAINNAME=0;
14422 GNULIB_GETDTABLESIZE=0;
14423 GNULIB_GETGROUPS=0;
14424 GNULIB_GETHOSTNAME=0;
14425 GNULIB_GETLOGIN=0;
14426 GNULIB_GETLOGIN_R=0;
14427 GNULIB_GETPAGESIZE=0;
14428 GNULIB_GETUSERSHELL=0;
14429 GNULIB_GROUP_MEMBER=0;
14430 GNULIB_LCHOWN=0;
14431 GNULIB_LINK=0;
14432 GNULIB_LINKAT=0;
14433 GNULIB_LSEEK=0;
14434 GNULIB_PIPE=0;
14435 GNULIB_PIPE2=0;
14436 GNULIB_PREAD=0;
14437 GNULIB_PWRITE=0;
14438 GNULIB_READ=0;
14439 GNULIB_READLINK=0;
14440 GNULIB_READLINKAT=0;
14441 GNULIB_RMDIR=0;
14442 GNULIB_SLEEP=0;
14443 GNULIB_SYMLINK=0;
14444 GNULIB_SYMLINKAT=0;
14445 GNULIB_TTYNAME_R=0;
14446 GNULIB_UNISTD_H_GETOPT=0;
14447 GNULIB_UNISTD_H_NONBLOCKING=0;
14448 GNULIB_UNISTD_H_SIGPIPE=0;
14449 GNULIB_UNLINK=0;
14450 GNULIB_UNLINKAT=0;
14451 GNULIB_USLEEP=0;
14452 GNULIB_WRITE=0;
14453 HAVE_CHOWN=1;
14454 HAVE_DUP2=1;
14455 HAVE_DUP3=1;
14456 HAVE_EUIDACCESS=1;
14457 HAVE_FACCESSAT=1;
14458 HAVE_FCHDIR=1;
14459 HAVE_FCHOWNAT=1;
14460 HAVE_FSYNC=1;
14461 HAVE_FTRUNCATE=1;
14462 HAVE_GETDTABLESIZE=1;
14463 HAVE_GETGROUPS=1;
14464 HAVE_GETHOSTNAME=1;
14465 HAVE_GETLOGIN=1;
14466 HAVE_GETPAGESIZE=1;
14467 HAVE_GROUP_MEMBER=1;
14468 HAVE_LCHOWN=1;
14469 HAVE_LINK=1;
14470 HAVE_LINKAT=1;
14471 HAVE_PIPE=1;
14472 HAVE_PIPE2=1;
14473 HAVE_PREAD=1;
14474 HAVE_PWRITE=1;
14475 HAVE_READLINK=1;
14476 HAVE_READLINKAT=1;
14477 HAVE_SLEEP=1;
14478 HAVE_SYMLINK=1;
14479 HAVE_SYMLINKAT=1;
14480 HAVE_UNLINKAT=1;
14481 HAVE_USLEEP=1;
14482 HAVE_DECL_ENVIRON=1;
14483 HAVE_DECL_FCHDIR=1;
14484 HAVE_DECL_GETDOMAINNAME=1;
14485 HAVE_DECL_GETLOGIN_R=1;
14486 HAVE_DECL_GETPAGESIZE=1;
14487 HAVE_DECL_GETUSERSHELL=1;
14488 HAVE_DECL_TTYNAME_R=1;
14489 HAVE_OS_H=0;
14490 HAVE_SYS_PARAM_H=0;
14491 REPLACE_CHOWN=0;
14492 REPLACE_CLOSE=0;
14493 REPLACE_DUP=0;
14494 REPLACE_DUP2=0;
14495 REPLACE_FCHOWNAT=0;
14496 REPLACE_GETCWD=0;
14497 REPLACE_GETDOMAINNAME=0;
14498 REPLACE_GETLOGIN_R=0;
14499 REPLACE_GETGROUPS=0;
14500 REPLACE_GETPAGESIZE=0;
14501 REPLACE_LCHOWN=0;
14502 REPLACE_LINK=0;
14503 REPLACE_LINKAT=0;
14504 REPLACE_LSEEK=0;
14505 REPLACE_PREAD=0;
14506 REPLACE_PWRITE=0;
14507 REPLACE_READ=0;
14508 REPLACE_READLINK=0;
14509 REPLACE_RMDIR=0;
14510 REPLACE_SLEEP=0;
14511 REPLACE_SYMLINK=0;
14512 REPLACE_TTYNAME_R=0;
14513 REPLACE_UNLINK=0;
14514 REPLACE_UNLINKAT=0;
14515 REPLACE_USLEEP=0;
14516 REPLACE_WRITE=0;
14517 UNISTD_H_HAVE_WINSOCK2_H=0;
14518 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14524 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14525 if test "${gl_cv_have_include_next+set}" = set; then :
14526 $as_echo_n "(cached) " >&6
14527 else
14528 rm -rf conftestd1a conftestd1b conftestd2
14529 mkdir conftestd1a conftestd1b conftestd2
14530 cat <<EOF > conftestd1a/conftest.h
14531 #define DEFINED_IN_CONFTESTD1
14532 #include_next <conftest.h>
14533 #ifdef DEFINED_IN_CONFTESTD2
14534 int foo;
14535 #else
14536 #error "include_next doesn't work"
14537 #endif
14539 cat <<EOF > conftestd1b/conftest.h
14540 #define DEFINED_IN_CONFTESTD1
14541 #include <stdio.h>
14542 #include_next <conftest.h>
14543 #ifdef DEFINED_IN_CONFTESTD2
14544 int foo;
14545 #else
14546 #error "include_next doesn't work"
14547 #endif
14549 cat <<EOF > conftestd2/conftest.h
14550 #ifndef DEFINED_IN_CONFTESTD1
14551 #error "include_next test doesn't work"
14552 #endif
14553 #define DEFINED_IN_CONFTESTD2
14555 gl_save_CPPFLAGS="$CPPFLAGS"
14556 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <conftest.h>
14560 _ACEOF
14561 if ac_fn_c_try_compile "$LINENO"; then :
14562 gl_cv_have_include_next=yes
14563 else
14564 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <conftest.h>
14568 _ACEOF
14569 if ac_fn_c_try_compile "$LINENO"; then :
14570 gl_cv_have_include_next=buggy
14571 else
14572 gl_cv_have_include_next=no
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 CPPFLAGS="$gl_save_CPPFLAGS"
14579 rm -rf conftestd1a conftestd1b conftestd2
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14583 $as_echo "$gl_cv_have_include_next" >&6; }
14584 PRAGMA_SYSTEM_HEADER=
14585 if test $gl_cv_have_include_next = yes; then
14586 INCLUDE_NEXT=include_next
14587 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14588 if test -n "$GCC"; then
14589 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14591 else
14592 if test $gl_cv_have_include_next = buggy; then
14593 INCLUDE_NEXT=include
14594 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14595 else
14596 INCLUDE_NEXT=include
14597 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14604 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14605 if test "${gl_cv_pragma_columns+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14611 #ifdef __TANDEM
14612 choke me
14613 #endif
14615 _ACEOF
14616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14617 $EGREP "choke me" >/dev/null 2>&1; then :
14618 gl_cv_pragma_columns=yes
14619 else
14620 gl_cv_pragma_columns=no
14622 rm -f conftest*
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14627 $as_echo "$gl_cv_pragma_columns" >&6; }
14628 if test $gl_cv_pragma_columns = yes; then
14629 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14630 else
14631 PRAGMA_COLUMNS=
14650 if test $gl_cv_have_include_next = yes; then
14651 gl_cv_next_getopt_h='<'getopt.h'>'
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14654 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14655 if test "${gl_cv_next_getopt_h+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14659 if test $ac_cv_header_getopt_h = yes; then
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 #include <getopt.h>
14666 _ACEOF
14667 case "$host_os" in
14668 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14669 *) gl_absname_cpp="$ac_cpp" ;;
14670 esac
14671 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14672 sed -n '\#/getopt.h#{
14673 s#.*"\(.*/getopt.h\)".*#\1#
14674 s#^/[^/]#//&#
14677 }'`'"'
14678 else
14679 gl_cv_next_getopt_h='<'getopt.h'>'
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14685 $as_echo "$gl_cv_next_getopt_h" >&6; }
14687 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14689 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14690 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14691 gl_next_as_first_directive='<'getopt.h'>'
14692 else
14693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14694 gl_next_as_first_directive=$gl_cv_next_getopt_h
14696 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14701 if test $ac_cv_header_getopt_h = yes; then
14702 HAVE_GETOPT_H=1
14703 else
14704 HAVE_GETOPT_H=0
14708 gl_replace_getopt=
14710 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14711 for ac_header in getopt.h
14712 do :
14713 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14714 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14715 cat >>confdefs.h <<_ACEOF
14716 #define HAVE_GETOPT_H 1
14717 _ACEOF
14719 else
14720 gl_replace_getopt=yes
14723 done
14727 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14728 for ac_func in getopt_long_only
14729 do :
14730 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14731 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_GETOPT_LONG_ONLY 1
14734 _ACEOF
14736 else
14737 gl_replace_getopt=yes
14739 done
14743 if test -z "$gl_replace_getopt"; then
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14745 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14746 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 #include <unistd.h>
14754 main ()
14756 int *p = &optreset; return optreset;
14758 return 0;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 gl_optind_min=1
14763 else
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 #include <getopt.h>
14768 main ()
14770 return !getopt_clip;
14772 return 0;
14774 _ACEOF
14775 if ac_fn_c_try_compile "$LINENO"; then :
14776 gl_optind_min=1
14777 else
14778 gl_optind_min=0
14780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 gl_save_CPPFLAGS=$CPPFLAGS
14785 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14786 if test "$cross_compiling" = yes; then :
14787 case "$host_os" in
14788 mingw*) gl_cv_func_getopt_posix="guessing no";;
14789 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14790 *) gl_cv_func_getopt_posix="guessing yes";;
14791 esac
14793 else
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14797 #include <unistd.h>
14798 #include <stdlib.h>
14799 #include <string.h>
14802 main ()
14805 int argc = 0;
14806 char *argv[10];
14807 int c;
14809 argv[argc++] = "program";
14810 argv[argc++] = "-a";
14811 argv[argc++] = "foo";
14812 argv[argc++] = "bar";
14813 argv[argc] = NULL;
14814 optind = OPTIND_MIN;
14815 opterr = 0;
14817 c = getopt (argc, argv, "ab");
14818 if (!(c == 'a'))
14819 return 1;
14820 c = getopt (argc, argv, "ab");
14821 if (!(c == -1))
14822 return 2;
14823 if (!(optind == 2))
14824 return 3;
14826 /* Some internal state exists at this point. */
14828 int argc = 0;
14829 char *argv[10];
14830 int c;
14832 argv[argc++] = "program";
14833 argv[argc++] = "donald";
14834 argv[argc++] = "-p";
14835 argv[argc++] = "billy";
14836 argv[argc++] = "duck";
14837 argv[argc++] = "-a";
14838 argv[argc++] = "bar";
14839 argv[argc] = NULL;
14840 optind = OPTIND_MIN;
14841 opterr = 0;
14843 c = getopt (argc, argv, "+abp:q:");
14844 if (!(c == -1))
14845 return 4;
14846 if (!(strcmp (argv[0], "program") == 0))
14847 return 5;
14848 if (!(strcmp (argv[1], "donald") == 0))
14849 return 6;
14850 if (!(strcmp (argv[2], "-p") == 0))
14851 return 7;
14852 if (!(strcmp (argv[3], "billy") == 0))
14853 return 8;
14854 if (!(strcmp (argv[4], "duck") == 0))
14855 return 9;
14856 if (!(strcmp (argv[5], "-a") == 0))
14857 return 10;
14858 if (!(strcmp (argv[6], "bar") == 0))
14859 return 11;
14860 if (!(optind == 1))
14861 return 12;
14863 /* Detect MacOS 10.5, AIX 7.1 bug. */
14865 char *argv[3] = { "program", "-ab", NULL };
14866 optind = OPTIND_MIN;
14867 opterr = 0;
14868 if (getopt (2, argv, "ab:") != 'a')
14869 return 13;
14870 if (getopt (2, argv, "ab:") != '?')
14871 return 14;
14872 if (optopt != 'b')
14873 return 15;
14874 if (optind != 2)
14875 return 16;
14878 return 0;
14881 _ACEOF
14882 if ac_fn_c_try_run "$LINENO"; then :
14883 gl_cv_func_getopt_posix=yes
14884 else
14885 gl_cv_func_getopt_posix=no
14887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14888 conftest.$ac_objext conftest.beam conftest.$ac_ext
14891 CPPFLAGS=$gl_save_CPPFLAGS
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14895 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14896 case "$gl_cv_func_getopt_posix" in
14897 *no) gl_replace_getopt=yes ;;
14898 esac
14901 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14903 $as_echo_n "checking for working GNU getopt function... " >&6; }
14904 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14905 $as_echo_n "(cached) " >&6
14906 else
14907 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14908 # optstring is necessary for programs like m4 that have POSIX-mandated
14909 # semantics for supporting options interspersed with files.
14910 # Also, since getopt_long is a GNU extension, we require optind=0.
14911 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14912 # so take care to revert to the correct (non-)export state.
14913 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14914 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14915 xx) gl_had_POSIXLY_CORRECT=exported ;;
14916 x) gl_had_POSIXLY_CORRECT=yes ;;
14917 *) gl_had_POSIXLY_CORRECT= ;;
14918 esac
14919 POSIXLY_CORRECT=1
14920 export POSIXLY_CORRECT
14921 if test "$cross_compiling" = yes; then :
14922 case $host_os:$ac_cv_have_decl_optreset in
14923 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14924 *:yes) gl_cv_func_getopt_gnu=no;;
14925 *) gl_cv_func_getopt_gnu=yes;;
14926 esac
14928 else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 #include <getopt.h>
14932 #include <stddef.h>
14933 #include <string.h>
14936 main ()
14939 int result = 0;
14940 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14941 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14942 OSF/1 5.1, Solaris 10. */
14944 char *myargv[3];
14945 myargv[0] = "conftest";
14946 myargv[1] = "-+";
14947 myargv[2] = 0;
14948 opterr = 0;
14949 if (getopt (2, myargv, "+a") != '?')
14950 result |= 1;
14952 /* This code succeeds on glibc 2.8, mingw,
14953 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14954 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14956 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14958 optind = 1;
14959 if (getopt (4, argv, "p::") != 'p')
14960 result |= 2;
14961 else if (optarg != NULL)
14962 result |= 4;
14963 else if (getopt (4, argv, "p::") != -1)
14964 result |= 6;
14965 else if (optind != 2)
14966 result |= 8;
14968 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14970 char *argv[] = { "program", "foo", "-p", NULL };
14971 optind = 0;
14972 if (getopt (3, argv, "-p") != 1)
14973 result |= 16;
14974 else if (getopt (3, argv, "-p") != 'p')
14975 result |= 32;
14977 /* This code fails on glibc 2.11. */
14979 char *argv[] = { "program", "-b", "-a", NULL };
14980 optind = opterr = 0;
14981 if (getopt (3, argv, "+:a:b") != 'b')
14982 result |= 64;
14983 else if (getopt (3, argv, "+:a:b") != ':')
14984 result |= 64;
14986 return result;
14989 return 0;
14991 _ACEOF
14992 if ac_fn_c_try_run "$LINENO"; then :
14993 gl_cv_func_getopt_gnu=yes
14994 else
14995 gl_cv_func_getopt_gnu=no
14997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14998 conftest.$ac_objext conftest.beam conftest.$ac_ext
15001 case $gl_had_POSIXLY_CORRECT in
15002 exported) ;;
15003 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
15004 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
15005 esac
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
15009 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15010 if test "$gl_cv_func_getopt_gnu" = "no"; then
15011 gl_replace_getopt=yes
15019 REPLACE_GETOPT=0
15022 if test -n "$gl_replace_getopt"; then :
15024 REPLACE_GETOPT=1
15029 if test $REPLACE_GETOPT = 1; then
15031 GETOPT_H=getopt.h
15033 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15037 GNULIB_UNISTD_H_GETOPT=1
15040 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
15041 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
15042 ac_have_decl=1
15043 else
15044 ac_have_decl=0
15047 cat >>confdefs.h <<_ACEOF
15048 #define HAVE_DECL_GETENV $ac_have_decl
15049 _ACEOF
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15053 $as_echo_n "checking for unsigned long long int... " >&6; }
15054 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
15055 $as_echo_n "(cached) " >&6
15056 else
15057 ac_cv_type_unsigned_long_long_int=yes
15058 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15062 /* For now, do not test the preprocessor; as of 2007 there are too many
15063 implementations with broken preprocessors. Perhaps this can
15064 be revisited in 2012. In the meantime, code should not expect
15065 #if to work with literals wider than 32 bits. */
15066 /* Test literals. */
15067 long long int ll = 9223372036854775807ll;
15068 long long int nll = -9223372036854775807LL;
15069 unsigned long long int ull = 18446744073709551615ULL;
15070 /* Test constant expressions. */
15071 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15072 ? 1 : -1)];
15073 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15074 ? 1 : -1)];
15075 int i = 63;
15077 main ()
15079 /* Test availability of runtime routines for shift and division. */
15080 long long int llmax = 9223372036854775807ll;
15081 unsigned long long int ullmax = 18446744073709551615ull;
15082 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15083 | (llmax / ll) | (llmax % ll)
15084 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15085 | (ullmax / ull) | (ullmax % ull));
15087 return 0;
15090 _ACEOF
15091 if ac_fn_c_try_link "$LINENO"; then :
15093 else
15094 ac_cv_type_unsigned_long_long_int=no
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15101 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15102 if test $ac_cv_type_unsigned_long_long_int = yes; then
15104 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15111 $as_echo_n "checking for long long int... " >&6; }
15112 if test "${ac_cv_type_long_long_int+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 ac_cv_type_long_long_int=yes
15116 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15117 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15118 if test $ac_cv_type_long_long_int = yes; then
15119 if test "$cross_compiling" = yes; then :
15121 else
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124 #include <limits.h>
15125 #ifndef LLONG_MAX
15126 # define HALF \
15127 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15128 # define LLONG_MAX (HALF - 1 + HALF)
15129 #endif
15131 main ()
15133 long long int n = 1;
15134 int i;
15135 for (i = 0; ; i++)
15137 long long int m = n << i;
15138 if (m >> i != n)
15139 return 1;
15140 if (LLONG_MAX / 2 < m)
15141 break;
15143 return 0;
15145 return 0;
15147 _ACEOF
15148 if ac_fn_c_try_run "$LINENO"; then :
15150 else
15151 ac_cv_type_long_long_int=no
15153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15154 conftest.$ac_objext conftest.beam conftest.$ac_ext
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15161 $as_echo "$ac_cv_type_long_long_int" >&6; }
15162 if test $ac_cv_type_long_long_int = yes; then
15164 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15173 gl_cv_c_multiarch=no
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176 #ifndef __APPLE_CC__
15177 not a universal capable compiler
15178 #endif
15179 typedef int dummy;
15181 _ACEOF
15182 if ac_fn_c_try_compile "$LINENO"; then :
15184 arch=
15185 prev=
15186 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15187 if test -n "$prev"; then
15188 case $word in
15189 i?86 | x86_64 | ppc | ppc64)
15190 if test -z "$arch" || test "$arch" = "$word"; then
15191 arch="$word"
15192 else
15193 gl_cv_c_multiarch=yes
15196 esac
15197 prev=
15198 else
15199 if test "x$word" = "x-arch"; then
15200 prev=arch
15203 done
15206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 if test $gl_cv_c_multiarch = yes; then
15208 APPLE_UNIVERSAL_BUILD=1
15209 else
15210 APPLE_UNIVERSAL_BUILD=0
15217 if test $ac_cv_type_long_long_int = yes; then
15218 HAVE_LONG_LONG_INT=1
15219 else
15220 HAVE_LONG_LONG_INT=0
15224 if test $ac_cv_type_unsigned_long_long_int = yes; then
15225 HAVE_UNSIGNED_LONG_LONG_INT=1
15226 else
15227 HAVE_UNSIGNED_LONG_LONG_INT=0
15232 if test $ac_cv_header_wchar_h = yes; then
15233 HAVE_WCHAR_H=1
15234 else
15235 HAVE_WCHAR_H=0
15239 if test $ac_cv_header_inttypes_h = yes; then
15240 HAVE_INTTYPES_H=1
15241 else
15242 HAVE_INTTYPES_H=0
15246 if test $ac_cv_header_sys_types_h = yes; then
15247 HAVE_SYS_TYPES_H=1
15248 else
15249 HAVE_SYS_TYPES_H=0
15262 if test $gl_cv_have_include_next = yes; then
15263 gl_cv_next_stdint_h='<'stdint.h'>'
15264 else
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15266 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15267 if test "${gl_cv_next_stdint_h+set}" = set; then :
15268 $as_echo_n "(cached) " >&6
15269 else
15271 if test $ac_cv_header_stdint_h = yes; then
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 #include <stdint.h>
15278 _ACEOF
15279 case "$host_os" in
15280 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15281 *) gl_absname_cpp="$ac_cpp" ;;
15282 esac
15283 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15284 sed -n '\#/stdint.h#{
15285 s#.*"\(.*/stdint.h\)".*#\1#
15286 s#^/[^/]#//&#
15289 }'`'"'
15290 else
15291 gl_cv_next_stdint_h='<'stdint.h'>'
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15297 $as_echo "$gl_cv_next_stdint_h" >&6; }
15299 NEXT_STDINT_H=$gl_cv_next_stdint_h
15301 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15303 gl_next_as_first_directive='<'stdint.h'>'
15304 else
15305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15306 gl_next_as_first_directive=$gl_cv_next_stdint_h
15308 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15313 if test $ac_cv_header_stdint_h = yes; then
15314 HAVE_STDINT_H=1
15315 else
15316 HAVE_STDINT_H=0
15320 if test $ac_cv_header_stdint_h = yes; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15322 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15323 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 gl_cv_header_working_stdint_h=no
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15331 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15332 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15333 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15334 #include <stdint.h>
15335 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15336 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15337 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15338 #endif
15341 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15342 included before <wchar.h>. */
15343 #include <stddef.h>
15344 #include <signal.h>
15345 #if HAVE_WCHAR_H
15346 # include <stdio.h>
15347 # include <time.h>
15348 # include <wchar.h>
15349 #endif
15352 #ifdef INT8_MAX
15353 int8_t a1 = INT8_MAX;
15354 int8_t a1min = INT8_MIN;
15355 #endif
15356 #ifdef INT16_MAX
15357 int16_t a2 = INT16_MAX;
15358 int16_t a2min = INT16_MIN;
15359 #endif
15360 #ifdef INT32_MAX
15361 int32_t a3 = INT32_MAX;
15362 int32_t a3min = INT32_MIN;
15363 #endif
15364 #ifdef INT64_MAX
15365 int64_t a4 = INT64_MAX;
15366 int64_t a4min = INT64_MIN;
15367 #endif
15368 #ifdef UINT8_MAX
15369 uint8_t b1 = UINT8_MAX;
15370 #else
15371 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15372 #endif
15373 #ifdef UINT16_MAX
15374 uint16_t b2 = UINT16_MAX;
15375 #endif
15376 #ifdef UINT32_MAX
15377 uint32_t b3 = UINT32_MAX;
15378 #endif
15379 #ifdef UINT64_MAX
15380 uint64_t b4 = UINT64_MAX;
15381 #endif
15382 int_least8_t c1 = INT8_C (0x7f);
15383 int_least8_t c1max = INT_LEAST8_MAX;
15384 int_least8_t c1min = INT_LEAST8_MIN;
15385 int_least16_t c2 = INT16_C (0x7fff);
15386 int_least16_t c2max = INT_LEAST16_MAX;
15387 int_least16_t c2min = INT_LEAST16_MIN;
15388 int_least32_t c3 = INT32_C (0x7fffffff);
15389 int_least32_t c3max = INT_LEAST32_MAX;
15390 int_least32_t c3min = INT_LEAST32_MIN;
15391 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15392 int_least64_t c4max = INT_LEAST64_MAX;
15393 int_least64_t c4min = INT_LEAST64_MIN;
15394 uint_least8_t d1 = UINT8_C (0xff);
15395 uint_least8_t d1max = UINT_LEAST8_MAX;
15396 uint_least16_t d2 = UINT16_C (0xffff);
15397 uint_least16_t d2max = UINT_LEAST16_MAX;
15398 uint_least32_t d3 = UINT32_C (0xffffffff);
15399 uint_least32_t d3max = UINT_LEAST32_MAX;
15400 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15401 uint_least64_t d4max = UINT_LEAST64_MAX;
15402 int_fast8_t e1 = INT_FAST8_MAX;
15403 int_fast8_t e1min = INT_FAST8_MIN;
15404 int_fast16_t e2 = INT_FAST16_MAX;
15405 int_fast16_t e2min = INT_FAST16_MIN;
15406 int_fast32_t e3 = INT_FAST32_MAX;
15407 int_fast32_t e3min = INT_FAST32_MIN;
15408 int_fast64_t e4 = INT_FAST64_MAX;
15409 int_fast64_t e4min = INT_FAST64_MIN;
15410 uint_fast8_t f1 = UINT_FAST8_MAX;
15411 uint_fast16_t f2 = UINT_FAST16_MAX;
15412 uint_fast32_t f3 = UINT_FAST32_MAX;
15413 uint_fast64_t f4 = UINT_FAST64_MAX;
15414 #ifdef INTPTR_MAX
15415 intptr_t g = INTPTR_MAX;
15416 intptr_t gmin = INTPTR_MIN;
15417 #endif
15418 #ifdef UINTPTR_MAX
15419 uintptr_t h = UINTPTR_MAX;
15420 #endif
15421 intmax_t i = INTMAX_MAX;
15422 uintmax_t j = UINTMAX_MAX;
15424 #include <limits.h> /* for CHAR_BIT */
15425 #define TYPE_MINIMUM(t) \
15426 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15427 #define TYPE_MAXIMUM(t) \
15428 ((t) ((t) 0 < (t) -1 \
15429 ? (t) -1 \
15430 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15431 struct s {
15432 int check_PTRDIFF:
15433 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15434 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15435 ? 1 : -1;
15436 /* Detect bug in FreeBSD 6.0 / ia64. */
15437 int check_SIG_ATOMIC:
15438 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15439 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15440 ? 1 : -1;
15441 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15442 int check_WCHAR:
15443 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15444 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15445 ? 1 : -1;
15446 /* Detect bug in mingw. */
15447 int check_WINT:
15448 WINT_MIN == TYPE_MINIMUM (wint_t)
15449 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15450 ? 1 : -1;
15452 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15453 int check_UINT8_C:
15454 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15455 int check_UINT16_C:
15456 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15458 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15459 #ifdef UINT8_MAX
15460 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15461 #endif
15462 #ifdef UINT16_MAX
15463 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15464 #endif
15465 #ifdef UINT32_MAX
15466 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15467 #endif
15468 #ifdef UINT64_MAX
15469 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15470 #endif
15471 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15472 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15473 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15474 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15475 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15476 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15477 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15478 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15479 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15480 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15481 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15485 main ()
15489 return 0;
15491 _ACEOF
15492 if ac_fn_c_try_compile "$LINENO"; then :
15493 if test "$cross_compiling" = yes; then :
15494 gl_cv_header_working_stdint_h=yes
15496 else
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15501 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15502 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15503 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15504 #include <stdint.h>
15507 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15508 included before <wchar.h>. */
15509 #include <stddef.h>
15510 #include <signal.h>
15511 #if HAVE_WCHAR_H
15512 # include <stdio.h>
15513 # include <time.h>
15514 # include <wchar.h>
15515 #endif
15518 #include <stdio.h>
15519 #include <string.h>
15520 #define MVAL(macro) MVAL1(macro)
15521 #define MVAL1(expression) #expression
15522 static const char *macro_values[] =
15524 #ifdef INT8_MAX
15525 MVAL (INT8_MAX),
15526 #endif
15527 #ifdef INT16_MAX
15528 MVAL (INT16_MAX),
15529 #endif
15530 #ifdef INT32_MAX
15531 MVAL (INT32_MAX),
15532 #endif
15533 #ifdef INT64_MAX
15534 MVAL (INT64_MAX),
15535 #endif
15536 #ifdef UINT8_MAX
15537 MVAL (UINT8_MAX),
15538 #endif
15539 #ifdef UINT16_MAX
15540 MVAL (UINT16_MAX),
15541 #endif
15542 #ifdef UINT32_MAX
15543 MVAL (UINT32_MAX),
15544 #endif
15545 #ifdef UINT64_MAX
15546 MVAL (UINT64_MAX),
15547 #endif
15548 NULL
15552 main ()
15555 const char **mv;
15556 for (mv = macro_values; *mv != NULL; mv++)
15558 const char *value = *mv;
15559 /* Test whether it looks like a cast expression. */
15560 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15561 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15562 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15563 || strncmp (value, "((int)"/*)*/, 6) == 0
15564 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15565 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15566 return mv - macro_values + 1;
15568 return 0;
15571 return 0;
15573 _ACEOF
15574 if ac_fn_c_try_run "$LINENO"; then :
15575 gl_cv_header_working_stdint_h=yes
15577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15578 conftest.$ac_objext conftest.beam conftest.$ac_ext
15583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15587 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15589 if test "$gl_cv_header_working_stdint_h" = yes; then
15590 STDINT_H=
15591 else
15592 for ac_header in sys/inttypes.h sys/bitypes.h
15593 do :
15594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15596 eval as_val=\$$as_ac_Header
15597 if test "x$as_val" = x""yes; then :
15598 cat >>confdefs.h <<_ACEOF
15599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15600 _ACEOF
15604 done
15606 if test $ac_cv_header_sys_inttypes_h = yes; then
15607 HAVE_SYS_INTTYPES_H=1
15608 else
15609 HAVE_SYS_INTTYPES_H=0
15612 if test $ac_cv_header_sys_bitypes_h = yes; then
15613 HAVE_SYS_BITYPES_H=1
15614 else
15615 HAVE_SYS_BITYPES_H=0
15621 if test $APPLE_UNIVERSAL_BUILD = 0; then
15624 for gltype in ptrdiff_t size_t ; do
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15626 $as_echo_n "checking for bit size of $gltype... " >&6; }
15627 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15631 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15632 included before <wchar.h>. */
15633 #include <stddef.h>
15634 #include <signal.h>
15635 #if HAVE_WCHAR_H
15636 # include <stdio.h>
15637 # include <time.h>
15638 # include <wchar.h>
15639 #endif
15641 #include <limits.h>"; then :
15643 else
15644 result=unknown
15647 eval gl_cv_bitsizeof_${gltype}=\$result
15650 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15652 $as_echo "$ac_res" >&6; }
15653 eval result=\$gl_cv_bitsizeof_${gltype}
15654 if test $result = unknown; then
15655 result=0
15657 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15658 cat >>confdefs.h <<_ACEOF
15659 #define BITSIZEOF_${GLTYPE} $result
15660 _ACEOF
15662 eval BITSIZEOF_${GLTYPE}=\$result
15663 done
15669 for gltype in sig_atomic_t wchar_t wint_t ; do
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15671 $as_echo_n "checking for bit size of $gltype... " >&6; }
15672 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15676 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15677 included before <wchar.h>. */
15678 #include <stddef.h>
15679 #include <signal.h>
15680 #if HAVE_WCHAR_H
15681 # include <stdio.h>
15682 # include <time.h>
15683 # include <wchar.h>
15684 #endif
15686 #include <limits.h>"; then :
15688 else
15689 result=unknown
15692 eval gl_cv_bitsizeof_${gltype}=\$result
15695 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15697 $as_echo "$ac_res" >&6; }
15698 eval result=\$gl_cv_bitsizeof_${gltype}
15699 if test $result = unknown; then
15700 result=0
15702 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15703 cat >>confdefs.h <<_ACEOF
15704 #define BITSIZEOF_${GLTYPE} $result
15705 _ACEOF
15707 eval BITSIZEOF_${GLTYPE}=\$result
15708 done
15713 for gltype in sig_atomic_t wchar_t wint_t ; do
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15715 $as_echo_n "checking whether $gltype is signed... " >&6; }
15716 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15722 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15723 included before <wchar.h>. */
15724 #include <stddef.h>
15725 #include <signal.h>
15726 #if HAVE_WCHAR_H
15727 # include <stdio.h>
15728 # include <time.h>
15729 # include <wchar.h>
15730 #endif
15732 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15734 main ()
15738 return 0;
15740 _ACEOF
15741 if ac_fn_c_try_compile "$LINENO"; then :
15742 result=yes
15743 else
15744 result=no
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 eval gl_cv_type_${gltype}_signed=\$result
15750 eval ac_res=\$gl_cv_type_${gltype}_signed
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15752 $as_echo "$ac_res" >&6; }
15753 eval result=\$gl_cv_type_${gltype}_signed
15754 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15755 if test "$result" = yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_SIGNED_${GLTYPE} 1
15758 _ACEOF
15760 eval HAVE_SIGNED_${GLTYPE}=1
15761 else
15762 eval HAVE_SIGNED_${GLTYPE}=0
15764 done
15767 gl_cv_type_ptrdiff_t_signed=yes
15768 gl_cv_type_size_t_signed=no
15769 if test $APPLE_UNIVERSAL_BUILD = 0; then
15772 for gltype in ptrdiff_t size_t ; do
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15774 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15775 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 eval gl_cv_type_${gltype}_suffix=no
15779 eval result=\$gl_cv_type_${gltype}_signed
15780 if test "$result" = yes; then
15781 glsufu=
15782 else
15783 glsufu=u
15785 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15786 case $glsuf in
15787 '') gltype1='int';;
15788 l) gltype1='long int';;
15789 ll) gltype1='long long int';;
15790 i64) gltype1='__int64';;
15791 u) gltype1='unsigned int';;
15792 ul) gltype1='unsigned long int';;
15793 ull) gltype1='unsigned long long int';;
15794 ui64)gltype1='unsigned __int64';;
15795 esac
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15800 included before <wchar.h>. */
15801 #include <stddef.h>
15802 #include <signal.h>
15803 #if HAVE_WCHAR_H
15804 # include <stdio.h>
15805 # include <time.h>
15806 # include <wchar.h>
15807 #endif
15809 extern $gltype foo;
15810 extern $gltype1 foo;
15812 main ()
15816 return 0;
15818 _ACEOF
15819 if ac_fn_c_try_compile "$LINENO"; then :
15820 eval gl_cv_type_${gltype}_suffix=\$glsuf
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 eval result=\$gl_cv_type_${gltype}_suffix
15824 test "$result" != no && break
15825 done
15827 eval ac_res=\$gl_cv_type_${gltype}_suffix
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15829 $as_echo "$ac_res" >&6; }
15830 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15831 eval result=\$gl_cv_type_${gltype}_suffix
15832 test "$result" = no && result=
15833 eval ${GLTYPE}_SUFFIX=\$result
15834 cat >>confdefs.h <<_ACEOF
15835 #define ${GLTYPE}_SUFFIX $result
15836 _ACEOF
15838 done
15844 for gltype in sig_atomic_t wchar_t wint_t ; do
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15846 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15847 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 eval gl_cv_type_${gltype}_suffix=no
15851 eval result=\$gl_cv_type_${gltype}_signed
15852 if test "$result" = yes; then
15853 glsufu=
15854 else
15855 glsufu=u
15857 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15858 case $glsuf in
15859 '') gltype1='int';;
15860 l) gltype1='long int';;
15861 ll) gltype1='long long int';;
15862 i64) gltype1='__int64';;
15863 u) gltype1='unsigned int';;
15864 ul) gltype1='unsigned long int';;
15865 ull) gltype1='unsigned long long int';;
15866 ui64)gltype1='unsigned __int64';;
15867 esac
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15871 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15872 included before <wchar.h>. */
15873 #include <stddef.h>
15874 #include <signal.h>
15875 #if HAVE_WCHAR_H
15876 # include <stdio.h>
15877 # include <time.h>
15878 # include <wchar.h>
15879 #endif
15881 extern $gltype foo;
15882 extern $gltype1 foo;
15884 main ()
15888 return 0;
15890 _ACEOF
15891 if ac_fn_c_try_compile "$LINENO"; then :
15892 eval gl_cv_type_${gltype}_suffix=\$glsuf
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 eval result=\$gl_cv_type_${gltype}_suffix
15896 test "$result" != no && break
15897 done
15899 eval ac_res=\$gl_cv_type_${gltype}_suffix
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15901 $as_echo "$ac_res" >&6; }
15902 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15903 eval result=\$gl_cv_type_${gltype}_suffix
15904 test "$result" = no && result=
15905 eval ${GLTYPE}_SUFFIX=\$result
15906 cat >>confdefs.h <<_ACEOF
15907 #define ${GLTYPE}_SUFFIX $result
15908 _ACEOF
15910 done
15914 STDINT_H=stdint.h
15917 if test -n "$STDINT_H"; then
15918 GL_GENERATE_STDINT_H_TRUE=
15919 GL_GENERATE_STDINT_H_FALSE='#'
15920 else
15921 GL_GENERATE_STDINT_H_TRUE='#'
15922 GL_GENERATE_STDINT_H_FALSE=
15929 GNULIB_IMAXABS=0;
15930 GNULIB_IMAXDIV=0;
15931 GNULIB_STRTOIMAX=0;
15932 GNULIB_STRTOUMAX=0;
15933 HAVE_DECL_IMAXABS=1;
15934 HAVE_DECL_IMAXDIV=1;
15935 HAVE_DECL_STRTOIMAX=1;
15936 HAVE_DECL_STRTOUMAX=1;
15937 INT32_MAX_LT_INTMAX_MAX=1;
15938 INT64_MAX_EQ_LONG_MAX='defined _LP64';
15939 PRI_MACROS_BROKEN=0;
15940 PRIPTR_PREFIX=__PRIPTR_PREFIX;
15941 UINT32_MAX_LT_UINTMAX_MAX=1;
15942 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
15958 if test $gl_cv_have_include_next = yes; then
15959 gl_cv_next_inttypes_h='<'inttypes.h'>'
15960 else
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
15962 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
15963 if test "${gl_cv_next_inttypes_h+set}" = set; then :
15964 $as_echo_n "(cached) " >&6
15965 else
15967 if test $ac_cv_header_inttypes_h = yes; then
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <inttypes.h>
15974 _ACEOF
15975 case "$host_os" in
15976 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15977 *) gl_absname_cpp="$ac_cpp" ;;
15978 esac
15979 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15980 sed -n '\#/inttypes.h#{
15981 s#.*"\(.*/inttypes.h\)".*#\1#
15982 s#^/[^/]#//&#
15985 }'`'"'
15986 else
15987 gl_cv_next_inttypes_h='<'inttypes.h'>'
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
15993 $as_echo "$gl_cv_next_inttypes_h" >&6; }
15995 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
15997 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15999 gl_next_as_first_directive='<'inttypes.h'>'
16000 else
16001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16002 gl_next_as_first_directive=$gl_cv_next_inttypes_h
16004 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
16013 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
16020 GNULIB_FCHMODAT=0;
16021 GNULIB_FSTATAT=0;
16022 GNULIB_FUTIMENS=0;
16023 GNULIB_LCHMOD=0;
16024 GNULIB_LSTAT=0;
16025 GNULIB_MKDIRAT=0;
16026 GNULIB_MKFIFO=0;
16027 GNULIB_MKFIFOAT=0;
16028 GNULIB_MKNOD=0;
16029 GNULIB_MKNODAT=0;
16030 GNULIB_STAT=0;
16031 GNULIB_UTIMENSAT=0;
16032 HAVE_FCHMODAT=1;
16033 HAVE_FSTATAT=1;
16034 HAVE_FUTIMENS=1;
16035 HAVE_LCHMOD=1;
16036 HAVE_LSTAT=1;
16037 HAVE_MKDIRAT=1;
16038 HAVE_MKFIFO=1;
16039 HAVE_MKFIFOAT=1;
16040 HAVE_MKNOD=1;
16041 HAVE_MKNODAT=1;
16042 HAVE_UTIMENSAT=1;
16043 REPLACE_FSTAT=0;
16044 REPLACE_FSTATAT=0;
16045 REPLACE_FUTIMENS=0;
16046 REPLACE_LSTAT=0;
16047 REPLACE_MKDIR=0;
16048 REPLACE_MKFIFO=0;
16049 REPLACE_MKNOD=0;
16050 REPLACE_STAT=0;
16051 REPLACE_UTIMENSAT=0;
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16057 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16058 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16059 $as_echo_n "(cached) " >&6
16060 else
16061 rm -f conftest.sym conftest.file
16062 echo >conftest.file
16063 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16064 if test "$cross_compiling" = yes; then :
16065 # When cross-compiling, be pessimistic so we will end up using the
16066 # replacement version of lstat that checks for trailing slashes and
16067 # calls lstat a second time when necessary.
16068 gl_cv_func_lstat_dereferences_slashed_symlink=no
16070 else
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 $ac_includes_default
16075 main ()
16077 struct stat sbuf;
16078 /* Linux will dereference the symlink and fail, as required by
16079 POSIX. That is better in the sense that it means we will not
16080 have to compile and use the lstat wrapper. */
16081 return lstat ("conftest.sym/", &sbuf) == 0;
16084 return 0;
16086 _ACEOF
16087 if ac_fn_c_try_run "$LINENO"; then :
16088 gl_cv_func_lstat_dereferences_slashed_symlink=yes
16089 else
16090 gl_cv_func_lstat_dereferences_slashed_symlink=no
16092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16093 conftest.$ac_objext conftest.beam conftest.$ac_ext
16096 else
16097 # If the 'ln -s' command failed, then we probably don't even
16098 # have an lstat function.
16099 gl_cv_func_lstat_dereferences_slashed_symlink=no
16101 rm -f conftest.sym conftest.file
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
16105 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16106 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
16108 cat >>confdefs.h <<_ACEOF
16109 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16110 _ACEOF
16114 GNULIB_MKTIME=0;
16115 GNULIB_NANOSLEEP=0;
16116 GNULIB_STRPTIME=0;
16117 GNULIB_TIMEGM=0;
16118 GNULIB_TIME_R=0;
16119 HAVE_DECL_LOCALTIME_R=1;
16120 HAVE_NANOSLEEP=1;
16121 HAVE_STRPTIME=1;
16122 HAVE_TIMEGM=1;
16123 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16124 REPLACE_MKTIME=GNULIB_PORTCHECK;
16125 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16126 REPLACE_TIMEGM=GNULIB_PORTCHECK;
16135 if test $ac_cv_header_sys_socket_h = no; then
16136 for ac_header in ws2tcpip.h
16137 do :
16138 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16139 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_WS2TCPIP_H 1
16142 _ACEOF
16146 done
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16151 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16152 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16158 #include <stdbool.h>
16159 #ifndef bool
16160 "error: bool is not defined"
16161 #endif
16162 #ifndef false
16163 "error: false is not defined"
16164 #endif
16165 #if false
16166 "error: false is not 0"
16167 #endif
16168 #ifndef true
16169 "error: true is not defined"
16170 #endif
16171 #if true != 1
16172 "error: true is not 1"
16173 #endif
16174 #ifndef __bool_true_false_are_defined
16175 "error: __bool_true_false_are_defined is not defined"
16176 #endif
16178 struct s { _Bool s: 1; _Bool t; } s;
16180 char a[true == 1 ? 1 : -1];
16181 char b[false == 0 ? 1 : -1];
16182 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16183 char d[(bool) 0.5 == true ? 1 : -1];
16184 /* See body of main program for 'e'. */
16185 char f[(_Bool) 0.0 == false ? 1 : -1];
16186 char g[true];
16187 char h[sizeof (_Bool)];
16188 char i[sizeof s.t];
16189 enum { j = false, k = true, l = false * true, m = true * 256 };
16190 /* The following fails for
16191 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16192 _Bool n[m];
16193 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16194 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16195 /* Catch a bug in an HP-UX C compiler. See
16196 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16197 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16199 _Bool q = true;
16200 _Bool *pq = &q;
16203 main ()
16206 bool e = &s;
16207 *pq |= q;
16208 *pq |= ! q;
16209 /* Refer to every declared value, to avoid compiler optimizations. */
16210 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16211 + !m + !n + !o + !p + !q + !pq);
16214 return 0;
16216 _ACEOF
16217 if ac_fn_c_try_compile "$LINENO"; then :
16218 ac_cv_header_stdbool_h=yes
16219 else
16220 ac_cv_header_stdbool_h=no
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16225 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16226 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16227 if test "x$ac_cv_type__Bool" = x""yes; then :
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE__BOOL 1
16231 _ACEOF
16238 REPLACE_NULL=0;
16239 HAVE_WCHAR_T=1;
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16243 $as_echo_n "checking for wchar_t... " >&6; }
16244 if test "${gt_cv_c_wchar_t+set}" = set; then :
16245 $as_echo_n "(cached) " >&6
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 #include <stddef.h>
16250 wchar_t foo = (wchar_t)'\0';
16252 main ()
16256 return 0;
16258 _ACEOF
16259 if ac_fn_c_try_compile "$LINENO"; then :
16260 gt_cv_c_wchar_t=yes
16261 else
16262 gt_cv_c_wchar_t=no
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16267 $as_echo "$gt_cv_c_wchar_t" >&6; }
16268 if test $gt_cv_c_wchar_t = yes; then
16270 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
16275 GNULIB_DPRINTF=0;
16276 GNULIB_FCLOSE=0;
16277 GNULIB_FFLUSH=0;
16278 GNULIB_FGETC=0;
16279 GNULIB_FGETS=0;
16280 GNULIB_FOPEN=0;
16281 GNULIB_FPRINTF=0;
16282 GNULIB_FPRINTF_POSIX=0;
16283 GNULIB_FPURGE=0;
16284 GNULIB_FPUTC=0;
16285 GNULIB_FPUTS=0;
16286 GNULIB_FREAD=0;
16287 GNULIB_FREOPEN=0;
16288 GNULIB_FSCANF=0;
16289 GNULIB_FSEEK=0;
16290 GNULIB_FSEEKO=0;
16291 GNULIB_FTELL=0;
16292 GNULIB_FTELLO=0;
16293 GNULIB_FWRITE=0;
16294 GNULIB_GETC=0;
16295 GNULIB_GETCHAR=0;
16296 GNULIB_GETDELIM=0;
16297 GNULIB_GETLINE=0;
16298 GNULIB_GETS=0;
16299 GNULIB_OBSTACK_PRINTF=0;
16300 GNULIB_OBSTACK_PRINTF_POSIX=0;
16301 GNULIB_PERROR=0;
16302 GNULIB_POPEN=0;
16303 GNULIB_PRINTF=0;
16304 GNULIB_PRINTF_POSIX=0;
16305 GNULIB_PUTC=0;
16306 GNULIB_PUTCHAR=0;
16307 GNULIB_PUTS=0;
16308 GNULIB_REMOVE=0;
16309 GNULIB_RENAME=0;
16310 GNULIB_RENAMEAT=0;
16311 GNULIB_SCANF=0;
16312 GNULIB_SNPRINTF=0;
16313 GNULIB_SPRINTF_POSIX=0;
16314 GNULIB_STDIO_H_NONBLOCKING=0;
16315 GNULIB_STDIO_H_SIGPIPE=0;
16316 GNULIB_TMPFILE=0;
16317 GNULIB_VASPRINTF=0;
16318 GNULIB_VFSCANF=0;
16319 GNULIB_VSCANF=0;
16320 GNULIB_VDPRINTF=0;
16321 GNULIB_VFPRINTF=0;
16322 GNULIB_VFPRINTF_POSIX=0;
16323 GNULIB_VPRINTF=0;
16324 GNULIB_VPRINTF_POSIX=0;
16325 GNULIB_VSNPRINTF=0;
16326 GNULIB_VSPRINTF_POSIX=0;
16327 HAVE_DECL_FPURGE=1;
16328 HAVE_DECL_FSEEKO=1;
16329 HAVE_DECL_FTELLO=1;
16330 HAVE_DECL_GETDELIM=1;
16331 HAVE_DECL_GETLINE=1;
16332 HAVE_DECL_OBSTACK_PRINTF=1;
16333 HAVE_DECL_SNPRINTF=1;
16334 HAVE_DECL_VSNPRINTF=1;
16335 HAVE_DPRINTF=1;
16336 HAVE_FSEEKO=1;
16337 HAVE_FTELLO=1;
16338 HAVE_RENAMEAT=1;
16339 HAVE_VASPRINTF=1;
16340 HAVE_VDPRINTF=1;
16341 REPLACE_DPRINTF=0;
16342 REPLACE_FCLOSE=0;
16343 REPLACE_FFLUSH=0;
16344 REPLACE_FOPEN=0;
16345 REPLACE_FPRINTF=0;
16346 REPLACE_FPURGE=0;
16347 REPLACE_FREOPEN=0;
16348 REPLACE_FSEEK=0;
16349 REPLACE_FSEEKO=0;
16350 REPLACE_FTELL=0;
16351 REPLACE_FTELLO=0;
16352 REPLACE_GETDELIM=0;
16353 REPLACE_GETLINE=0;
16354 REPLACE_OBSTACK_PRINTF=0;
16355 REPLACE_PERROR=0;
16356 REPLACE_POPEN=0;
16357 REPLACE_PRINTF=0;
16358 REPLACE_REMOVE=0;
16359 REPLACE_RENAME=0;
16360 REPLACE_RENAMEAT=0;
16361 REPLACE_SNPRINTF=0;
16362 REPLACE_SPRINTF=0;
16363 REPLACE_STDIO_READ_FUNCS=0;
16364 REPLACE_STDIO_WRITE_FUNCS=0;
16365 REPLACE_TMPFILE=0;
16366 REPLACE_VASPRINTF=0;
16367 REPLACE_VDPRINTF=0;
16368 REPLACE_VFPRINTF=0;
16369 REPLACE_VPRINTF=0;
16370 REPLACE_VSNPRINTF=0;
16371 REPLACE_VSPRINTF=0;
16374 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
16376 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
16378 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16385 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
16386 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
16387 ac_have_decl=1
16388 else
16389 ac_have_decl=0
16392 cat >>confdefs.h <<_ACEOF
16393 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16394 _ACEOF
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16399 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16400 if test "${ac_cv_header_stat_broken+set}" = set; then :
16401 $as_echo_n "(cached) " >&6
16402 else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 #include <sys/types.h>
16406 #include <sys/stat.h>
16408 #if defined S_ISBLK && defined S_IFDIR
16409 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16410 #endif
16412 #if defined S_ISBLK && defined S_IFCHR
16413 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16414 #endif
16416 #if defined S_ISLNK && defined S_IFREG
16417 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16418 #endif
16420 #if defined S_ISSOCK && defined S_IFREG
16421 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16422 #endif
16424 _ACEOF
16425 if ac_fn_c_try_compile "$LINENO"; then :
16426 ac_cv_header_stat_broken=no
16427 else
16428 ac_cv_header_stat_broken=yes
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16433 $as_echo "$ac_cv_header_stat_broken" >&6; }
16434 if test $ac_cv_header_stat_broken = yes; then
16436 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16443 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16444 if test "${ac_cv_c_restrict+set}" = set; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 ac_cv_c_restrict=no
16448 # The order here caters to the fact that C++ does not require restrict.
16449 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 typedef int * int_ptr;
16453 int foo (int_ptr $ac_kw ip) {
16454 return ip[0];
16457 main ()
16459 int s[1];
16460 int * $ac_kw t = s;
16461 t[0] = 0;
16462 return foo(t)
16464 return 0;
16466 _ACEOF
16467 if ac_fn_c_try_compile "$LINENO"; then :
16468 ac_cv_c_restrict=$ac_kw
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 test "$ac_cv_c_restrict" != no && break
16472 done
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16476 $as_echo "$ac_cv_c_restrict" >&6; }
16478 case $ac_cv_c_restrict in
16479 restrict) ;;
16480 no) $as_echo "#define restrict /**/" >>confdefs.h
16482 *) cat >>confdefs.h <<_ACEOF
16483 #define restrict $ac_cv_c_restrict
16484 _ACEOF
16486 esac
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16493 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16494 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499 #include <time.h>
16502 main ()
16504 static struct timespec x; x.tv_sec = x.tv_nsec;
16506 return 0;
16508 _ACEOF
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510 gl_cv_sys_struct_timespec_in_time_h=yes
16511 else
16512 gl_cv_sys_struct_timespec_in_time_h=no
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16517 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16519 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16520 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16521 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16522 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16523 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16524 else
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16526 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16527 if test "${gl_cv_sys_struct_timespec_in_sys_time_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 <sys/time.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_sys_time_h=yes
16544 else
16545 gl_cv_sys_struct_timespec_in_sys_time_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_sys_time_h" >&5
16550 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16551 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16552 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16553 else
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16555 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16556 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561 #include <pthread.h>
16564 main ()
16566 static struct timespec x; x.tv_sec = x.tv_nsec;
16568 return 0;
16570 _ACEOF
16571 if ac_fn_c_try_compile "$LINENO"; then :
16572 gl_cv_sys_struct_timespec_in_pthread_h=yes
16573 else
16574 gl_cv_sys_struct_timespec_in_pthread_h=no
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16579 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16580 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16581 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16600 if test $gl_cv_have_include_next = yes; then
16601 gl_cv_next_time_h='<'time.h'>'
16602 else
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16604 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16605 if test "${gl_cv_next_time_h+set}" = set; then :
16606 $as_echo_n "(cached) " >&6
16607 else
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16611 #include <time.h>
16613 _ACEOF
16614 case "$host_os" in
16615 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16616 *) gl_absname_cpp="$ac_cpp" ;;
16617 esac
16618 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16619 sed -n '\#/time.h#{
16620 s#.*"\(.*/time.h\)".*#\1#
16621 s#^/[^/]#//&#
16624 }'`'"'
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16629 $as_echo "$gl_cv_next_time_h" >&6; }
16631 NEXT_TIME_H=$gl_cv_next_time_h
16633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16635 gl_next_as_first_directive='<'time.h'>'
16636 else
16637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16638 gl_next_as_first_directive=$gl_cv_next_time_h
16640 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16647 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16648 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
16649 ac_have_decl=1
16650 else
16651 ac_have_decl=0
16654 cat >>confdefs.h <<_ACEOF
16655 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16656 _ACEOF
16661 if false; then
16662 GL_COND_LIBTOOL_TRUE=
16663 GL_COND_LIBTOOL_FALSE='#'
16664 else
16665 GL_COND_LIBTOOL_TRUE='#'
16666 GL_COND_LIBTOOL_FALSE=
16669 gl_cond_libtool=false
16670 gl_libdeps=
16671 gl_ltlibdeps=
16672 gl_m4_base='m4'
16682 gl_source_base='lib'
16685 if test $ac_cv_func_alloca_works = no; then
16689 # Define an additional variable used in the Makefile substitution.
16690 if test $ac_cv_working_alloca_h = yes; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16692 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16693 if test "${gl_cv_rpl_alloca+set}" = set; then :
16694 $as_echo_n "(cached) " >&6
16695 else
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16700 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16701 Need own alloca
16702 #endif
16704 _ACEOF
16705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16706 $EGREP "Need own alloca" >/dev/null 2>&1; then :
16707 gl_cv_rpl_alloca=yes
16708 else
16709 gl_cv_rpl_alloca=no
16711 rm -f conftest*
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16716 $as_echo "$gl_cv_rpl_alloca" >&6; }
16717 if test $gl_cv_rpl_alloca = yes; then
16719 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16721 ALLOCA_H=alloca.h
16722 else
16723 ALLOCA_H=
16725 else
16726 ALLOCA_H=alloca.h
16729 if test -n "$ALLOCA_H"; then
16730 GL_GENERATE_ALLOCA_H_TRUE=
16731 GL_GENERATE_ALLOCA_H_FALSE='#'
16732 else
16733 GL_GENERATE_ALLOCA_H_TRUE='#'
16734 GL_GENERATE_ALLOCA_H_FALSE=
16764 # Persuade glibc <stdlib.h> to declare getloadavg().
16767 gl_save_LIBS=$LIBS
16769 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16770 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16771 HAVE_GETLOADAVG=1
16772 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16773 if test "x$ac_cv_func_getloadavg" = x""yes; then :
16775 else
16776 gl_func_getloadavg_done=no
16778 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16779 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16780 # to get the right answer into the cache.
16781 # For kstat on solaris, we need to test for libelf and libkvm to force the
16782 # definition of SVR4 below.
16783 if test $gl_func_getloadavg_done = no; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16785 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16786 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16787 $as_echo_n "(cached) " >&6
16788 else
16789 ac_check_lib_save_LIBS=$LIBS
16790 LIBS="-lelf $LIBS"
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char elf_begin ();
16802 main ()
16804 return elf_begin ();
16806 return 0;
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"; then :
16810 ac_cv_lib_elf_elf_begin=yes
16811 else
16812 ac_cv_lib_elf_elf_begin=no
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 LIBS=$ac_check_lib_save_LIBS
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16819 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16820 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
16821 LIBS="-lelf $LIBS"
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16825 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16826 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 ac_check_lib_save_LIBS=$LIBS
16830 LIBS="-lkvm $LIBS"
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16834 /* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837 #ifdef __cplusplus
16838 extern "C"
16839 #endif
16840 char kvm_open ();
16842 main ()
16844 return kvm_open ();
16846 return 0;
16848 _ACEOF
16849 if ac_fn_c_try_link "$LINENO"; then :
16850 ac_cv_lib_kvm_kvm_open=yes
16851 else
16852 ac_cv_lib_kvm_kvm_open=no
16854 rm -f core conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16856 LIBS=$ac_check_lib_save_LIBS
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16859 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16860 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
16861 LIBS="-lkvm $LIBS"
16864 # Check for the 4.4BSD definition of getloadavg.
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16866 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16867 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16868 $as_echo_n "(cached) " >&6
16869 else
16870 ac_check_lib_save_LIBS=$LIBS
16871 LIBS="-lutil $LIBS"
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16875 /* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 char getloadavg ();
16883 main ()
16885 return getloadavg ();
16887 return 0;
16889 _ACEOF
16890 if ac_fn_c_try_link "$LINENO"; then :
16891 ac_cv_lib_util_getloadavg=yes
16892 else
16893 ac_cv_lib_util_getloadavg=no
16895 rm -f core conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_check_lib_save_LIBS
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
16900 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
16901 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
16902 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
16907 if test $gl_func_getloadavg_done = no; then
16908 # There is a commonly available library for RS/6000 AIX.
16909 # Since it is not a standard part of AIX, it might be installed locally.
16910 gl_getloadavg_LIBS=$LIBS
16911 LIBS="-L/usr/local/lib $LIBS"
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
16913 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
16914 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
16915 $as_echo_n "(cached) " >&6
16916 else
16917 ac_check_lib_save_LIBS=$LIBS
16918 LIBS="-lgetloadavg $LIBS"
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16922 /* Override any GCC internal prototype to avoid an error.
16923 Use char because int might match the return type of a GCC
16924 builtin and then its argument prototype would still apply. */
16925 #ifdef __cplusplus
16926 extern "C"
16927 #endif
16928 char getloadavg ();
16930 main ()
16932 return getloadavg ();
16934 return 0;
16936 _ACEOF
16937 if ac_fn_c_try_link "$LINENO"; then :
16938 ac_cv_lib_getloadavg_getloadavg=yes
16939 else
16940 ac_cv_lib_getloadavg_getloadavg=no
16942 rm -f core conftest.err conftest.$ac_objext \
16943 conftest$ac_exeext conftest.$ac_ext
16944 LIBS=$ac_check_lib_save_LIBS
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16947 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
16948 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
16949 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
16950 else
16951 LIBS=$gl_getloadavg_LIBS
16956 # Set up the replacement function if necessary.
16957 if test $gl_func_getloadavg_done = no; then
16958 HAVE_GETLOADAVG=0
16960 # Solaris has libkstat which does not require root.
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16962 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16963 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16964 $as_echo_n "(cached) " >&6
16965 else
16966 ac_check_lib_save_LIBS=$LIBS
16967 LIBS="-lkstat $LIBS"
16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969 /* end confdefs.h. */
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char kstat_open ();
16979 main ()
16981 return kstat_open ();
16983 return 0;
16985 _ACEOF
16986 if ac_fn_c_try_link "$LINENO"; then :
16987 ac_cv_lib_kstat_kstat_open=yes
16988 else
16989 ac_cv_lib_kstat_kstat_open=no
16991 rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16996 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16997 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16998 cat >>confdefs.h <<_ACEOF
16999 #define HAVE_LIBKSTAT 1
17000 _ACEOF
17002 LIBS="-lkstat $LIBS"
17006 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
17008 # AIX has libperfstat which does not require root
17009 if test $gl_func_getloadavg_done = no; then
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
17011 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
17012 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
17013 $as_echo_n "(cached) " >&6
17014 else
17015 ac_check_lib_save_LIBS=$LIBS
17016 LIBS="-lperfstat $LIBS"
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17020 /* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17023 #ifdef __cplusplus
17024 extern "C"
17025 #endif
17026 char perfstat_cpu_total ();
17028 main ()
17030 return perfstat_cpu_total ();
17032 return 0;
17034 _ACEOF
17035 if ac_fn_c_try_link "$LINENO"; then :
17036 ac_cv_lib_perfstat_perfstat_cpu_total=yes
17037 else
17038 ac_cv_lib_perfstat_perfstat_cpu_total=no
17040 rm -f core conftest.err conftest.$ac_objext \
17041 conftest$ac_exeext conftest.$ac_ext
17042 LIBS=$ac_check_lib_save_LIBS
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
17045 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
17046 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
17047 cat >>confdefs.h <<_ACEOF
17048 #define HAVE_LIBPERFSTAT 1
17049 _ACEOF
17051 LIBS="-lperfstat $LIBS"
17055 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
17058 if test $gl_func_getloadavg_done = no; then
17059 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
17060 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
17061 gl_func_getloadavg_done=yes
17063 $as_echo "#define DGUX 1" >>confdefs.h
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
17066 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
17067 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
17068 $as_echo_n "(cached) " >&6
17069 else
17070 ac_check_lib_save_LIBS=$LIBS
17071 LIBS="-ldgc $LIBS"
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char dg_sys_info ();
17083 main ()
17085 return dg_sys_info ();
17087 return 0;
17089 _ACEOF
17090 if ac_fn_c_try_link "$LINENO"; then :
17091 ac_cv_lib_dgc_dg_sys_info=yes
17092 else
17093 ac_cv_lib_dgc_dg_sys_info=no
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 LIBS=$ac_check_lib_save_LIBS
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17100 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
17101 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
17102 cat >>confdefs.h <<_ACEOF
17103 #define HAVE_LIBDGC 1
17104 _ACEOF
17106 LIBS="-ldgc $LIBS"
17118 if test "x$gl_save_LIBS" = x; then
17119 GETLOADAVG_LIBS=$LIBS
17120 else
17121 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
17123 LIBS=$gl_save_LIBS
17126 # Test whether the system declares getloadavg. Solaris has the function
17127 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
17128 for ac_header in sys/loadavg.h
17129 do :
17130 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
17131 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
17132 cat >>confdefs.h <<_ACEOF
17133 #define HAVE_SYS_LOADAVG_H 1
17134 _ACEOF
17138 done
17140 if test $ac_cv_header_sys_loadavg_h = yes; then
17141 HAVE_SYS_LOADAVG_H=1
17142 else
17143 HAVE_SYS_LOADAVG_H=0
17145 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
17146 # include <sys/loadavg.h>
17147 #endif
17148 #include <stdlib.h>
17150 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
17152 else
17153 HAVE_DECL_GETLOADAVG=0
17157 if test $HAVE_GETLOADAVG = 0; then
17166 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
17169 # Figure out what our getloadavg.c needs.
17171 # On HPUX9, an unprivileged user can get load averages this way.
17172 if test $gl_func_getloadavg_done = no; then
17173 for ac_func in pstat_getdynamic
17174 do :
17175 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
17176 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
17177 cat >>confdefs.h <<_ACEOF
17178 #define HAVE_PSTAT_GETDYNAMIC 1
17179 _ACEOF
17180 gl_func_getloadavg_done=yes
17182 done
17186 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17187 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17188 # Irix 4.0.5F has the header but not the library.
17189 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
17190 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
17191 gl_func_getloadavg_done=yes
17193 $as_echo "#define SVR4 1" >>confdefs.h
17197 if test $gl_func_getloadavg_done = no; then
17198 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
17199 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
17200 gl_func_getloadavg_done=yes
17202 $as_echo "#define UMAX 1" >>confdefs.h
17205 $as_echo "#define UMAX4_3 1" >>confdefs.h
17212 if test $gl_func_getloadavg_done = no; then
17213 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
17214 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
17215 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
17222 if test $gl_func_getloadavg_done = no; then
17223 for ac_header in mach/mach.h
17224 do :
17225 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
17226 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
17227 cat >>confdefs.h <<_ACEOF
17228 #define HAVE_MACH_MACH_H 1
17229 _ACEOF
17233 done
17237 for ac_header in nlist.h
17238 do :
17239 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
17240 if test "x$ac_cv_header_nlist_h" = x""yes; then :
17241 cat >>confdefs.h <<_ACEOF
17242 #define HAVE_NLIST_H 1
17243 _ACEOF
17244 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
17246 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
17248 cat >>confdefs.h <<_ACEOF
17249 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17250 _ACEOF
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 #include <nlist.h>
17259 main ()
17261 struct nlist x;
17262 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
17263 x.n_un.n_name = "";
17264 #else
17265 x.n_name = "";
17266 #endif
17268 return 0;
17270 _ACEOF
17271 if ac_fn_c_try_link "$LINENO"; then :
17273 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
17276 rm -f core conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
17281 done
17289 GNULIB_GETLOADAVG=1
17300 if test $REPLACE_GETOPT = 1; then
17309 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17319 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17330 REPLACE_GETOPT=0
17333 if test -n "$gl_replace_getopt"; then :
17335 REPLACE_GETOPT=1
17340 if test $REPLACE_GETOPT = 1; then
17342 GETOPT_H=getopt.h
17344 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17348 GNULIB_UNISTD_H_GETOPT=1
17351 if test $REPLACE_GETOPT = 1; then
17360 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17370 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17381 if test $ac_cv_func_lstat = yes; then
17383 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
17384 REPLACE_LSTAT=1
17386 else
17387 HAVE_LSTAT=0
17390 if test $REPLACE_LSTAT = 1; then
17399 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
17411 GNULIB_LSTAT=1
17423 if test $APPLE_UNIVERSAL_BUILD = 1; then
17424 # A universal build on Apple MacOS X platforms.
17425 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17426 # But we need a configuration result that is valid in both modes.
17427 gl_cv_func_working_mktime=no
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17430 $as_echo_n "checking for working mktime... " >&6; }
17431 if test "${gl_cv_func_working_mktime+set}" = set; then :
17432 $as_echo_n "(cached) " >&6
17433 else
17434 if test "$cross_compiling" = yes; then :
17435 gl_cv_func_working_mktime=no
17436 else
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 /* Test program from Paul Eggert and Tony Leneis. */
17440 #include <limits.h>
17441 #include <stdlib.h>
17442 #include <time.h>
17444 #ifdef HAVE_UNISTD_H
17445 # include <unistd.h>
17446 #endif
17448 #ifndef HAVE_ALARM
17449 # define alarm(X) /* empty */
17450 #endif
17452 /* Work around redefinition to rpl_putenv by other config tests. */
17453 #undef putenv
17455 static time_t time_t_max;
17456 static time_t time_t_min;
17458 /* Values we'll use to set the TZ environment variable. */
17459 static char *tz_strings[] = {
17460 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17461 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17463 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17465 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17466 Based on a problem report from Andreas Jaeger. */
17467 static int
17468 spring_forward_gap ()
17470 /* glibc (up to about 1998-10-07) failed this test. */
17471 struct tm tm;
17473 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17474 instead of "TZ=America/Vancouver" in order to detect the bug even
17475 on systems that don't support the Olson extension, or don't have the
17476 full zoneinfo tables installed. */
17477 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17479 tm.tm_year = 98;
17480 tm.tm_mon = 3;
17481 tm.tm_mday = 5;
17482 tm.tm_hour = 2;
17483 tm.tm_min = 0;
17484 tm.tm_sec = 0;
17485 tm.tm_isdst = -1;
17486 return mktime (&tm) != (time_t) -1;
17489 static int
17490 mktime_test1 (time_t now)
17492 struct tm *lt;
17493 return ! (lt = localtime (&now)) || mktime (lt) == now;
17496 static int
17497 mktime_test (time_t now)
17499 return (mktime_test1 (now)
17500 && mktime_test1 ((time_t) (time_t_max - now))
17501 && mktime_test1 ((time_t) (time_t_min + now)));
17504 static int
17505 irix_6_4_bug ()
17507 /* Based on code from Ariel Faigon. */
17508 struct tm tm;
17509 tm.tm_year = 96;
17510 tm.tm_mon = 3;
17511 tm.tm_mday = 0;
17512 tm.tm_hour = 0;
17513 tm.tm_min = 0;
17514 tm.tm_sec = 0;
17515 tm.tm_isdst = -1;
17516 mktime (&tm);
17517 return tm.tm_mon == 2 && tm.tm_mday == 31;
17520 static int
17521 bigtime_test (int j)
17523 struct tm tm;
17524 time_t now;
17525 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17526 now = mktime (&tm);
17527 if (now != (time_t) -1)
17529 struct tm *lt = localtime (&now);
17530 if (! (lt
17531 && lt->tm_year == tm.tm_year
17532 && lt->tm_mon == tm.tm_mon
17533 && lt->tm_mday == tm.tm_mday
17534 && lt->tm_hour == tm.tm_hour
17535 && lt->tm_min == tm.tm_min
17536 && lt->tm_sec == tm.tm_sec
17537 && lt->tm_yday == tm.tm_yday
17538 && lt->tm_wday == tm.tm_wday
17539 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17540 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17541 return 0;
17543 return 1;
17546 static int
17547 year_2050_test ()
17549 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17550 ignoring leap seconds. */
17551 unsigned long int answer = 2527315200UL;
17553 struct tm tm;
17554 time_t t;
17555 tm.tm_year = 2050 - 1900;
17556 tm.tm_mon = 2 - 1;
17557 tm.tm_mday = 1;
17558 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17559 tm.tm_isdst = -1;
17561 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17562 instead of "TZ=America/Vancouver" in order to detect the bug even
17563 on systems that don't support the Olson extension, or don't have the
17564 full zoneinfo tables installed. */
17565 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17567 t = mktime (&tm);
17569 /* Check that the result is either a failure, or close enough
17570 to the correct answer that we can assume the discrepancy is
17571 due to leap seconds. */
17572 return (t == (time_t) -1
17573 || (0 < t && answer - 120 <= t && t <= answer + 120));
17577 main ()
17579 int result = 0;
17580 time_t t, delta;
17581 int i, j;
17582 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17583 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17585 /* This test makes some buggy mktime implementations loop.
17586 Give up after 60 seconds; a mktime slower than that
17587 isn't worth using anyway. */
17588 alarm (60);
17590 time_t_max = (! time_t_signed
17591 ? (time_t) -1
17592 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17593 * 2 + 1));
17594 time_t_min = (! time_t_signed
17595 ? (time_t) 0
17596 : time_t_signed_magnitude
17597 ? ~ (time_t) 0
17598 : ~ time_t_max);
17600 delta = time_t_max / 997; /* a suitable prime number */
17601 for (i = 0; i < N_STRINGS; i++)
17603 if (tz_strings[i])
17604 putenv (tz_strings[i]);
17606 for (t = 0; t <= time_t_max - delta; t += delta)
17607 if (! mktime_test (t))
17608 result |= 1;
17609 if (! (mktime_test ((time_t) 1)
17610 && mktime_test ((time_t) (60 * 60))
17611 && mktime_test ((time_t) (60 * 60 * 24))))
17612 result |= 2;
17614 for (j = 1; ; j <<= 1)
17615 if (! bigtime_test (j))
17616 result |= 4;
17617 else if (INT_MAX / 2 < j)
17618 break;
17619 if (! bigtime_test (INT_MAX))
17620 result |= 8;
17622 if (! irix_6_4_bug ())
17623 result |= 16;
17624 if (! spring_forward_gap ())
17625 result |= 32;
17626 if (! year_2050_test ())
17627 result |= 64;
17628 return result;
17630 _ACEOF
17631 if ac_fn_c_try_run "$LINENO"; then :
17632 gl_cv_func_working_mktime=yes
17633 else
17634 gl_cv_func_working_mktime=no
17636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17637 conftest.$ac_objext conftest.beam conftest.$ac_ext
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
17643 $as_echo "$gl_cv_func_working_mktime" >&6; }
17645 if test $gl_cv_func_working_mktime = no; then
17646 REPLACE_MKTIME=1
17647 else
17648 REPLACE_MKTIME=0
17651 if test $REPLACE_MKTIME = 1; then
17660 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
17671 GNULIB_MKTIME=1
17681 if test $ac_cv_func_readlink = no; then
17682 HAVE_READLINK=0
17683 else
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17685 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17686 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17687 $as_echo_n "(cached) " >&6
17688 else
17689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17690 /* end confdefs.h. */
17691 #include <unistd.h>
17692 /* Cause compilation failure if original declaration has wrong type. */
17693 ssize_t readlink (const char *, char *, size_t);
17695 main ()
17699 return 0;
17701 _ACEOF
17702 if ac_fn_c_try_compile "$LINENO"; then :
17703 gl_cv_decl_readlink_works=yes
17704 else
17705 gl_cv_decl_readlink_works=no
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17710 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17712 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17713 if test "${gl_cv_func_readlink_works+set}" = set; then :
17714 $as_echo_n "(cached) " >&6
17715 else
17716 # We have readlink, so assume ln -s works.
17717 ln -s conftest.no-such conftest.link
17718 ln -s conftest.link conftest.lnk2
17719 if test "$cross_compiling" = yes; then :
17720 gl_cv_func_readlink_works="guessing no"
17721 else
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724 #include <unistd.h>
17727 main ()
17729 char buf[20];
17730 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17732 return 0;
17734 _ACEOF
17735 if ac_fn_c_try_run "$LINENO"; then :
17736 gl_cv_func_readlink_works=yes
17737 else
17738 gl_cv_func_readlink_works=no
17740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17741 conftest.$ac_objext conftest.beam conftest.$ac_ext
17744 rm -f conftest.link conftest.lnk2
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17747 $as_echo "$gl_cv_func_readlink_works" >&6; }
17748 if test "$gl_cv_func_readlink_works" != yes; then
17750 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17752 REPLACE_READLINK=1
17753 elif test "$gl_cv_decl_readlink_works" != yes; then
17754 REPLACE_READLINK=1
17758 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
17767 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17778 GNULIB_READLINK=1
17784 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17785 /* <sys/types.h> is not needed according to POSIX, but the
17786 <sys/socket.h> in i386-unknown-freebsd4.10 and
17787 powerpc-apple-darwin5.5 required it. */
17788 #include <sys/types.h>
17789 #if HAVE_SYS_SOCKET_H
17790 # include <sys/socket.h>
17791 #elif HAVE_WS2TCPIP_H
17792 # include <ws2tcpip.h>
17793 #endif
17796 if test "x$ac_cv_type_socklen_t" = x""yes; then :
17798 else
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17800 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17801 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 # Systems have either "struct sockaddr *" or
17805 # "void *" as the second argument to getpeername
17806 gl_cv_socklen_t_equiv=
17807 for arg2 in "struct sockaddr" void; do
17808 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 #include <sys/types.h>
17812 #include <sys/socket.h>
17814 int getpeername (int, $arg2 *, $t *);
17816 main ()
17818 $t len;
17819 getpeername (0, 0, &len);
17821 return 0;
17823 _ACEOF
17824 if ac_fn_c_try_compile "$LINENO"; then :
17825 gl_cv_socklen_t_equiv="$t"
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 test "$gl_cv_socklen_t_equiv" != "" && break
17829 done
17830 test "$gl_cv_socklen_t_equiv" != "" && break
17831 done
17835 if test "$gl_cv_socklen_t_equiv" = ""; then
17836 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17839 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17841 cat >>confdefs.h <<_ACEOF
17842 #define socklen_t $gl_cv_socklen_t_equiv
17843 _ACEOF
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17849 $as_echo_n "checking for ssize_t... " >&6; }
17850 if test "${gt_cv_ssize_t+set}" = set; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 #include <sys/types.h>
17857 main ()
17859 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17860 return !x;
17862 return 0;
17864 _ACEOF
17865 if ac_fn_c_try_compile "$LINENO"; then :
17866 gt_cv_ssize_t=yes
17867 else
17868 gt_cv_ssize_t=no
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17873 $as_echo "$gt_cv_ssize_t" >&6; }
17874 if test $gt_cv_ssize_t = no; then
17876 $as_echo "#define ssize_t int" >>confdefs.h
17881 STDARG_H=''
17882 NEXT_STDARG_H='<stdarg.h>'
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
17884 $as_echo_n "checking for va_copy... " >&6; }
17885 if test "${gl_cv_func_va_copy+set}" = set; then :
17886 $as_echo_n "(cached) " >&6
17887 else
17889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890 /* end confdefs.h. */
17891 #include <stdarg.h>
17893 main ()
17896 #ifndef va_copy
17897 void (*func) (va_list, va_list) = va_copy;
17898 #endif
17901 return 0;
17903 _ACEOF
17904 if ac_fn_c_try_compile "$LINENO"; then :
17905 gl_cv_func_va_copy=yes
17906 else
17907 gl_cv_func_va_copy=no
17909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
17913 $as_echo "$gl_cv_func_va_copy" >&6; }
17914 if test $gl_cv_func_va_copy = no; then
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917 #if defined _AIX && !defined __GNUC__
17918 AIX vaccine
17919 #endif
17921 _ACEOF
17922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17923 $EGREP "vaccine" >/dev/null 2>&1; then :
17924 gl_aixcc=yes
17925 else
17926 gl_aixcc=no
17928 rm -f conftest*
17930 if test $gl_aixcc = yes; then
17931 STDARG_H=stdarg.h
17940 if test $gl_cv_have_include_next = yes; then
17941 gl_cv_next_stdarg_h='<'stdarg.h'>'
17942 else
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
17944 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
17945 if test "${gl_cv_next_stdarg_h+set}" = set; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17950 /* end confdefs.h. */
17951 #include <stdarg.h>
17953 _ACEOF
17954 case "$host_os" in
17955 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17956 *) gl_absname_cpp="$ac_cpp" ;;
17957 esac
17958 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17959 sed -n '\#/stdarg.h#{
17960 s#.*"\(.*/stdarg.h\)".*#\1#
17961 s#^/[^/]#//&#
17964 }'`'"'
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
17969 $as_echo "$gl_cv_next_stdarg_h" >&6; }
17971 NEXT_STDARG_H=$gl_cv_next_stdarg_h
17973 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17975 gl_next_as_first_directive='<'stdarg.h'>'
17976 else
17977 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17978 gl_next_as_first_directive=$gl_cv_next_stdarg_h
17980 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
17985 if test "$gl_cv_next_stdarg_h" = '""'; then
17986 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
17987 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
17989 else
17991 saved_as_echo_n="$as_echo_n"
17992 as_echo_n=':'
17993 if test "${gl_cv_func___va_copy+set}" = set; then :
17994 $as_echo_n "(cached) " >&6
17995 else
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999 #include <stdarg.h>
18001 main ()
18004 #ifndef __va_copy
18005 error, bail out
18006 #endif
18009 return 0;
18011 _ACEOF
18012 if ac_fn_c_try_compile "$LINENO"; then :
18013 gl_cv_func___va_copy=yes
18014 else
18015 gl_cv_func___va_copy=no
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 as_echo_n="$saved_as_echo_n"
18022 if test $gl_cv_func___va_copy = yes; then
18024 $as_echo "#define va_copy __va_copy" >>confdefs.h
18026 else
18029 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
18035 if test -n "$STDARG_H"; then
18036 GL_GENERATE_STDARG_H_TRUE=
18037 GL_GENERATE_STDARG_H_FALSE='#'
18038 else
18039 GL_GENERATE_STDARG_H_TRUE='#'
18040 GL_GENERATE_STDARG_H_FALSE=
18048 # Define two additional variables used in the Makefile substitution.
18050 if test "$ac_cv_header_stdbool_h" = yes; then
18051 STDBOOL_H=''
18052 else
18053 STDBOOL_H='stdbool.h'
18056 if test -n "$STDBOOL_H"; then
18057 GL_GENERATE_STDBOOL_H_TRUE=
18058 GL_GENERATE_STDBOOL_H_FALSE='#'
18059 else
18060 GL_GENERATE_STDBOOL_H_TRUE='#'
18061 GL_GENERATE_STDBOOL_H_FALSE=
18065 if test "$ac_cv_type__Bool" = yes; then
18066 HAVE__BOOL=1
18067 else
18068 HAVE__BOOL=0
18075 STDDEF_H=
18076 if test $gt_cv_c_wchar_t = no; then
18077 HAVE_WCHAR_T=0
18078 STDDEF_H=stddef.h
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
18081 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
18082 if test "${gl_cv_decl_null_works+set}" = set; then :
18083 $as_echo_n "(cached) " >&6
18084 else
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087 #include <stddef.h>
18088 int test[2 * (sizeof NULL == sizeof (void *)) -1];
18091 main ()
18095 return 0;
18097 _ACEOF
18098 if ac_fn_c_try_compile "$LINENO"; then :
18099 gl_cv_decl_null_works=yes
18100 else
18101 gl_cv_decl_null_works=no
18103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
18106 $as_echo "$gl_cv_decl_null_works" >&6; }
18107 if test $gl_cv_decl_null_works = no; then
18108 REPLACE_NULL=1
18109 STDDEF_H=stddef.h
18112 if test -n "$STDDEF_H"; then
18113 GL_GENERATE_STDDEF_H_TRUE=
18114 GL_GENERATE_STDDEF_H_FALSE='#'
18115 else
18116 GL_GENERATE_STDDEF_H_TRUE='#'
18117 GL_GENERATE_STDDEF_H_FALSE=
18120 if test -n "$STDDEF_H"; then
18129 if test $gl_cv_have_include_next = yes; then
18130 gl_cv_next_stddef_h='<'stddef.h'>'
18131 else
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
18133 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
18134 if test "${gl_cv_next_stddef_h+set}" = set; then :
18135 $as_echo_n "(cached) " >&6
18136 else
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18140 #include <stddef.h>
18142 _ACEOF
18143 case "$host_os" in
18144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18145 *) gl_absname_cpp="$ac_cpp" ;;
18146 esac
18147 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18148 sed -n '\#/stddef.h#{
18149 s#.*"\(.*/stddef.h\)".*#\1#
18150 s#^/[^/]#//&#
18153 }'`'"'
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
18158 $as_echo "$gl_cv_next_stddef_h" >&6; }
18160 NEXT_STDDEF_H=$gl_cv_next_stddef_h
18162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18164 gl_next_as_first_directive='<'stddef.h'>'
18165 else
18166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18167 gl_next_as_first_directive=$gl_cv_next_stddef_h
18169 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
18188 if test $gl_cv_have_include_next = yes; then
18189 gl_cv_next_stdio_h='<'stdio.h'>'
18190 else
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18192 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18193 if test "${gl_cv_next_stdio_h+set}" = set; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <stdio.h>
18201 _ACEOF
18202 case "$host_os" in
18203 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18204 *) gl_absname_cpp="$ac_cpp" ;;
18205 esac
18206 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18207 sed -n '\#/stdio.h#{
18208 s#.*"\(.*/stdio.h\)".*#\1#
18209 s#^/[^/]#//&#
18212 }'`'"'
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18217 $as_echo "$gl_cv_next_stdio_h" >&6; }
18219 NEXT_STDIO_H=$gl_cv_next_stdio_h
18221 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18223 gl_next_as_first_directive='<'stdio.h'>'
18224 else
18225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18226 gl_next_as_first_directive=$gl_cv_next_stdio_h
18228 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18234 GNULIB_FSCANF=1
18235 GNULIB_SCANF=1
18236 GNULIB_FGETC=1
18237 GNULIB_GETC=1
18238 GNULIB_GETCHAR=1
18239 GNULIB_FGETS=1
18240 GNULIB_GETS=1
18241 GNULIB_FREAD=1
18244 GNULIB_FPRINTF=1
18245 GNULIB_PRINTF=1
18246 GNULIB_VFPRINTF=1
18247 GNULIB_VPRINTF=1
18248 GNULIB_FPUTC=1
18249 GNULIB_PUTC=1
18250 GNULIB_PUTCHAR=1
18251 GNULIB_FPUTS=1
18252 GNULIB_PUTS=1
18253 GNULIB_FWRITE=1
18269 if test $gl_cv_have_include_next = yes; then
18270 gl_cv_next_stdlib_h='<'stdlib.h'>'
18271 else
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18273 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18274 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18280 #include <stdlib.h>
18282 _ACEOF
18283 case "$host_os" in
18284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18285 *) gl_absname_cpp="$ac_cpp" ;;
18286 esac
18287 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18288 sed -n '\#/stdlib.h#{
18289 s#.*"\(.*/stdlib.h\)".*#\1#
18290 s#^/[^/]#//&#
18293 }'`'"'
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18298 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18300 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18302 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18304 gl_next_as_first_directive='<'stdlib.h'>'
18305 else
18306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18307 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18309 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18319 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18327 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18335 if test "$ac_cv_have_decl_strtoumax" != yes; then
18336 HAVE_DECL_STRTOUMAX=0
18338 for ac_func in strtoumax
18339 do :
18340 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18341 if test "x$ac_cv_func_strtoumax" = x""yes; then :
18342 cat >>confdefs.h <<_ACEOF
18343 #define HAVE_STRTOUMAX 1
18344 _ACEOF
18347 done
18351 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
18360 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
18363 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18364 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
18365 ac_have_decl=1
18366 else
18367 ac_have_decl=0
18370 cat >>confdefs.h <<_ACEOF
18371 #define HAVE_DECL_STRTOULL $ac_have_decl
18372 _ACEOF
18382 GNULIB_STRTOUMAX=1
18390 if test $ac_cv_func_symlink = no; then
18391 HAVE_SYMLINK=0
18392 else
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
18394 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
18395 if test "${gl_cv_func_symlink_works+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 if test "$cross_compiling" = yes; then :
18399 gl_cv_func_symlink_works="guessing no"
18400 else
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <unistd.h>
18406 main ()
18408 int result = 0;
18409 if (!symlink ("a", "conftest.link/"))
18410 result |= 1;
18411 if (symlink ("conftest.f", "conftest.lnk2"))
18412 result |= 2;
18413 else if (!symlink ("a", "conftest.lnk2/"))
18414 result |= 4;
18415 return result;
18418 return 0;
18420 _ACEOF
18421 if ac_fn_c_try_run "$LINENO"; then :
18422 gl_cv_func_symlink_works=yes
18423 else
18424 gl_cv_func_symlink_works=no
18426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18427 conftest.$ac_objext conftest.beam conftest.$ac_ext
18430 rm -f conftest.f conftest.link conftest.lnk2
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
18433 $as_echo "$gl_cv_func_symlink_works" >&6; }
18434 if test "$gl_cv_func_symlink_works" != yes; then
18435 REPLACE_SYMLINK=1
18439 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
18448 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18456 GNULIB_SYMLINK=1
18478 if test $gl_cv_have_include_next = yes; then
18479 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18480 else
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18482 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18483 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18487 if test $ac_cv_header_sys_stat_h = yes; then
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18492 #include <sys/stat.h>
18494 _ACEOF
18495 case "$host_os" in
18496 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18497 *) gl_absname_cpp="$ac_cpp" ;;
18498 esac
18499 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18500 sed -n '\#/sys/stat.h#{
18501 s#.*"\(.*/sys/stat.h\)".*#\1#
18502 s#^/[^/]#//&#
18505 }'`'"'
18506 else
18507 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18513 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18515 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18517 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18519 gl_next_as_first_directive='<'sys/stat.h'>'
18520 else
18521 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18522 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18524 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18530 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18531 #include <sys/stat.h>
18533 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18535 else
18537 $as_echo "#define nlink_t int" >>confdefs.h
18555 if test $ac_cv_have_decl_localtime_r = no; then
18556 HAVE_DECL_LOCALTIME_R=0
18560 if test $ac_cv_func_localtime_r = yes; then
18561 HAVE_LOCALTIME_R=1
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
18563 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
18564 if test "${gl_cv_time_r_posix+set}" = set; then :
18565 $as_echo_n "(cached) " >&6
18566 else
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569 #include <time.h>
18571 main ()
18573 /* We don't need to append 'restrict's to the argument types,
18574 even though the POSIX signature has the 'restrict's,
18575 since C99 says they can't affect type compatibility. */
18576 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
18577 if (ptr) return 0;
18578 /* Check the return type is a pointer.
18579 On HP-UX 10 it is 'int'. */
18580 *localtime_r (0, 0);
18582 return 0;
18585 _ACEOF
18586 if ac_fn_c_try_compile "$LINENO"; then :
18587 gl_cv_time_r_posix=yes
18588 else
18589 gl_cv_time_r_posix=no
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
18595 $as_echo "$gl_cv_time_r_posix" >&6; }
18596 if test $gl_cv_time_r_posix = yes; then
18597 REPLACE_LOCALTIME_R=0
18598 else
18599 REPLACE_LOCALTIME_R=1
18601 else
18602 HAVE_LOCALTIME_R=0
18605 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
18614 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
18625 GNULIB_TIME_R=1
18645 if test $gl_cv_have_include_next = yes; then
18646 gl_cv_next_unistd_h='<'unistd.h'>'
18647 else
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18649 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18650 if test "${gl_cv_next_unistd_h+set}" = set; then :
18651 $as_echo_n "(cached) " >&6
18652 else
18654 if test $ac_cv_header_unistd_h = yes; then
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18659 #include <unistd.h>
18661 _ACEOF
18662 case "$host_os" in
18663 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18664 *) gl_absname_cpp="$ac_cpp" ;;
18665 esac
18666 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18667 sed -n '\#/unistd.h#{
18668 s#.*"\(.*/unistd.h\)".*#\1#
18669 s#^/[^/]#//&#
18672 }'`'"'
18673 else
18674 gl_cv_next_unistd_h='<'unistd.h'>'
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18680 $as_echo "$gl_cv_next_unistd_h" >&6; }
18682 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18684 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18686 gl_next_as_first_directive='<'unistd.h'>'
18687 else
18688 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18689 gl_next_as_first_directive=$gl_cv_next_unistd_h
18691 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18696 if test $ac_cv_header_unistd_h = yes; then
18697 HAVE_UNISTD_H=1
18698 else
18699 HAVE_UNISTD_H=0
18705 gl_gnulib_enabled_dosname=false
18706 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
18707 gl_gnulib_enabled_stat=false
18708 gl_gnulib_enabled_strtoull=false
18709 gl_gnulib_enabled_verify=false
18710 func_gl_gnulib_m4code_dosname ()
18712 if ! $gl_gnulib_enabled_dosname; then
18713 gl_gnulib_enabled_dosname=true
18716 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
18718 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18721 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
18724 func_gl_gnulib_m4code_stat ()
18726 if ! $gl_gnulib_enabled_stat; then
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
18731 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
18732 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
18733 $as_echo_n "(cached) " >&6
18734 else
18735 if test "$cross_compiling" = yes; then :
18736 case $host_os in
18737 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
18738 *) gl_cv_func_stat_dir_slash="guessing yes";;
18739 esac
18740 else
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18743 #include <sys/stat.h>
18746 main ()
18748 struct stat st; return stat (".", &st) != stat ("./", &st);
18750 return 0;
18752 _ACEOF
18753 if ac_fn_c_try_run "$LINENO"; then :
18754 gl_cv_func_stat_dir_slash=yes
18755 else
18756 gl_cv_func_stat_dir_slash=no
18758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18759 conftest.$ac_objext conftest.beam conftest.$ac_ext
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
18764 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
18766 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
18767 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 touch conftest.tmp
18771 # Assume that if we have lstat, we can also check symlinks.
18772 if test $ac_cv_func_lstat = yes; then
18773 ln -s conftest.tmp conftest.lnk
18775 if test "$cross_compiling" = yes; then :
18776 gl_cv_func_stat_file_slash="guessing no"
18777 else
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18780 #include <sys/stat.h>
18783 main ()
18785 int result = 0;
18786 struct stat st;
18787 if (!stat ("conftest.tmp/", &st))
18788 result |= 1;
18789 #if HAVE_LSTAT
18790 if (!stat ("conftest.lnk/", &st))
18791 result |= 2;
18792 #endif
18793 return result;
18796 return 0;
18798 _ACEOF
18799 if ac_fn_c_try_run "$LINENO"; then :
18800 gl_cv_func_stat_file_slash=yes
18801 else
18802 gl_cv_func_stat_file_slash=no
18804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18805 conftest.$ac_objext conftest.beam conftest.$ac_ext
18808 rm -f conftest.tmp conftest.lnk
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
18811 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
18812 case $gl_cv_func_stat_dir_slash in
18813 *no) REPLACE_STAT=1
18815 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
18817 esac
18818 case $gl_cv_func_stat_file_slash in
18819 *no) REPLACE_STAT=1
18821 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
18823 esac
18825 if test $REPLACE_STAT = 1; then
18834 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
18846 GNULIB_STAT=1
18852 gl_gnulib_enabled_stat=true
18853 if $condition; then
18854 func_gl_gnulib_m4code_dosname
18856 if $condition; then
18857 func_gl_gnulib_m4code_verify
18861 func_gl_gnulib_m4code_strtoull ()
18863 if ! $gl_gnulib_enabled_strtoull; then
18867 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
18868 for ac_func in strtoull
18869 do :
18870 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18871 if test "x$ac_cv_func_strtoull" = x""yes; then :
18872 cat >>confdefs.h <<_ACEOF
18873 #define HAVE_STRTOULL 1
18874 _ACEOF
18877 done
18879 if test $ac_cv_func_strtoull = no; then
18880 HAVE_STRTOULL=0
18884 if test $HAVE_STRTOULL = 0; then
18893 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
18904 GNULIB_STRTOULL=1
18910 gl_gnulib_enabled_strtoull=true
18913 func_gl_gnulib_m4code_verify ()
18915 if ! $gl_gnulib_enabled_verify; then
18916 gl_gnulib_enabled_verify=true
18919 if test $REPLACE_GETOPT = 1; then
18920 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
18922 if test $REPLACE_LSTAT = 1; then
18923 func_gl_gnulib_m4code_dosname
18925 if test $REPLACE_LSTAT = 1; then
18926 func_gl_gnulib_m4code_stat
18928 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
18929 func_gl_gnulib_m4code_stat
18931 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
18932 func_gl_gnulib_m4code_verify
18934 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
18935 func_gl_gnulib_m4code_strtoull
18938 if $gl_gnulib_enabled_dosname; then
18939 gl_GNULIB_ENABLED_dosname_TRUE=
18940 gl_GNULIB_ENABLED_dosname_FALSE='#'
18941 else
18942 gl_GNULIB_ENABLED_dosname_TRUE='#'
18943 gl_GNULIB_ENABLED_dosname_FALSE=
18946 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18947 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
18948 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
18949 else
18950 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
18951 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
18954 if $gl_gnulib_enabled_stat; then
18955 gl_GNULIB_ENABLED_stat_TRUE=
18956 gl_GNULIB_ENABLED_stat_FALSE='#'
18957 else
18958 gl_GNULIB_ENABLED_stat_TRUE='#'
18959 gl_GNULIB_ENABLED_stat_FALSE=
18962 if $gl_gnulib_enabled_strtoull; then
18963 gl_GNULIB_ENABLED_strtoull_TRUE=
18964 gl_GNULIB_ENABLED_strtoull_FALSE='#'
18965 else
18966 gl_GNULIB_ENABLED_strtoull_TRUE='#'
18967 gl_GNULIB_ENABLED_strtoull_FALSE=
18970 if $gl_gnulib_enabled_verify; then
18971 gl_GNULIB_ENABLED_verify_TRUE=
18972 gl_GNULIB_ENABLED_verify_FALSE='#'
18973 else
18974 gl_GNULIB_ENABLED_verify_TRUE='#'
18975 gl_GNULIB_ENABLED_verify_FALSE=
18978 # End of code from modules
18988 gltests_libdeps=
18989 gltests_ltlibdeps=
18999 gl_source_base='tests'
19000 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
19002 gl_module_indicator_condition=$gltests_WITNESS
19013 LIBGNU_LIBDEPS="$gl_libdeps"
19015 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19019 # UNIX98 PTYs.
19020 for ac_func in grantpt
19021 do :
19022 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
19023 if test "x$ac_cv_func_grantpt" = x""yes; then :
19024 cat >>confdefs.h <<_ACEOF
19025 #define HAVE_GRANTPT 1
19026 _ACEOF
19029 done
19032 # PTY-related GNU extensions.
19033 for ac_func in getpt
19034 do :
19035 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
19036 if test "x$ac_cv_func_getpt" = x""yes; then :
19037 cat >>confdefs.h <<_ACEOF
19038 #define HAVE_GETPT 1
19039 _ACEOF
19042 done
19045 # Check this now, so that we will NOT find the above functions in ncurses.
19046 # That is because we have not set up to link ncurses in lib-src.
19047 # It's better to believe a function is not available
19048 # than to expect to find it in ncurses.
19049 # Also we need tputs and friends to be able to build at all.
19050 have_tputs_et_al=true
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
19052 $as_echo_n "checking for library containing tputs... " >&6; }
19053 if test "${ac_cv_search_tputs+set}" = set; then :
19054 $as_echo_n "(cached) " >&6
19055 else
19056 ac_func_search_save_LIBS=$LIBS
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char tputs ();
19068 main ()
19070 return tputs ();
19072 return 0;
19074 _ACEOF
19075 for ac_lib in '' ncurses terminfo termcap; do
19076 if test -z "$ac_lib"; then
19077 ac_res="none required"
19078 else
19079 ac_res=-l$ac_lib
19080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19082 if ac_fn_c_try_link "$LINENO"; then :
19083 ac_cv_search_tputs=$ac_res
19085 rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext
19087 if test "${ac_cv_search_tputs+set}" = set; then :
19088 break
19090 done
19091 if test "${ac_cv_search_tputs+set}" = set; then :
19093 else
19094 ac_cv_search_tputs=no
19096 rm conftest.$ac_ext
19097 LIBS=$ac_func_search_save_LIBS
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
19100 $as_echo "$ac_cv_search_tputs" >&6; }
19101 ac_res=$ac_cv_search_tputs
19102 if test "$ac_res" != no; then :
19103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19105 else
19106 have_tputs_et_al=false
19109 if test "$have_tputs_et_al" != true; then
19110 as_fn_error "I couldn't find termcap functions (tputs and friends).
19111 Maybe some development libraries/packages are missing? Try installing
19112 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19114 # Must define this when any termcap library is found.
19116 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19118 ## FIXME This was the cpp logic, but I am not sure it is right.
19119 ## The above test has not necessarily found libncurses.
19120 HAVE_LIBNCURSES=yes
19122 ## Use terminfo instead of termcap?
19123 ## Note only system files NOT using terminfo are:
19124 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19125 ## darwin|gnu without ncurses.
19126 TERMINFO=no
19127 LIBS_TERMCAP=
19128 case "$opsys" in
19129 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19130 ## hpux10-20: Use the system provided termcap(3) library.
19131 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19132 ## is necessary. Otherwise Emacs dumps core when run -nw.
19133 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
19135 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19136 ## The ncurses library has been moved out of the System framework in
19137 ## Mac OS X 10.2. So if configure detects it, set the command-line
19138 ## option to use it.
19139 darwin|gnu*)
19140 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19141 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19142 TERMINFO=yes
19143 LIBS_TERMCAP="-lncurses"
19147 freebsd)
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19149 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19150 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19151 $as_echo_n "(cached) " >&6
19152 else
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19155 #include <osreldate.h>
19157 main ()
19159 #if __FreeBSD_version < 400000
19160 fail;
19161 #endif
19164 return 0;
19166 _ACEOF
19167 if ac_fn_c_try_link "$LINENO"; then :
19168 emacs_cv_freebsd_terminfo=yes
19169 else
19170 emacs_cv_freebsd_terminfo=no
19172 rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19178 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19180 if test $emacs_cv_freebsd_terminfo = yes; then
19181 TERMINFO=yes
19182 LIBS_TERMCAP="-lncurses"
19183 else
19184 LIBS_TERMCAP="-ltermcap"
19188 netbsd)
19189 if test $ac_cv_search_tputs = -lterminfo; then
19190 TERMINFO=yes
19191 LIBS_TERMCAP="-lterminfo"
19192 else
19193 LIBS_TERMCAP="-ltermcap"
19197 esac
19199 case "$opsys" in
19200 ## hpux: Make sure we get select from libc rather than from libcurses
19201 ## because libcurses on HPUX 10.10 has a broken version of select.
19202 ## We used to use -lc -lcurses, but this may be cleaner.
19203 hpux*) LIBS_TERMCAP="-ltermcap" ;;
19205 openbsd) LIBS_TERMCAP="-lncurses" ;;
19207 ## Must use system termcap, if we use any termcap. It does special things.
19208 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
19209 esac
19211 TERMCAP_OBJ=tparam.o
19212 if test $TERMINFO = yes; then
19214 $as_echo "#define TERMINFO 1" >>confdefs.h
19217 ## Default used to be -ltermcap. Add a case above if need something else.
19218 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
19220 TERMCAP_OBJ=terminfo.o
19226 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19227 resolv=no
19228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h. */
19230 #include <netinet/in.h>
19231 #include <arpa/nameser.h>
19232 #include <resolv.h>
19234 main ()
19236 return res_init();
19238 return 0;
19240 _ACEOF
19241 if ac_fn_c_try_link "$LINENO"; then :
19242 have_res_init=yes
19243 else
19244 have_res_init=no
19246 rm -f core conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 if test "$have_res_init" = no; then
19249 OLIBS="$LIBS"
19250 LIBS="$LIBS -lresolv"
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19252 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19255 #include <netinet/in.h>
19256 #include <arpa/nameser.h>
19257 #include <resolv.h>
19259 main ()
19261 return res_init();
19263 return 0;
19265 _ACEOF
19266 if ac_fn_c_try_link "$LINENO"; then :
19267 have_res_init=yes
19268 else
19269 have_res_init=no
19271 rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19274 $as_echo "$have_res_init" >&6; }
19275 if test "$have_res_init" = yes ; then
19276 resolv=yes
19278 LIBS="$OLIBS"
19281 if test "$have_res_init" = yes; then
19283 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19287 # Do we need the Hesiod library to provide the support routines?
19288 LIBHESIOD=
19289 if test "$with_hesiod" != no ; then
19290 # Don't set $LIBS here -- see comments above. FIXME which comments?
19291 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
19292 if test "x$ac_cv_func_res_send" = x""yes; then :
19294 else
19295 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
19296 if test "x$ac_cv_func___res_send" = x""yes; then :
19298 else
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19300 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19301 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19302 $as_echo_n "(cached) " >&6
19303 else
19304 ac_check_lib_save_LIBS=$LIBS
19305 LIBS="-lresolv $LIBS"
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19309 /* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 char res_send ();
19317 main ()
19319 return res_send ();
19321 return 0;
19323 _ACEOF
19324 if ac_fn_c_try_link "$LINENO"; then :
19325 ac_cv_lib_resolv_res_send=yes
19326 else
19327 ac_cv_lib_resolv_res_send=no
19329 rm -f core conftest.err conftest.$ac_objext \
19330 conftest$ac_exeext conftest.$ac_ext
19331 LIBS=$ac_check_lib_save_LIBS
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19334 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19335 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
19336 resolv=yes
19337 else
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19339 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19340 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19341 $as_echo_n "(cached) " >&6
19342 else
19343 ac_check_lib_save_LIBS=$LIBS
19344 LIBS="-lresolv $LIBS"
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char __res_send ();
19356 main ()
19358 return __res_send ();
19360 return 0;
19362 _ACEOF
19363 if ac_fn_c_try_link "$LINENO"; then :
19364 ac_cv_lib_resolv___res_send=yes
19365 else
19366 ac_cv_lib_resolv___res_send=no
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370 LIBS=$ac_check_lib_save_LIBS
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19373 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19374 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
19375 resolv=yes
19384 if test "$resolv" = yes ; then
19385 RESOLVLIB=-lresolv
19386 else
19387 RESOLVLIB=
19389 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19390 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
19392 else
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19394 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
19395 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
19396 $as_echo_n "(cached) " >&6
19397 else
19398 ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lhesiod $RESOLVLIB $LIBS"
19400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19401 /* end confdefs.h. */
19403 /* Override any GCC internal prototype to avoid an error.
19404 Use char because int might match the return type of a GCC
19405 builtin and then its argument prototype would still apply. */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 char hes_getmailhost ();
19411 main ()
19413 return hes_getmailhost ();
19415 return 0;
19417 _ACEOF
19418 if ac_fn_c_try_link "$LINENO"; then :
19419 ac_cv_lib_hesiod_hes_getmailhost=yes
19420 else
19421 ac_cv_lib_hesiod_hes_getmailhost=no
19423 rm -f core conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext conftest.$ac_ext
19425 LIBS=$ac_check_lib_save_LIBS
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19428 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19429 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
19430 hesiod=yes
19431 else
19438 if test x"$hesiod" = xyes; then
19440 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
19442 LIBHESIOD=-lhesiod
19447 # Do we need libresolv (due to res_init or Hesiod)?
19448 if test "$resolv" = yes ; then
19450 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19452 LIBRESOLV=-lresolv
19453 else
19454 LIBRESOLV=
19458 # These tell us which Kerberos-related libraries to use.
19459 COM_ERRLIB=
19460 CRYPTOLIB=
19461 KRB5LIB=
19462 DESLIB=
19463 KRB4LIB=
19465 if test "${with_kerberos}" != no; then
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
19467 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
19468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
19469 $as_echo_n "(cached) " >&6
19470 else
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lcom_err $LIBS"
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19479 #ifdef __cplusplus
19480 extern "C"
19481 #endif
19482 char com_err ();
19484 main ()
19486 return com_err ();
19488 return 0;
19490 _ACEOF
19491 if ac_fn_c_try_link "$LINENO"; then :
19492 ac_cv_lib_com_err_com_err=yes
19493 else
19494 ac_cv_lib_com_err_com_err=no
19496 rm -f core conftest.err conftest.$ac_objext \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
19501 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
19502 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
19503 have_com_err=yes
19504 else
19505 have_com_err=no
19508 if test $have_com_err = yes; then
19509 COM_ERRLIB=-lcom_err
19510 LIBS="$COM_ERRLIB $LIBS"
19512 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19516 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
19517 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
19518 $as_echo_n "(cached) " >&6
19519 else
19520 ac_check_lib_save_LIBS=$LIBS
19521 LIBS="-lcrypto $LIBS"
19522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h. */
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 char mit_des_cbc_encrypt ();
19533 main ()
19535 return mit_des_cbc_encrypt ();
19537 return 0;
19539 _ACEOF
19540 if ac_fn_c_try_link "$LINENO"; then :
19541 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19542 else
19543 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19545 rm -f core conftest.err conftest.$ac_objext \
19546 conftest$ac_exeext conftest.$ac_ext
19547 LIBS=$ac_check_lib_save_LIBS
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19550 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19551 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
19552 have_crypto=yes
19553 else
19554 have_crypto=no
19557 if test $have_crypto = yes; then
19558 CRYPTOLIB=-lcrypto
19559 LIBS="$CRYPTOLIB $LIBS"
19561 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19565 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
19566 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
19567 $as_echo_n "(cached) " >&6
19568 else
19569 ac_check_lib_save_LIBS=$LIBS
19570 LIBS="-lk5crypto $LIBS"
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h. */
19574 /* Override any GCC internal prototype to avoid an error.
19575 Use char because int might match the return type of a GCC
19576 builtin and then its argument prototype would still apply. */
19577 #ifdef __cplusplus
19578 extern "C"
19579 #endif
19580 char mit_des_cbc_encrypt ();
19582 main ()
19584 return mit_des_cbc_encrypt ();
19586 return 0;
19588 _ACEOF
19589 if ac_fn_c_try_link "$LINENO"; then :
19590 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19591 else
19592 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19594 rm -f core conftest.err conftest.$ac_objext \
19595 conftest$ac_exeext conftest.$ac_ext
19596 LIBS=$ac_check_lib_save_LIBS
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19599 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19600 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
19601 have_k5crypto=yes
19602 else
19603 have_k5crypto=no
19606 if test $have_k5crypto = yes; then
19607 CRYPTOLIB=-lk5crypto
19608 LIBS="$CRYPTOLIB $LIBS"
19610 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19614 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19615 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
19616 $as_echo_n "(cached) " >&6
19617 else
19618 ac_check_lib_save_LIBS=$LIBS
19619 LIBS="-lkrb5 $LIBS"
19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h. */
19623 /* Override any GCC internal prototype to avoid an error.
19624 Use char because int might match the return type of a GCC
19625 builtin and then its argument prototype would still apply. */
19626 #ifdef __cplusplus
19627 extern "C"
19628 #endif
19629 char krb5_init_context ();
19631 main ()
19633 return krb5_init_context ();
19635 return 0;
19637 _ACEOF
19638 if ac_fn_c_try_link "$LINENO"; then :
19639 ac_cv_lib_krb5_krb5_init_context=yes
19640 else
19641 ac_cv_lib_krb5_krb5_init_context=no
19643 rm -f core conftest.err conftest.$ac_objext \
19644 conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19648 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19649 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
19650 have_krb5=yes
19651 else
19652 have_krb5=no
19655 if test $have_krb5=yes; then
19656 KRB5LIB=-lkrb5
19657 LIBS="$KRB5LIB $LIBS"
19659 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
19662 if test "${with_kerberos5}" = no; then
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
19664 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
19665 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
19666 $as_echo_n "(cached) " >&6
19667 else
19668 ac_check_lib_save_LIBS=$LIBS
19669 LIBS="-ldes425 $LIBS"
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19676 #ifdef __cplusplus
19677 extern "C"
19678 #endif
19679 char des_cbc_encrypt ();
19681 main ()
19683 return des_cbc_encrypt ();
19685 return 0;
19687 _ACEOF
19688 if ac_fn_c_try_link "$LINENO"; then :
19689 ac_cv_lib_des425_des_cbc_encrypt=yes
19690 else
19691 ac_cv_lib_des425_des_cbc_encrypt=no
19693 rm -f core conftest.err conftest.$ac_objext \
19694 conftest$ac_exeext conftest.$ac_ext
19695 LIBS=$ac_check_lib_save_LIBS
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19698 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19699 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
19700 have_des425=yes
19701 else
19702 have_des425=no
19705 if test $have_des425 = yes; then
19706 DESLIB=-ldes425
19707 LIBS="$DESLIB $LIBS"
19709 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
19711 else
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
19713 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
19714 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
19715 $as_echo_n "(cached) " >&6
19716 else
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-ldes $LIBS"
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19722 /* Override any GCC internal prototype to avoid an error.
19723 Use char because int might match the return type of a GCC
19724 builtin and then its argument prototype would still apply. */
19725 #ifdef __cplusplus
19726 extern "C"
19727 #endif
19728 char des_cbc_encrypt ();
19730 main ()
19732 return des_cbc_encrypt ();
19734 return 0;
19736 _ACEOF
19737 if ac_fn_c_try_link "$LINENO"; then :
19738 ac_cv_lib_des_des_cbc_encrypt=yes
19739 else
19740 ac_cv_lib_des_des_cbc_encrypt=no
19742 rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19747 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19748 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
19749 have_des=yes
19750 else
19751 have_des=no
19754 if test $have_des = yes; then
19755 DESLIB=-ldes
19756 LIBS="$DESLIB $LIBS"
19758 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
19763 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
19764 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
19765 $as_echo_n "(cached) " >&6
19766 else
19767 ac_check_lib_save_LIBS=$LIBS
19768 LIBS="-lkrb4 $LIBS"
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 char krb_get_cred ();
19780 main ()
19782 return krb_get_cred ();
19784 return 0;
19786 _ACEOF
19787 if ac_fn_c_try_link "$LINENO"; then :
19788 ac_cv_lib_krb4_krb_get_cred=yes
19789 else
19790 ac_cv_lib_krb4_krb_get_cred=no
19792 rm -f core conftest.err conftest.$ac_objext \
19793 conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19797 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
19798 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
19799 have_krb4=yes
19800 else
19801 have_krb4=no
19804 if test $have_krb4 = yes; then
19805 KRB4LIB=-lkrb4
19806 LIBS="$KRB4LIB $LIBS"
19808 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
19810 else
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
19812 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
19813 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
19814 $as_echo_n "(cached) " >&6
19815 else
19816 ac_check_lib_save_LIBS=$LIBS
19817 LIBS="-lkrb $LIBS"
19818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819 /* end confdefs.h. */
19821 /* Override any GCC internal prototype to avoid an error.
19822 Use char because int might match the return type of a GCC
19823 builtin and then its argument prototype would still apply. */
19824 #ifdef __cplusplus
19825 extern "C"
19826 #endif
19827 char krb_get_cred ();
19829 main ()
19831 return krb_get_cred ();
19833 return 0;
19835 _ACEOF
19836 if ac_fn_c_try_link "$LINENO"; then :
19837 ac_cv_lib_krb_krb_get_cred=yes
19838 else
19839 ac_cv_lib_krb_krb_get_cred=no
19841 rm -f core conftest.err conftest.$ac_objext \
19842 conftest$ac_exeext conftest.$ac_ext
19843 LIBS=$ac_check_lib_save_LIBS
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
19846 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
19847 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
19848 have_krb=yes
19849 else
19850 have_krb=no
19853 if test $have_krb = yes; then
19854 KRB4LIB=-lkrb
19855 LIBS="$KRB4LIB $LIBS"
19857 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
19863 if test "${with_kerberos5}" != no; then
19864 for ac_header in krb5.h
19865 do :
19866 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
19867 if test "x$ac_cv_header_krb5_h" = x""yes; then :
19868 cat >>confdefs.h <<_ACEOF
19869 #define HAVE_KRB5_H 1
19870 _ACEOF
19871 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
19873 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define HAVE_KRB5_ERROR_TEXT 1
19877 _ACEOF
19881 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
19883 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
19885 cat >>confdefs.h <<_ACEOF
19886 #define HAVE_KRB5_ERROR_E_TEXT 1
19887 _ACEOF
19894 done
19896 else
19897 for ac_header in des.h
19898 do :
19899 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
19900 if test "x$ac_cv_header_des_h" = x""yes; then :
19901 cat >>confdefs.h <<_ACEOF
19902 #define HAVE_DES_H 1
19903 _ACEOF
19905 else
19906 for ac_header in kerberosIV/des.h
19907 do :
19908 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
19909 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
19910 cat >>confdefs.h <<_ACEOF
19911 #define HAVE_KERBEROSIV_DES_H 1
19912 _ACEOF
19914 else
19915 for ac_header in kerberos/des.h
19916 do :
19917 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
19918 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_KERBEROS_DES_H 1
19921 _ACEOF
19925 done
19929 done
19933 done
19935 for ac_header in krb.h
19936 do :
19937 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
19938 if test "x$ac_cv_header_krb_h" = x""yes; then :
19939 cat >>confdefs.h <<_ACEOF
19940 #define HAVE_KRB_H 1
19941 _ACEOF
19943 else
19944 for ac_header in kerberosIV/krb.h
19945 do :
19946 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19947 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
19948 cat >>confdefs.h <<_ACEOF
19949 #define HAVE_KERBEROSIV_KRB_H 1
19950 _ACEOF
19952 else
19953 for ac_header in kerberos/krb.h
19954 do :
19955 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19956 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
19957 cat >>confdefs.h <<_ACEOF
19958 #define HAVE_KERBEROS_KRB_H 1
19959 _ACEOF
19963 done
19967 done
19971 done
19974 for ac_header in com_err.h
19975 do :
19976 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19977 if test "x$ac_cv_header_com_err_h" = x""yes; then :
19978 cat >>confdefs.h <<_ACEOF
19979 #define HAVE_COM_ERR_H 1
19980 _ACEOF
19984 done
19994 # Solaris requires -lintl if you want strerror (which calls dgettext)
19995 # to return localized messages.
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19997 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19998 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19999 $as_echo_n "(cached) " >&6
20000 else
20001 ac_check_lib_save_LIBS=$LIBS
20002 LIBS="-lintl $LIBS"
20003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20004 /* end confdefs.h. */
20006 /* Override any GCC internal prototype to avoid an error.
20007 Use char because int might match the return type of a GCC
20008 builtin and then its argument prototype would still apply. */
20009 #ifdef __cplusplus
20010 extern "C"
20011 #endif
20012 char dgettext ();
20014 main ()
20016 return dgettext ();
20018 return 0;
20020 _ACEOF
20021 if ac_fn_c_try_link "$LINENO"; then :
20022 ac_cv_lib_intl_dgettext=yes
20023 else
20024 ac_cv_lib_intl_dgettext=no
20026 rm -f core conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20028 LIBS=$ac_check_lib_save_LIBS
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
20031 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
20032 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_LIBINTL 1
20035 _ACEOF
20037 LIBS="-lintl $LIBS"
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
20043 $as_echo_n "checking whether localtime caches TZ... " >&6; }
20044 if test "${emacs_cv_localtime_cache+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20046 else
20047 if test x$ac_cv_func_tzset = xyes; then
20048 if test "$cross_compiling" = yes; then :
20049 # If we have tzset, assume the worst when cross-compiling.
20050 emacs_cv_localtime_cache=yes
20051 else
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20054 #include <time.h>
20055 char TZ_GMT0[] = "TZ=GMT0";
20056 char TZ_PST8[] = "TZ=PST8";
20057 main()
20059 time_t now = time ((time_t *) 0);
20060 int hour_GMT0, hour_unset;
20061 if (putenv (TZ_GMT0) != 0)
20062 exit (1);
20063 hour_GMT0 = localtime (&now)->tm_hour;
20064 unsetenv("TZ");
20065 hour_unset = localtime (&now)->tm_hour;
20066 if (putenv (TZ_PST8) != 0)
20067 exit (1);
20068 if (localtime (&now)->tm_hour == hour_GMT0)
20069 exit (1);
20070 unsetenv("TZ");
20071 if (localtime (&now)->tm_hour != hour_unset)
20072 exit (1);
20073 exit (0);
20075 _ACEOF
20076 if ac_fn_c_try_run "$LINENO"; then :
20077 emacs_cv_localtime_cache=no
20078 else
20079 emacs_cv_localtime_cache=yes
20081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20082 conftest.$ac_objext conftest.beam conftest.$ac_ext
20085 else
20086 # If we lack tzset, report that localtime does not cache TZ,
20087 # since we can't invalidate the cache if we don't have tzset.
20088 emacs_cv_localtime_cache=no
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
20092 $as_echo "$emacs_cv_localtime_cache" >&6; }
20093 if test $emacs_cv_localtime_cache = yes; then
20095 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
20099 if test "x$HAVE_TIMEVAL" = xyes; then
20100 for ac_func in gettimeofday
20101 do :
20102 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
20103 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_GETTIMEOFDAY 1
20106 _ACEOF
20109 done
20111 if test $ac_cv_func_gettimeofday = yes; then
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20113 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20114 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20115 $as_echo_n "(cached) " >&6
20116 else
20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20118 /* end confdefs.h. */
20120 #ifdef TIME_WITH_SYS_TIME
20121 #include <sys/time.h>
20122 #include <time.h>
20123 #else
20124 #ifdef HAVE_SYS_TIME_H
20125 #include <sys/time.h>
20126 #else
20127 #include <time.h>
20128 #endif
20129 #endif
20131 main ()
20133 struct timeval time;
20134 gettimeofday (&time, 0);
20136 return 0;
20138 _ACEOF
20139 if ac_fn_c_try_compile "$LINENO"; then :
20140 emacs_cv_gettimeofday_two_arguments=yes
20141 else
20142 emacs_cv_gettimeofday_two_arguments=no
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20147 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20148 if test $emacs_cv_gettimeofday_two_arguments = no; then
20150 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20156 ok_so_far=yes
20157 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20158 if test "x$ac_cv_func_socket" = x""yes; then :
20160 else
20161 ok_so_far=no
20164 if test $ok_so_far = yes; then
20165 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20166 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
20168 else
20169 ok_so_far=no
20174 if test $ok_so_far = yes; then
20175 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20176 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
20178 else
20179 ok_so_far=no
20184 if test $ok_so_far = yes; then
20186 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20190 if test -f /usr/lpp/X11/bin/smt.exp; then
20192 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20197 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20198 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20200 $as_echo "yes" >&6; }
20202 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20204 else
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20206 $as_echo "no" >&6; }
20209 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20210 if test "x$ac_cv_type_pid_t" = x""yes; then :
20212 else
20214 cat >>confdefs.h <<_ACEOF
20215 #define pid_t int
20216 _ACEOF
20220 for ac_header in vfork.h
20221 do :
20222 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20223 if test "x$ac_cv_header_vfork_h" = x""yes; then :
20224 cat >>confdefs.h <<_ACEOF
20225 #define HAVE_VFORK_H 1
20226 _ACEOF
20230 done
20232 for ac_func in fork vfork
20233 do :
20234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20236 eval as_val=\$$as_ac_var
20237 if test "x$as_val" = x""yes; then :
20238 cat >>confdefs.h <<_ACEOF
20239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20240 _ACEOF
20243 done
20245 if test "x$ac_cv_func_fork" = xyes; then
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20247 $as_echo_n "checking for working fork... " >&6; }
20248 if test "${ac_cv_func_fork_works+set}" = set; then :
20249 $as_echo_n "(cached) " >&6
20250 else
20251 if test "$cross_compiling" = yes; then :
20252 ac_cv_func_fork_works=cross
20253 else
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256 $ac_includes_default
20258 main ()
20261 /* By Ruediger Kuhlmann. */
20262 return fork () < 0;
20265 return 0;
20267 _ACEOF
20268 if ac_fn_c_try_run "$LINENO"; then :
20269 ac_cv_func_fork_works=yes
20270 else
20271 ac_cv_func_fork_works=no
20273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20274 conftest.$ac_objext conftest.beam conftest.$ac_ext
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20279 $as_echo "$ac_cv_func_fork_works" >&6; }
20281 else
20282 ac_cv_func_fork_works=$ac_cv_func_fork
20284 if test "x$ac_cv_func_fork_works" = xcross; then
20285 case $host in
20286 *-*-amigaos* | *-*-msdosdjgpp*)
20287 # Override, as these systems have only a dummy fork() stub
20288 ac_cv_func_fork_works=no
20291 ac_cv_func_fork_works=yes
20293 esac
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20295 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20297 ac_cv_func_vfork_works=$ac_cv_func_vfork
20298 if test "x$ac_cv_func_vfork" = xyes; then
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20300 $as_echo_n "checking for working vfork... " >&6; }
20301 if test "${ac_cv_func_vfork_works+set}" = set; then :
20302 $as_echo_n "(cached) " >&6
20303 else
20304 if test "$cross_compiling" = yes; then :
20305 ac_cv_func_vfork_works=cross
20306 else
20307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h. */
20309 /* Thanks to Paul Eggert for this test. */
20310 $ac_includes_default
20311 #include <sys/wait.h>
20312 #ifdef HAVE_VFORK_H
20313 # include <vfork.h>
20314 #endif
20315 /* On some sparc systems, changes by the child to local and incoming
20316 argument registers are propagated back to the parent. The compiler
20317 is told about this with #include <vfork.h>, but some compilers
20318 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20319 static variable whose address is put into a register that is
20320 clobbered by the vfork. */
20321 static void
20322 #ifdef __cplusplus
20323 sparc_address_test (int arg)
20324 # else
20325 sparc_address_test (arg) int arg;
20326 #endif
20328 static pid_t child;
20329 if (!child) {
20330 child = vfork ();
20331 if (child < 0) {
20332 perror ("vfork");
20333 _exit(2);
20335 if (!child) {
20336 arg = getpid();
20337 write(-1, "", 0);
20338 _exit (arg);
20344 main ()
20346 pid_t parent = getpid ();
20347 pid_t child;
20349 sparc_address_test (0);
20351 child = vfork ();
20353 if (child == 0) {
20354 /* Here is another test for sparc vfork register problems. This
20355 test uses lots of local variables, at least as many local
20356 variables as main has allocated so far including compiler
20357 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20358 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20359 reuse the register of parent for one of the local variables,
20360 since it will think that parent can't possibly be used any more
20361 in this routine. Assigning to the local variable will thus
20362 munge parent in the parent process. */
20363 pid_t
20364 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20365 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20366 /* Convince the compiler that p..p7 are live; otherwise, it might
20367 use the same hardware register for all 8 local variables. */
20368 if (p != p1 || p != p2 || p != p3 || p != p4
20369 || p != p5 || p != p6 || p != p7)
20370 _exit(1);
20372 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20373 from child file descriptors. If the child closes a descriptor
20374 before it execs or exits, this munges the parent's descriptor
20375 as well. Test for this by closing stdout in the child. */
20376 _exit(close(fileno(stdout)) != 0);
20377 } else {
20378 int status;
20379 struct stat st;
20381 while (wait(&status) != child)
20383 return (
20384 /* Was there some problem with vforking? */
20385 child < 0
20387 /* Did the child fail? (This shouldn't happen.) */
20388 || status
20390 /* Did the vfork/compiler bug occur? */
20391 || parent != getpid()
20393 /* Did the file descriptor bug occur? */
20394 || fstat(fileno(stdout), &st) != 0
20398 _ACEOF
20399 if ac_fn_c_try_run "$LINENO"; then :
20400 ac_cv_func_vfork_works=yes
20401 else
20402 ac_cv_func_vfork_works=no
20404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20405 conftest.$ac_objext conftest.beam conftest.$ac_ext
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20410 $as_echo "$ac_cv_func_vfork_works" >&6; }
20413 if test "x$ac_cv_func_fork_works" = xcross; then
20414 ac_cv_func_vfork_works=$ac_cv_func_vfork
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20416 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20419 if test "x$ac_cv_func_vfork_works" = xyes; then
20421 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20423 else
20425 $as_echo "#define vfork fork" >>confdefs.h
20428 if test "x$ac_cv_func_fork_works" = xyes; then
20430 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20436 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20437 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
20438 $as_echo_n "(cached) " >&6
20439 else
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20442 #include <langinfo.h>
20444 main ()
20446 char* cs = nl_langinfo(CODESET);
20448 return 0;
20450 _ACEOF
20451 if ac_fn_c_try_link "$LINENO"; then :
20452 emacs_cv_langinfo_codeset=yes
20453 else
20454 emacs_cv_langinfo_codeset=no
20456 rm -f core conftest.err conftest.$ac_objext \
20457 conftest$ac_exeext conftest.$ac_ext
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
20461 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
20462 if test $emacs_cv_langinfo_codeset = yes; then
20464 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20469 $as_echo_n "checking for mbstate_t... " >&6; }
20470 if test "${ac_cv_type_mbstate_t+set}" = set; then :
20471 $as_echo_n "(cached) " >&6
20472 else
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20475 $ac_includes_default
20476 # include <wchar.h>
20478 main ()
20480 mbstate_t x; return sizeof x;
20482 return 0;
20484 _ACEOF
20485 if ac_fn_c_try_compile "$LINENO"; then :
20486 ac_cv_type_mbstate_t=yes
20487 else
20488 ac_cv_type_mbstate_t=no
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20493 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20494 if test $ac_cv_type_mbstate_t = yes; then
20496 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20498 else
20500 $as_echo "#define mbstate_t int" >>confdefs.h
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
20505 $as_echo_n "checking for C restricted array declarations... " >&6; }
20506 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
20507 $as_echo_n "(cached) " >&6
20508 else
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511 void fred (int x[__restrict]);
20513 main ()
20517 return 0;
20519 _ACEOF
20520 if ac_fn_c_try_compile "$LINENO"; then :
20521 emacs_cv_c_restrict_arr=yes
20522 else
20523 emacs_cv_c_restrict_arr=no
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
20528 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
20529 if test "$emacs_cv_c_restrict_arr" = yes; then
20531 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
20537 # Set up the CFLAGS for real compilation, so we can substitute it.
20538 CFLAGS="$REAL_CFLAGS"
20539 CPPFLAGS="$REAL_CPPFLAGS"
20541 ## Hack to detect a buggy GCC version.
20542 if test "x$GCC" = xyes \
20543 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
20544 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
20545 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
20546 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
20549 version=$PACKAGE_VERSION
20551 ### Specify what sort of things we'll be editing into Makefile and config.h.
20552 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20555 ## Unused?
20576 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
20577 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
20578 ## end of LIBX_BASE, but nothing ever set it.
20583 ## Used in lwlib/Makefile.in.
20585 if test -n "${machfile}"; then
20586 M_FILE="\$(srcdir)/${machfile}"
20587 else
20588 M_FILE=
20590 S_FILE="\$(srcdir)/${opsysfile}"
20601 cat >>confdefs.h <<_ACEOF
20602 #define EMACS_CONFIGURATION "${canonical}"
20603 _ACEOF
20606 cat >>confdefs.h <<_ACEOF
20607 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20608 _ACEOF
20610 if test -n "$machfile"; then
20612 cat >>confdefs.h <<_ACEOF
20613 #define config_machfile "${machfile}"
20614 _ACEOF
20618 cat >>confdefs.h <<_ACEOF
20619 #define config_opsysfile "${opsysfile}"
20620 _ACEOF
20623 XMENU_OBJ=
20624 XOBJ=
20625 FONT_OBJ=
20626 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20628 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
20630 XMENU_OBJ=xmenu.o
20631 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
20632 FONT_OBJ=xfont.o
20633 if test "$HAVE_XFT" = "yes"; then
20634 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
20635 elif test "$HAVE_FREETYPE" = "yes"; then
20636 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
20644 WIDGET_OBJ=
20645 MOTIF_LIBW=
20646 if test "${USE_X_TOOLKIT}" != "none" ; then
20647 WIDGET_OBJ=widget.o
20649 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
20651 if test "${USE_X_TOOLKIT}" = "LUCID"; then
20653 $as_echo "#define USE_LUCID 1" >>confdefs.h
20655 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
20657 $as_echo "#define USE_MOTIF 1" >>confdefs.h
20659 MOTIF_LIBW=-lXm
20660 case "$opsys" in
20661 gnu-linux)
20662 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
20663 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
20666 unixware)
20667 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
20668 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
20669 MOTIF_LIBW="MOTIF_LIBW -lXimp"
20672 aix4-2)
20673 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
20674 MOTIF_LIBW="$MOTIF_LIBW -li18n"
20676 esac
20677 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
20682 TOOLKIT_LIBW=
20683 case "$USE_X_TOOLKIT" in
20684 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
20685 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
20686 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
20687 esac
20690 if test "$USE_X_TOOLKIT" = "none"; then
20691 LIBXT_OTHER="\$(LIBXSM)"
20692 OLDXMENU_TARGET="really-oldXMenu"
20693 else
20694 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
20695 OLDXMENU_TARGET="really-lwlib"
20699 ## The X Menu stuff is present in the X10 distribution, but missing
20700 ## from X11. If we have X10, just use the installed library;
20701 ## otherwise, use our own copy.
20702 if test "${HAVE_X11}" = "yes" ; then
20704 $as_echo "#define HAVE_X11 1" >>confdefs.h
20707 if test "$USE_X_TOOLKIT" = "none"; then
20708 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
20709 else
20710 OLDXMENU="\${lwlibdir}/liblw.a"
20712 LIBXMENU="\$(OLDXMENU)"
20713 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
20714 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
20715 else
20716 ## For a syntactically valid Makefile; not actually used for anything.
20717 ## See comments in src/Makefile.in.
20718 OLDXMENU=nothing
20719 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
20720 if test "${HAVE_X_WINDOWS}" = "yes"; then
20721 LIBXMENU="-lXMenu"
20722 else
20723 LIBXMENU=
20725 LIBX_OTHER=
20726 OLDXMENU_DEPS=
20729 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
20730 OLDXMENU_TARGET=
20731 OLDXMENU=nothing
20732 LIBXMENU=
20733 OLDXMENU_DEPS=
20742 if test "${HAVE_MENUS}" = "yes" ; then
20744 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
20748 if test "${GNU_MALLOC}" = "yes" ; then
20750 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
20754 RALLOC_OBJ=
20755 if test "${REL_ALLOC}" = "yes" ; then
20757 $as_echo "#define REL_ALLOC 1" >>confdefs.h
20760 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
20764 if test "$opsys" = "cygwin"; then
20765 CYGWIN_OBJ="sheap.o"
20766 ## Cygwin differs because of its unexec().
20767 PRE_ALLOC_OBJ=
20768 POST_ALLOC_OBJ=lastfile.o
20769 else
20770 CYGWIN_OBJ=
20771 PRE_ALLOC_OBJ=lastfile.o
20772 POST_ALLOC_OBJ=
20779 case "$opsys" in
20780 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
20782 darwin)
20783 ## The -headerpad option tells ld (see man page) to leave room at the
20784 ## end of the header for adding load commands. Needed for dumping.
20785 ## 0x690 is the total size of 30 segment load commands (at 56
20786 ## each); under Cocoa 31 commands are required.
20787 if test "$HAVE_NS" = "yes"; then
20788 libs_nsgui="-framework AppKit"
20789 headerpad_extra=6C8
20790 else
20791 libs_nsgui=
20792 headerpad_extra=690
20794 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
20796 ## This is here because src/Makefile.in did some extra fiddling around
20797 ## with LD_SWITCH_SYSTEM. The cpp logic was:
20798 ## #ifndef LD_SWITCH_SYSTEM
20799 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
20800 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
20801 ## not using gcc, darwin system not on an alpha (ie darwin, since
20802 ## darwin + alpha does not occur).
20803 ## Because this was done in src/Makefile.in, the resulting part of
20804 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
20805 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
20806 ## rather than LD_SWITCH_SYSTEM.
20807 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
20808 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
20811 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
20812 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
20813 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
20814 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
20815 ## had different values in configure (in ac_link) and src/Makefile.in.
20816 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
20817 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
20819 *) LD_SWITCH_SYSTEM_TEMACS= ;;
20820 esac
20822 if test "$NS_IMPL_GNUSTEP" = "yes"; then
20823 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
20829 LD_FIRSTFLAG=
20830 ORDINARY_LINK=
20831 case "$opsys" in
20832 ## gnu: GNU needs its own crt0.
20833 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
20835 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
20836 ## library search parth, i.e. it won't search /usr/lib for libc and
20837 ## friends. Using -nostartfiles instead avoids this problem, and
20838 ## will also work on earlier NetBSD releases.
20839 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
20841 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
20842 ## MkLinux/LinuxPPC needs this.
20843 ## ibms390x only supports opsys = gnu-linux so it can be added here.
20844 gnu-*)
20845 case "$machine" in
20846 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
20847 esac
20849 esac
20852 if test "x$ORDINARY_LINK" = "xyes"; then
20854 LD_FIRSTFLAG=""
20856 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
20859 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
20860 ## freebsd, gnu-* not on macppc|ibms390x.
20861 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
20863 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
20864 ## places that are difficult to figure out at make time. Fortunately,
20865 ## these same versions allow you to pass arbitrary flags on to the
20866 ## linker, so there is no reason not to use it as a linker.
20868 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
20869 ## searching for libraries in its internal directories, so we have to
20870 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
20871 LD_FIRSTFLAG="-nostdlib"
20874 ## FIXME? What setting of EDIT_LDFLAGS should this have?
20875 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
20880 ## FIXME? The logic here is not precisely the same as that above.
20881 ## There is no check here for a pre-defined LD_FIRSTFLAG.
20882 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
20883 LIB_GCC=
20884 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
20886 case "$opsys" in
20887 freebsd|netbsd|openbsd) LIB_GCC= ;;
20889 gnu-*)
20890 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
20891 ## build on ARM EABI under GNU/Linux. (Bug#5518)
20892 case $host_cpu in
20893 arm*)
20894 LIB_GCC="-lgcc_s"
20897 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
20898 ## immediately undefine it again and redefine it to empty.
20899 ## Was the C_SWITCH_X_SITE part really necessary?
20900 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
20901 LIB_GCC=
20903 esac
20906 ## Ask GCC where to find libgcc.a.
20907 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
20908 esac
20912 ## If we're using X11/GNUstep, define some consequences.
20913 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
20915 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
20918 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
20925 #### Report on what we decided to do.
20926 #### Report GTK as a toolkit, even if it doesn't use Xt.
20927 #### It makes printing result more understandable as using GTK sets
20928 #### toolkit_scroll_bars to yes by default.
20929 if test "${HAVE_GTK}" = "yes"; then
20930 USE_X_TOOLKIT=GTK
20933 and_machfile=
20934 if test -n "$machfile"; then
20935 and_machfile=" and \`${machfile}'"
20938 echo "
20939 Configured for \`${canonical}'.
20941 Where should the build process find the source code? ${srcdir}
20942 What operating system and machine description files should Emacs use?
20943 \`${opsysfile}'${and_machfile}
20944 What compiler should emacs be built with? ${CC} ${CFLAGS}
20945 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20946 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20947 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20948 What window system should Emacs use? ${window_system}
20949 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20951 if test -n "${x_includes}"; then
20952 echo " Where do we find X Windows header files? ${x_includes}"
20953 else
20954 echo " Where do we find X Windows header files? Standard dirs"
20956 if test -n "${x_libraries}"; then
20957 echo " Where do we find X Windows libraries? ${x_libraries}"
20958 else
20959 echo " Where do we find X Windows libraries? Standard dirs"
20962 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20963 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20964 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20965 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20966 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20967 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20968 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20969 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20971 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20972 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20973 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20974 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20975 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
20976 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20978 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20979 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20980 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20981 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20983 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20984 echo
20986 if test $USE_XASSERTS = yes; then
20987 echo " Compiling with asserts turned on."
20988 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20991 echo
20993 if test "$HAVE_NS" = "yes"; then
20994 echo
20995 echo "You must run \"make install\" in order to test the built application.
20996 The installed application will go to nextstep/Emacs.app and can be
20997 run or moved from there."
20998 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20999 echo "The application will be fully self-contained."
21000 else
21001 echo "The lisp resources for the application will be installed under ${prefix}.
21002 You may need to run \"make install\" with sudo. The application will fail
21003 to run if these resources are not installed."
21005 echo
21009 # Remove any trailing slashes in these variables.
21010 test "${prefix}" != NONE &&
21011 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21012 test "${exec_prefix}" != NONE &&
21013 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21015 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"
21017 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"
21020 opt_makefile=test/automated/Makefile
21022 if test -f $srcdir/${opt_makefile}.in; then
21023 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
21024 ac_config_files="$ac_config_files test/automated/Makefile"
21028 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
21032 ac_config_commands="$ac_config_commands mkdirs"
21035 ac_config_commands="$ac_config_commands epaths"
21038 ac_config_commands="$ac_config_commands gdbinit"
21041 cat >confcache <<\_ACEOF
21042 # This file is a shell script that caches the results of configure
21043 # tests run on this system so they can be shared between configure
21044 # scripts and configure runs, see configure's option --config-cache.
21045 # It is not useful on other systems. If it contains results you don't
21046 # want to keep, you may remove or edit it.
21048 # config.status only pays attention to the cache file if you give it
21049 # the --recheck option to rerun configure.
21051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21053 # following values.
21055 _ACEOF
21057 # The following way of writing the cache mishandles newlines in values,
21058 # but we know of no workaround that is simple, portable, and efficient.
21059 # So, we kill variables containing newlines.
21060 # Ultrix sh set writes to stderr and can't be redirected directly,
21061 # and sets the high bit in the cache file unless we assign to the vars.
21063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21064 eval ac_val=\$$ac_var
21065 case $ac_val in #(
21066 *${as_nl}*)
21067 case $ac_var in #(
21068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21070 esac
21071 case $ac_var in #(
21072 _ | IFS | as_nl) ;; #(
21073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21074 *) { eval $ac_var=; unset $ac_var;} ;;
21075 esac ;;
21076 esac
21077 done
21079 (set) 2>&1 |
21080 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21081 *${as_nl}ac_space=\ *)
21082 # `set' does not quote correctly, so add quotes: double-quote
21083 # substitution turns \\\\ into \\, and sed turns \\ into \.
21084 sed -n \
21085 "s/'/'\\\\''/g;
21086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21087 ;; #(
21089 # `set' quotes correctly as required by POSIX, so do not add quotes.
21090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21092 esac |
21093 sort
21095 sed '
21096 /^ac_cv_env_/b end
21097 t clear
21098 :clear
21099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21100 t end
21101 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21102 :end' >>confcache
21103 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21104 if test -w "$cache_file"; then
21105 test "x$cache_file" != "x/dev/null" &&
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21107 $as_echo "$as_me: updating cache $cache_file" >&6;}
21108 cat confcache >$cache_file
21109 else
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21111 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21114 rm -f confcache
21116 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21117 # Let make expand exec_prefix.
21118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21120 DEFS=-DHAVE_CONFIG_H
21122 ac_libobjs=
21123 ac_ltlibobjs=
21124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21125 # 1. Remove the extension, and $U if already installed.
21126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21129 # will be set to the directory where LIBOBJS objects are built.
21130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21132 done
21133 LIBOBJS=$ac_libobjs
21135 LTLIBOBJS=$ac_ltlibobjs
21138 if test -n "$EXEEXT"; then
21139 am__EXEEXT_TRUE=
21140 am__EXEEXT_FALSE='#'
21141 else
21142 am__EXEEXT_TRUE='#'
21143 am__EXEEXT_FALSE=
21146 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21147 as_fn_error "conditional \"AMDEP\" was never defined.
21148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21151 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21155 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21156 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21159 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
21160 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
21161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21164 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21165 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21168 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21169 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21172 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21173 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21176 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21177 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21180 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21181 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21184 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21185 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21188 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21189 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21192 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21193 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21196 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21197 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21201 gl_libobjs=
21202 gl_ltlibobjs=
21203 if test -n "$gl_LIBOBJS"; then
21204 # Remove the extension.
21205 sed_drop_objext='s/\.o$//;s/\.obj$//'
21206 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21207 gl_libobjs="$gl_libobjs $i.$ac_objext"
21208 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21209 done
21211 gl_LIBOBJS=$gl_libobjs
21213 gl_LTLIBOBJS=$gl_ltlibobjs
21217 gltests_libobjs=
21218 gltests_ltlibobjs=
21219 if test -n "$gltests_LIBOBJS"; then
21220 # Remove the extension.
21221 sed_drop_objext='s/\.o$//;s/\.obj$//'
21222 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21223 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21224 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21225 done
21227 gltests_LIBOBJS=$gltests_libobjs
21229 gltests_LTLIBOBJS=$gltests_ltlibobjs
21233 : ${CONFIG_STATUS=./config.status}
21234 ac_write_fail=0
21235 ac_clean_files_save=$ac_clean_files
21236 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21238 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21239 as_write_fail=0
21240 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21241 #! $SHELL
21242 # Generated by $as_me.
21243 # Run this file to recreate the current configuration.
21244 # Compiler output produced by configure, useful for debugging
21245 # configure, is in config.log if it exists.
21247 debug=false
21248 ac_cs_recheck=false
21249 ac_cs_silent=false
21251 SHELL=\${CONFIG_SHELL-$SHELL}
21252 export SHELL
21253 _ASEOF
21254 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21255 ## -------------------- ##
21256 ## M4sh Initialization. ##
21257 ## -------------------- ##
21259 # Be more Bourne compatible
21260 DUALCASE=1; export DUALCASE # for MKS sh
21261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21262 emulate sh
21263 NULLCMD=:
21264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21265 # is contrary to our usage. Disable this feature.
21266 alias -g '${1+"$@"}'='"$@"'
21267 setopt NO_GLOB_SUBST
21268 else
21269 case `(set -o) 2>/dev/null` in #(
21270 *posix*) :
21271 set -o posix ;; #(
21272 *) :
21274 esac
21278 as_nl='
21280 export as_nl
21281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21282 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21285 # Prefer a ksh shell builtin over an external printf program on Solaris,
21286 # but without wasting forks for bash or zsh.
21287 if test -z "$BASH_VERSION$ZSH_VERSION" \
21288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21289 as_echo='print -r --'
21290 as_echo_n='print -rn --'
21291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21292 as_echo='printf %s\n'
21293 as_echo_n='printf %s'
21294 else
21295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21297 as_echo_n='/usr/ucb/echo -n'
21298 else
21299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21300 as_echo_n_body='eval
21301 arg=$1;
21302 case $arg in #(
21303 *"$as_nl"*)
21304 expr "X$arg" : "X\\(.*\\)$as_nl";
21305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21306 esac;
21307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21309 export as_echo_n_body
21310 as_echo_n='sh -c $as_echo_n_body as_echo'
21312 export as_echo_body
21313 as_echo='sh -c $as_echo_body as_echo'
21316 # The user is always right.
21317 if test "${PATH_SEPARATOR+set}" != set; then
21318 PATH_SEPARATOR=:
21319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21320 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21321 PATH_SEPARATOR=';'
21326 # IFS
21327 # We need space, tab and new line, in precisely that order. Quoting is
21328 # there to prevent editors from complaining about space-tab.
21329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21330 # splitting by setting IFS to empty value.)
21331 IFS=" "" $as_nl"
21333 # Find who we are. Look in the path if we contain no directory separator.
21334 case $0 in #((
21335 *[\\/]* ) as_myself=$0 ;;
21336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21337 for as_dir in $PATH
21339 IFS=$as_save_IFS
21340 test -z "$as_dir" && as_dir=.
21341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21342 done
21343 IFS=$as_save_IFS
21346 esac
21347 # We did not find ourselves, most probably we were run as `sh COMMAND'
21348 # in which case we are not to be found in the path.
21349 if test "x$as_myself" = x; then
21350 as_myself=$0
21352 if test ! -f "$as_myself"; then
21353 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21354 exit 1
21357 # Unset variables that we do not need and which cause bugs (e.g. in
21358 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21359 # suppresses any "Segmentation fault" message there. '((' could
21360 # trigger a bug in pdksh 5.2.14.
21361 for as_var in BASH_ENV ENV MAIL MAILPATH
21362 do eval test x\${$as_var+set} = xset \
21363 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21364 done
21365 PS1='$ '
21366 PS2='> '
21367 PS4='+ '
21369 # NLS nuisances.
21370 LC_ALL=C
21371 export LC_ALL
21372 LANGUAGE=C
21373 export LANGUAGE
21375 # CDPATH.
21376 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21379 # as_fn_error ERROR [LINENO LOG_FD]
21380 # ---------------------------------
21381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21383 # script with status $?, using 1 if that was 0.
21384 as_fn_error ()
21386 as_status=$?; test $as_status -eq 0 && as_status=1
21387 if test "$3"; then
21388 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21391 $as_echo "$as_me: error: $1" >&2
21392 as_fn_exit $as_status
21393 } # as_fn_error
21396 # as_fn_set_status STATUS
21397 # -----------------------
21398 # Set $? to STATUS, without forking.
21399 as_fn_set_status ()
21401 return $1
21402 } # as_fn_set_status
21404 # as_fn_exit STATUS
21405 # -----------------
21406 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21407 as_fn_exit ()
21409 set +e
21410 as_fn_set_status $1
21411 exit $1
21412 } # as_fn_exit
21414 # as_fn_unset VAR
21415 # ---------------
21416 # Portably unset VAR.
21417 as_fn_unset ()
21419 { eval $1=; unset $1;}
21421 as_unset=as_fn_unset
21422 # as_fn_append VAR VALUE
21423 # ----------------------
21424 # Append the text in VALUE to the end of the definition contained in VAR. Take
21425 # advantage of any shell optimizations that allow amortized linear growth over
21426 # repeated appends, instead of the typical quadratic growth present in naive
21427 # implementations.
21428 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21429 eval 'as_fn_append ()
21431 eval $1+=\$2
21433 else
21434 as_fn_append ()
21436 eval $1=\$$1\$2
21438 fi # as_fn_append
21440 # as_fn_arith ARG...
21441 # ------------------
21442 # Perform arithmetic evaluation on the ARGs, and store the result in the
21443 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21444 # must be portable across $(()) and expr.
21445 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21446 eval 'as_fn_arith ()
21448 as_val=$(( $* ))
21450 else
21451 as_fn_arith ()
21453 as_val=`expr "$@" || test $? -eq 1`
21455 fi # as_fn_arith
21458 if expr a : '\(a\)' >/dev/null 2>&1 &&
21459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21460 as_expr=expr
21461 else
21462 as_expr=false
21465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21466 as_basename=basename
21467 else
21468 as_basename=false
21471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21472 as_dirname=dirname
21473 else
21474 as_dirname=false
21477 as_me=`$as_basename -- "$0" ||
21478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21479 X"$0" : 'X\(//\)$' \| \
21480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21481 $as_echo X/"$0" |
21482 sed '/^.*\/\([^/][^/]*\)\/*$/{
21483 s//\1/
21486 /^X\/\(\/\/\)$/{
21487 s//\1/
21490 /^X\/\(\/\).*/{
21491 s//\1/
21494 s/.*/./; q'`
21496 # Avoid depending upon Character Ranges.
21497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21500 as_cr_digits='0123456789'
21501 as_cr_alnum=$as_cr_Letters$as_cr_digits
21503 ECHO_C= ECHO_N= ECHO_T=
21504 case `echo -n x` in #(((((
21505 -n*)
21506 case `echo 'xy\c'` in
21507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21508 xy) ECHO_C='\c';;
21509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21510 ECHO_T=' ';;
21511 esac;;
21513 ECHO_N='-n';;
21514 esac
21516 rm -f conf$$ conf$$.exe conf$$.file
21517 if test -d conf$$.dir; then
21518 rm -f conf$$.dir/conf$$.file
21519 else
21520 rm -f conf$$.dir
21521 mkdir conf$$.dir 2>/dev/null
21523 if (echo >conf$$.file) 2>/dev/null; then
21524 if ln -s conf$$.file conf$$ 2>/dev/null; then
21525 as_ln_s='ln -s'
21526 # ... but there are two gotchas:
21527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21529 # In both cases, we have to default to `cp -p'.
21530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21531 as_ln_s='cp -p'
21532 elif ln conf$$.file conf$$ 2>/dev/null; then
21533 as_ln_s=ln
21534 else
21535 as_ln_s='cp -p'
21537 else
21538 as_ln_s='cp -p'
21540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21541 rmdir conf$$.dir 2>/dev/null
21544 # as_fn_mkdir_p
21545 # -------------
21546 # Create "$as_dir" as a directory, including parents if necessary.
21547 as_fn_mkdir_p ()
21550 case $as_dir in #(
21551 -*) as_dir=./$as_dir;;
21552 esac
21553 test -d "$as_dir" || eval $as_mkdir_p || {
21554 as_dirs=
21555 while :; do
21556 case $as_dir in #(
21557 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21558 *) as_qdir=$as_dir;;
21559 esac
21560 as_dirs="'$as_qdir' $as_dirs"
21561 as_dir=`$as_dirname -- "$as_dir" ||
21562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21563 X"$as_dir" : 'X\(//\)[^/]' \| \
21564 X"$as_dir" : 'X\(//\)$' \| \
21565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21566 $as_echo X"$as_dir" |
21567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21568 s//\1/
21571 /^X\(\/\/\)[^/].*/{
21572 s//\1/
21575 /^X\(\/\/\)$/{
21576 s//\1/
21579 /^X\(\/\).*/{
21580 s//\1/
21583 s/.*/./; q'`
21584 test -d "$as_dir" && break
21585 done
21586 test -z "$as_dirs" || eval "mkdir $as_dirs"
21587 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21590 } # as_fn_mkdir_p
21591 if mkdir -p . 2>/dev/null; then
21592 as_mkdir_p='mkdir -p "$as_dir"'
21593 else
21594 test -d ./-p && rmdir ./-p
21595 as_mkdir_p=false
21598 if test -x / >/dev/null 2>&1; then
21599 as_test_x='test -x'
21600 else
21601 if ls -dL / >/dev/null 2>&1; then
21602 as_ls_L_option=L
21603 else
21604 as_ls_L_option=
21606 as_test_x='
21607 eval sh -c '\''
21608 if test -d "$1"; then
21609 test -d "$1/.";
21610 else
21611 case $1 in #(
21612 -*)set "./$1";;
21613 esac;
21614 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21615 ???[sx]*):;;*)false;;esac;fi
21616 '\'' sh
21619 as_executable_p=$as_test_x
21621 # Sed expression to map a string onto a valid CPP name.
21622 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21624 # Sed expression to map a string onto a valid variable name.
21625 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21628 exec 6>&1
21629 ## ----------------------------------- ##
21630 ## Main body of $CONFIG_STATUS script. ##
21631 ## ----------------------------------- ##
21632 _ASEOF
21633 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21636 # Save the log message, to keep $0 and so on meaningful, and to
21637 # report actual input values of CONFIG_FILES etc. instead of their
21638 # values after options handling.
21639 ac_log="
21640 This file was extended by emacs $as_me 24.0.50, which was
21641 generated by GNU Autoconf 2.65. Invocation command line was
21643 CONFIG_FILES = $CONFIG_FILES
21644 CONFIG_HEADERS = $CONFIG_HEADERS
21645 CONFIG_LINKS = $CONFIG_LINKS
21646 CONFIG_COMMANDS = $CONFIG_COMMANDS
21647 $ $0 $@
21649 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21652 _ACEOF
21654 case $ac_config_files in *"
21655 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21656 esac
21658 case $ac_config_headers in *"
21659 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21660 esac
21663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21664 # Files that config.status was made for.
21665 config_files="$ac_config_files"
21666 config_headers="$ac_config_headers"
21667 config_commands="$ac_config_commands"
21669 _ACEOF
21671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21672 ac_cs_usage="\
21673 \`$as_me' instantiates files and other configuration actions
21674 from templates according to the current configuration. Unless the files
21675 and actions are specified as TAGs, all are instantiated by default.
21677 Usage: $0 [OPTION]... [TAG]...
21679 -h, --help print this help, then exit
21680 -V, --version print version number and configuration settings, then exit
21681 --config print configuration, then exit
21682 -q, --quiet, --silent
21683 do not print progress messages
21684 -d, --debug don't remove temporary files
21685 --recheck update $as_me by reconfiguring in the same conditions
21686 --file=FILE[:TEMPLATE]
21687 instantiate the configuration file FILE
21688 --header=FILE[:TEMPLATE]
21689 instantiate the configuration header FILE
21691 Configuration files:
21692 $config_files
21694 Configuration headers:
21695 $config_headers
21697 Configuration commands:
21698 $config_commands
21700 Report bugs to the package provider."
21702 _ACEOF
21703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21704 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21705 ac_cs_version="\\
21706 emacs config.status 24.0.50
21707 configured by $0, generated by GNU Autoconf 2.65,
21708 with options \\"\$ac_cs_config\\"
21710 Copyright (C) 2009 Free Software Foundation, Inc.
21711 This config.status script is free software; the Free Software Foundation
21712 gives unlimited permission to copy, distribute and modify it."
21714 ac_pwd='$ac_pwd'
21715 srcdir='$srcdir'
21716 INSTALL='$INSTALL'
21717 MKDIR_P='$MKDIR_P'
21718 AWK='$AWK'
21719 test -n "\$AWK" || AWK=awk
21720 _ACEOF
21722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21723 # The default lists apply if the user does not specify any file.
21724 ac_need_defaults=:
21725 while test $# != 0
21727 case $1 in
21728 --*=*)
21729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21731 ac_shift=:
21734 ac_option=$1
21735 ac_optarg=$2
21736 ac_shift=shift
21738 esac
21740 case $ac_option in
21741 # Handling of the options.
21742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21743 ac_cs_recheck=: ;;
21744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21745 $as_echo "$ac_cs_version"; exit ;;
21746 --config | --confi | --conf | --con | --co | --c )
21747 $as_echo "$ac_cs_config"; exit ;;
21748 --debug | --debu | --deb | --de | --d | -d )
21749 debug=: ;;
21750 --file | --fil | --fi | --f )
21751 $ac_shift
21752 case $ac_optarg in
21753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21754 esac
21755 as_fn_append CONFIG_FILES " '$ac_optarg'"
21756 ac_need_defaults=false;;
21757 --header | --heade | --head | --hea )
21758 $ac_shift
21759 case $ac_optarg in
21760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21761 esac
21762 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21763 ac_need_defaults=false;;
21764 --he | --h)
21765 # Conflict between --help and --header
21766 as_fn_error "ambiguous option: \`$1'
21767 Try \`$0 --help' for more information.";;
21768 --help | --hel | -h )
21769 $as_echo "$ac_cs_usage"; exit ;;
21770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21772 ac_cs_silent=: ;;
21774 # This is an error.
21775 -*) as_fn_error "unrecognized option: \`$1'
21776 Try \`$0 --help' for more information." ;;
21778 *) as_fn_append ac_config_targets " $1"
21779 ac_need_defaults=false ;;
21781 esac
21782 shift
21783 done
21785 ac_configure_extra_args=
21787 if $ac_cs_silent; then
21788 exec 6>/dev/null
21789 ac_configure_extra_args="$ac_configure_extra_args --silent"
21792 _ACEOF
21793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21794 if \$ac_cs_recheck; then
21795 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21796 shift
21797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21798 CONFIG_SHELL='$SHELL'
21799 export CONFIG_SHELL
21800 exec "\$@"
21803 _ACEOF
21804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21805 exec 5>>config.log
21807 echo
21808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21809 ## Running $as_me. ##
21810 _ASBOX
21811 $as_echo "$ac_log"
21812 } >&5
21814 _ACEOF
21815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21817 # INIT-COMMANDS
21819 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21820 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
21822 _ACEOF
21824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21826 # Handling of arguments.
21827 for ac_config_target in $ac_config_targets
21829 case $ac_config_target in
21830 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21831 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21833 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21834 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
21835 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21836 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
21837 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
21838 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
21839 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
21840 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21841 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21842 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21843 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21844 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
21845 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
21846 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
21847 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
21849 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21850 esac
21851 done
21854 # If the user did not use the arguments to specify the items to instantiate,
21855 # then the envvar interface is used. Set only those that are not.
21856 # We use the long form for the default assignment because of an extremely
21857 # bizarre bug on SunOS 4.1.3.
21858 if $ac_need_defaults; then
21859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21860 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21864 # Have a temporary directory for convenience. Make it in the build tree
21865 # simply because there is no reason against having it here, and in addition,
21866 # creating and moving files from /tmp can sometimes cause problems.
21867 # Hook for its removal unless debugging.
21868 # Note that there is a small window in which the directory will not be cleaned:
21869 # after its creation but before its name has been assigned to `$tmp'.
21870 $debug ||
21872 tmp=
21873 trap 'exit_status=$?
21874 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21876 trap 'as_fn_exit 1' 1 2 13 15
21878 # Create a (secure) tmp directory for tmp files.
21881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21882 test -n "$tmp" && test -d "$tmp"
21883 } ||
21885 tmp=./conf$$-$RANDOM
21886 (umask 077 && mkdir "$tmp")
21887 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21889 # Set up the scripts for CONFIG_FILES section.
21890 # No need to generate them if there are no CONFIG_FILES.
21891 # This happens for instance with `./config.status config.h'.
21892 if test -n "$CONFIG_FILES"; then
21894 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
21895 ac_cs_awk_getline=:
21896 ac_cs_awk_pipe_init=
21897 ac_cs_awk_read_file='
21898 while ((getline aline < (F[key])) > 0)
21899 print(aline)
21900 close(F[key])'
21901 ac_cs_awk_pipe_fini=
21902 else
21903 ac_cs_awk_getline=false
21904 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
21905 ac_cs_awk_read_file='
21906 print "|#_!!_#|"
21907 print "cat " F[key] " &&"
21908 '$ac_cs_awk_pipe_init
21909 # The final `:' finishes the AND list.
21910 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
21912 ac_cr=`echo X | tr X '\015'`
21913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21914 # But we know of no other shell where ac_cr would be empty at this
21915 # point, so we can use a bashism as a fallback.
21916 if test "x$ac_cr" = x; then
21917 eval ac_cr=\$\'\\r\'
21919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21921 ac_cs_awk_cr='\r'
21922 else
21923 ac_cs_awk_cr=$ac_cr
21926 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21927 _ACEOF
21929 # Create commands to substitute file output variables.
21931 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
21932 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
21933 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
21934 echo "_ACAWK" &&
21935 echo "_ACEOF"
21936 } >conf$$files.sh &&
21937 . ./conf$$files.sh ||
21938 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21939 rm -f conf$$files.sh
21942 echo "cat >conf$$subs.awk <<_ACEOF" &&
21943 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21944 echo "_ACEOF"
21945 } >conf$$subs.sh ||
21946 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21947 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21948 ac_delim='%!_!# '
21949 for ac_last_try in false false false false false :; do
21950 . ./conf$$subs.sh ||
21951 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21953 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21954 if test $ac_delim_n = $ac_delim_num; then
21955 break
21956 elif $ac_last_try; then
21957 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21958 else
21959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21961 done
21962 rm -f conf$$subs.sh
21964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21965 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21966 _ACEOF
21967 sed -n '
21969 s/^/S["/; s/!.*/"]=/
21972 s/^[^!]*!//
21973 :repl
21974 t repl
21975 s/'"$ac_delim"'$//
21976 t delim
21979 s/\(.\{148\}\)..*/\1/
21980 t more1
21981 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21984 b repl
21985 :more1
21986 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21989 s/.\{148\}//
21990 t nl
21991 :delim
21993 s/\(.\{148\}\)..*/\1/
21994 t more2
21995 s/["\\]/\\&/g; s/^/"/; s/$/"/
21998 :more2
21999 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22002 s/.\{148\}//
22003 t delim
22004 ' <conf$$subs.awk | sed '
22005 /^[^""]/{
22007 s/\n//
22009 ' >>$CONFIG_STATUS || ac_write_fail=1
22010 rm -f conf$$subs.awk
22011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22012 _ACAWK
22013 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22014 for (key in S) S_is_set[key] = 1
22015 FS = "\a"
22016 \$ac_cs_awk_pipe_init
22019 line = $ 0
22020 nfields = split(line, field, "@")
22021 substed = 0
22022 len = length(field[1])
22023 for (i = 2; i < nfields; i++) {
22024 key = field[i]
22025 keylen = length(key)
22026 if (S_is_set[key]) {
22027 value = S[key]
22028 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22029 len += length(value) + length(field[++i])
22030 substed = 1
22031 } else
22032 len += 1 + keylen
22034 if (nfields == 3 && !substed) {
22035 key = field[2]
22036 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
22037 \$ac_cs_awk_read_file
22038 next
22041 print line
22043 \$ac_cs_awk_pipe_fini
22044 _ACAWK
22045 _ACEOF
22046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22047 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22048 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22049 else
22051 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22052 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22053 _ACEOF
22055 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22056 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22057 # trailing colons and then remove the whole line if VPATH becomes empty
22058 # (actually we leave an empty line to preserve line numbers).
22059 if test "x$srcdir" = x.; then
22060 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22061 s/:*\$(srcdir):*/:/
22062 s/:*\${srcdir}:*/:/
22063 s/:*@srcdir@:*/:/
22064 s/^\([^=]*=[ ]*\):*/\1/
22065 s/:*$//
22066 s/^[^=]*=[ ]*$//
22070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22071 fi # test -n "$CONFIG_FILES"
22073 # Set up the scripts for CONFIG_HEADERS section.
22074 # No need to generate them if there are no CONFIG_HEADERS.
22075 # This happens for instance with `./config.status Makefile'.
22076 if test -n "$CONFIG_HEADERS"; then
22077 cat >"$tmp/defines.awk" <<\_ACAWK ||
22078 BEGIN {
22079 _ACEOF
22081 # Transform confdefs.h into an awk script `defines.awk', embedded as
22082 # here-document in config.status, that substitutes the proper values into
22083 # config.h.in to produce config.h.
22085 # Create a delimiter string that does not exist in confdefs.h, to ease
22086 # handling of long lines.
22087 ac_delim='%!_!# '
22088 for ac_last_try in false false :; do
22089 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22090 if test -z "$ac_t"; then
22091 break
22092 elif $ac_last_try; then
22093 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
22094 else
22095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22097 done
22099 # For the awk script, D is an array of macro values keyed by name,
22100 # likewise P contains macro parameters if any. Preserve backslash
22101 # newline sequences.
22103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22104 sed -n '
22105 s/.\{148\}/&'"$ac_delim"'/g
22106 t rset
22107 :rset
22108 s/^[ ]*#[ ]*define[ ][ ]*/ /
22109 t def
22111 :def
22112 s/\\$//
22113 t bsnl
22114 s/["\\]/\\&/g
22115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22116 D["\1"]=" \3"/p
22117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22119 :bsnl
22120 s/["\\]/\\&/g
22121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22122 D["\1"]=" \3\\\\\\n"\\/p
22123 t cont
22124 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22125 t cont
22127 :cont
22129 s/.\{148\}/&'"$ac_delim"'/g
22130 t clear
22131 :clear
22132 s/\\$//
22133 t bsnlc
22134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22136 :bsnlc
22137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22138 b cont
22139 ' <confdefs.h | sed '
22140 s/'"$ac_delim"'/"\\\
22141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22144 for (key in D) D_is_set[key] = 1
22145 FS = "\a"
22147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22148 line = \$ 0
22149 split(line, arg, " ")
22150 if (arg[1] == "#") {
22151 defundef = arg[2]
22152 mac1 = arg[3]
22153 } else {
22154 defundef = substr(arg[1], 2)
22155 mac1 = arg[2]
22157 split(mac1, mac2, "(") #)
22158 macro = mac2[1]
22159 prefix = substr(line, 1, index(line, defundef) - 1)
22160 if (D_is_set[macro]) {
22161 # Preserve the white space surrounding the "#".
22162 print prefix "define", macro P[macro] D[macro]
22163 next
22164 } else {
22165 # Replace #undef with comments. This is necessary, for example,
22166 # in the case of _POSIX_SOURCE, which is predefined and required
22167 # on some systems where configure will not decide to define it.
22168 if (defundef == "undef") {
22169 print "/*", prefix defundef, macro, "*/"
22170 next
22174 { print }
22175 _ACAWK
22176 _ACEOF
22177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22178 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22179 fi # test -n "$CONFIG_HEADERS"
22182 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22183 shift
22184 for ac_tag
22186 case $ac_tag in
22187 :[FHLC]) ac_mode=$ac_tag; continue;;
22188 esac
22189 case $ac_mode$ac_tag in
22190 :[FHL]*:*);;
22191 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22192 :[FH]-) ac_tag=-:-;;
22193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22194 esac
22195 ac_save_IFS=$IFS
22196 IFS=:
22197 set x $ac_tag
22198 IFS=$ac_save_IFS
22199 shift
22200 ac_file=$1
22201 shift
22203 case $ac_mode in
22204 :L) ac_source=$1;;
22205 :[FH])
22206 ac_file_inputs=
22207 for ac_f
22209 case $ac_f in
22210 -) ac_f="$tmp/stdin";;
22211 *) # Look for the file first in the build tree, then in the source tree
22212 # (if the path is not absolute). The absolute path cannot be DOS-style,
22213 # because $ac_f cannot contain `:'.
22214 test -f "$ac_f" ||
22215 case $ac_f in
22216 [\\/$]*) false;;
22217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22218 esac ||
22219 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22220 esac
22221 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22222 as_fn_append ac_file_inputs " '$ac_f'"
22223 done
22225 # Let's still pretend it is `configure' which instantiates (i.e., don't
22226 # use $as_me), people would be surprised to read:
22227 # /* config.h. Generated by config.status. */
22228 configure_input='Generated from '`
22229 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22230 `' by configure.'
22231 if test x"$ac_file" != x-; then
22232 configure_input="$ac_file. $configure_input"
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22234 $as_echo "$as_me: creating $ac_file" >&6;}
22236 # Neutralize special characters interpreted by sed in replacement strings.
22237 case $configure_input in #(
22238 *\&* | *\|* | *\\* )
22239 ac_sed_conf_input=`$as_echo "$configure_input" |
22240 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22241 *) ac_sed_conf_input=$configure_input;;
22242 esac
22244 case $ac_tag in
22245 *:-:* | *:-) cat >"$tmp/stdin" \
22246 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22247 esac
22249 esac
22251 ac_dir=`$as_dirname -- "$ac_file" ||
22252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22253 X"$ac_file" : 'X\(//\)[^/]' \| \
22254 X"$ac_file" : 'X\(//\)$' \| \
22255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22256 $as_echo X"$ac_file" |
22257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22258 s//\1/
22261 /^X\(\/\/\)[^/].*/{
22262 s//\1/
22265 /^X\(\/\/\)$/{
22266 s//\1/
22269 /^X\(\/\).*/{
22270 s//\1/
22273 s/.*/./; q'`
22274 as_dir="$ac_dir"; as_fn_mkdir_p
22275 ac_builddir=.
22277 case "$ac_dir" in
22278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22281 # A ".." for each directory in $ac_dir_suffix.
22282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22283 case $ac_top_builddir_sub in
22284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22286 esac ;;
22287 esac
22288 ac_abs_top_builddir=$ac_pwd
22289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22290 # for backward compatibility:
22291 ac_top_builddir=$ac_top_build_prefix
22293 case $srcdir in
22294 .) # We are building in place.
22295 ac_srcdir=.
22296 ac_top_srcdir=$ac_top_builddir_sub
22297 ac_abs_top_srcdir=$ac_pwd ;;
22298 [\\/]* | ?:[\\/]* ) # Absolute name.
22299 ac_srcdir=$srcdir$ac_dir_suffix;
22300 ac_top_srcdir=$srcdir
22301 ac_abs_top_srcdir=$srcdir ;;
22302 *) # Relative name.
22303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22304 ac_top_srcdir=$ac_top_build_prefix$srcdir
22305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22306 esac
22307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22310 case $ac_mode in
22313 # CONFIG_FILE
22316 case $INSTALL in
22317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22318 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22319 esac
22320 ac_MKDIR_P=$MKDIR_P
22321 case $MKDIR_P in
22322 [\\/$]* | ?:[\\/]* ) ;;
22323 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22324 esac
22325 _ACEOF
22327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22328 # If the template does not know about datarootdir, expand it.
22329 # FIXME: This hack should be removed a few years after 2.60.
22330 ac_datarootdir_hack=; ac_datarootdir_seen=
22331 ac_sed_dataroot='
22332 /datarootdir/ {
22336 /@datadir@/p
22337 /@docdir@/p
22338 /@infodir@/p
22339 /@localedir@/p
22340 /@mandir@/p'
22341 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22342 *datarootdir*) ac_datarootdir_seen=yes;;
22343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22345 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22346 _ACEOF
22347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22348 ac_datarootdir_hack='
22349 s&@datadir@&$datadir&g
22350 s&@docdir@&$docdir&g
22351 s&@infodir@&$infodir&g
22352 s&@localedir@&$localedir&g
22353 s&@mandir@&$mandir&g
22354 s&\\\${datarootdir}&$datarootdir&g' ;;
22355 esac
22356 _ACEOF
22358 # Neutralize VPATH when `$srcdir' = `.'.
22359 # Shell code in configure.ac might set extrasub.
22360 # FIXME: do we really want to maintain this feature?
22361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22362 ac_sed_extra="$ac_vpsub
22363 $extrasub
22364 _ACEOF
22365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22368 s|@configure_input@|$ac_sed_conf_input|;t t
22369 s&@top_builddir@&$ac_top_builddir_sub&;t t
22370 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22371 s&@srcdir@&$ac_srcdir&;t t
22372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22373 s&@top_srcdir@&$ac_top_srcdir&;t t
22374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22375 s&@builddir@&$ac_builddir&;t t
22376 s&@abs_builddir@&$ac_abs_builddir&;t t
22377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22378 s&@INSTALL@&$ac_INSTALL&;t t
22379 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22380 $ac_datarootdir_hack
22382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22383 if $ac_cs_awk_getline; then
22384 $AWK -f "$tmp/subs.awk"
22385 else
22386 $AWK -f "$tmp/subs.awk" | $SHELL
22387 fi >$tmp/out \
22388 || as_fn_error "could not create $ac_file" "$LINENO" 5
22390 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22391 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22392 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22394 which seems to be undefined. Please make sure it is defined." >&5
22395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22396 which seems to be undefined. Please make sure it is defined." >&2;}
22398 rm -f "$tmp/stdin"
22399 case $ac_file in
22400 -) cat "$tmp/out" && rm -f "$tmp/out";;
22401 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22402 esac \
22403 || as_fn_error "could not create $ac_file" "$LINENO" 5
22407 # CONFIG_HEADER
22409 if test x"$ac_file" != x-; then
22411 $as_echo "/* $configure_input */" \
22412 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22413 } >"$tmp/config.h" \
22414 || as_fn_error "could not create $ac_file" "$LINENO" 5
22415 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22418 else
22419 rm -f "$ac_file"
22420 mv "$tmp/config.h" "$ac_file" \
22421 || as_fn_error "could not create $ac_file" "$LINENO" 5
22423 else
22424 $as_echo "/* $configure_input */" \
22425 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22426 || as_fn_error "could not create -" "$LINENO" 5
22428 # Compute "$ac_file"'s index in $config_headers.
22429 _am_arg="$ac_file"
22430 _am_stamp_count=1
22431 for _am_header in $config_headers :; do
22432 case $_am_header in
22433 $_am_arg | $_am_arg:* )
22434 break ;;
22436 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22437 esac
22438 done
22439 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22440 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22441 X"$_am_arg" : 'X\(//\)[^/]' \| \
22442 X"$_am_arg" : 'X\(//\)$' \| \
22443 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22444 $as_echo X"$_am_arg" |
22445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22446 s//\1/
22449 /^X\(\/\/\)[^/].*/{
22450 s//\1/
22453 /^X\(\/\/\)$/{
22454 s//\1/
22457 /^X\(\/\).*/{
22458 s//\1/
22461 s/.*/./; q'`/stamp-h$_am_stamp_count
22464 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22465 $as_echo "$as_me: executing $ac_file commands" >&6;}
22467 esac
22470 case $ac_file$ac_mode in
22471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22472 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22473 # are listed without --file. Let's play safe and only enable the eval
22474 # if we detect the quoting.
22475 case $CONFIG_FILES in
22476 *\'*) eval set x "$CONFIG_FILES" ;;
22477 *) set x $CONFIG_FILES ;;
22478 esac
22479 shift
22480 for mf
22482 # Strip MF so we end up with the name of the file.
22483 mf=`echo "$mf" | sed -e 's/:.*$//'`
22484 # Check whether this is an Automake generated Makefile or not.
22485 # We used to match only the files named `Makefile.in', but
22486 # some people rename them; so instead we look at the file content.
22487 # Grep'ing the first line is not enough: some people post-process
22488 # each Makefile.in and add a new line on top of each file to say so.
22489 # Grep'ing the whole file is not good either: AIX grep has a line
22490 # limit of 2048, but all sed's we know have understand at least 4000.
22491 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22492 dirpart=`$as_dirname -- "$mf" ||
22493 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22494 X"$mf" : 'X\(//\)[^/]' \| \
22495 X"$mf" : 'X\(//\)$' \| \
22496 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22497 $as_echo X"$mf" |
22498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22499 s//\1/
22502 /^X\(\/\/\)[^/].*/{
22503 s//\1/
22506 /^X\(\/\/\)$/{
22507 s//\1/
22510 /^X\(\/\).*/{
22511 s//\1/
22514 s/.*/./; q'`
22515 else
22516 continue
22518 # Extract the definition of DEPDIR, am__include, and am__quote
22519 # from the Makefile without running `make'.
22520 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22521 test -z "$DEPDIR" && continue
22522 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22523 test -z "am__include" && continue
22524 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22525 # When using ansi2knr, U may be empty or an underscore; expand it
22526 U=`sed -n 's/^U = //p' < "$mf"`
22527 # Find all dependency output files, they are included files with
22528 # $(DEPDIR) in their names. We invoke sed twice because it is the
22529 # simplest approach to changing $(DEPDIR) to its actual value in the
22530 # expansion.
22531 for file in `sed -n "
22532 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22534 # Make sure the directory exists.
22535 test -f "$dirpart/$file" && continue
22536 fdir=`$as_dirname -- "$file" ||
22537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22538 X"$file" : 'X\(//\)[^/]' \| \
22539 X"$file" : 'X\(//\)$' \| \
22540 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22541 $as_echo X"$file" |
22542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22543 s//\1/
22546 /^X\(\/\/\)[^/].*/{
22547 s//\1/
22550 /^X\(\/\/\)$/{
22551 s//\1/
22554 /^X\(\/\).*/{
22555 s//\1/
22558 s/.*/./; q'`
22559 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22560 # echo "creating $dirpart/$file"
22561 echo '# dummy' > "$dirpart/$file"
22562 done
22563 done
22566 "mkdirs":C)
22567 for dir in etc lisp ; do
22568 test -d ${dir} || mkdir ${dir}
22569 done
22571 "epaths":C)
22572 echo creating src/epaths.h
22573 ${MAKE-make} epaths-force
22575 "gdbinit":C)
22576 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22577 echo creating src/.gdbinit
22578 echo source $srcdir/src/.gdbinit > src/.gdbinit
22582 esac
22583 done # for ac_tag
22586 as_fn_exit 0
22587 _ACEOF
22588 ac_clean_files=$ac_clean_files_save
22590 test $ac_write_fail = 0 ||
22591 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22594 # configure is writing to config.log, and then calls config.status.
22595 # config.status does its own redirection, appending to config.log.
22596 # Unfortunately, on DOS this fails, as config.log is still kept open
22597 # by configure, so config.status won't be able to write to it; its
22598 # output is simply discarded. So we exec the FD to /dev/null,
22599 # effectively closing config.log, so it can be properly (re)opened and
22600 # appended to by config.status. When coming back to configure, we
22601 # need to make the FD available again.
22602 if test "$no_create" != yes; then
22603 ac_cs_success=:
22604 ac_config_status_args=
22605 test "$silent" = yes &&
22606 ac_config_status_args="$ac_config_status_args --quiet"
22607 exec 5>/dev/null
22608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22609 exec 5>>config.log
22610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22611 # would make configure fail if this is the last instruction.
22612 $ac_cs_success || as_fn_exit $?
22614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}