mostly upstream
[emacs.git] / autogen / configure
blobe0de2f2dc33da2f784071b172fa6ef2217e23674
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 GETLOADAVG_LIBS
898 REPLACE_WCTOMB
899 REPLACE_UNSETENV
900 REPLACE_STRTOD
901 REPLACE_SETENV
902 REPLACE_REALPATH
903 REPLACE_REALLOC
904 REPLACE_PUTENV
905 REPLACE_MKSTEMP
906 REPLACE_MBTOWC
907 REPLACE_MALLOC
908 REPLACE_CANONICALIZE_FILE_NAME
909 REPLACE_CALLOC
910 HAVE_DECL_UNSETENV
911 HAVE_UNLOCKPT
912 HAVE_SYS_LOADAVG_H
913 HAVE_STRUCT_RANDOM_DATA
914 HAVE_STRTOULL
915 HAVE_STRTOLL
916 HAVE_STRTOD
917 HAVE_DECL_SETENV
918 HAVE_SETENV
919 HAVE_RPMATCH
920 HAVE_REALPATH
921 HAVE_RANDOM_R
922 HAVE_RANDOM_H
923 HAVE_PTSNAME
924 HAVE_MKSTEMPS
925 HAVE_MKSTEMP
926 HAVE_MKOSTEMPS
927 HAVE_MKOSTEMP
928 HAVE_MKDTEMP
929 HAVE_GRANTPT
930 HAVE_GETSUBOPT
931 HAVE_DECL_GETLOADAVG
932 HAVE_CANONICALIZE_FILE_NAME
933 HAVE_ATOLL
934 HAVE__EXIT
935 GNULIB_WCTOMB
936 GNULIB_UNSETENV
937 GNULIB_UNLOCKPT
938 GNULIB_SYSTEM_POSIX
939 GNULIB_STRTOULL
940 GNULIB_STRTOLL
941 GNULIB_STRTOD
942 GNULIB_SETENV
943 GNULIB_RPMATCH
944 GNULIB_REALPATH
945 GNULIB_REALLOC_POSIX
946 GNULIB_RANDOM_R
947 GNULIB_PUTENV
948 GNULIB_PTSNAME
949 GNULIB_MKSTEMPS
950 GNULIB_MKSTEMP
951 GNULIB_MKOSTEMPS
952 GNULIB_MKOSTEMP
953 GNULIB_MKDTEMP
954 GNULIB_MBTOWC
955 GNULIB_MALLOC_POSIX
956 GNULIB_GRANTPT
957 GNULIB_GETSUBOPT
958 GNULIB_GETLOADAVG
959 GNULIB_CANONICALIZE_FILE_NAME
960 GNULIB_CALLOC_POSIX
961 GNULIB_ATOLL
962 GNULIB__EXIT
963 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
964 UNISTD_H_HAVE_WINSOCK2_H
965 REPLACE_WRITE
966 REPLACE_USLEEP
967 REPLACE_UNLINKAT
968 REPLACE_UNLINK
969 REPLACE_TTYNAME_R
970 REPLACE_SYMLINK
971 REPLACE_SLEEP
972 REPLACE_RMDIR
973 REPLACE_READLINK
974 REPLACE_READ
975 REPLACE_PWRITE
976 REPLACE_PREAD
977 REPLACE_LSEEK
978 REPLACE_LINKAT
979 REPLACE_LINK
980 REPLACE_LCHOWN
981 REPLACE_GETPAGESIZE
982 REPLACE_GETGROUPS
983 REPLACE_GETLOGIN_R
984 REPLACE_GETDOMAINNAME
985 REPLACE_GETCWD
986 REPLACE_FCHOWNAT
987 REPLACE_DUP2
988 REPLACE_DUP
989 REPLACE_CLOSE
990 REPLACE_CHOWN
991 HAVE_SYS_PARAM_H
992 HAVE_OS_H
993 HAVE_DECL_TTYNAME_R
994 HAVE_DECL_GETUSERSHELL
995 HAVE_DECL_GETPAGESIZE
996 HAVE_DECL_GETLOGIN_R
997 HAVE_DECL_GETDOMAINNAME
998 HAVE_DECL_FCHDIR
999 HAVE_DECL_ENVIRON
1000 HAVE_USLEEP
1001 HAVE_UNLINKAT
1002 HAVE_SYMLINKAT
1003 HAVE_SYMLINK
1004 HAVE_SLEEP
1005 HAVE_READLINKAT
1006 HAVE_READLINK
1007 HAVE_PWRITE
1008 HAVE_PREAD
1009 HAVE_PIPE2
1010 HAVE_PIPE
1011 HAVE_LINKAT
1012 HAVE_LINK
1013 HAVE_LCHOWN
1014 HAVE_GROUP_MEMBER
1015 HAVE_GETPAGESIZE
1016 HAVE_GETLOGIN
1017 HAVE_GETHOSTNAME
1018 HAVE_GETGROUPS
1019 HAVE_GETDTABLESIZE
1020 HAVE_FTRUNCATE
1021 HAVE_FSYNC
1022 HAVE_FCHOWNAT
1023 HAVE_FCHDIR
1024 HAVE_FACCESSAT
1025 HAVE_EUIDACCESS
1026 HAVE_DUP3
1027 HAVE_DUP2
1028 HAVE_CHOWN
1029 GNULIB_WRITE
1030 GNULIB_USLEEP
1031 GNULIB_UNLINKAT
1032 GNULIB_UNLINK
1033 GNULIB_UNISTD_H_SIGPIPE
1034 GNULIB_UNISTD_H_NONBLOCKING
1035 GNULIB_UNISTD_H_GETOPT
1036 GNULIB_TTYNAME_R
1037 GNULIB_SYMLINKAT
1038 GNULIB_SYMLINK
1039 GNULIB_SLEEP
1040 GNULIB_RMDIR
1041 GNULIB_READLINKAT
1042 GNULIB_READLINK
1043 GNULIB_READ
1044 GNULIB_PWRITE
1045 GNULIB_PREAD
1046 GNULIB_PIPE2
1047 GNULIB_PIPE
1048 GNULIB_LSEEK
1049 GNULIB_LINKAT
1050 GNULIB_LINK
1051 GNULIB_LCHOWN
1052 GNULIB_GROUP_MEMBER
1053 GNULIB_GETUSERSHELL
1054 GNULIB_GETPAGESIZE
1055 GNULIB_GETLOGIN_R
1056 GNULIB_GETLOGIN
1057 GNULIB_GETHOSTNAME
1058 GNULIB_GETGROUPS
1059 GNULIB_GETDTABLESIZE
1060 GNULIB_GETDOMAINNAME
1061 GNULIB_GETCWD
1062 GNULIB_FTRUNCATE
1063 GNULIB_FSYNC
1064 GNULIB_FCHOWNAT
1065 GNULIB_FCHDIR
1066 GNULIB_FACCESSAT
1067 GNULIB_EUIDACCESS
1068 GNULIB_ENVIRON
1069 GNULIB_DUP3
1070 GNULIB_DUP2
1071 GNULIB_CLOSE
1072 GNULIB_CHOWN
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 LIB_PTHREAD
1119 VMLIMIT_OBJ
1120 GMALLOC_OBJ
1121 HAVE_XSERVER
1122 LIB_STANDARD
1123 NS_OBJC_OBJ
1124 NS_OBJ
1125 TEMACS_LDFLAGS2
1126 LD_SWITCH_X_SITE_AUX_RPATH
1127 LD_SWITCH_X_SITE_AUX
1128 XMKMF
1129 DEPFLAGS
1130 MKDEPDIR
1131 CFLAGS_SOUND
1132 ALSA_LIBS
1133 ALSA_CFLAGS
1134 PKG_CONFIG
1135 LIBSOUND
1136 START_FILES
1137 LIB_MATH
1138 CRT_DIR
1139 LIBS_SYSTEM
1140 C_SWITCH_SYSTEM
1141 UNEXEC_OBJ
1142 C_SWITCH_MACHINE
1143 LD_SWITCH_SYSTEM
1144 CANNOT_DUMP
1145 HAVE_MAKEINFO
1146 GZIP_PROG
1147 INSTALL_INFO
1148 C_WARNINGS_SWITCH
1149 EGREP
1150 GREP
1152 RANLIB
1153 am__fastdepCC_FALSE
1154 am__fastdepCC_TRUE
1155 CCDEPMODE
1156 AMDEPBACKSLASH
1157 AMDEP_FALSE
1158 AMDEP_TRUE
1159 am__quote
1160 am__include
1161 DEPDIR
1162 OBJEXT
1163 EXEEXT
1164 ac_ct_CC
1165 CPPFLAGS
1166 LDFLAGS
1167 CFLAGS
1169 host_os
1170 host_vendor
1171 host_cpu
1172 host
1173 build_os
1174 build_vendor
1175 build_cpu
1176 build
1177 PROFILING_CFLAGS
1178 MAINT
1179 GZIP_INFO
1180 am__untar
1181 am__tar
1182 AMTAR
1183 am__leading_dot
1184 SET_MAKE
1186 mkdir_p
1187 MKDIR_P
1188 INSTALL_STRIP_PROGRAM
1189 STRIP
1190 install_sh
1191 MAKEINFO
1192 AUTOHEADER
1193 AUTOMAKE
1194 AUTOCONF
1195 ACLOCAL
1196 VERSION
1197 PACKAGE
1198 CYGPATH_W
1199 am__isrc
1200 INSTALL_DATA
1201 INSTALL_SCRIPT
1202 INSTALL_PROGRAM
1203 target_alias
1204 host_alias
1205 build_alias
1206 LIBS
1207 ECHO_T
1208 ECHO_N
1209 ECHO_C
1210 DEFS
1211 mandir
1212 localedir
1213 libdir
1214 psdir
1215 pdfdir
1216 dvidir
1217 htmldir
1218 infodir
1219 docdir
1220 oldincludedir
1221 includedir
1222 localstatedir
1223 sharedstatedir
1224 sysconfdir
1225 datadir
1226 datarootdir
1227 libexecdir
1228 sbindir
1229 bindir
1230 program_transform_name
1231 prefix
1232 exec_prefix
1233 PACKAGE_URL
1234 PACKAGE_BUGREPORT
1235 PACKAGE_STRING
1236 PACKAGE_VERSION
1237 PACKAGE_TARNAME
1238 PACKAGE_NAME
1239 PATH_SEPARATOR
1240 SHELL'
1241 ac_subst_files='deps_frag
1242 lisp_frag
1243 ns_frag'
1244 ac_user_opts='
1245 enable_option_checking
1246 with_pop
1247 with_kerberos
1248 with_kerberos5
1249 with_hesiod
1250 with_mmdf
1251 with_mail_unlink
1252 with_mailhost
1253 with_sound
1254 with_sync_input
1255 with_x_toolkit
1256 with_wide_int
1257 with_xpm
1258 with_jpeg
1259 with_tiff
1260 with_gif
1261 with_png
1262 with_rsvg
1263 with_xml2
1264 with_imagemagick
1265 with_xft
1266 with_libotf
1267 with_m17n_flt
1268 with_toolkit_scroll_bars
1269 with_xaw3d
1270 with_xim
1271 with_ns
1272 with_gpm
1273 with_dbus
1274 with_gconf
1275 with_selinux
1276 with_gnutls
1277 with_makeinfo
1278 with_compress_info
1279 with_pkg_config_prog
1280 with_crt_dir
1281 with_gameuser
1282 with_gnustep_conf
1283 enable_ns_self_contained
1284 enable_asserts
1285 enable_maintainer_mode
1286 enable_locallisppath
1287 enable_checking
1288 enable_use_lisp_union_type
1289 enable_profiling
1290 enable_autodepend
1291 enable_dependency_tracking
1292 enable_largefile
1293 with_x
1295 ac_precious_vars='build_alias
1296 host_alias
1297 target_alias
1299 CFLAGS
1300 LDFLAGS
1301 LIBS
1302 CPPFLAGS
1304 XMKMF'
1307 # Initialize some variables set by options.
1308 ac_init_help=
1309 ac_init_version=false
1310 ac_unrecognized_opts=
1311 ac_unrecognized_sep=
1312 # The variables have the same names as the options, with
1313 # dashes changed to underlines.
1314 cache_file=/dev/null
1315 exec_prefix=NONE
1316 no_create=
1317 no_recursion=
1318 prefix=NONE
1319 program_prefix=NONE
1320 program_suffix=NONE
1321 program_transform_name=s,x,x,
1322 silent=
1323 site=
1324 srcdir=
1325 verbose=
1326 x_includes=NONE
1327 x_libraries=NONE
1329 # Installation directory options.
1330 # These are left unexpanded so users can "make install exec_prefix=/foo"
1331 # and all the variables that are supposed to be based on exec_prefix
1332 # by default will actually change.
1333 # Use braces instead of parens because sh, perl, etc. also accept them.
1334 # (The list follows the same order as the GNU Coding Standards.)
1335 bindir='${exec_prefix}/bin'
1336 sbindir='${exec_prefix}/sbin'
1337 libexecdir='${exec_prefix}/libexec'
1338 datarootdir='${prefix}/share'
1339 datadir='${datarootdir}'
1340 sysconfdir='${prefix}/etc'
1341 sharedstatedir='${prefix}/com'
1342 localstatedir='${prefix}/var'
1343 includedir='${prefix}/include'
1344 oldincludedir='/usr/include'
1345 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1346 infodir='${datarootdir}/info'
1347 htmldir='${docdir}'
1348 dvidir='${docdir}'
1349 pdfdir='${docdir}'
1350 psdir='${docdir}'
1351 libdir='${exec_prefix}/lib'
1352 localedir='${datarootdir}/locale'
1353 mandir='${datarootdir}/man'
1355 ac_prev=
1356 ac_dashdash=
1357 for ac_option
1359 # If the previous option needs an argument, assign it.
1360 if test -n "$ac_prev"; then
1361 eval $ac_prev=\$ac_option
1362 ac_prev=
1363 continue
1366 case $ac_option in
1367 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1368 *) ac_optarg=yes ;;
1369 esac
1371 # Accept the important Cygnus configure options, so we can diagnose typos.
1373 case $ac_dashdash$ac_option in
1375 ac_dashdash=yes ;;
1377 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1378 ac_prev=bindir ;;
1379 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1380 bindir=$ac_optarg ;;
1382 -build | --build | --buil | --bui | --bu)
1383 ac_prev=build_alias ;;
1384 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1385 build_alias=$ac_optarg ;;
1387 -cache-file | --cache-file | --cache-fil | --cache-fi \
1388 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1389 ac_prev=cache_file ;;
1390 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1391 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1392 cache_file=$ac_optarg ;;
1394 --config-cache | -C)
1395 cache_file=config.cache ;;
1397 -datadir | --datadir | --datadi | --datad)
1398 ac_prev=datadir ;;
1399 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1400 datadir=$ac_optarg ;;
1402 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1403 | --dataroo | --dataro | --datar)
1404 ac_prev=datarootdir ;;
1405 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1406 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1407 datarootdir=$ac_optarg ;;
1409 -disable-* | --disable-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413 as_fn_error "invalid feature name: $ac_useropt"
1414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1418 "enable_$ac_useropt"
1419 "*) ;;
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1422 esac
1423 eval enable_$ac_useropt=no ;;
1425 -docdir | --docdir | --docdi | --doc | --do)
1426 ac_prev=docdir ;;
1427 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1428 docdir=$ac_optarg ;;
1430 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1431 ac_prev=dvidir ;;
1432 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1433 dvidir=$ac_optarg ;;
1435 -enable-* | --enable-*)
1436 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1437 # Reject names that are not valid shell variable names.
1438 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1439 as_fn_error "invalid feature name: $ac_useropt"
1440 ac_useropt_orig=$ac_useropt
1441 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1442 case $ac_user_opts in
1444 "enable_$ac_useropt"
1445 "*) ;;
1446 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1447 ac_unrecognized_sep=', ';;
1448 esac
1449 eval enable_$ac_useropt=\$ac_optarg ;;
1451 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1452 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1453 | --exec | --exe | --ex)
1454 ac_prev=exec_prefix ;;
1455 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1456 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1457 | --exec=* | --exe=* | --ex=*)
1458 exec_prefix=$ac_optarg ;;
1460 -gas | --gas | --ga | --g)
1461 # Obsolete; use --with-gas.
1462 with_gas=yes ;;
1464 -help | --help | --hel | --he | -h)
1465 ac_init_help=long ;;
1466 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1467 ac_init_help=recursive ;;
1468 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1469 ac_init_help=short ;;
1471 -host | --host | --hos | --ho)
1472 ac_prev=host_alias ;;
1473 -host=* | --host=* | --hos=* | --ho=*)
1474 host_alias=$ac_optarg ;;
1476 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1477 ac_prev=htmldir ;;
1478 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1479 | --ht=*)
1480 htmldir=$ac_optarg ;;
1482 -includedir | --includedir | --includedi | --included | --include \
1483 | --includ | --inclu | --incl | --inc)
1484 ac_prev=includedir ;;
1485 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1486 | --includ=* | --inclu=* | --incl=* | --inc=*)
1487 includedir=$ac_optarg ;;
1489 -infodir | --infodir | --infodi | --infod | --info | --inf)
1490 ac_prev=infodir ;;
1491 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1492 infodir=$ac_optarg ;;
1494 -libdir | --libdir | --libdi | --libd)
1495 ac_prev=libdir ;;
1496 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1497 libdir=$ac_optarg ;;
1499 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1500 | --libexe | --libex | --libe)
1501 ac_prev=libexecdir ;;
1502 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1503 | --libexe=* | --libex=* | --libe=*)
1504 libexecdir=$ac_optarg ;;
1506 -localedir | --localedir | --localedi | --localed | --locale)
1507 ac_prev=localedir ;;
1508 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1509 localedir=$ac_optarg ;;
1511 -localstatedir | --localstatedir | --localstatedi | --localstated \
1512 | --localstate | --localstat | --localsta | --localst | --locals)
1513 ac_prev=localstatedir ;;
1514 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1515 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1516 localstatedir=$ac_optarg ;;
1518 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1519 ac_prev=mandir ;;
1520 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1521 mandir=$ac_optarg ;;
1523 -nfp | --nfp | --nf)
1524 # Obsolete; use --without-fp.
1525 with_fp=no ;;
1527 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1528 | --no-cr | --no-c | -n)
1529 no_create=yes ;;
1531 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1532 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1533 no_recursion=yes ;;
1535 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1536 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1537 | --oldin | --oldi | --old | --ol | --o)
1538 ac_prev=oldincludedir ;;
1539 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1540 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1541 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1542 oldincludedir=$ac_optarg ;;
1544 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1545 ac_prev=prefix ;;
1546 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1547 prefix=$ac_optarg ;;
1549 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1550 | --program-pre | --program-pr | --program-p)
1551 ac_prev=program_prefix ;;
1552 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1553 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1554 program_prefix=$ac_optarg ;;
1556 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1557 | --program-suf | --program-su | --program-s)
1558 ac_prev=program_suffix ;;
1559 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1560 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1561 program_suffix=$ac_optarg ;;
1563 -program-transform-name | --program-transform-name \
1564 | --program-transform-nam | --program-transform-na \
1565 | --program-transform-n | --program-transform- \
1566 | --program-transform | --program-transfor \
1567 | --program-transfo | --program-transf \
1568 | --program-trans | --program-tran \
1569 | --progr-tra | --program-tr | --program-t)
1570 ac_prev=program_transform_name ;;
1571 -program-transform-name=* | --program-transform-name=* \
1572 | --program-transform-nam=* | --program-transform-na=* \
1573 | --program-transform-n=* | --program-transform-=* \
1574 | --program-transform=* | --program-transfor=* \
1575 | --program-transfo=* | --program-transf=* \
1576 | --program-trans=* | --program-tran=* \
1577 | --progr-tra=* | --program-tr=* | --program-t=*)
1578 program_transform_name=$ac_optarg ;;
1580 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1581 ac_prev=pdfdir ;;
1582 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1583 pdfdir=$ac_optarg ;;
1585 -psdir | --psdir | --psdi | --psd | --ps)
1586 ac_prev=psdir ;;
1587 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1588 psdir=$ac_optarg ;;
1590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1591 | -silent | --silent | --silen | --sile | --sil)
1592 silent=yes ;;
1594 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1595 ac_prev=sbindir ;;
1596 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1597 | --sbi=* | --sb=*)
1598 sbindir=$ac_optarg ;;
1600 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1601 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1602 | --sharedst | --shareds | --shared | --share | --shar \
1603 | --sha | --sh)
1604 ac_prev=sharedstatedir ;;
1605 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1606 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1607 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1608 | --sha=* | --sh=*)
1609 sharedstatedir=$ac_optarg ;;
1611 -site | --site | --sit)
1612 ac_prev=site ;;
1613 -site=* | --site=* | --sit=*)
1614 site=$ac_optarg ;;
1616 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1617 ac_prev=srcdir ;;
1618 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1619 srcdir=$ac_optarg ;;
1621 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1622 | --syscon | --sysco | --sysc | --sys | --sy)
1623 ac_prev=sysconfdir ;;
1624 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1625 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1626 sysconfdir=$ac_optarg ;;
1628 -target | --target | --targe | --targ | --tar | --ta | --t)
1629 ac_prev=target_alias ;;
1630 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1631 target_alias=$ac_optarg ;;
1633 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1634 verbose=yes ;;
1636 -version | --version | --versio | --versi | --vers | -V)
1637 ac_init_version=: ;;
1639 -with-* | --with-*)
1640 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1643 as_fn_error "invalid package name: $ac_useropt"
1644 ac_useropt_orig=$ac_useropt
1645 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1648 "with_$ac_useropt"
1649 "*) ;;
1650 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1651 ac_unrecognized_sep=', ';;
1652 esac
1653 eval with_$ac_useropt=\$ac_optarg ;;
1655 -without-* | --without-*)
1656 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1657 # Reject names that are not valid shell variable names.
1658 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1659 as_fn_error "invalid package name: $ac_useropt"
1660 ac_useropt_orig=$ac_useropt
1661 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1662 case $ac_user_opts in
1664 "with_$ac_useropt"
1665 "*) ;;
1666 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1667 ac_unrecognized_sep=', ';;
1668 esac
1669 eval with_$ac_useropt=no ;;
1671 --x)
1672 # Obsolete; use --with-x.
1673 with_x=yes ;;
1675 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1676 | --x-incl | --x-inc | --x-in | --x-i)
1677 ac_prev=x_includes ;;
1678 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1679 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1680 x_includes=$ac_optarg ;;
1682 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1683 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1684 ac_prev=x_libraries ;;
1685 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1686 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1687 x_libraries=$ac_optarg ;;
1689 -*) as_fn_error "unrecognized option: \`$ac_option'
1690 Try \`$0 --help' for more information."
1693 *=*)
1694 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1695 # Reject names that are not valid shell variable names.
1696 case $ac_envvar in #(
1697 '' | [0-9]* | *[!_$as_cr_alnum]* )
1698 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1699 esac
1700 eval $ac_envvar=\$ac_optarg
1701 export $ac_envvar ;;
1704 # FIXME: should be removed in autoconf 3.0.
1705 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1706 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1707 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1708 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1711 esac
1712 done
1714 if test -n "$ac_prev"; then
1715 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1716 as_fn_error "missing argument to $ac_option"
1719 if test -n "$ac_unrecognized_opts"; then
1720 case $enable_option_checking in
1721 no) ;;
1722 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1723 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1724 esac
1727 # Check all directory arguments for consistency.
1728 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1729 datadir sysconfdir sharedstatedir localstatedir includedir \
1730 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1731 libdir localedir mandir
1733 eval ac_val=\$$ac_var
1734 # Remove trailing slashes.
1735 case $ac_val in
1736 */ )
1737 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1738 eval $ac_var=\$ac_val;;
1739 esac
1740 # Be sure to have absolute directory names.
1741 case $ac_val in
1742 [\\/$]* | ?:[\\/]* ) continue;;
1743 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1744 esac
1745 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1746 done
1748 # There might be people who depend on the old broken behavior: `$host'
1749 # used to hold the argument of --host etc.
1750 # FIXME: To remove some day.
1751 build=$build_alias
1752 host=$host_alias
1753 target=$target_alias
1755 # FIXME: To remove some day.
1756 if test "x$host_alias" != x; then
1757 if test "x$build_alias" = x; then
1758 cross_compiling=maybe
1759 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1760 If a cross compiler is detected then cross compile mode will be used." >&2
1761 elif test "x$build_alias" != "x$host_alias"; then
1762 cross_compiling=yes
1766 ac_tool_prefix=
1767 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1769 test "$silent" = yes && exec 6>/dev/null
1772 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1773 ac_ls_di=`ls -di .` &&
1774 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1775 as_fn_error "working directory cannot be determined"
1776 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1777 as_fn_error "pwd does not report name of working directory"
1780 # Find the source files, if location was not specified.
1781 if test -z "$srcdir"; then
1782 ac_srcdir_defaulted=yes
1783 # Try the directory containing this script, then the parent directory.
1784 ac_confdir=`$as_dirname -- "$as_myself" ||
1785 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1786 X"$as_myself" : 'X\(//\)[^/]' \| \
1787 X"$as_myself" : 'X\(//\)$' \| \
1788 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1789 $as_echo X"$as_myself" |
1790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1791 s//\1/
1794 /^X\(\/\/\)[^/].*/{
1795 s//\1/
1798 /^X\(\/\/\)$/{
1799 s//\1/
1802 /^X\(\/\).*/{
1803 s//\1/
1806 s/.*/./; q'`
1807 srcdir=$ac_confdir
1808 if test ! -r "$srcdir/$ac_unique_file"; then
1809 srcdir=..
1811 else
1812 ac_srcdir_defaulted=no
1814 if test ! -r "$srcdir/$ac_unique_file"; then
1815 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1816 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1818 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1819 ac_abs_confdir=`(
1820 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1821 pwd)`
1822 # When building in place, set srcdir=.
1823 if test "$ac_abs_confdir" = "$ac_pwd"; then
1824 srcdir=.
1826 # Remove unnecessary trailing slashes from srcdir.
1827 # Double slashes in file names in object file debugging info
1828 # mess up M-x gdb in Emacs.
1829 case $srcdir in
1830 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1831 esac
1832 for ac_var in $ac_precious_vars; do
1833 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1834 eval ac_env_${ac_var}_value=\$${ac_var}
1835 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1836 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1837 done
1840 # Report the --help message.
1842 if test "$ac_init_help" = "long"; then
1843 # Omit some internal or obsolete options to make the list less imposing.
1844 # This message is too long to be a string in the A/UX 3.1 sh.
1845 cat <<_ACEOF
1846 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1848 Usage: $0 [OPTION]... [VAR=VALUE]...
1850 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1851 VAR=VALUE. See below for descriptions of some of the useful variables.
1853 Defaults for the options are specified in brackets.
1855 Configuration:
1856 -h, --help display this help and exit
1857 --help=short display options specific to this package
1858 --help=recursive display the short help of all the included packages
1859 -V, --version display version information and exit
1860 -q, --quiet, --silent do not print \`checking...' messages
1861 --cache-file=FILE cache test results in FILE [disabled]
1862 -C, --config-cache alias for \`--cache-file=config.cache'
1863 -n, --no-create do not create output files
1864 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1866 Installation directories:
1867 --prefix=PREFIX install architecture-independent files in PREFIX
1868 [$ac_default_prefix]
1869 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1870 [PREFIX]
1872 By default, \`make install' will install all the files in
1873 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1874 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1875 for instance \`--prefix=\$HOME'.
1877 For better control, use the options below.
1879 Fine tuning of the installation directories:
1880 --bindir=DIR user executables [EPREFIX/bin]
1881 --sbindir=DIR system admin executables [EPREFIX/sbin]
1882 --libexecdir=DIR program executables [EPREFIX/libexec]
1883 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1884 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1885 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1886 --libdir=DIR object code libraries [EPREFIX/lib]
1887 --includedir=DIR C header files [PREFIX/include]
1888 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1889 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1890 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1891 --infodir=DIR info documentation [DATAROOTDIR/info]
1892 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1893 --mandir=DIR man documentation [DATAROOTDIR/man]
1894 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1895 --htmldir=DIR html documentation [DOCDIR]
1896 --dvidir=DIR dvi documentation [DOCDIR]
1897 --pdfdir=DIR pdf documentation [DOCDIR]
1898 --psdir=DIR ps documentation [DOCDIR]
1899 _ACEOF
1901 cat <<\_ACEOF
1903 Program names:
1904 --program-prefix=PREFIX prepend PREFIX to installed program names
1905 --program-suffix=SUFFIX append SUFFIX to installed program names
1906 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1908 X features:
1909 --x-includes=DIR X include files are in DIR
1910 --x-libraries=DIR X library files are in DIR
1912 System types:
1913 --build=BUILD configure for building on BUILD [guessed]
1914 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1915 _ACEOF
1918 if test -n "$ac_init_help"; then
1919 case $ac_init_help in
1920 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1921 esac
1922 cat <<\_ACEOF
1924 Optional Features:
1925 --disable-option-checking ignore unrecognized --enable/--with options
1926 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1927 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1928 --disable-ns-self-contained
1929 disable self contained build under NeXTstep
1930 --enable-asserts compile code with asserts enabled
1931 --enable-maintainer-mode
1932 enable make rules and dependencies not useful (and
1933 sometimes confusing) to the casual installer
1934 --enable-locallisppath=PATH
1935 directories Emacs should search for lisp files
1936 specific to this site
1937 --enable-checking[=LIST]
1938 enable expensive run-time checks. With LIST, enable
1939 only specific categories of checks. Categories are:
1940 all,yes,no. Flags are: stringbytes, stringoverrun,
1941 stringfreelist, xmallocoverrun, conslist
1942 --enable-use-lisp-union-type
1943 use a union for the Lisp_Object data type. This is
1944 only useful for development for catching certain
1945 types of bugs.
1946 --enable-profiling build emacs with profiling support. This might not
1947 work on all platforms
1948 --enable-autodepend automatically generate dependencies to .h-files.
1949 Requires GNU Make and Gcc. Enabled if GNU Make and
1950 Gcc is found
1951 --disable-dependency-tracking speeds up one-time build
1952 --enable-dependency-tracking do not reject slow dependency extractors
1953 --disable-largefile omit support for large files
1955 Optional Packages:
1956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1958 --without-pop don't support POP mail retrieval with movemail
1959 --with-kerberos support Kerberos-authenticated POP
1960 --with-kerberos5 support Kerberos version 5 authenticated POP
1961 --with-hesiod support Hesiod to get the POP server host
1962 --with-mmdf support MMDF mailboxes
1963 --with-mail-unlink unlink, rather than empty, mail spool after reading
1964 --with-mailhost=HOSTNAME
1965 string giving default POP mail host
1966 --without-sound don't compile with sound support
1967 --without-sync-input process async input synchronously
1968 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1969 lucid or athena, motif, no)
1970 --with-wide-int prefer wide Emacs integers (typically 62-bit)
1971 --without-xpm don't compile with XPM image support
1972 --without-jpeg don't compile with JPEG image support
1973 --without-tiff don't compile with TIFF image support
1974 --without-gif don't compile with GIF image support
1975 --without-png don't compile with PNG image support
1976 --without-rsvg don't compile with SVG image support
1977 --without-xml2 don't compile with XML parsing support
1978 --without-imagemagick don't compile with ImageMagick image support
1979 --without-xft don't use XFT for anti aliased fonts
1980 --without-libotf don't use libotf for OpenType font support
1981 --without-m17n-flt don't use m17n-flt for text shaping
1982 --without-toolkit-scroll-bars
1983 don't use Motif or Xaw3d scroll bars
1984 --without-xaw3d don't use Xaw3d
1985 --without-xim don't use X11 XIM
1986 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1987 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1988 console
1989 --without-dbus don't compile with D-Bus support
1990 --without-gconf don't compile with GConf support
1991 --without-selinux don't compile with SELinux support
1992 --without-gnutls don't use -lgnutls for SSL/TLS support
1993 --without-makeinfo don't require makeinfo for building manuals
1994 --without-compress-info don't compress the installed Info pages
1995 --with-pkg-config-prog=PATH
1996 path to pkg-config for finding GTK and librsvg
1997 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1998 /usr/lib, or /usr/lib64 on some platforms.
1999 --with-gameuser=USER user for shared game score files
2000 --with-gnustep-conf=PATH
2001 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2002 or /etc/GNUstep/GNUstep.conf
2003 --with-x use the X Window System
2005 Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
2011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2012 you have headers in a nonstandard directory <include dir>
2013 CPP C preprocessor
2014 XMKMF Path to xmkmf, Makefile generator for X Window System
2016 Use these variables to override the choices made by `configure' or to help
2017 it to find libraries and programs with nonstandard names/locations.
2019 Report bugs to the package provider.
2020 _ACEOF
2021 ac_status=$?
2024 if test "$ac_init_help" = "recursive"; then
2025 # If there are subdirs, report their specific --help.
2026 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2027 test -d "$ac_dir" ||
2028 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2029 continue
2030 ac_builddir=.
2032 case "$ac_dir" in
2033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2036 # A ".." for each directory in $ac_dir_suffix.
2037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2038 case $ac_top_builddir_sub in
2039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2041 esac ;;
2042 esac
2043 ac_abs_top_builddir=$ac_pwd
2044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2045 # for backward compatibility:
2046 ac_top_builddir=$ac_top_build_prefix
2048 case $srcdir in
2049 .) # We are building in place.
2050 ac_srcdir=.
2051 ac_top_srcdir=$ac_top_builddir_sub
2052 ac_abs_top_srcdir=$ac_pwd ;;
2053 [\\/]* | ?:[\\/]* ) # Absolute name.
2054 ac_srcdir=$srcdir$ac_dir_suffix;
2055 ac_top_srcdir=$srcdir
2056 ac_abs_top_srcdir=$srcdir ;;
2057 *) # Relative name.
2058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2059 ac_top_srcdir=$ac_top_build_prefix$srcdir
2060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2061 esac
2062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2064 cd "$ac_dir" || { ac_status=$?; continue; }
2065 # Check for guested configure.
2066 if test -f "$ac_srcdir/configure.gnu"; then
2067 echo &&
2068 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2069 elif test -f "$ac_srcdir/configure"; then
2070 echo &&
2071 $SHELL "$ac_srcdir/configure" --help=recursive
2072 else
2073 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2074 fi || ac_status=$?
2075 cd "$ac_pwd" || { ac_status=$?; break; }
2076 done
2079 test -n "$ac_init_help" && exit $ac_status
2080 if $ac_init_version; then
2081 cat <<\_ACEOF
2082 emacs configure 24.0.50
2083 generated by GNU Autoconf 2.65
2085 Copyright (C) 2009 Free Software Foundation, Inc.
2086 This configure script is free software; the Free Software Foundation
2087 gives unlimited permission to copy, distribute and modify it.
2088 _ACEOF
2089 exit
2092 ## ------------------------ ##
2093 ## Autoconf initialization. ##
2094 ## ------------------------ ##
2096 # ac_fn_c_try_compile LINENO
2097 # --------------------------
2098 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2099 ac_fn_c_try_compile ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 rm -f conftest.$ac_objext
2103 if { { ac_try="$ac_compile"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_compile") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } && {
2119 test -z "$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2121 } && test -s conftest.$ac_objext; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 ac_retval=1
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 as_fn_set_status $ac_retval
2132 } # ac_fn_c_try_compile
2134 # ac_fn_c_try_cpp LINENO
2135 # ----------------------
2136 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_c_try_cpp ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 if { { ac_try="$ac_cpp conftest.$ac_ext"
2141 case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2148 ac_status=$?
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } >/dev/null && {
2156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 }; then :
2159 ac_retval=0
2160 else
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2164 ac_retval=1
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 as_fn_set_status $ac_retval
2169 } # ac_fn_c_try_cpp
2171 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2172 # -------------------------------------------------------
2173 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2174 # the include files in INCLUDES and setting the cache variable VAR
2175 # accordingly.
2176 ac_fn_c_check_header_mongrel ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183 $as_echo_n "(cached) " >&6
2185 eval ac_res=\$$3
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187 $as_echo "$ac_res" >&6; }
2188 else
2189 # Is the header compilable?
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2191 $as_echo_n "checking $2 usability... " >&6; }
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2195 #include <$2>
2196 _ACEOF
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_header_compiler=yes
2199 else
2200 ac_header_compiler=no
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2204 $as_echo "$ac_header_compiler" >&6; }
2206 # Is the header present?
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2208 $as_echo_n "checking $2 presence... " >&6; }
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2211 #include <$2>
2212 _ACEOF
2213 if ac_fn_c_try_cpp "$LINENO"; then :
2214 ac_header_preproc=yes
2215 else
2216 ac_header_preproc=no
2218 rm -f conftest.err conftest.$ac_ext
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2220 $as_echo "$ac_header_preproc" >&6; }
2222 # So? What about this header?
2223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2224 yes:no: )
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2226 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 no:yes:* )
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2232 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2234 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2236 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2238 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2240 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2242 esac
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 eval "$3=\$ac_header_compiler"
2250 eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 } # ac_fn_c_check_header_mongrel
2258 # ac_fn_c_try_run LINENO
2259 # ----------------------
2260 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2261 # that executables *can* be run.
2262 ac_fn_c_try_run ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 if { { ac_try="$ac_link"
2266 case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269 esac
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>&5
2273 ac_status=$?
2274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2275 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2276 { { case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279 esac
2280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_try") 2>&5
2283 ac_status=$?
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; }; }; then :
2286 ac_retval=0
2287 else
2288 $as_echo "$as_me: program exited with status $ac_status" >&5
2289 $as_echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2292 ac_retval=$ac_status
2294 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2295 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2296 as_fn_set_status $ac_retval
2298 } # ac_fn_c_try_run
2300 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2301 # -------------------------------------------------------
2302 # Tests whether HEADER exists and can be compiled using the include files in
2303 # INCLUDES, setting the cache variable VAR accordingly.
2304 ac_fn_c_check_header_compile ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2315 #include <$2>
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318 eval "$3=yes"
2319 else
2320 eval "$3=no"
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 eval ac_res=\$$3
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329 } # ac_fn_c_check_header_compile
2331 # ac_fn_c_try_link LINENO
2332 # -----------------------
2333 # Try to link conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_link ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 rm -f conftest.$ac_objext conftest$ac_exeext
2338 if { { ac_try="$ac_link"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_link") 2>conftest.err
2346 ac_status=$?
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_c_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest$ac_exeext && {
2357 test "$cross_compiling" = yes ||
2358 $as_test_x conftest$ac_exeext
2359 }; then :
2360 ac_retval=0
2361 else
2362 $as_echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2365 ac_retval=1
2367 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2368 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2369 # interfere with the next link command; also delete a directory that is
2370 # left behind by Apple's compiler. We do this before executing the actions.
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 as_fn_set_status $ac_retval
2375 } # ac_fn_c_try_link
2377 # ac_fn_c_check_decl LINENO SYMBOL VAR
2378 # ------------------------------------
2379 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2380 ac_fn_c_check_decl ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2384 $as_echo_n "checking whether $2 is declared... " >&6; }
2385 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2392 main ()
2394 #ifndef $2
2395 (void) $2;
2396 #endif
2399 return 0;
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403 eval "$3=yes"
2404 else
2405 eval "$3=no"
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 eval ac_res=\$$3
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2414 } # ac_fn_c_check_decl
2416 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2417 # ----------------------------------------------
2418 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2419 ac_fn_c_check_header_preproc ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423 $as_echo_n "checking for $2... " >&6; }
2424 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 #include <$2>
2430 _ACEOF
2431 if ac_fn_c_try_cpp "$LINENO"; then :
2432 eval "$3=yes"
2433 else
2434 eval "$3=no"
2436 rm -f conftest.err conftest.$ac_ext
2438 eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443 } # ac_fn_c_check_header_preproc
2445 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2446 # ----------------------------------------------------
2447 # Tries to find if the field MEMBER exists in type AGGR, after including
2448 # INCLUDES, setting cache variable VAR accordingly.
2449 ac_fn_c_check_member ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2453 $as_echo_n "checking for $2.$3... " >&6; }
2454 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2461 main ()
2463 static $2 ac_aggr;
2464 if (ac_aggr.$3)
2465 return 0;
2467 return 0;
2469 _ACEOF
2470 if ac_fn_c_try_compile "$LINENO"; then :
2471 eval "$4=yes"
2472 else
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2477 main ()
2479 static $2 ac_aggr;
2480 if (sizeof ac_aggr.$3)
2481 return 0;
2483 return 0;
2485 _ACEOF
2486 if ac_fn_c_try_compile "$LINENO"; then :
2487 eval "$4=yes"
2488 else
2489 eval "$4=no"
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 eval ac_res=\$$4
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_member
2502 # ac_fn_c_check_func LINENO FUNC VAR
2503 # ----------------------------------
2504 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2505 ac_fn_c_check_func ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2517 #define $2 innocuous_$2
2519 /* System header to define __stub macros and hopefully few prototypes,
2520 which can conflict with char $2 (); below.
2521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2522 <limits.h> exists even on freestanding compilers. */
2524 #ifdef __STDC__
2525 # include <limits.h>
2526 #else
2527 # include <assert.h>
2528 #endif
2530 #undef $2
2532 /* Override any GCC internal prototype to avoid an error.
2533 Use char because int might match the return type of a GCC
2534 builtin and then its argument prototype would still apply. */
2535 #ifdef __cplusplus
2536 extern "C"
2537 #endif
2538 char $2 ();
2539 /* The GNU C library defines this for functions which it implements
2540 to always fail with ENOSYS. Some functions are actually named
2541 something starting with __ and the normal name is an alias. */
2542 #if defined __stub_$2 || defined __stub___$2
2543 choke me
2544 #endif
2547 main ()
2549 return $2 ();
2551 return 0;
2553 _ACEOF
2554 if ac_fn_c_try_link "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2559 rm -f core conftest.err conftest.$ac_objext \
2560 conftest$ac_exeext conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_c_check_func
2569 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2570 # --------------------------------------------
2571 # Tries to find the compile-time value of EXPR in a program that includes
2572 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2573 # computed
2574 ac_fn_c_compute_int ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 if test "$cross_compiling" = yes; then
2578 # Depending upon the size, compute the lo and hi bounds.
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2583 main ()
2585 static int test_array [1 - 2 * !(($2) >= 0)];
2586 test_array [0] = 0
2589 return 0;
2591 _ACEOF
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593 ac_lo=0 ac_mid=0
2594 while :; do
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2599 main ()
2601 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2602 test_array [0] = 0
2605 return 0;
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609 ac_hi=$ac_mid; break
2610 else
2611 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2612 if test $ac_lo -le $ac_mid; then
2613 ac_lo= ac_hi=
2614 break
2616 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 done
2620 else
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2625 main ()
2627 static int test_array [1 - 2 * !(($2) < 0)];
2628 test_array [0] = 0
2631 return 0;
2633 _ACEOF
2634 if ac_fn_c_try_compile "$LINENO"; then :
2635 ac_hi=-1 ac_mid=-1
2636 while :; do
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2641 main ()
2643 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2644 test_array [0] = 0
2647 return 0;
2649 _ACEOF
2650 if ac_fn_c_try_compile "$LINENO"; then :
2651 ac_lo=$ac_mid; break
2652 else
2653 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2654 if test $ac_mid -le $ac_hi; then
2655 ac_lo= ac_hi=
2656 break
2658 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 done
2662 else
2663 ac_lo= ac_hi=
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 # Binary search between lo and hi bounds.
2669 while test "x$ac_lo" != "x$ac_hi"; do
2670 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2675 main ()
2677 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2678 test_array [0] = 0
2681 return 0;
2683 _ACEOF
2684 if ac_fn_c_try_compile "$LINENO"; then :
2685 ac_hi=$ac_mid
2686 else
2687 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 done
2691 case $ac_lo in #((
2692 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2693 '') ac_retval=1 ;;
2694 esac
2695 else
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2699 static long int longval () { return $2; }
2700 static unsigned long int ulongval () { return $2; }
2701 #include <stdio.h>
2702 #include <stdlib.h>
2704 main ()
2707 FILE *f = fopen ("conftest.val", "w");
2708 if (! f)
2709 return 1;
2710 if (($2) < 0)
2712 long int i = longval ();
2713 if (i != ($2))
2714 return 1;
2715 fprintf (f, "%ld", i);
2717 else
2719 unsigned long int i = ulongval ();
2720 if (i != ($2))
2721 return 1;
2722 fprintf (f, "%lu", i);
2724 /* Do not output a trailing newline, as this causes \r\n confusion
2725 on some platforms. */
2726 return ferror (f) || fclose (f) != 0;
2729 return 0;
2731 _ACEOF
2732 if ac_fn_c_try_run "$LINENO"; then :
2733 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2734 else
2735 ac_retval=1
2737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2738 conftest.$ac_objext conftest.beam conftest.$ac_ext
2739 rm -f conftest.val
2742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2743 as_fn_set_status $ac_retval
2745 } # ac_fn_c_compute_int
2747 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2748 # -------------------------------------------
2749 # Tests whether TYPE exists after having included INCLUDES, setting cache
2750 # variable VAR accordingly.
2751 ac_fn_c_check_type ()
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 eval "$3=no"
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2764 main ()
2766 if (sizeof ($2))
2767 return 0;
2769 return 0;
2771 _ACEOF
2772 if ac_fn_c_try_compile "$LINENO"; then :
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2777 main ()
2779 if (sizeof (($2)))
2780 return 0;
2782 return 0;
2784 _ACEOF
2785 if ac_fn_c_try_compile "$LINENO"; then :
2787 else
2788 eval "$3=yes"
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 eval ac_res=\$$3
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2796 $as_echo "$ac_res" >&6; }
2797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2799 } # ac_fn_c_check_type
2800 cat >config.log <<_ACEOF
2801 This file contains any messages produced by compilers while
2802 running configure, to aid debugging if configure makes a mistake.
2804 It was created by emacs $as_me 24.0.50, which was
2805 generated by GNU Autoconf 2.65. Invocation command line was
2807 $ $0 $@
2809 _ACEOF
2810 exec 5>>config.log
2812 cat <<_ASUNAME
2813 ## --------- ##
2814 ## Platform. ##
2815 ## --------- ##
2817 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2818 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2819 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2820 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2821 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2823 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2824 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2826 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2827 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2828 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2829 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2830 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2831 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2832 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2834 _ASUNAME
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 $as_echo "PATH: $as_dir"
2842 done
2843 IFS=$as_save_IFS
2845 } >&5
2847 cat >&5 <<_ACEOF
2850 ## ----------- ##
2851 ## Core tests. ##
2852 ## ----------- ##
2854 _ACEOF
2857 # Keep a trace of the command line.
2858 # Strip out --no-create and --no-recursion so they do not pile up.
2859 # Strip out --silent because we don't want to record it for future runs.
2860 # Also quote any args containing shell meta-characters.
2861 # Make two passes to allow for proper duplicate-argument suppression.
2862 ac_configure_args=
2863 ac_configure_args0=
2864 ac_configure_args1=
2865 ac_must_keep_next=false
2866 for ac_pass in 1 2
2868 for ac_arg
2870 case $ac_arg in
2871 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2873 | -silent | --silent | --silen | --sile | --sil)
2874 continue ;;
2875 *\'*)
2876 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2877 esac
2878 case $ac_pass in
2879 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2881 as_fn_append ac_configure_args1 " '$ac_arg'"
2882 if test $ac_must_keep_next = true; then
2883 ac_must_keep_next=false # Got value, back to normal.
2884 else
2885 case $ac_arg in
2886 *=* | --config-cache | -C | -disable-* | --disable-* \
2887 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2888 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2889 | -with-* | --with-* | -without-* | --without-* | --x)
2890 case "$ac_configure_args0 " in
2891 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2892 esac
2894 -* ) ac_must_keep_next=true ;;
2895 esac
2897 as_fn_append ac_configure_args " '$ac_arg'"
2899 esac
2900 done
2901 done
2902 { ac_configure_args0=; unset ac_configure_args0;}
2903 { ac_configure_args1=; unset ac_configure_args1;}
2905 # When interrupted or exit'd, cleanup temporary files, and complete
2906 # config.log. We remove comments because anyway the quotes in there
2907 # would cause problems or look ugly.
2908 # WARNING: Use '\'' to represent an apostrophe within the trap.
2909 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2910 trap 'exit_status=$?
2911 # Save into config.log some information that might help in debugging.
2913 echo
2915 cat <<\_ASBOX
2916 ## ---------------- ##
2917 ## Cache variables. ##
2918 ## ---------------- ##
2919 _ASBOX
2920 echo
2921 # The following way of writing the cache mishandles newlines in values,
2923 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2924 eval ac_val=\$$ac_var
2925 case $ac_val in #(
2926 *${as_nl}*)
2927 case $ac_var in #(
2928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2930 esac
2931 case $ac_var in #(
2932 _ | IFS | as_nl) ;; #(
2933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2934 *) { eval $ac_var=; unset $ac_var;} ;;
2935 esac ;;
2936 esac
2937 done
2938 (set) 2>&1 |
2939 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2940 *${as_nl}ac_space=\ *)
2941 sed -n \
2942 "s/'\''/'\''\\\\'\'''\''/g;
2943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2944 ;; #(
2946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2948 esac |
2949 sort
2951 echo
2953 cat <<\_ASBOX
2954 ## ----------------- ##
2955 ## Output variables. ##
2956 ## ----------------- ##
2957 _ASBOX
2958 echo
2959 for ac_var in $ac_subst_vars
2961 eval ac_val=\$$ac_var
2962 case $ac_val in
2963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2964 esac
2965 $as_echo "$ac_var='\''$ac_val'\''"
2966 done | sort
2967 echo
2969 if test -n "$ac_subst_files"; then
2970 cat <<\_ASBOX
2971 ## ------------------- ##
2972 ## File substitutions. ##
2973 ## ------------------- ##
2974 _ASBOX
2975 echo
2976 for ac_var in $ac_subst_files
2978 eval ac_val=\$$ac_var
2979 case $ac_val in
2980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2981 esac
2982 $as_echo "$ac_var='\''$ac_val'\''"
2983 done | sort
2984 echo
2987 if test -s confdefs.h; then
2988 cat <<\_ASBOX
2989 ## ----------- ##
2990 ## confdefs.h. ##
2991 ## ----------- ##
2992 _ASBOX
2993 echo
2994 cat confdefs.h
2995 echo
2997 test "$ac_signal" != 0 &&
2998 $as_echo "$as_me: caught signal $ac_signal"
2999 $as_echo "$as_me: exit $exit_status"
3000 } >&5
3001 rm -f core *.core core.conftest.* &&
3002 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3003 exit $exit_status
3005 for ac_signal in 1 2 13 15; do
3006 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3007 done
3008 ac_signal=0
3010 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3011 rm -f -r conftest* confdefs.h
3013 $as_echo "/* confdefs.h */" > confdefs.h
3015 # Predefined preprocessor variables.
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_NAME "$PACKAGE_NAME"
3019 _ACEOF
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3023 _ACEOF
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3027 _ACEOF
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE_STRING "$PACKAGE_STRING"
3031 _ACEOF
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3035 _ACEOF
3037 cat >>confdefs.h <<_ACEOF
3038 #define PACKAGE_URL "$PACKAGE_URL"
3039 _ACEOF
3042 # Let the site file select an alternate cache file if it wants to.
3043 # Prefer an explicitly selected file to automatically selected ones.
3044 ac_site_file1=NONE
3045 ac_site_file2=NONE
3046 if test -n "$CONFIG_SITE"; then
3047 ac_site_file1=$CONFIG_SITE
3048 elif test "x$prefix" != xNONE; then
3049 ac_site_file1=$prefix/share/config.site
3050 ac_site_file2=$prefix/etc/config.site
3051 else
3052 ac_site_file1=$ac_default_prefix/share/config.site
3053 ac_site_file2=$ac_default_prefix/etc/config.site
3055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3057 test "x$ac_site_file" = xNONE && continue
3058 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3061 sed 's/^/| /' "$ac_site_file" >&5
3062 . "$ac_site_file"
3064 done
3066 if test -r "$cache_file"; then
3067 # Some versions of bash will fail to source /dev/null (special files
3068 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3069 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3071 $as_echo "$as_me: loading cache $cache_file" >&6;}
3072 case $cache_file in
3073 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3074 *) . "./$cache_file";;
3075 esac
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3079 $as_echo "$as_me: creating cache $cache_file" >&6;}
3080 >$cache_file
3083 as_fn_append ac_header_list " stdlib.h"
3084 as_fn_append ac_header_list " unistd.h"
3085 as_fn_append ac_header_list " sys/param.h"
3086 as_fn_append ac_func_list " readlinkat"
3087 as_fn_append ac_func_list " dup2"
3088 gl_getopt_required=GNU
3089 as_fn_append ac_header_list " getopt.h"
3090 as_fn_append ac_header_list " wchar.h"
3091 as_fn_append ac_header_list " stdint.h"
3092 as_fn_append ac_header_list " inttypes.h"
3093 as_fn_append ac_func_list " lstat"
3094 as_fn_append ac_func_list " alarm"
3095 as_fn_append ac_func_list " readlink"
3096 as_fn_append ac_header_list " sys/socket.h"
3097 as_fn_append ac_func_list " tzset"
3098 as_fn_append ac_func_list " symlink"
3099 as_fn_append ac_header_list " sys/stat.h"
3100 as_fn_append ac_header_list " sys/time.h"
3101 as_fn_append ac_func_list " localtime_r"
3102 # Check that the precious variables saved in the cache have kept the same
3103 # value.
3104 ac_cache_corrupted=false
3105 for ac_var in $ac_precious_vars; do
3106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3107 eval ac_new_set=\$ac_env_${ac_var}_set
3108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3109 eval ac_new_val=\$ac_env_${ac_var}_value
3110 case $ac_old_set,$ac_new_set in
3111 set,)
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3114 ac_cache_corrupted=: ;;
3115 ,set)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3118 ac_cache_corrupted=: ;;
3119 ,);;
3121 if test "x$ac_old_val" != "x$ac_new_val"; then
3122 # differences in whitespace do not lead to failure.
3123 ac_old_val_w=`echo x $ac_old_val`
3124 ac_new_val_w=`echo x $ac_new_val`
3125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3128 ac_cache_corrupted=:
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3132 eval $ac_var=\$ac_old_val
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3135 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3137 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3138 fi;;
3139 esac
3140 # Pass precious variables to config.status.
3141 if test "$ac_new_set" = set; then
3142 case $ac_new_val in
3143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3144 *) ac_arg=$ac_var=$ac_new_val ;;
3145 esac
3146 case " $ac_configure_args " in
3147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3149 esac
3151 done
3152 if $ac_cache_corrupted; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3157 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3159 ## -------------------- ##
3160 ## Main body of script. ##
3161 ## -------------------- ##
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3173 am__api_version='1.11'
3175 ac_aux_dir=
3176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3177 for ac_t in install-sh install.sh shtool; do
3178 if test -f "$ac_dir/$ac_t"; then
3179 ac_aux_dir=$ac_dir
3180 ac_install_sh="$ac_aux_dir/$ac_t -c"
3181 break 2
3183 done
3184 done
3185 if test -z "$ac_aux_dir"; then
3186 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3189 # These three variables are undocumented and unsupported,
3190 # and are intended to be withdrawn in a future Autoconf release.
3191 # They can cause serious problems if a builder's source tree is in a directory
3192 # whose full name contains unusual characters.
3193 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3194 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3195 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3198 # Find a good install program. We prefer a C program (faster),
3199 # so one script is as good as another. But avoid the broken or
3200 # incompatible versions:
3201 # SysV /etc/install, /usr/sbin/install
3202 # SunOS /usr/etc/install
3203 # IRIX /sbin/install
3204 # AIX /bin/install
3205 # AmigaOS /C/install, which installs bootblocks on floppy discs
3206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3209 # OS/2's system install, which has a completely different semantic
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 # Reject install programs that cannot install multiple files.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3214 if test -z "$INSTALL"; then
3215 if test "${ac_cv_path_install+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 # Account for people who put trailing slashes in PATH elements.
3224 case $as_dir/ in #((
3225 ./ | .// | /[cC]/* | \
3226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3228 /usr/ucb/* ) ;;
3230 # OSF1 and SCO ODT 3.0 have their own names for install.
3231 # Don't use installbsd from OSF since it installs stuff as root
3232 # by default.
3233 for ac_prog in ginstall scoinst install; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3236 if test $ac_prog = install &&
3237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3238 # AIX install. It has an incompatible calling convention.
3240 elif test $ac_prog = install &&
3241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3242 # program-specific install script used by HP pwplus--don't use.
3244 else
3245 rm -rf conftest.one conftest.two conftest.dir
3246 echo one > conftest.one
3247 echo two > conftest.two
3248 mkdir conftest.dir
3249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3250 test -s conftest.one && test -s conftest.two &&
3251 test -s conftest.dir/conftest.one &&
3252 test -s conftest.dir/conftest.two
3253 then
3254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3255 break 3
3259 done
3260 done
3262 esac
3264 done
3265 IFS=$as_save_IFS
3267 rm -rf conftest.one conftest.two conftest.dir
3270 if test "${ac_cv_path_install+set}" = set; then
3271 INSTALL=$ac_cv_path_install
3272 else
3273 # As a last resort, use the slow shell script. Don't cache a
3274 # value for INSTALL within a source directory, because that will
3275 # break other packages using the cache if that directory is
3276 # removed, or if the value is a relative name.
3277 INSTALL=$ac_install_sh
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3281 $as_echo "$INSTALL" >&6; }
3283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3284 # It thinks the first close brace ends the variable substitution.
3285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3292 $as_echo_n "checking whether build environment is sane... " >&6; }
3293 # Just in case
3294 sleep 1
3295 echo timestamp > conftest.file
3296 # Reject unsafe characters in $srcdir or the absolute working directory
3297 # name. Accept space and tab only in the latter.
3298 am_lf='
3300 case `pwd` in
3301 *[\\\"\#\$\&\'\`$am_lf]*)
3302 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3303 esac
3304 case $srcdir in
3305 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3306 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3307 esac
3309 # Do `set' in a subshell so we don't clobber the current shell's
3310 # arguments. Must try -L first in case configure is actually a
3311 # symlink; some systems play weird games with the mod time of symlinks
3312 # (eg FreeBSD returns the mod time of the symlink's containing
3313 # directory).
3314 if (
3315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3316 if test "$*" = "X"; then
3317 # -L didn't work.
3318 set X `ls -t "$srcdir/configure" conftest.file`
3320 rm -f conftest.file
3321 if test "$*" != "X $srcdir/configure conftest.file" \
3322 && test "$*" != "X conftest.file $srcdir/configure"; then
3324 # If neither matched, then we have a broken ls. This can happen
3325 # if, for instance, CONFIG_SHELL is bash and it inherits a
3326 # broken ls alias from the environment. This has actually
3327 # happened. Such a system could not be considered "sane".
3328 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3329 alias in your environment" "$LINENO" 5
3332 test "$2" = conftest.file
3334 then
3335 # Ok.
3337 else
3338 as_fn_error "newly created file is older than distributed files!
3339 Check your system clock" "$LINENO" 5
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3343 test "$program_prefix" != NONE &&
3344 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3345 # Use a double $ so make ignores it.
3346 test "$program_suffix" != NONE &&
3347 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3348 # Double any \ or $.
3349 # By default was `s,x,x', remove it if useless.
3350 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3351 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3353 # expand $ac_aux_dir to an absolute path
3354 am_aux_dir=`cd $ac_aux_dir && pwd`
3356 if test x"${MISSING+set}" != xset; then
3357 case $am_aux_dir in
3358 *\ * | *\ *)
3359 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3361 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3362 esac
3364 # Use eval to expand $SHELL
3365 if eval "$MISSING --run true"; then
3366 am_missing_run="$MISSING --run "
3367 else
3368 am_missing_run=
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3370 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3373 if test x"${install_sh}" != xset; then
3374 case $am_aux_dir in
3375 *\ * | *\ *)
3376 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3378 install_sh="\${SHELL} $am_aux_dir/install-sh"
3379 esac
3382 # Installed binaries are usually stripped using `strip' when the user
3383 # run `make install-strip'. However `strip' might not be the right
3384 # tool to use in cross-compilation environments, therefore Automake
3385 # will honor the `STRIP' environment variable to overrule this program.
3386 if test "$cross_compiling" != no; then
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}strip; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_STRIP+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$STRIP"; then
3396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 STRIP=$ac_cv_prog_STRIP
3416 if test -n "$STRIP"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3418 $as_echo "$STRIP" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3426 if test -z "$ac_cv_prog_STRIP"; then
3427 ac_ct_STRIP=$STRIP
3428 # Extract the first word of "strip", so it can be a program name with args.
3429 set dummy strip; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$ac_ct_STRIP"; then
3436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_STRIP="strip"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3449 done
3450 done
3451 IFS=$as_save_IFS
3455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3456 if test -n "$ac_ct_STRIP"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3458 $as_echo "$ac_ct_STRIP" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3464 if test "x$ac_ct_STRIP" = x; then
3465 STRIP=":"
3466 else
3467 case $cross_compiling:$ac_tool_warned in
3468 yes:)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned=yes ;;
3472 esac
3473 STRIP=$ac_ct_STRIP
3475 else
3476 STRIP="$ac_cv_prog_STRIP"
3480 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3483 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3484 if test -z "$MKDIR_P"; then
3485 if test "${ac_cv_path_mkdir+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_prog in mkdir gmkdir; do
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3496 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3497 'mkdir (GNU coreutils) '* | \
3498 'mkdir (coreutils) '* | \
3499 'mkdir (fileutils) '4.1*)
3500 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3501 break 3;;
3502 esac
3503 done
3504 done
3505 done
3506 IFS=$as_save_IFS
3510 test -d ./--version && rmdir ./--version
3511 if test "${ac_cv_path_mkdir+set}" = set; then
3512 MKDIR_P="$ac_cv_path_mkdir -p"
3513 else
3514 # As a last resort, use the slow shell script. Don't cache a
3515 # value for MKDIR_P within a source directory, because that will
3516 # break other packages using the cache if that directory is
3517 # removed, or if the value is a relative name.
3518 MKDIR_P="$ac_install_sh -d"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3522 $as_echo "$MKDIR_P" >&6; }
3525 mkdir_p="$MKDIR_P"
3526 case $mkdir_p in
3527 [\\/$]* | ?:[\\/]*) ;;
3528 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3529 esac
3531 for ac_prog in gawk mawk nawk awk
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534 set dummy $ac_prog; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_AWK+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$AWK"; then
3541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_AWK="$ac_prog"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 AWK=$ac_cv_prog_AWK
3561 if test -n "$AWK"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3563 $as_echo "$AWK" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3570 test -n "$AWK" && break
3571 done
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3574 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3575 set x ${MAKE-make}
3576 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3577 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 cat >conftest.make <<\_ACEOF
3581 SHELL = /bin/sh
3582 all:
3583 @echo '@@@%%%=$(MAKE)=@@@%%%'
3584 _ACEOF
3585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3587 *@@@%%%=?*=@@@%%%*)
3588 eval ac_cv_prog_make_${ac_make}_set=yes;;
3590 eval ac_cv_prog_make_${ac_make}_set=no;;
3591 esac
3592 rm -f conftest.make
3594 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3597 SET_MAKE=
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 SET_MAKE="MAKE=${MAKE-make}"
3604 rm -rf .tst 2>/dev/null
3605 mkdir .tst 2>/dev/null
3606 if test -d .tst; then
3607 am__leading_dot=.
3608 else
3609 am__leading_dot=_
3611 rmdir .tst 2>/dev/null
3613 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3614 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3615 # is not polluted with repeated "-I."
3616 am__isrc=' -I$(srcdir)'
3617 # test to see if srcdir already configured
3618 if test -f $srcdir/config.status; then
3619 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3623 # test whether we have cygpath
3624 if test -z "$CYGPATH_W"; then
3625 if (cygpath --version) >/dev/null 2>/dev/null; then
3626 CYGPATH_W='cygpath -w'
3627 else
3628 CYGPATH_W=echo
3633 # Define the identity of the package.
3634 PACKAGE='emacs'
3635 VERSION='24.0.50'
3638 cat >>confdefs.h <<_ACEOF
3639 #define PACKAGE "$PACKAGE"
3640 _ACEOF
3643 cat >>confdefs.h <<_ACEOF
3644 #define VERSION "$VERSION"
3645 _ACEOF
3647 # Some tools Automake needs.
3649 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3652 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3655 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3658 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3661 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3663 # We need awk for the "check" target. The system "awk" is bad on
3664 # some platforms.
3665 # Always define AMTAR for backward compatibility.
3667 AMTAR=${AMTAR-"${am_missing_run}tar"}
3669 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3678 lispdir='${datadir}/emacs/${version}/lisp'
3679 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3680 '${datadir}/emacs/site-lisp'
3681 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3682 etcdir='${datadir}/emacs/${version}/etc'
3683 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3684 docdir='${datadir}/emacs/${version}/etc'
3685 gamedir='${localstatedir}/games/emacs'
3690 # Check whether --with-pop was given.
3691 if test "${with_pop+set}" = set; then :
3692 withval=$with_pop;
3693 else
3694 with_pop=yes
3697 if test "$with_pop" = yes; then
3698 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3703 # Check whether --with-kerberos was given.
3704 if test "${with_kerberos+set}" = set; then :
3705 withval=$with_kerberos;
3706 else
3707 with_kerberos=no
3710 if test "$with_kerberos" != no; then
3711 $as_echo "#define KERBEROS 1" >>confdefs.h
3716 # Check whether --with-kerberos5 was given.
3717 if test "${with_kerberos5+set}" = set; then :
3718 withval=$with_kerberos5;
3719 else
3720 with_kerberos5=no
3723 if test "${with_kerberos5}" != no; then
3724 if test "${with_kerberos}" = no; then
3725 with_kerberos=yes
3726 $as_echo "#define KERBEROS 1" >>confdefs.h
3730 $as_echo "#define KERBEROS5 1" >>confdefs.h
3735 # Check whether --with-hesiod was given.
3736 if test "${with_hesiod+set}" = set; then :
3737 withval=$with_hesiod;
3738 else
3739 with_hesiod=no
3742 if test "$with_hesiod" != no; then
3744 $as_echo "#define HESIOD 1" >>confdefs.h
3749 # Check whether --with-mmdf was given.
3750 if test "${with_mmdf+set}" = set; then :
3751 withval=$with_mmdf;
3752 else
3753 with_mmdf=no
3756 if test "$with_mmdf" != no; then
3758 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3763 # Check whether --with-mail-unlink was given.
3764 if test "${with_mail_unlink+set}" = set; then :
3765 withval=$with_mail_unlink;
3766 else
3767 with_mail_unlink=no
3770 if test "$with_mail_unlink" != no; then
3772 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3777 # Check whether --with-mailhost was given.
3778 if test "${with_mailhost+set}" = set; then :
3779 withval=$with_mailhost;
3780 cat >>confdefs.h <<_ACEOF
3781 #define MAILHOST "$withval"
3782 _ACEOF
3788 # Check whether --with-sound was given.
3789 if test "${with_sound+set}" = set; then :
3790 withval=$with_sound;
3791 else
3792 with_sound=yes
3797 # Check whether --with-sync-input was given.
3798 if test "${with_sync_input+set}" = set; then :
3799 withval=$with_sync_input;
3800 else
3801 with_sync_input=yes
3804 if test "$with_sync_input" = yes; then
3806 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3811 # Check whether --with-x-toolkit was given.
3812 if test "${with_x_toolkit+set}" = set; then :
3813 withval=$with_x_toolkit; case "${withval}" in
3814 y | ye | yes ) val=gtk ;;
3815 n | no ) val=no ;;
3816 l | lu | luc | luci | lucid ) val=lucid ;;
3817 a | at | ath | athe | athen | athena ) val=athena ;;
3818 m | mo | mot | moti | motif ) val=motif ;;
3819 g | gt | gtk ) val=gtk ;;
3820 gtk3 ) val=gtk3 ;;
3822 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3823 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3824 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3826 esac
3827 with_x_toolkit=$val
3833 # Check whether --with-wide-int was given.
3834 if test "${with_wide_int+set}" = set; then :
3835 withval=$with_wide_int;
3836 else
3837 with_wide_int=no
3840 if test "$with_wide_int" = yes; then
3842 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3847 # Check whether --with-xpm was given.
3848 if test "${with_xpm+set}" = set; then :
3849 withval=$with_xpm;
3850 else
3851 with_xpm=yes
3855 # Check whether --with-jpeg was given.
3856 if test "${with_jpeg+set}" = set; then :
3857 withval=$with_jpeg;
3858 else
3859 with_jpeg=yes
3863 # Check whether --with-tiff was given.
3864 if test "${with_tiff+set}" = set; then :
3865 withval=$with_tiff;
3866 else
3867 with_tiff=yes
3871 # Check whether --with-gif was given.
3872 if test "${with_gif+set}" = set; then :
3873 withval=$with_gif;
3874 else
3875 with_gif=yes
3879 # Check whether --with-png was given.
3880 if test "${with_png+set}" = set; then :
3881 withval=$with_png;
3882 else
3883 with_png=yes
3887 # Check whether --with-rsvg was given.
3888 if test "${with_rsvg+set}" = set; then :
3889 withval=$with_rsvg;
3890 else
3891 with_rsvg=yes
3895 # Check whether --with-xml2 was given.
3896 if test "${with_xml2+set}" = set; then :
3897 withval=$with_xml2;
3898 else
3899 with_xml2=yes
3903 # Check whether --with-imagemagick was given.
3904 if test "${with_imagemagick+set}" = set; then :
3905 withval=$with_imagemagick;
3906 else
3907 with_imagemagick=yes
3912 # Check whether --with-xft was given.
3913 if test "${with_xft+set}" = set; then :
3914 withval=$with_xft;
3915 else
3916 with_xft=yes
3920 # Check whether --with-libotf was given.
3921 if test "${with_libotf+set}" = set; then :
3922 withval=$with_libotf;
3923 else
3924 with_libotf=yes
3928 # Check whether --with-m17n-flt was given.
3929 if test "${with_m17n_flt+set}" = set; then :
3930 withval=$with_m17n_flt;
3931 else
3932 with_m17n_flt=yes
3937 # Check whether --with-toolkit-scroll-bars was given.
3938 if test "${with_toolkit_scroll_bars+set}" = set; then :
3939 withval=$with_toolkit_scroll_bars;
3940 else
3941 with_toolkit_scroll_bars=yes
3945 # Check whether --with-xaw3d was given.
3946 if test "${with_xaw3d+set}" = set; then :
3947 withval=$with_xaw3d;
3948 else
3949 with_xaw3d=yes
3953 # Check whether --with-xim was given.
3954 if test "${with_xim+set}" = set; then :
3955 withval=$with_xim;
3956 else
3957 with_xim=yes
3961 # Check whether --with-ns was given.
3962 if test "${with_ns+set}" = set; then :
3963 withval=$with_ns;
3964 else
3965 with_ns=no
3970 # Check whether --with-gpm was given.
3971 if test "${with_gpm+set}" = set; then :
3972 withval=$with_gpm;
3973 else
3974 with_gpm=yes
3978 # Check whether --with-dbus was given.
3979 if test "${with_dbus+set}" = set; then :
3980 withval=$with_dbus;
3981 else
3982 with_dbus=yes
3986 # Check whether --with-gconf was given.
3987 if test "${with_gconf+set}" = set; then :
3988 withval=$with_gconf;
3989 else
3990 with_gconf=yes
3994 # Check whether --with-selinux was given.
3995 if test "${with_selinux+set}" = set; then :
3996 withval=$with_selinux;
3997 else
3998 with_selinux=yes
4002 # Check whether --with-gnutls was given.
4003 if test "${with_gnutls+set}" = set; then :
4004 withval=$with_gnutls;
4005 else
4006 with_gnutls=yes
4010 ## For the times when you want to build Emacs but don't have
4011 ## a suitable makeinfo, and can live without the manuals.
4013 # Check whether --with-makeinfo was given.
4014 if test "${with_makeinfo+set}" = set; then :
4015 withval=$with_makeinfo;
4016 else
4017 with_makeinfo=yes
4021 ## This is an option because I do not know if all info/man support
4022 ## compressed files, nor how to test if they do so.
4024 # Check whether --with-compress-info was given.
4025 if test "${with_compress_info+set}" = set; then :
4026 withval=$with_compress_info;
4027 else
4028 with_compress_info=yes
4031 if test $with_compress_info = yes; then
4032 GZIP_INFO=yes
4033 else
4034 GZIP_INFO=
4039 # Check whether --with-pkg-config-prog was given.
4040 if test "${with_pkg_config_prog+set}" = set; then :
4041 withval=$with_pkg_config_prog;
4044 if test "X${with_pkg_config_prog}" != X; then
4045 if test "${with_pkg_config_prog}" != yes; then
4046 PKG_CONFIG="${with_pkg_config_prog}"
4050 CRT_DIR=
4052 # Check whether --with-crt-dir was given.
4053 if test "${with_crt_dir+set}" = set; then :
4054 withval=$with_crt_dir;
4057 CRT_DIR="${with_crt_dir}"
4060 # Check whether --with-gameuser was given.
4061 if test "${with_gameuser+set}" = set; then :
4062 withval=$with_gameuser;
4065 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4066 && gameuser="${with_gameuser}"
4067 test "X$gameuser" = X && gameuser=games
4070 # Check whether --with-gnustep-conf was given.
4071 if test "${with_gnustep_conf+set}" = set; then :
4072 withval=$with_gnustep_conf;
4075 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4076 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4077 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4078 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4080 # Check whether --enable-ns-self-contained was given.
4081 if test "${enable_ns_self_contained+set}" = set; then :
4082 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4083 else
4084 EN_NS_SELF_CONTAINED=yes
4088 # Check whether --enable-asserts was given.
4089 if test "${enable_asserts+set}" = set; then :
4090 enableval=$enable_asserts; USE_XASSERTS=$enableval
4091 else
4092 USE_XASSERTS=no
4096 # Check whether --enable-maintainer-mode was given.
4097 if test "${enable_maintainer_mode+set}" = set; then :
4098 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4099 else
4100 USE_MAINTAINER_MODE=yes
4103 if test $USE_MAINTAINER_MODE = yes; then
4104 MAINT=
4105 else
4106 MAINT=#
4110 # Check whether --enable-locallisppath was given.
4111 if test "${enable_locallisppath+set}" = set; then :
4112 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4113 locallisppath=
4114 elif test "${enableval}" != "yes"; then
4115 locallisppath=${enableval}
4120 # Check whether --enable-checking was given.
4121 if test "${enable_checking+set}" = set; then :
4122 enableval=$enable_checking; ac_checking_flags="${enableval}"
4125 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4126 for check in $ac_checking_flags
4128 case $check in
4129 # these set all the flags to specific states
4130 yes) ac_enable_checking=1 ;;
4131 no) ac_enable_checking= ;
4132 ac_gc_check_stringbytes= ;
4133 ac_gc_check_string_overrun= ;
4134 ac_gc_check_string_free_list= ;
4135 ac_xmalloc_overrun= ;
4136 ac_gc_check_cons_list= ;;
4137 all) ac_enable_checking=1 ;
4138 ac_gc_check_stringbytes=1 ;
4139 ac_gc_check_string_overrun=1 ;
4140 ac_gc_check_string_free_list=1 ;
4141 ac_xmalloc_overrun=1 ;
4142 ac_gc_check_cons_list=1 ;;
4143 # these enable particular checks
4144 stringbytes) ac_gc_check_stringbytes=1 ;;
4145 stringoverrun) ac_gc_check_string_overrun=1 ;;
4146 stringfreelist) ac_gc_check_string_free_list=1 ;;
4147 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4148 conslist) ac_gc_check_cons_list=1 ;;
4149 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4150 esac
4151 done
4152 IFS="$ac_save_IFS"
4154 if test x$ac_enable_checking != x ; then
4156 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4159 if test x$ac_gc_check_stringbytes != x ; then
4161 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4164 if test x$ac_gc_check_string_overrun != x ; then
4166 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4169 if test x$ac_gc_check_string_free_list != x ; then
4171 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4174 if test x$ac_xmalloc_overrun != x ; then
4176 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4179 if test x$ac_gc_check_cons_list != x ; then
4181 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4185 # Check whether --enable-use-lisp-union-type was given.
4186 if test "${enable_use_lisp_union_type+set}" = set; then :
4187 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4189 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4196 # Check whether --enable-profiling was given.
4197 if test "${enable_profiling+set}" = set; then :
4198 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4201 if test x$ac_enable_profiling != x ; then
4202 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4203 else
4204 PROFILING_CFLAGS=
4208 # Check whether --enable-autodepend was given.
4209 if test "${enable_autodepend+set}" = set; then :
4210 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4211 else
4212 ac_enable_autodepend=yes
4216 #### Make srcdir absolute, if it isn't already. It's important to
4217 #### avoid running the path through pwd unnecessarily, since pwd can
4218 #### give you automounter prefixes, which can go away. We do all this
4219 #### so Emacs can find its files when run uninstalled.
4220 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4221 unset CDPATH
4222 case "${srcdir}" in
4223 /* ) ;;
4225 ## We may be able to use the $PWD environment variable to make this
4226 ## absolute. But sometimes PWD is inaccurate.
4227 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4228 ## but that tested only for a well-formed and valid PWD,
4229 ## it did not object when PWD was well-formed and valid but just wrong.
4230 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4231 then
4232 srcdir="$PWD"
4233 else
4234 srcdir="`(cd ${srcdir}; pwd)`"
4237 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4238 esac
4240 #### Given the configuration name, set machfile and opsysfile to the
4241 #### names of the m/*.h and s/*.h files we should use.
4243 ### Canonicalize the configuration name.
4245 # Make sure we can run config.sub.
4246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4247 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4250 $as_echo_n "checking build system type... " >&6; }
4251 if test "${ac_cv_build+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 ac_build_alias=$build_alias
4255 test "x$ac_build_alias" = x &&
4256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4257 test "x$ac_build_alias" = x &&
4258 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4260 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4264 $as_echo "$ac_cv_build" >&6; }
4265 case $ac_cv_build in
4266 *-*-*) ;;
4267 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4268 esac
4269 build=$ac_cv_build
4270 ac_save_IFS=$IFS; IFS='-'
4271 set x $ac_cv_build
4272 shift
4273 build_cpu=$1
4274 build_vendor=$2
4275 shift; shift
4276 # Remember, the first character of IFS is used to create $*,
4277 # except with old shells:
4278 build_os=$*
4279 IFS=$ac_save_IFS
4280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4284 $as_echo_n "checking host system type... " >&6; }
4285 if test "${ac_cv_host+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test "x$host_alias" = x; then
4289 ac_cv_host=$ac_cv_build
4290 else
4291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4297 $as_echo "$ac_cv_host" >&6; }
4298 case $ac_cv_host in
4299 *-*-*) ;;
4300 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4301 esac
4302 host=$ac_cv_host
4303 ac_save_IFS=$IFS; IFS='-'
4304 set x $ac_cv_host
4305 shift
4306 host_cpu=$1
4307 host_vendor=$2
4308 shift; shift
4309 # Remember, the first character of IFS is used to create $*,
4310 # except with old shells:
4311 host_os=$*
4312 IFS=$ac_save_IFS
4313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4316 canonical=$host
4317 configuration=${host_alias-${build_alias-$host}}
4321 ### If you add support for a new configuration, add code to this
4322 ### switch statement to recognize your configuration name and select
4323 ### the appropriate operating system and machine description files.
4325 ### You would hope that you could choose an m/*.h file pretty much
4326 ### based on the machine portion of the configuration name, and an s/*.h
4327 ### file based on the operating system portion. However, it turns out
4328 ### that each m/*.h file is pretty manufacturer-specific - for
4329 ### example mips.h is MIPS
4330 ### So we basically have to have a special case for each
4331 ### configuration name.
4333 ### As far as handling version numbers on operating systems is
4334 ### concerned, make sure things will fail in a fixable way. If
4335 ### /etc/MACHINES doesn't say anything about version numbers, be
4336 ### prepared to handle anything reasonably. If version numbers
4337 ### matter, be sure /etc/MACHINES says something about it.
4339 machine='' opsys='' unported=no
4340 case "${canonical}" in
4342 ## GNU/Linux ports
4343 *-*-linux-gnu*)
4344 opsys=gnu-linux
4345 case ${canonical} in
4346 alpha*) machine=alpha ;;
4347 s390-*) machine=ibms390 ;;
4348 s390x-*) machine=ibms390x ;;
4349 powerpc*) machine=macppc ;;
4350 sparc*) machine=sparc ;;
4351 ia64*) machine=ia64 ;;
4352 m68k*) machine=m68k ;;
4353 x86_64*) machine=amdx86-64 ;;
4354 esac
4357 ## FreeBSD ports
4358 *-*-freebsd* )
4359 opsys=freebsd
4360 case "${canonical}" in
4361 alpha*) machine=alpha ;;
4362 amd64-*|x86_64-*) machine=amdx86-64 ;;
4363 ia64-*) machine=ia64 ;;
4364 i[3456]86-*) machine=intel386 ;;
4365 powerpc-*) machine=macppc ;;
4366 sparc-*) machine=sparc ;;
4367 sparc64-*) machine=sparc ;;
4368 esac
4371 ## FreeBSD kernel + glibc based userland
4372 *-*-kfreebsd*gnu* )
4373 opsys=gnu-kfreebsd
4374 case "${canonical}" in
4375 alpha*) machine=alpha ;;
4376 amd64-*|x86_64-*) machine=amdx86-64 ;;
4377 ia64-*) machine=ia64 ;;
4378 i[3456]86-*) machine=intel386 ;;
4379 powerpc-*) machine=macppc ;;
4380 sparc-*) machine=sparc ;;
4381 sparc64-*) machine=sparc ;;
4382 esac
4385 ## NetBSD ports
4386 *-*-netbsd* )
4387 opsys=netbsd
4388 case "${canonical}" in
4389 alpha*) machine=alpha ;;
4390 x86_64-*) machine=amdx86-64 ;;
4391 i[3456]86-*) machine=intel386 ;;
4392 m68k-*) machine=m68k ;;
4393 powerpc-*) machine=macppc ;;
4394 sparc*-) machine=sparc ;;
4395 vax-*) machine=vax ;;
4396 esac
4399 ## OpenBSD ports
4400 *-*-openbsd* )
4401 opsys=openbsd
4402 case "${canonical}" in
4403 alpha*) machine=alpha ;;
4404 x86_64-*) machine=amdx86-64 ;;
4405 i386-*) machine=intel386 ;;
4406 powerpc-*) machine=macppc ;;
4407 sparc*) machine=sparc ;;
4408 vax-*) machine=vax ;;
4409 esac
4412 ## Apple Darwin / Mac OS X
4413 *-apple-darwin* )
4414 case "${canonical}" in
4415 i[3456]86-* ) machine=intel386 ;;
4416 powerpc-* ) machine=macppc ;;
4417 x86_64-* ) machine=amdx86-64 ;;
4418 * ) unported=yes ;;
4419 esac
4420 opsys=darwin
4421 # Define CPP as follows to make autoconf work correctly.
4422 CPP="${CC-cc} -E -no-cpp-precomp"
4423 # Use fink packages if available.
4424 if test -d /sw/include && test -d /sw/lib; then
4425 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4426 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4427 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4431 ## HP 9000 series 700 and 800, running HP/UX
4432 hppa*-hp-hpux10.2* )
4433 opsys=hpux10-20
4435 hppa*-hp-hpux1[1-9]* )
4436 opsys=hpux11
4437 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4440 ia64*-hp-hpux1[1-9]* )
4441 machine=hp800 opsys=hpux11
4442 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4443 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4444 CANNOT_DUMP=yes
4447 hppa*-*-linux-gnu* )
4448 machine=hp800 opsys=gnu-linux
4451 ## IBM machines
4452 rs6000-ibm-aix4.[23]* )
4453 machine=ibmrs6000 opsys=aix4-2
4455 powerpc-ibm-aix4.[23]* )
4456 machine=ibmrs6000 opsys=aix4-2
4458 rs6000-ibm-aix[56]* )
4459 machine=ibmrs6000 opsys=aix4-2
4461 powerpc-ibm-aix[56]* )
4462 machine=ibmrs6000 opsys=aix4-2
4465 ## Silicon Graphics machines
4466 ## Iris 4D
4467 mips-sgi-irix6.5 )
4468 machine=iris4d opsys=irix6-5
4469 # Without defining _LANGUAGE_C, things get masked out in the headers
4470 # so that, for instance, grepping for `free' in stdlib.h fails and
4471 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4472 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4473 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4476 ## Suns
4477 *-sun-solaris* \
4478 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4479 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4480 case "${canonical}" in
4481 i[3456]86-*-* ) machine=intel386 ;;
4482 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4483 sparc* ) machine=sparc ;;
4484 * ) unported=yes ;;
4485 esac
4486 case "${canonical}" in
4487 *-sunos5.6* | *-solaris2.6* )
4488 opsys=sol2-6
4489 NON_GNU_CPP=/usr/ccs/lib/cpp
4490 RANLIB="ar -ts"
4492 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4493 opsys=sol2-6
4494 emacs_check_sunpro_c=yes
4495 NON_GNU_CPP=/usr/ccs/lib/cpp
4497 *-sunos5* | *-solaris* )
4498 opsys=sol2-10
4499 emacs_check_sunpro_c=yes
4500 NON_GNU_CPP=/usr/ccs/lib/cpp
4502 esac
4503 ## Watch out for a compiler that we know will not work.
4504 case "${canonical}" in
4505 *-solaris* | *-sunos5* )
4506 if [ "x$CC" = x/usr/ucb/cc ]; then
4507 ## /usr/ucb/cc doesn't work;
4508 ## we should find some other compiler that does work.
4509 unset CC
4512 *) ;;
4513 esac
4516 ## Intel 386 machines where we don't care about the manufacturer.
4517 i[3456]86-*-* )
4518 machine=intel386
4519 case "${canonical}" in
4520 *-cygwin ) opsys=cygwin ;;
4521 *-darwin* ) opsys=darwin
4522 CPP="${CC-cc} -E -no-cpp-precomp"
4524 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4525 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4526 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4527 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4528 esac
4532 unported=yes
4534 esac
4536 ### If the code above didn't choose an operating system, just choose
4537 ### an operating system based on the configuration name. You really
4538 ### only want to use this when you have no idea what the right
4539 ### operating system is; if you know what operating systems a machine
4540 ### runs, it's cleaner to make it explicit in the case statement
4541 ### above.
4542 if test x"${opsys}" = x; then
4543 case "${canonical}" in
4544 *-gnu* ) opsys=gnu ;;
4546 unported=yes
4548 esac
4553 if test $unported = yes; then
4554 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4555 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4558 if test -n "$machine"; then
4559 machfile="m/${machine}.h"
4560 else
4561 machfile=
4563 opsysfile="s/${opsys}.h"
4566 #### Choose a compiler.
4567 test -n "$CC" && cc_specified=yes
4569 # Save the value of CFLAGS that the user specified.
4570 SPECIFIED_CFLAGS="$CFLAGS"
4572 ac_ext=c
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$CC"; then
4586 ac_cv_prog_CC="$CC" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4605 CC=$ac_cv_prog_CC
4606 if test -n "$CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4608 $as_echo "$CC" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4616 if test -z "$ac_cv_prog_CC"; then
4617 ac_ct_CC=$CC
4618 # Extract the first word of "gcc", so it can be a program name with args.
4619 set dummy gcc; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$ac_ct_CC"; then
4626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_ac_ct_CC="gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4646 if test -n "$ac_ct_CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4648 $as_echo "$ac_ct_CC" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4654 if test "x$ac_ct_CC" = x; then
4655 CC=""
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658 yes:)
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661 ac_tool_warned=yes ;;
4662 esac
4663 CC=$ac_ct_CC
4665 else
4666 CC="$ac_cv_prog_CC"
4669 if test -z "$CC"; then
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}cc; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_CC+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC="$CC" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_CC="${ac_tool_prefix}cc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 CC=$ac_cv_prog_CC
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4710 if test -z "$CC"; then
4711 # Extract the first word of "cc", so it can be a program name with args.
4712 set dummy cc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC="$CC" # Let the user override the test.
4720 else
4721 ac_prog_rejected=no
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4730 ac_prog_rejected=yes
4731 continue
4733 ac_cv_prog_CC="cc"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4741 if test $ac_prog_rejected = yes; then
4742 # We found a bogon in the path, so make sure we never use it.
4743 set dummy $ac_cv_prog_CC
4744 shift
4745 if test $# != 0; then
4746 # We chose a different compiler from the bogus one.
4747 # However, it has the same basename, so the bogon will be chosen
4748 # first if we set CC to just the basename; use the full file name.
4749 shift
4750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4755 CC=$ac_cv_prog_CC
4756 if test -n "$CC"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758 $as_echo "$CC" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4766 if test -z "$CC"; then
4767 if test -n "$ac_tool_prefix"; then
4768 for ac_prog in cl.exe
4770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_CC+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$CC"; then
4778 ac_cv_prog_CC="$CC" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4791 done
4792 done
4793 IFS=$as_save_IFS
4797 CC=$ac_cv_prog_CC
4798 if test -n "$CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800 $as_echo "$CC" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$CC" && break
4808 done
4810 if test -z "$CC"; then
4811 ac_ct_CC=$CC
4812 for ac_prog in cl.exe
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_CC"; then
4822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_CC="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4842 if test -n "$ac_ct_CC"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4844 $as_echo "$ac_ct_CC" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 test -n "$ac_ct_CC" && break
4852 done
4854 if test "x$ac_ct_CC" = x; then
4855 CC=""
4856 else
4857 case $cross_compiling:$ac_tool_warned in
4858 yes:)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4861 ac_tool_warned=yes ;;
4862 esac
4863 CC=$ac_ct_CC
4870 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4872 as_fn_error "no acceptable C compiler found in \$PATH
4873 See \`config.log' for more details." "$LINENO" 5; }
4875 # Provide some information about the compiler.
4876 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4877 set X $ac_compile
4878 ac_compiler=$2
4879 for ac_option in --version -v -V -qversion; do
4880 { { ac_try="$ac_compiler $ac_option >&5"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4886 $as_echo "$ac_try_echo"; } >&5
4887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4888 ac_status=$?
4889 if test -s conftest.err; then
4890 sed '10a\
4891 ... rest of stderr output deleted ...
4892 10q' conftest.err >conftest.er1
4893 cat conftest.er1 >&5
4895 rm -f conftest.er1 conftest.err
4896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4897 test $ac_status = 0; }
4898 done
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4904 main ()
4908 return 0;
4910 _ACEOF
4911 ac_clean_files_save=$ac_clean_files
4912 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4913 # Try to create an executable without -o first, disregard a.out.
4914 # It will help us diagnose broken compilers, and finding out an intuition
4915 # of exeext.
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4917 $as_echo_n "checking whether the C compiler works... " >&6; }
4918 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4920 # The possible output files:
4921 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4923 ac_rmfiles=
4924 for ac_file in $ac_files
4926 case $ac_file in
4927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4929 esac
4930 done
4931 rm -f $ac_rmfiles
4933 if { { ac_try="$ac_link_default"
4934 case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939 $as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_link_default") 2>&5
4941 ac_status=$?
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }; then :
4944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4945 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4946 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4947 # so that the user can short-circuit this test for compilers unknown to
4948 # Autoconf.
4949 for ac_file in $ac_files ''
4951 test -f "$ac_file" || continue
4952 case $ac_file in
4953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4955 [ab].out )
4956 # We found the default executable, but exeext='' is most
4957 # certainly right.
4958 break;;
4959 *.* )
4960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4961 then :; else
4962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4964 # We set ac_cv_exeext here because the later test for it is not
4965 # safe: cross compilers may not add the suffix if given an `-o'
4966 # argument, so we may need to know it at that point already.
4967 # Even if this section looks crufty: it has the advantage of
4968 # actually working.
4969 break;;
4971 break;;
4972 esac
4973 done
4974 test "$ac_cv_exeext" = no && ac_cv_exeext=
4976 else
4977 ac_file=''
4979 if test -z "$ac_file"; then :
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 $as_echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4987 { as_fn_set_status 77
4988 as_fn_error "C compiler cannot create executables
4989 See \`config.log' for more details." "$LINENO" 5; }; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992 $as_echo "yes" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4995 $as_echo_n "checking for C compiler default output file name... " >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4997 $as_echo "$ac_file" >&6; }
4998 ac_exeext=$ac_cv_exeext
5000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5001 ac_clean_files=$ac_clean_files_save
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5003 $as_echo_n "checking for suffix of executables... " >&6; }
5004 if { { ac_try="$ac_link"
5005 case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008 esac
5009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5010 $as_echo "$ac_try_echo"; } >&5
5011 (eval "$ac_link") 2>&5
5012 ac_status=$?
5013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5014 test $ac_status = 0; }; then :
5015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5016 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5017 # work properly (i.e., refer to `conftest.exe'), while it won't with
5018 # `rm'.
5019 for ac_file in conftest.exe conftest conftest.*; do
5020 test -f "$ac_file" || continue
5021 case $ac_file in
5022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5024 break;;
5025 * ) break;;
5026 esac
5027 done
5028 else
5029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 as_fn_error "cannot compute suffix of executables: cannot compile and link
5032 See \`config.log' for more details." "$LINENO" 5; }
5034 rm -f conftest conftest$ac_cv_exeext
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5036 $as_echo "$ac_cv_exeext" >&6; }
5038 rm -f conftest.$ac_ext
5039 EXEEXT=$ac_cv_exeext
5040 ac_exeext=$EXEEXT
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <stdio.h>
5045 main ()
5047 FILE *f = fopen ("conftest.out", "w");
5048 return ferror (f) || fclose (f) != 0;
5051 return 0;
5053 _ACEOF
5054 ac_clean_files="$ac_clean_files conftest.out"
5055 # Check that the compiler produces executables we can run. If not, either
5056 # the compiler is broken, or we cross compile.
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5058 $as_echo_n "checking whether we are cross compiling... " >&6; }
5059 if test "$cross_compiling" != yes; then
5060 { { ac_try="$ac_link"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5066 $as_echo "$ac_try_echo"; } >&5
5067 (eval "$ac_link") 2>&5
5068 ac_status=$?
5069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5070 test $ac_status = 0; }
5071 if { ac_try='./conftest$ac_cv_exeext'
5072 { { case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5077 $as_echo "$ac_try_echo"; } >&5
5078 (eval "$ac_try") 2>&5
5079 ac_status=$?
5080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5081 test $ac_status = 0; }; }; then
5082 cross_compiling=no
5083 else
5084 if test "$cross_compiling" = maybe; then
5085 cross_compiling=yes
5086 else
5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5089 as_fn_error "cannot run C compiled programs.
5090 If you meant to cross compile, use \`--host'.
5091 See \`config.log' for more details." "$LINENO" 5; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5096 $as_echo "$cross_compiling" >&6; }
5098 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5099 ac_clean_files=$ac_clean_files_save
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5101 $as_echo_n "checking for suffix of object files... " >&6; }
5102 if test "${ac_cv_objext+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5109 main ()
5113 return 0;
5115 _ACEOF
5116 rm -f conftest.o conftest.obj
5117 if { { ac_try="$ac_compile"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_compile") 2>&5
5125 ac_status=$?
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }; then :
5128 for ac_file in conftest.o conftest.obj conftest.*; do
5129 test -f "$ac_file" || continue;
5130 case $ac_file in
5131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5133 break;;
5134 esac
5135 done
5136 else
5137 $as_echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5142 as_fn_error "cannot compute suffix of object files: cannot compile
5143 See \`config.log' for more details." "$LINENO" 5; }
5145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5148 $as_echo "$ac_cv_objext" >&6; }
5149 OBJEXT=$ac_cv_objext
5150 ac_objext=$OBJEXT
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5153 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5160 main ()
5162 #ifndef __GNUC__
5163 choke me
5164 #endif
5167 return 0;
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_compiler_gnu=yes
5172 else
5173 ac_compiler_gnu=no
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5181 if test $ac_compiler_gnu = yes; then
5182 GCC=yes
5183 else
5184 GCC=
5186 ac_test_CFLAGS=${CFLAGS+set}
5187 ac_save_CFLAGS=$CFLAGS
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5190 if test "${ac_cv_prog_cc_g+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 ac_save_c_werror_flag=$ac_c_werror_flag
5194 ac_c_werror_flag=yes
5195 ac_cv_prog_cc_g=no
5196 CFLAGS="-g"
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5201 main ()
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 ac_cv_prog_cc_g=yes
5210 else
5211 CFLAGS=""
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5216 main ()
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5225 else
5226 ac_c_werror_flag=$ac_save_c_werror_flag
5227 CFLAGS="-g"
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5232 main ()
5236 return 0;
5238 _ACEOF
5239 if ac_fn_c_try_compile "$LINENO"; then :
5240 ac_cv_prog_cc_g=yes
5242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 ac_c_werror_flag=$ac_save_c_werror_flag
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5250 $as_echo "$ac_cv_prog_cc_g" >&6; }
5251 if test "$ac_test_CFLAGS" = set; then
5252 CFLAGS=$ac_save_CFLAGS
5253 elif test $ac_cv_prog_cc_g = yes; then
5254 if test "$GCC" = yes; then
5255 CFLAGS="-g -O2"
5256 else
5257 CFLAGS="-g"
5259 else
5260 if test "$GCC" = yes; then
5261 CFLAGS="-O2"
5262 else
5263 CFLAGS=
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5268 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 ac_cv_prog_cc_c89=no
5272 ac_save_CC=$CC
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <stdarg.h>
5276 #include <stdio.h>
5277 #include <sys/types.h>
5278 #include <sys/stat.h>
5279 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5280 struct buf { int x; };
5281 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5282 static char *e (p, i)
5283 char **p;
5284 int i;
5286 return p[i];
5288 static char *f (char * (*g) (char **, int), char **p, ...)
5290 char *s;
5291 va_list v;
5292 va_start (v,p);
5293 s = g (p, va_arg (v,int));
5294 va_end (v);
5295 return s;
5298 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5299 function prototypes and stuff, but not '\xHH' hex character constants.
5300 These don't provoke an error unfortunately, instead are silently treated
5301 as 'x'. The following induces an error, until -std is added to get
5302 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5303 array size at least. It's necessary to write '\x00'==0 to get something
5304 that's true only with -std. */
5305 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5307 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5308 inside strings and character constants. */
5309 #define FOO(x) 'x'
5310 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5312 int test (int i, double x);
5313 struct s1 {int (*f) (int a);};
5314 struct s2 {int (*f) (double a);};
5315 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5316 int argc;
5317 char **argv;
5319 main ()
5321 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5323 return 0;
5325 _ACEOF
5326 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5327 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5329 CC="$ac_save_CC $ac_arg"
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 ac_cv_prog_cc_c89=$ac_arg
5333 rm -f core conftest.err conftest.$ac_objext
5334 test "x$ac_cv_prog_cc_c89" != "xno" && break
5335 done
5336 rm -f conftest.$ac_ext
5337 CC=$ac_save_CC
5340 # AC_CACHE_VAL
5341 case "x$ac_cv_prog_cc_c89" in
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5344 $as_echo "none needed" >&6; } ;;
5345 xno)
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5347 $as_echo "unsupported" >&6; } ;;
5349 CC="$CC $ac_cv_prog_cc_c89"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5351 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5352 esac
5353 if test "x$ac_cv_prog_cc_c89" != xno; then :
5357 ac_ext=c
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 DEPDIR="${am__leading_dot}deps"
5364 ac_config_commands="$ac_config_commands depfiles"
5367 am_make=${MAKE-make}
5368 cat > confinc << 'END'
5369 am__doit:
5370 @echo this is the am__doit target
5371 .PHONY: am__doit
5373 # If we don't find an include directive, just comment out the code.
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5375 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5376 am__include="#"
5377 am__quote=
5378 _am_result=none
5379 # First try GNU make style include.
5380 echo "include confinc" > confmf
5381 # Ignore all kinds of additional output from `make'.
5382 case `$am_make -s -f confmf 2> /dev/null` in #(
5383 *the\ am__doit\ target*)
5384 am__include=include
5385 am__quote=
5386 _am_result=GNU
5388 esac
5389 # Now try BSD make style include.
5390 if test "$am__include" = "#"; then
5391 echo '.include "confinc"' > confmf
5392 case `$am_make -s -f confmf 2> /dev/null` in #(
5393 *the\ am__doit\ target*)
5394 am__include=.include
5395 am__quote="\""
5396 _am_result=BSD
5398 esac
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5403 $as_echo "$_am_result" >&6; }
5404 rm -f confinc confmf
5406 # Check whether --enable-dependency-tracking was given.
5407 if test "${enable_dependency_tracking+set}" = set; then :
5408 enableval=$enable_dependency_tracking;
5411 if test "x$enable_dependency_tracking" != xno; then
5412 am_depcomp="$ac_aux_dir/depcomp"
5413 AMDEPBACKSLASH='\'
5415 if test "x$enable_dependency_tracking" != xno; then
5416 AMDEP_TRUE=
5417 AMDEP_FALSE='#'
5418 else
5419 AMDEP_TRUE='#'
5420 AMDEP_FALSE=
5425 depcc="$CC" am_compiler_list=
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5428 $as_echo_n "checking dependency style of $depcc... " >&6; }
5429 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5433 # We make a subdir and do the tests there. Otherwise we can end up
5434 # making bogus files that we don't know about and never remove. For
5435 # instance it was reported that on HP-UX the gcc test will end up
5436 # making a dummy file named `D' -- because `-MD' means `put the output
5437 # in D'.
5438 mkdir conftest.dir
5439 # Copy depcomp to subdir because otherwise we won't find it if we're
5440 # using a relative directory.
5441 cp "$am_depcomp" conftest.dir
5442 cd conftest.dir
5443 # We will build objects and dependencies in a subdirectory because
5444 # it helps to detect inapplicable dependency modes. For instance
5445 # both Tru64's cc and ICC support -MD to output dependencies as a
5446 # side effect of compilation, but ICC will put the dependencies in
5447 # the current directory while Tru64 will put them in the object
5448 # directory.
5449 mkdir sub
5451 am_cv_CC_dependencies_compiler_type=none
5452 if test "$am_compiler_list" = ""; then
5453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5455 am__universal=false
5456 case " $depcc " in #(
5457 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5458 esac
5460 for depmode in $am_compiler_list; do
5461 # Setup a source with many dependencies, because some compilers
5462 # like to wrap large dependency lists on column 80 (with \), and
5463 # we should not choose a depcomp mode which is confused by this.
5465 # We need to recreate these files for each test, as the compiler may
5466 # overwrite some of them when testing with obscure command lines.
5467 # This happens at least with the AIX C compiler.
5468 : > sub/conftest.c
5469 for i in 1 2 3 4 5 6; do
5470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5472 # Solaris 8's {/usr,}/bin/sh.
5473 touch sub/conftst$i.h
5474 done
5475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5477 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5478 # mode. It turns out that the SunPro C++ compiler does not properly
5479 # handle `-M -o', and we need to detect this. Also, some Intel
5480 # versions had trouble with output in subdirs
5481 am__obj=sub/conftest.${OBJEXT-o}
5482 am__minus_obj="-o $am__obj"
5483 case $depmode in
5484 gcc)
5485 # This depmode causes a compiler race in universal mode.
5486 test "$am__universal" = false || continue
5488 nosideeffect)
5489 # after this tag, mechanisms are not by side-effect, so they'll
5490 # only be used when explicitly requested
5491 if test "x$enable_dependency_tracking" = xyes; then
5492 continue
5493 else
5494 break
5497 msvisualcpp | msvcmsys)
5498 # This compiler won't grok `-c -o', but also, the minuso test has
5499 # not run yet. These depmodes are late enough in the game, and
5500 # so weak that their functioning should not be impacted.
5501 am__obj=conftest.${OBJEXT-o}
5502 am__minus_obj=
5504 none) break ;;
5505 esac
5506 if depmode=$depmode \
5507 source=sub/conftest.c object=$am__obj \
5508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5510 >/dev/null 2>conftest.err &&
5511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5515 # icc doesn't choke on unknown options, it will just issue warnings
5516 # or remarks (even with -Werror). So we grep stderr for any message
5517 # that says an option was ignored or not supported.
5518 # When given -MP, icc 7.0 and 7.1 complain thusly:
5519 # icc: Command line warning: ignoring option '-M'; no argument required
5520 # The diagnosis changed in icc 8.0:
5521 # icc: Command line remark: option '-MP' not supported
5522 if (grep 'ignoring option' conftest.err ||
5523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5524 am_cv_CC_dependencies_compiler_type=$depmode
5525 break
5528 done
5530 cd ..
5531 rm -rf conftest.dir
5532 else
5533 am_cv_CC_dependencies_compiler_type=none
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5538 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5542 test "x$enable_dependency_tracking" != xno \
5543 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5544 am__fastdepCC_TRUE=
5545 am__fastdepCC_FALSE='#'
5546 else
5547 am__fastdepCC_TRUE='#'
5548 am__fastdepCC_FALSE=
5552 if test "x$CC" != xcc; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5554 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5557 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5559 set dummy $CC; ac_cc=`$as_echo "$2" |
5560 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5561 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5568 main ()
5572 return 0;
5574 _ACEOF
5575 # Make sure it works both with $CC and with simple cc.
5576 # We do the test twice because some compilers refuse to overwrite an
5577 # existing .o file with -o, though they will create one.
5578 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5579 rm -f conftest2.*
5580 if { { case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5585 $as_echo "$ac_try_echo"; } >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; } &&
5590 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5595 $as_echo "$ac_try_echo"; } >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; };
5600 then
5601 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602 if test "x$CC" != xcc; then
5603 # Test first that cc exists at all.
5604 if { ac_try='cc -c conftest.$ac_ext >&5'
5605 { { case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5610 $as_echo "$ac_try_echo"; } >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5614 test $ac_status = 0; }; }; then
5615 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5616 rm -f conftest2.*
5617 if { { case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5622 $as_echo "$ac_try_echo"; } >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; } &&
5627 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5632 $as_echo "$ac_try_echo"; } >&5
5633 (eval "$ac_try") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5636 test $ac_status = 0; };
5637 then
5638 # cc works too.
5640 else
5641 # cc exists but doesn't like -o.
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5646 else
5647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5649 rm -f core conftest*
5652 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5654 $as_echo "yes" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5659 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5663 # FIXME: we rely on the cache variable name because
5664 # there is no other way.
5665 set dummy $CC
5666 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5667 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5668 if test "$am_t" != yes; then
5669 # Losing compiler, so override with the script.
5670 # FIXME: It is wrong to rewrite CC.
5671 # But if we don't then we get into trouble of one sort or another.
5672 # A longer-term fix would be to have automake use am__CC in this case,
5673 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5674 CC="$am_aux_dir/compile $CC"
5679 # Initialize gnulib right after verifying that the C compiler works.
5680 if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$RANLIB"; then
5689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 RANLIB=$ac_cv_prog_RANLIB
5709 if test -n "$RANLIB"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5711 $as_echo "$RANLIB" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5719 if test -z "$ac_cv_prog_RANLIB"; then
5720 ac_ct_RANLIB=$RANLIB
5721 # Extract the first word of "ranlib", so it can be a program name with args.
5722 set dummy ranlib; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$ac_ct_RANLIB"; then
5729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_prog_ac_ct_RANLIB="ranlib"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5749 if test -n "$ac_ct_RANLIB"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5751 $as_echo "$ac_ct_RANLIB" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5757 if test "x$ac_ct_RANLIB" = x; then
5758 RANLIB=":"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761 yes:)
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5765 esac
5766 RANLIB=$ac_ct_RANLIB
5768 else
5769 RANLIB="$ac_cv_prog_RANLIB"
5773 ac_ext=c
5774 ac_cpp='$CPP $CPPFLAGS'
5775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5780 # On Suns, sometimes $CPP names a directory.
5781 if test -n "$CPP" && test -d "$CPP"; then
5782 CPP=
5784 if test -z "$CPP"; then
5785 if test "${ac_cv_prog_CPP+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 # Double quotes because CPP needs to be expanded
5789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5791 ac_preproc_ok=false
5792 for ac_c_preproc_warn_flag in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #ifdef __STDC__
5803 # include <limits.h>
5804 #else
5805 # include <assert.h>
5806 #endif
5807 Syntax error
5808 _ACEOF
5809 if ac_fn_c_try_cpp "$LINENO"; then :
5811 else
5812 # Broken: fails on valid input.
5813 continue
5815 rm -f conftest.err conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <ac_nonexistent.h>
5822 _ACEOF
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5824 # Broken: success on invalid input.
5825 continue
5826 else
5827 # Passes both tests.
5828 ac_preproc_ok=:
5829 break
5831 rm -f conftest.err conftest.$ac_ext
5833 done
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then :
5837 break
5840 done
5841 ac_cv_prog_CPP=$CPP
5844 CPP=$ac_cv_prog_CPP
5845 else
5846 ac_cv_prog_CPP=$CPP
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5849 $as_echo "$CPP" >&6; }
5850 ac_preproc_ok=false
5851 for ac_c_preproc_warn_flag in '' yes
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #ifdef __STDC__
5862 # include <limits.h>
5863 #else
5864 # include <assert.h>
5865 #endif
5866 Syntax error
5867 _ACEOF
5868 if ac_fn_c_try_cpp "$LINENO"; then :
5870 else
5871 # Broken: fails on valid input.
5872 continue
5874 rm -f conftest.err conftest.$ac_ext
5876 # OK, works on sane cases. Now check whether nonexistent headers
5877 # can be detected and how.
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 #include <ac_nonexistent.h>
5881 _ACEOF
5882 if ac_fn_c_try_cpp "$LINENO"; then :
5883 # Broken: success on invalid input.
5884 continue
5885 else
5886 # Passes both tests.
5887 ac_preproc_ok=:
5888 break
5890 rm -f conftest.err conftest.$ac_ext
5892 done
5893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5894 rm -f conftest.err conftest.$ac_ext
5895 if $ac_preproc_ok; then :
5897 else
5898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5900 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5901 See \`config.log' for more details." "$LINENO" 5; }
5904 ac_ext=c
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5912 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5913 if test "${ac_cv_path_GREP+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -z "$GREP"; then
5917 ac_path_GREP_found=false
5918 # Loop through the user's path and test for each of PROGNAME-LIST
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_prog in grep ggrep; do
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5928 # Check for GNU ac_path_GREP and select it if it is found.
5929 # Check for GNU $ac_path_GREP
5930 case `"$ac_path_GREP" --version 2>&1` in
5931 *GNU*)
5932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5934 ac_count=0
5935 $as_echo_n 0123456789 >"conftest.in"
5936 while :
5938 cat "conftest.in" "conftest.in" >"conftest.tmp"
5939 mv "conftest.tmp" "conftest.in"
5940 cp "conftest.in" "conftest.nl"
5941 $as_echo 'GREP' >> "conftest.nl"
5942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5944 as_fn_arith $ac_count + 1 && ac_count=$as_val
5945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5946 # Best one so far, save it but keep looking for a better one
5947 ac_cv_path_GREP="$ac_path_GREP"
5948 ac_path_GREP_max=$ac_count
5950 # 10*(2^10) chars as input seems more than enough
5951 test $ac_count -gt 10 && break
5952 done
5953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5954 esac
5956 $ac_path_GREP_found && break 3
5957 done
5958 done
5959 done
5960 IFS=$as_save_IFS
5961 if test -z "$ac_cv_path_GREP"; then
5962 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 else
5965 ac_cv_path_GREP=$GREP
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5970 $as_echo "$ac_cv_path_GREP" >&6; }
5971 GREP="$ac_cv_path_GREP"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5975 $as_echo_n "checking for egrep... " >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980 then ac_cv_path_EGREP="$GREP -E"
5981 else
5982 if test -z "$EGREP"; then
5983 ac_path_EGREP_found=false
5984 # Loop through the user's path and test for each of PROGNAME-LIST
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_prog in egrep; do
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5993 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5994 # Check for GNU ac_path_EGREP and select it if it is found.
5995 # Check for GNU $ac_path_EGREP
5996 case `"$ac_path_EGREP" --version 2>&1` in
5997 *GNU*)
5998 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6000 ac_count=0
6001 $as_echo_n 0123456789 >"conftest.in"
6002 while :
6004 cat "conftest.in" "conftest.in" >"conftest.tmp"
6005 mv "conftest.tmp" "conftest.in"
6006 cp "conftest.in" "conftest.nl"
6007 $as_echo 'EGREP' >> "conftest.nl"
6008 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6010 as_fn_arith $ac_count + 1 && ac_count=$as_val
6011 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6012 # Best one so far, save it but keep looking for a better one
6013 ac_cv_path_EGREP="$ac_path_EGREP"
6014 ac_path_EGREP_max=$ac_count
6016 # 10*(2^10) chars as input seems more than enough
6017 test $ac_count -gt 10 && break
6018 done
6019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6020 esac
6022 $ac_path_EGREP_found && break 3
6023 done
6024 done
6025 done
6026 IFS=$as_save_IFS
6027 if test -z "$ac_cv_path_EGREP"; then
6028 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6030 else
6031 ac_cv_path_EGREP=$EGREP
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6037 $as_echo "$ac_cv_path_EGREP" >&6; }
6038 EGREP="$ac_cv_path_EGREP"
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6042 $as_echo_n "checking for ANSI C header files... " >&6; }
6043 if test "${ac_cv_header_stdc+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #include <stdlib.h>
6049 #include <stdarg.h>
6050 #include <string.h>
6051 #include <float.h>
6054 main ()
6058 return 0;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062 ac_cv_header_stdc=yes
6063 else
6064 ac_cv_header_stdc=no
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 if test $ac_cv_header_stdc = yes; then
6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <string.h>
6074 _ACEOF
6075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6076 $EGREP "memchr" >/dev/null 2>&1; then :
6078 else
6079 ac_cv_header_stdc=no
6081 rm -f conftest*
6085 if test $ac_cv_header_stdc = yes; then
6086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 #include <stdlib.h>
6091 _ACEOF
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "free" >/dev/null 2>&1; then :
6095 else
6096 ac_cv_header_stdc=no
6098 rm -f conftest*
6102 if test $ac_cv_header_stdc = yes; then
6103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6104 if test "$cross_compiling" = yes; then :
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <ctype.h>
6110 #include <stdlib.h>
6111 #if ((' ' & 0x0FF) == 0x020)
6112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6114 #else
6115 # define ISLOWER(c) \
6116 (('a' <= (c) && (c) <= 'i') \
6117 || ('j' <= (c) && (c) <= 'r') \
6118 || ('s' <= (c) && (c) <= 'z'))
6119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6120 #endif
6122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6124 main ()
6126 int i;
6127 for (i = 0; i < 256; i++)
6128 if (XOR (islower (i), ISLOWER (i))
6129 || toupper (i) != TOUPPER (i))
6130 return 2;
6131 return 0;
6133 _ACEOF
6134 if ac_fn_c_try_run "$LINENO"; then :
6136 else
6137 ac_cv_header_stdc=no
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6140 conftest.$ac_objext conftest.beam conftest.$ac_ext
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6146 $as_echo "$ac_cv_header_stdc" >&6; }
6147 if test $ac_cv_header_stdc = yes; then
6149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6155 inttypes.h stdint.h unistd.h
6156 do :
6157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6158 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6160 eval as_val=\$$as_ac_Header
6161 if test "x$as_val" = x""yes; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6168 done
6174 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6175 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6176 MINIX=yes
6177 else
6178 MINIX=
6182 if test "$MINIX" = yes; then
6184 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6187 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6190 $as_echo "#define _MINIX 1" >>confdefs.h
6194 case "$host_os" in
6195 hpux*)
6197 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6200 esac
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6204 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6205 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6211 # define __EXTENSIONS__ 1
6212 $ac_includes_default
6214 main ()
6218 return 0;
6220 _ACEOF
6221 if ac_fn_c_try_compile "$LINENO"; then :
6222 ac_cv_safe_to_define___extensions__=yes
6223 else
6224 ac_cv_safe_to_define___extensions__=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6229 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6230 test $ac_cv_safe_to_define___extensions__ = yes &&
6231 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6233 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6235 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6237 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6239 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6248 case $ac_cv_prog_cc_stdc in #(
6249 no) :
6250 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6251 *) :
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6253 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6254 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 ac_cv_prog_cc_c99=no
6258 ac_save_CC=$CC
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <stdarg.h>
6262 #include <stdbool.h>
6263 #include <stdlib.h>
6264 #include <wchar.h>
6265 #include <stdio.h>
6267 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6268 #define debug(...) fprintf (stderr, __VA_ARGS__)
6269 #define showlist(...) puts (#__VA_ARGS__)
6270 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6271 static void
6272 test_varargs_macros (void)
6274 int x = 1234;
6275 int y = 5678;
6276 debug ("Flag");
6277 debug ("X = %d\n", x);
6278 showlist (The first, second, and third items.);
6279 report (x>y, "x is %d but y is %d", x, y);
6282 // Check long long types.
6283 #define BIG64 18446744073709551615ull
6284 #define BIG32 4294967295ul
6285 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6286 #if !BIG_OK
6287 your preprocessor is broken;
6288 #endif
6289 #if BIG_OK
6290 #else
6291 your preprocessor is broken;
6292 #endif
6293 static long long int bignum = -9223372036854775807LL;
6294 static unsigned long long int ubignum = BIG64;
6296 struct incomplete_array
6298 int datasize;
6299 double data[];
6302 struct named_init {
6303 int number;
6304 const wchar_t *name;
6305 double average;
6308 typedef const char *ccp;
6310 static inline int
6311 test_restrict (ccp restrict text)
6313 // See if C++-style comments work.
6314 // Iterate through items via the restricted pointer.
6315 // Also check for declarations in for loops.
6316 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6317 continue;
6318 return 0;
6321 // Check varargs and va_copy.
6322 static void
6323 test_varargs (const char *format, ...)
6325 va_list args;
6326 va_start (args, format);
6327 va_list args_copy;
6328 va_copy (args_copy, args);
6330 const char *str;
6331 int number;
6332 float fnumber;
6334 while (*format)
6336 switch (*format++)
6338 case 's': // string
6339 str = va_arg (args_copy, const char *);
6340 break;
6341 case 'd': // int
6342 number = va_arg (args_copy, int);
6343 break;
6344 case 'f': // float
6345 fnumber = va_arg (args_copy, double);
6346 break;
6347 default:
6348 break;
6351 va_end (args_copy);
6352 va_end (args);
6356 main ()
6359 // Check bool.
6360 _Bool success = false;
6362 // Check restrict.
6363 if (test_restrict ("String literal") == 0)
6364 success = true;
6365 char *restrict newvar = "Another string";
6367 // Check varargs.
6368 test_varargs ("s, d' f .", "string", 65, 34.234);
6369 test_varargs_macros ();
6371 // Check flexible array members.
6372 struct incomplete_array *ia =
6373 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6374 ia->datasize = 10;
6375 for (int i = 0; i < ia->datasize; ++i)
6376 ia->data[i] = i * 1.234;
6378 // Check named initializers.
6379 struct named_init ni = {
6380 .number = 34,
6381 .name = L"Test wide string",
6382 .average = 543.34343,
6385 ni.number = 58;
6387 int dynamic_array[ni.number];
6388 dynamic_array[ni.number - 1] = 543;
6390 // work around unused variable warnings
6391 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6392 || dynamic_array[ni.number - 1] != 543);
6395 return 0;
6397 _ACEOF
6398 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6400 CC="$ac_save_CC $ac_arg"
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402 ac_cv_prog_cc_c99=$ac_arg
6404 rm -f core conftest.err conftest.$ac_objext
6405 test "x$ac_cv_prog_cc_c99" != "xno" && break
6406 done
6407 rm -f conftest.$ac_ext
6408 CC=$ac_save_CC
6411 # AC_CACHE_VAL
6412 case "x$ac_cv_prog_cc_c99" in
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6415 $as_echo "none needed" >&6; } ;;
6416 xno)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6418 $as_echo "unsupported" >&6; } ;;
6420 CC="$CC $ac_cv_prog_cc_c99"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6422 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6423 esac
6424 if test "x$ac_cv_prog_cc_c99" != xno; then :
6425 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6429 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 ac_cv_prog_cc_c89=no
6433 ac_save_CC=$CC
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #include <stdarg.h>
6437 #include <stdio.h>
6438 #include <sys/types.h>
6439 #include <sys/stat.h>
6440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6441 struct buf { int x; };
6442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6443 static char *e (p, i)
6444 char **p;
6445 int i;
6447 return p[i];
6449 static char *f (char * (*g) (char **, int), char **p, ...)
6451 char *s;
6452 va_list v;
6453 va_start (v,p);
6454 s = g (p, va_arg (v,int));
6455 va_end (v);
6456 return s;
6459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6460 function prototypes and stuff, but not '\xHH' hex character constants.
6461 These don't provoke an error unfortunately, instead are silently treated
6462 as 'x'. The following induces an error, until -std is added to get
6463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6464 array size at least. It's necessary to write '\x00'==0 to get something
6465 that's true only with -std. */
6466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6469 inside strings and character constants. */
6470 #define FOO(x) 'x'
6471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6473 int test (int i, double x);
6474 struct s1 {int (*f) (int a);};
6475 struct s2 {int (*f) (double a);};
6476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6477 int argc;
6478 char **argv;
6480 main ()
6482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6484 return 0;
6486 _ACEOF
6487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6490 CC="$ac_save_CC $ac_arg"
6491 if ac_fn_c_try_compile "$LINENO"; then :
6492 ac_cv_prog_cc_c89=$ac_arg
6494 rm -f core conftest.err conftest.$ac_objext
6495 test "x$ac_cv_prog_cc_c89" != "xno" && break
6496 done
6497 rm -f conftest.$ac_ext
6498 CC=$ac_save_CC
6501 # AC_CACHE_VAL
6502 case "x$ac_cv_prog_cc_c89" in
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6505 $as_echo "none needed" >&6; } ;;
6506 xno)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6508 $as_echo "unsupported" >&6; } ;;
6510 CC="$CC $ac_cv_prog_cc_c89"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6513 esac
6514 if test "x$ac_cv_prog_cc_c89" != xno; then :
6515 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6516 else
6517 ac_cv_prog_cc_stdc=no
6522 esac
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6524 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6525 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6529 case $ac_cv_prog_cc_stdc in #(
6530 no) :
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6532 $as_echo "unsupported" >&6; } ;; #(
6533 '') :
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6535 $as_echo "none needed" >&6; } ;; #(
6536 *) :
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6538 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6539 esac
6543 # Code from module alloca-opt:
6544 # Code from module allocator:
6545 # Code from module arg-nonnull:
6546 # Code from module c++defs:
6547 # Code from module careadlinkat:
6548 # Code from module crypto/md5:
6549 # Code from module crypto/sha1:
6550 # Code from module crypto/sha256:
6551 # Code from module crypto/sha512:
6552 # Code from module dosname:
6553 # Code from module dtoastr:
6554 # Code from module dup2:
6555 # Code from module extensions:
6557 # Code from module filemode:
6558 # Code from module getloadavg:
6559 # Code from module getopt-gnu:
6560 # Code from module getopt-posix:
6561 # Code from module gettext-h:
6562 # Code from module ignore-value:
6563 # Code from module include_next:
6564 # Code from module intprops:
6565 # Code from module inttypes-incomplete:
6566 # Code from module lstat:
6567 # Code from module mktime:
6568 # Code from module multiarch:
6569 # Code from module readlink:
6570 # Code from module socklen:
6571 # Code from module ssize_t:
6572 # Code from module stat:
6573 # Code from module stdarg:
6575 # Code from module stdbool:
6576 # Code from module stddef:
6577 # Code from module stdint:
6578 # Code from module stdio:
6579 # Code from module stdlib:
6580 # Code from module strftime:
6581 # Code from module strtoull:
6582 # Code from module strtoumax:
6583 # Code from module symlink:
6584 # Code from module sys_stat:
6585 # Code from module time:
6586 # Code from module time_r:
6587 # Code from module u64:
6588 # Code from module unistd:
6589 # Code from module verify:
6590 # Code from module warn-on-use:
6593 # On Suns, sometimes $CPP names a directory.
6594 if test -n "$CPP" && test -d "$CPP"; then
6595 CPP=
6598 ## If not using gcc, and on Solaris, and no CPP specified, see if
6599 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6600 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6601 test x"$CPP" = x; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6603 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6604 if test "${emacs_cv_sunpro_c+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6611 main ()
6613 #ifndef __SUNPRO_C
6614 fail;
6615 #endif
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_link "$LINENO"; then :
6622 emacs_cv_sunpro_c=yes
6623 else
6624 emacs_cv_sunpro_c=no
6626 rm -f core conftest.err conftest.$ac_objext \
6627 conftest$ac_exeext conftest.$ac_ext
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6631 $as_echo "$emacs_cv_sunpro_c" >&6; }
6633 if test x"$emacs_cv_sunpro_c" = xyes; then
6634 NON_GNU_CPP="$CC -E -Xs"
6638 #### Some systems specify a CPP to use unless we are using GCC.
6639 #### Now that we know whether we are using GCC, we can decide whether
6640 #### to use that one.
6641 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6642 then
6643 CPP="$NON_GNU_CPP"
6646 #### Some systems specify a CC to use unless we are using GCC.
6647 #### Now that we know whether we are using GCC, we can decide whether
6648 #### to use that one.
6649 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6650 test x$cc_specified != xyes
6651 then
6652 CC="$NON_GNU_CC"
6655 if test x$GCC = xyes; then
6656 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6657 else
6658 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6661 ### Use -Wdeclaration-after-statement if the compiler supports it
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6663 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6664 SAVE_CFLAGS="$CFLAGS"
6665 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 main ()
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 has_option=yes
6679 else
6680 has_option=no
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 if test $has_option = yes; then
6684 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6687 $as_echo "$has_option" >&6; }
6688 CFLAGS="$SAVE_CFLAGS"
6689 unset has_option
6690 unset SAVE_CFLAGS
6692 ### Use -Wold-style-definition if the compiler supports it
6693 # This can be removed when conversion to standard C is finished.
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6695 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6696 SAVE_CFLAGS="$CFLAGS"
6697 CFLAGS="$CFLAGS -Wold-style-definition"
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6702 main ()
6706 return 0;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 has_option=yes
6711 else
6712 has_option=no
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 if test $has_option = yes; then
6716 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6719 $as_echo "$has_option" >&6; }
6720 CFLAGS="$SAVE_CFLAGS"
6721 unset has_option
6722 unset SAVE_CFLAGS
6724 ### Use -Wimplicit-function-declaration if the compiler supports it
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6726 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6727 SAVE_CFLAGS="$CFLAGS"
6728 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6733 main ()
6737 return 0;
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 has_option=yes
6742 else
6743 has_option=no
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 if test $has_option = yes; then
6747 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6750 $as_echo "$has_option" >&6; }
6751 CFLAGS="$SAVE_CFLAGS"
6752 unset has_option
6753 unset SAVE_CFLAGS
6758 #### Some other nice autoconf tests.
6760 ac_ext=c
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6766 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6767 # On Suns, sometimes $CPP names a directory.
6768 if test -n "$CPP" && test -d "$CPP"; then
6769 CPP=
6771 if test -z "$CPP"; then
6772 if test "${ac_cv_prog_CPP+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 # Double quotes because CPP needs to be expanded
6776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6778 ac_preproc_ok=false
6779 for ac_c_preproc_warn_flag in '' yes
6781 # Use a header file that comes with gcc, so configuring glibc
6782 # with a fresh cross-compiler works.
6783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6784 # <limits.h> exists even on freestanding compilers.
6785 # On the NeXT, cc -E runs the code through the compiler's parser,
6786 # not just through cpp. "Syntax error" is here to catch this case.
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #ifdef __STDC__
6790 # include <limits.h>
6791 #else
6792 # include <assert.h>
6793 #endif
6794 Syntax error
6795 _ACEOF
6796 if ac_fn_c_try_cpp "$LINENO"; then :
6798 else
6799 # Broken: fails on valid input.
6800 continue
6802 rm -f conftest.err conftest.$ac_ext
6804 # OK, works on sane cases. Now check whether nonexistent headers
6805 # can be detected and how.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <ac_nonexistent.h>
6809 _ACEOF
6810 if ac_fn_c_try_cpp "$LINENO"; then :
6811 # Broken: success on invalid input.
6812 continue
6813 else
6814 # Passes both tests.
6815 ac_preproc_ok=:
6816 break
6818 rm -f conftest.err conftest.$ac_ext
6820 done
6821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6822 rm -f conftest.err conftest.$ac_ext
6823 if $ac_preproc_ok; then :
6824 break
6827 done
6828 ac_cv_prog_CPP=$CPP
6831 CPP=$ac_cv_prog_CPP
6832 else
6833 ac_cv_prog_CPP=$CPP
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6836 $as_echo "$CPP" >&6; }
6837 ac_preproc_ok=false
6838 for ac_c_preproc_warn_flag in '' yes
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error" is here to catch this case.
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #ifdef __STDC__
6849 # include <limits.h>
6850 #else
6851 # include <assert.h>
6852 #endif
6853 Syntax error
6854 _ACEOF
6855 if ac_fn_c_try_cpp "$LINENO"; then :
6857 else
6858 # Broken: fails on valid input.
6859 continue
6861 rm -f conftest.err conftest.$ac_ext
6863 # OK, works on sane cases. Now check whether nonexistent headers
6864 # can be detected and how.
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 #include <ac_nonexistent.h>
6868 _ACEOF
6869 if ac_fn_c_try_cpp "$LINENO"; then :
6870 # Broken: success on invalid input.
6871 continue
6872 else
6873 # Passes both tests.
6874 ac_preproc_ok=:
6875 break
6877 rm -f conftest.err conftest.$ac_ext
6879 done
6880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881 rm -f conftest.err conftest.$ac_ext
6882 if $ac_preproc_ok; then :
6884 else
6885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6887 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6888 See \`config.log' for more details." "$LINENO" 5; }
6891 ac_ext=c
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898 if test "x$RANLIB" = x; then
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$RANLIB"; then
6908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6921 done
6922 done
6923 IFS=$as_save_IFS
6927 RANLIB=$ac_cv_prog_RANLIB
6928 if test -n "$RANLIB"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6930 $as_echo "$RANLIB" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6938 if test -z "$ac_cv_prog_RANLIB"; then
6939 ac_ct_RANLIB=$RANLIB
6940 # Extract the first word of "ranlib", so it can be a program name with args.
6941 set dummy ranlib; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_RANLIB"; then
6948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_RANLIB="ranlib"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6961 done
6962 done
6963 IFS=$as_save_IFS
6967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968 if test -n "$ac_ct_RANLIB"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6970 $as_echo "$ac_ct_RANLIB" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6976 if test "x$ac_ct_RANLIB" = x; then
6977 RANLIB=":"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 RANLIB=$ac_ct_RANLIB
6987 else
6988 RANLIB="$ac_cv_prog_RANLIB"
6993 ## Although we're running on an amd64 kernel, we're actually compiling for
6994 ## the x86 architecture. The user should probably have provided an
6995 ## explicit --build to `configure', but if everything else than the kernel
6996 ## is running in i386 mode, we can help them out.
6997 if test "$machine" = "amdx86-64"; then
6998 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6999 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7003 if test "$ac_cv_have_decl_i386" = "yes"; then
7004 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7005 machine=intel386
7006 machfile="m/${machine}.h"
7010 # Extract the first word of "install-info", so it can be a program name with args.
7011 set dummy install-info; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 case $INSTALL_INFO in
7018 [\\/]* | ?:[\\/]*)
7019 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7033 done
7034 done
7035 IFS=$as_save_IFS
7038 esac
7040 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7041 if test -n "$INSTALL_INFO"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7043 $as_echo "$INSTALL_INFO" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7050 # Extract the first word of "install-info", so it can be a program name with args.
7051 set dummy install-info; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 case $INSTALL_INFO in
7058 [\\/]* | ?:[\\/]*)
7059 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in /usr/sbin
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7073 done
7074 done
7075 IFS=$as_save_IFS
7078 esac
7080 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7081 if test -n "$INSTALL_INFO"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7083 $as_echo "$INSTALL_INFO" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7090 # Extract the first word of "install-info", so it can be a program name with args.
7091 set dummy install-info; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 case $INSTALL_INFO in
7098 [\\/]* | ?:[\\/]*)
7099 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in /sbin
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7113 done
7114 done
7115 IFS=$as_save_IFS
7117 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7119 esac
7121 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7122 if test -n "$INSTALL_INFO"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7124 $as_echo "$INSTALL_INFO" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7131 # Extract the first word of "gzip", so it can be a program name with args.
7132 set dummy gzip; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 case $GZIP_PROG in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7154 done
7155 done
7156 IFS=$as_save_IFS
7159 esac
7161 GZIP_PROG=$ac_cv_path_GZIP_PROG
7162 if test -n "$GZIP_PROG"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7164 $as_echo "$GZIP_PROG" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7173 ## Need makeinfo >= 4.6 (?) to build the manuals.
7174 # Extract the first word of "makeinfo", so it can be a program name with args.
7175 set dummy makeinfo; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 case $MAKEINFO in
7182 [\\/]* | ?:[\\/]*)
7183 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7197 done
7198 done
7199 IFS=$as_save_IFS
7201 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7203 esac
7205 MAKEINFO=$ac_cv_path_MAKEINFO
7206 if test -n "$MAKEINFO"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7208 $as_echo "$MAKEINFO" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7215 if test "$MAKEINFO" != "no" && \
7216 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
7217 MAKEINFO=no
7220 ## Makeinfo is unusual. For a released Emacs, the manuals are
7221 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7222 ## therefore in the category of "special tools" not normally required, which
7223 ## configure does not have to check for (eg autoconf itself).
7224 ## In a Bazaar checkout on the other hand, the manuals are not included.
7225 ## So makeinfo is a requirement to build from Bazaar, and configure
7226 ## should test for it as it does for any other build requirement.
7227 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7228 ## with pre-built manuals, from a Bazaar checkout.
7229 HAVE_MAKEINFO=yes
7231 if test "$MAKEINFO" = "no"; then
7232 MAKEINFO=makeinfo
7233 if test "x${with_makeinfo}" = "xno"; then
7234 HAVE_MAKEINFO=no
7235 elif test ! -e $srcdir/info/emacs; then
7236 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7237 source tree does not seem to have pre-built manuals in the \`info' directory.
7238 Either install a suitable version of makeinfo, or re-run configure
7239 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7245 if test x$GCC = xyes; then
7246 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7247 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7248 else
7249 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7250 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7254 late_LDFLAGS=$LDFLAGS
7255 if test x$GCC = xyes; then
7256 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7257 else
7258 LDFLAGS="$LDFLAGS -znocombreloc"
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7262 $as_echo_n "checking for -znocombreloc... " >&6; }
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7267 main ()
7271 return 0;
7273 _ACEOF
7274 if ac_fn_c_try_link "$LINENO"; then :
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7276 $as_echo "yes" >&6; }
7277 else
7278 LDFLAGS=$late_LDFLAGS
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7282 rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7286 # The value of CPP is a quoted variable reference, so we need to do this
7287 # to get its actual value...
7288 CPP=`eval "echo $CPP"`
7291 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7292 case "$opsys" in
7293 your-opsys-here) CANNOT_DUMP=yes ;;
7294 esac
7296 test "$CANNOT_DUMP" = "yes" && \
7298 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7304 UNEXEC_OBJ=unexelf.o
7305 case "$opsys" in
7306 # MSDOS uses unexcoff.o
7307 # MSWindows uses unexw32.o
7308 aix4-2)
7309 UNEXEC_OBJ=unexaix.o
7311 cygwin)
7312 UNEXEC_OBJ=unexcw.o
7314 darwin)
7315 UNEXEC_OBJ=unexmacosx.o
7317 hpux10-20 | hpux11)
7318 UNEXEC_OBJ=unexhp9k800.o
7320 sol2-10)
7321 # Use the Solaris dldump() function, called from unexsol.c, to dump
7322 # emacs, instead of the generic ELF dump code found in unexelf.c.
7323 # The resulting binary has a complete symbol table, and is better
7324 # for debugging and other observability tools (debuggers, pstack, etc).
7326 # If you encounter a problem using dldump(), please consider sending
7327 # a message to the OpenSolaris tools-linking mailing list:
7328 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7330 # It is likely that dldump() works with older Solaris too, but this has
7331 # not been tested, so for now this change is for Solaris 10 or newer.
7332 UNEXEC_OBJ=unexsol.o
7334 esac
7336 LD_SWITCH_SYSTEM=
7337 case "$opsys" in
7338 freebsd)
7339 ## Let `ld' find image libs and similar things in /usr/local/lib.
7340 ## The system compiler, GCC, has apparently been modified to not
7341 ## look there, contrary to what a stock GCC would do.
7342 LD_SWITCH_SYSTEM=-L/usr/local/lib
7345 gnu-linux)
7346 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7347 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7350 netbsd)
7351 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7354 openbsd)
7355 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7356 ## otherwise Emacs dumps core on elf systems.
7357 LD_SWITCH_SYSTEM="-Z"
7359 esac
7362 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7364 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7365 ## which has not been defined yet. When this was handled with cpp,
7366 ## it was expanded to null when configure sourced the s/*.h file.
7367 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7368 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7369 ## (or somesuch), but because it is supposed to go at the _front_
7370 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7371 ## Compare with the gnu-linux case below, which added to the end
7372 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7373 ## LD_SWITCH_SYSTEM_TEMACS.
7374 case "$opsys" in
7375 netbsd|openbsd)
7376 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7377 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7378 esac
7381 C_SWITCH_MACHINE=
7382 if test "$machine" = "alpha"; then
7383 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7384 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7388 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7389 ## With ELF, make sure that all common symbols get allocated to in the
7390 ## data section. Otherwise, the dump of temacs may miss variables in
7391 ## the shared library that have been initialized. For example, with
7392 ## GNU libc, __malloc_initialized would normally be resolved to the
7393 ## shared library's .bss section, which is fatal.
7394 if test "x$GCC" = "xyes"; then
7395 C_SWITCH_MACHINE="-fno-common"
7396 else
7397 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7399 else
7400 UNEXEC_OBJ=unexalpha.o
7407 C_SWITCH_SYSTEM=
7408 ## Some programs in src produce warnings saying certain subprograms
7409 ## are too complex and need a MAXMEM value greater than 2000 for
7410 ## additional optimization. --nils@exp-math.uni-essen.de
7411 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7412 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7413 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7414 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7418 LIBS_SYSTEM=
7419 case "$opsys" in
7420 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7421 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7423 freebsd) LIBS_SYSTEM="-lutil" ;;
7425 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7427 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7429 ## Motif needs -lgen.
7430 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7431 esac
7435 ### Make sure subsequent tests use flags consistent with the build flags.
7437 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7438 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7439 else
7440 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7443 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7446 # Check whether --enable-largefile was given.
7447 if test "${enable_largefile+set}" = set; then :
7448 enableval=$enable_largefile;
7451 if test "$enable_largefile" != no; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7454 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7455 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 ac_cv_sys_largefile_CC=no
7459 if test "$GCC" != yes; then
7460 ac_save_CC=$CC
7461 while :; do
7462 # IRIX 6.2 and later do not support large files by default,
7463 # so use the C compiler's -n32 option if that helps.
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 /* Check that off_t can represent 2**63 - 1 correctly.
7468 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7469 since some C++ compilers masquerading as C compilers
7470 incorrectly reject 9223372036854775807. */
7471 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7473 && LARGE_OFF_T % 2147483647 == 1)
7474 ? 1 : -1];
7476 main ()
7480 return 0;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 break
7486 rm -f core conftest.err conftest.$ac_objext
7487 CC="$CC -n32"
7488 if ac_fn_c_try_compile "$LINENO"; then :
7489 ac_cv_sys_largefile_CC=' -n32'; break
7491 rm -f core conftest.err conftest.$ac_objext
7492 break
7493 done
7494 CC=$ac_save_CC
7495 rm -f conftest.$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7499 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7500 if test "$ac_cv_sys_largefile_CC" != no; then
7501 CC=$CC$ac_cv_sys_largefile_CC
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7505 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 while :; do
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <sys/types.h>
7513 /* Check that off_t can represent 2**63 - 1 correctly.
7514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7515 since some C++ compilers masquerading as C compilers
7516 incorrectly reject 9223372036854775807. */
7517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7519 && LARGE_OFF_T % 2147483647 == 1)
7520 ? 1 : -1];
7522 main ()
7526 return 0;
7528 _ACEOF
7529 if ac_fn_c_try_compile "$LINENO"; then :
7530 ac_cv_sys_file_offset_bits=no; break
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 #define _FILE_OFFSET_BITS 64
7536 #include <sys/types.h>
7537 /* Check that off_t can represent 2**63 - 1 correctly.
7538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7539 since some C++ compilers masquerading as C compilers
7540 incorrectly reject 9223372036854775807. */
7541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7543 && LARGE_OFF_T % 2147483647 == 1)
7544 ? 1 : -1];
7546 main ()
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 ac_cv_sys_file_offset_bits=64; break
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 ac_cv_sys_file_offset_bits=unknown
7558 break
7559 done
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7562 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7563 case $ac_cv_sys_file_offset_bits in #(
7564 no | unknown) ;;
7566 cat >>confdefs.h <<_ACEOF
7567 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7568 _ACEOF
7570 esac
7571 rm -rf conftest*
7572 if test $ac_cv_sys_file_offset_bits = unknown; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7574 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7575 if test "${ac_cv_sys_large_files+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 while :; do
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <sys/types.h>
7582 /* Check that off_t can represent 2**63 - 1 correctly.
7583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7584 since some C++ compilers masquerading as C compilers
7585 incorrectly reject 9223372036854775807. */
7586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7588 && LARGE_OFF_T % 2147483647 == 1)
7589 ? 1 : -1];
7591 main ()
7595 return 0;
7597 _ACEOF
7598 if ac_fn_c_try_compile "$LINENO"; then :
7599 ac_cv_sys_large_files=no; break
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #define _LARGE_FILES 1
7605 #include <sys/types.h>
7606 /* Check that off_t can represent 2**63 - 1 correctly.
7607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7608 since some C++ compilers masquerading as C compilers
7609 incorrectly reject 9223372036854775807. */
7610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7612 && LARGE_OFF_T % 2147483647 == 1)
7613 ? 1 : -1];
7615 main ()
7619 return 0;
7621 _ACEOF
7622 if ac_fn_c_try_compile "$LINENO"; then :
7623 ac_cv_sys_large_files=1; break
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 ac_cv_sys_large_files=unknown
7627 break
7628 done
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7631 $as_echo "$ac_cv_sys_large_files" >&6; }
7632 case $ac_cv_sys_large_files in #(
7633 no | unknown) ;;
7635 cat >>confdefs.h <<_ACEOF
7636 #define _LARGE_FILES $ac_cv_sys_large_files
7637 _ACEOF
7639 esac
7640 rm -rf conftest*
7646 ## If user specified a crt-dir, use that unconditionally.
7647 if test "X$CRT_DIR" = "X"; then
7649 case "$canonical" in
7650 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7651 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7652 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7653 ## For anything else (eg /usr/lib32), it is up the user to specify
7654 ## the location (bug#5655).
7655 ## Test for crtn.o, not just the directory, because sometimes the
7656 ## directory exists but does not have the relevant files (bug#1287).
7657 ## FIXME better to test for binary compatibility somehow.
7658 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7661 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7662 esac
7664 case "$opsys" in
7665 hpux10-20) CRT_DIR=/lib ;;
7666 esac
7668 ## Default is /usr/lib.
7669 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7671 ## If we're using gcc, try to determine it automatically by asking
7672 ## gcc. [If this doesn't work, CRT_DIR will remain at the
7673 ## system-dependent default from above.]
7674 if test "x${GCC}" = xyes; then
7675 crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
7676 case "$crt_file" in
7677 */*)
7678 CRT_DIR=`$as_dirname -- "$crt_file" ||
7679 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7680 X"$crt_file" : 'X\(//\)[^/]' \| \
7681 X"$crt_file" : 'X\(//\)$' \| \
7682 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
7683 $as_echo X"$crt_file" |
7684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7685 s//\1/
7688 /^X\(\/\/\)[^/].*/{
7689 s//\1/
7692 /^X\(\/\/\)$/{
7693 s//\1/
7696 /^X\(\/\).*/{
7697 s//\1/
7700 s/.*/./; q'`
7702 esac
7705 else
7707 ## Some platforms don't use any of these files, so it is not
7708 ## appropriate to put this test outside the if block.
7709 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7710 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7716 LIB_MATH=-lm
7717 LIB_STANDARD=
7718 START_FILES=
7720 case $opsys in
7721 cygwin )
7722 LIB_MATH=
7723 START_FILES='pre-crt0.o'
7725 darwin )
7726 ## Adding -lm confuses the dynamic linker, so omit it.
7727 LIB_MATH=
7728 START_FILES='pre-crt0.o'
7730 freebsd )
7731 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7732 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7734 gnu-linux | gnu-kfreebsd )
7735 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7736 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7738 hpux10-20 | hpux11 )
7739 LIB_STANDARD=-lc
7740 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7742 netbsd | openbsd )
7743 if test -f $CRT_DIR/crti.o; then
7744 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7745 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7746 else
7747 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7748 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7751 esac
7759 if test "${with_sound}" != "no"; then
7760 # Sound support for GNU/Linux and the free BSDs.
7761 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7762 do :
7763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7765 eval as_val=\$$as_ac_Header
7766 if test "x$as_val" = x""yes; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7769 _ACEOF
7770 have_sound_header=yes
7773 done
7775 # Emulation library used on NetBSD.
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7777 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7778 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-lossaudio $LIBS"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char _oss_ioctl ();
7794 main ()
7796 return _oss_ioctl ();
7798 return 0;
7800 _ACEOF
7801 if ac_fn_c_try_link "$LINENO"; then :
7802 ac_cv_lib_ossaudio__oss_ioctl=yes
7803 else
7804 ac_cv_lib_ossaudio__oss_ioctl=no
7806 rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7811 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7812 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7813 LIBSOUND=-lossaudio
7814 else
7815 LIBSOUND=
7820 ALSA_REQUIRED=1.0.0
7821 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7823 succeeded=no
7825 # Extract the first word of "pkg-config", so it can be a program name with args.
7826 set dummy pkg-config; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 case $PKG_CONFIG in
7833 [\\/]* | ?:[\\/]*)
7834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7850 IFS=$as_save_IFS
7852 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7854 esac
7856 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7857 if test -n "$PKG_CONFIG"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7859 $as_echo "$PKG_CONFIG" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7867 if test "$PKG_CONFIG" = "no" ; then
7868 HAVE_ALSA=no
7869 else
7870 PKG_CONFIG_MIN_VERSION=0.9.0
7871 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7873 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7875 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7877 $as_echo "yes" >&6; }
7878 succeeded=yes
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7881 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7882 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7884 $as_echo "$ALSA_CFLAGS" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7887 $as_echo_n "checking ALSA_LIBS... " >&6; }
7888 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7890 $as_echo "$ALSA_LIBS" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 ALSA_CFLAGS=""
7895 ALSA_LIBS=""
7896 ## If we have a custom action on failure, don't print errors, but
7897 ## do set a variable so people can do so.
7898 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7904 else
7905 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7906 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7910 if test $succeeded = yes; then
7911 HAVE_ALSA=yes
7912 else
7913 HAVE_ALSA=no
7916 if test $HAVE_ALSA = yes; then
7917 SAVE_CFLAGS="$CFLAGS"
7918 SAVE_LDFLAGS="$LDFLAGS"
7919 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7920 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <asoundlib.h>
7925 main ()
7927 snd_lib_error_set_handler (0);
7929 return 0;
7931 _ACEOF
7932 if ac_fn_c_try_compile "$LINENO"; then :
7933 emacs_alsa_normal=yes
7934 else
7935 emacs_alsa_normal=no
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 if test "$emacs_alsa_normal" != yes; then
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <alsa/asoundlib.h>
7943 main ()
7945 snd_lib_error_set_handler (0);
7947 return 0;
7949 _ACEOF
7950 if ac_fn_c_try_compile "$LINENO"; then :
7951 emacs_alsa_subdir=yes
7952 else
7953 emacs_alsa_subdir=no
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 if test "$emacs_alsa_subdir" != yes; then
7957 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7959 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7962 CFLAGS="$SAVE_CFLAGS"
7963 LDFLAGS="$SAVE_LDFLAGS"
7964 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7965 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7967 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7971 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7972 case "$opsys" in
7973 gnu-linux|freebsd|netbsd)
7975 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7978 esac
7984 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7985 linux/version.h sys/systeminfo.h \
7986 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7987 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7988 sys/utsname.h pwd.h utmp.h dirent.h util.h
7989 do :
7990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7992 eval as_val=\$$as_ac_Header
7993 if test "x$as_val" = x""yes; then :
7994 cat >>confdefs.h <<_ACEOF
7995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7996 _ACEOF
8000 done
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8004 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <sys/personality.h>
8009 main ()
8011 personality (PER_LINUX32)
8013 return 0;
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 emacs_cv_personality_linux32=yes
8018 else
8019 emacs_cv_personality_linux32=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8023 $as_echo "$emacs_cv_personality_linux32" >&6; }
8025 if test $emacs_cv_personality_linux32 = yes; then
8027 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8031 for ac_header in term.h
8032 do :
8033 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8034 if test "x$ac_cv_header_term_h" = x""yes; then :
8035 cat >>confdefs.h <<_ACEOF
8036 #define HAVE_TERM_H 1
8037 _ACEOF
8041 done
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8044 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8045 if test "${ac_cv_header_time+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050 #include <sys/types.h>
8051 #include <sys/time.h>
8052 #include <time.h>
8055 main ()
8057 if ((struct tm *) 0)
8058 return 0;
8060 return 0;
8062 _ACEOF
8063 if ac_fn_c_try_compile "$LINENO"; then :
8064 ac_cv_header_time=yes
8065 else
8066 ac_cv_header_time=no
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8071 $as_echo "$ac_cv_header_time" >&6; }
8072 if test $ac_cv_header_time = yes; then
8074 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8078 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8079 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8080 ac_have_decl=1
8081 else
8082 ac_have_decl=0
8085 cat >>confdefs.h <<_ACEOF
8086 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8087 _ACEOF
8089 if test $ac_cv_have_decl_sys_siglist != yes; then
8090 # For Tru64, at least:
8091 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8092 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8093 ac_have_decl=1
8094 else
8095 ac_have_decl=0
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8100 _ACEOF
8102 if test $ac_cv_have_decl___sys_siglist = yes; then
8104 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8109 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8110 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <sys/types.h>
8116 #include <sys/wait.h>
8117 #ifndef WEXITSTATUS
8118 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8119 #endif
8120 #ifndef WIFEXITED
8121 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8122 #endif
8125 main ()
8127 int s;
8128 wait (&s);
8129 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8131 return 0;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 ac_cv_header_sys_wait_h=yes
8136 else
8137 ac_cv_header_sys_wait_h=no
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8142 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8143 if test $ac_cv_header_sys_wait_h = yes; then
8145 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8151 $as_echo_n "checking for struct utimbuf... " >&6; }
8152 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #ifdef TIME_WITH_SYS_TIME
8158 #include <sys/time.h>
8159 #include <time.h>
8160 #else
8161 #ifdef HAVE_SYS_TIME_H
8162 #include <sys/time.h>
8163 #else
8164 #include <time.h>
8165 #endif
8166 #endif
8167 #ifdef HAVE_UTIME_H
8168 #include <utime.h>
8169 #endif
8171 main ()
8173 static struct utimbuf x; x.actime = x.modtime;
8175 return 0;
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"; then :
8179 emacs_cv_struct_utimbuf=yes
8180 else
8181 emacs_cv_struct_utimbuf=no
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8186 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8187 if test $emacs_cv_struct_utimbuf = yes; then
8189 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8194 $as_echo_n "checking for speed_t... " >&6; }
8195 if test "${emacs_cv_speed_t+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <termios.h>
8202 main ()
8204 speed_t x = 1;
8206 return 0;
8208 _ACEOF
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 emacs_cv_speed_t=yes
8211 else
8212 emacs_cv_speed_t=no
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8217 $as_echo "$emacs_cv_speed_t" >&6; }
8218 if test $emacs_cv_speed_t = yes; then
8220 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8225 $as_echo_n "checking for struct timeval... " >&6; }
8226 if test "${emacs_cv_struct_timeval+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #ifdef TIME_WITH_SYS_TIME
8232 #include <sys/time.h>
8233 #include <time.h>
8234 #else
8235 #ifdef HAVE_SYS_TIME_H
8236 #include <sys/time.h>
8237 #else
8238 #include <time.h>
8239 #endif
8240 #endif
8242 main ()
8244 static struct timeval x; x.tv_sec = x.tv_usec;
8246 return 0;
8248 _ACEOF
8249 if ac_fn_c_try_compile "$LINENO"; then :
8250 emacs_cv_struct_timeval=yes
8251 else
8252 emacs_cv_struct_timeval=no
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8257 $as_echo "$emacs_cv_struct_timeval" >&6; }
8258 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8259 if test $emacs_cv_struct_timeval = yes; then
8261 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8266 $as_echo_n "checking for struct exception... " >&6; }
8267 if test "${emacs_cv_struct_exception+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 #include <math.h>
8274 main ()
8276 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8278 return 0;
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 emacs_cv_struct_exception=yes
8283 else
8284 emacs_cv_struct_exception=no
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8289 $as_echo "$emacs_cv_struct_exception" >&6; }
8290 HAVE_EXCEPTION=$emacs_cv_struct_exception
8291 if test $emacs_cv_struct_exception != yes; then
8293 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8297 for ac_header in net/if.h
8298 do :
8299 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8300 #if HAVE_SYS_SOCKET_H
8301 #include <sys/socket.h>
8302 #endif
8304 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8305 cat >>confdefs.h <<_ACEOF
8306 #define HAVE_NET_IF_H 1
8307 _ACEOF
8311 done
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8315 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8316 if test "${ac_cv_struct_tm+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 #include <sys/types.h>
8322 #include <time.h>
8325 main ()
8327 struct tm tm;
8328 int *p = &tm.tm_sec;
8329 return !p;
8331 return 0;
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 ac_cv_struct_tm=time.h
8336 else
8337 ac_cv_struct_tm=sys/time.h
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8342 $as_echo "$ac_cv_struct_tm" >&6; }
8343 if test $ac_cv_struct_tm = sys/time.h; then
8345 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8349 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8350 #include <$ac_cv_struct_tm>
8353 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8355 cat >>confdefs.h <<_ACEOF
8356 #define HAVE_STRUCT_TM_TM_ZONE 1
8357 _ACEOF
8362 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8364 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8366 else
8367 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8369 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8370 ac_have_decl=1
8371 else
8372 ac_have_decl=0
8375 cat >>confdefs.h <<_ACEOF
8376 #define HAVE_DECL_TZNAME $ac_have_decl
8377 _ACEOF
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8380 $as_echo_n "checking for tzname... " >&6; }
8381 if test "${ac_cv_var_tzname+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 #include <time.h>
8387 #if !HAVE_DECL_TZNAME
8388 extern char *tzname[];
8389 #endif
8392 main ()
8394 return tzname[0][0];
8396 return 0;
8398 _ACEOF
8399 if ac_fn_c_try_link "$LINENO"; then :
8400 ac_cv_var_tzname=yes
8401 else
8402 ac_cv_var_tzname=no
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8408 $as_echo "$ac_cv_var_tzname" >&6; }
8409 if test $ac_cv_var_tzname = yes; then
8411 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8416 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8418 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8420 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8424 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8425 #if HAVE_SYS_SOCKET_H
8426 #include <sys/socket.h>
8427 #endif
8428 #if HAVE_NET_IF_H
8429 #include <net/if.h>
8430 #endif
8432 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8434 cat >>confdefs.h <<_ACEOF
8435 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8436 _ACEOF
8440 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #if HAVE_NET_IF_H
8445 #include <net/if.h>
8446 #endif
8448 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8450 cat >>confdefs.h <<_ACEOF
8451 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8452 _ACEOF
8456 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8459 #endif
8460 #if HAVE_NET_IF_H
8461 #include <net/if.h>
8462 #endif
8464 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8466 cat >>confdefs.h <<_ACEOF
8467 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8468 _ACEOF
8472 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8475 #endif
8476 #if HAVE_NET_IF_H
8477 #include <net/if.h>
8478 #endif
8480 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8484 _ACEOF
8488 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8491 #endif
8492 #if HAVE_NET_IF_H
8493 #include <net/if.h>
8494 #endif
8496 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8498 cat >>confdefs.h <<_ACEOF
8499 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8500 _ACEOF
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8508 $as_echo_n "checking for function prototypes... " >&6; }
8509 if test "$ac_cv_prog_cc_c89" != no; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8511 $as_echo "yes" >&6; }
8513 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8516 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8524 $as_echo_n "checking for working volatile... " >&6; }
8525 if test "${ac_cv_c_volatile+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8532 main ()
8535 volatile int x;
8536 int * volatile y = (int *) 0;
8537 return !x && !y;
8539 return 0;
8541 _ACEOF
8542 if ac_fn_c_try_compile "$LINENO"; then :
8543 ac_cv_c_volatile=yes
8544 else
8545 ac_cv_c_volatile=no
8547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8550 $as_echo "$ac_cv_c_volatile" >&6; }
8551 if test $ac_cv_c_volatile = no; then
8553 $as_echo "#define volatile /**/" >>confdefs.h
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8558 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8559 if test "${ac_cv_c_const+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8566 main ()
8568 /* FIXME: Include the comments suggested by Paul. */
8569 #ifndef __cplusplus
8570 /* Ultrix mips cc rejects this. */
8571 typedef int charset[2];
8572 const charset cs;
8573 /* SunOS 4.1.1 cc rejects this. */
8574 char const *const *pcpcc;
8575 char **ppc;
8576 /* NEC SVR4.0.2 mips cc rejects this. */
8577 struct point {int x, y;};
8578 static struct point const zero = {0,0};
8579 /* AIX XL C 1.02.0.0 rejects this.
8580 It does not let you subtract one const X* pointer from another in
8581 an arm of an if-expression whose if-part is not a constant
8582 expression */
8583 const char *g = "string";
8584 pcpcc = &g + (g ? g-g : 0);
8585 /* HPUX 7.0 cc rejects these. */
8586 ++pcpcc;
8587 ppc = (char**) pcpcc;
8588 pcpcc = (char const *const *) ppc;
8589 { /* SCO 3.2v4 cc rejects this. */
8590 char *t;
8591 char const *s = 0 ? (char *) 0 : (char const *) 0;
8593 *t++ = 0;
8594 if (s) return 0;
8596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8597 int x[] = {25, 17};
8598 const int *foo = &x[0];
8599 ++foo;
8601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8602 typedef const int *iptr;
8603 iptr p = 0;
8604 ++p;
8606 { /* AIX XL C 1.02.0.0 rejects this saying
8607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8608 struct s { int j; const int *ap[3]; };
8609 struct s *b; b->j = 5;
8611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8612 const int foo = 10;
8613 if (!foo) return 0;
8615 return !cs[0] && !zero.x;
8616 #endif
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"; then :
8623 ac_cv_c_const=yes
8624 else
8625 ac_cv_c_const=no
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8630 $as_echo "$ac_cv_c_const" >&6; }
8631 if test $ac_cv_c_const = no; then
8633 $as_echo "#define const /**/" >>confdefs.h
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8638 $as_echo_n "checking for void * support... " >&6; }
8639 if test "${emacs_cv_void_star+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8646 main ()
8648 void * foo;
8650 return 0;
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"; then :
8654 emacs_cv_void_star=yes
8655 else
8656 emacs_cv_void_star=no
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8661 $as_echo "$emacs_cv_void_star" >&6; }
8662 if test $emacs_cv_void_star = yes; then
8663 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8665 else
8666 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8671 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8672 if test "${ac_cv_c_bigendian+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 ac_cv_c_bigendian=unknown
8676 # See if we're dealing with a universal compiler.
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #ifndef __APPLE_CC__
8680 not a universal capable compiler
8681 #endif
8682 typedef int dummy;
8684 _ACEOF
8685 if ac_fn_c_try_compile "$LINENO"; then :
8687 # Check for potential -arch flags. It is not universal unless
8688 # there are at least two -arch flags with different values.
8689 ac_arch=
8690 ac_prev=
8691 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8692 if test -n "$ac_prev"; then
8693 case $ac_word in
8694 i?86 | x86_64 | ppc | ppc64)
8695 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8696 ac_arch=$ac_word
8697 else
8698 ac_cv_c_bigendian=universal
8699 break
8702 esac
8703 ac_prev=
8704 elif test "x$ac_word" = "x-arch"; then
8705 ac_prev=arch
8707 done
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 if test $ac_cv_c_bigendian = unknown; then
8711 # See if sys/param.h defines the BYTE_ORDER macro.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #include <sys/param.h>
8718 main ()
8720 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8721 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8722 && LITTLE_ENDIAN)
8723 bogus endian macros
8724 #endif
8727 return 0;
8729 _ACEOF
8730 if ac_fn_c_try_compile "$LINENO"; then :
8731 # It does; now see whether it defined to BIG_ENDIAN or not.
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 #include <sys/types.h>
8735 #include <sys/param.h>
8738 main ()
8740 #if BYTE_ORDER != BIG_ENDIAN
8741 not big endian
8742 #endif
8745 return 0;
8747 _ACEOF
8748 if ac_fn_c_try_compile "$LINENO"; then :
8749 ac_cv_c_bigendian=yes
8750 else
8751 ac_cv_c_bigendian=no
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 if test $ac_cv_c_bigendian = unknown; then
8758 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 #include <limits.h>
8764 main ()
8766 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8767 bogus endian macros
8768 #endif
8771 return 0;
8773 _ACEOF
8774 if ac_fn_c_try_compile "$LINENO"; then :
8775 # It does; now see whether it defined to _BIG_ENDIAN or not.
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #include <limits.h>
8781 main ()
8783 #ifndef _BIG_ENDIAN
8784 not big endian
8785 #endif
8788 return 0;
8790 _ACEOF
8791 if ac_fn_c_try_compile "$LINENO"; then :
8792 ac_cv_c_bigendian=yes
8793 else
8794 ac_cv_c_bigendian=no
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 if test $ac_cv_c_bigendian = unknown; then
8801 # Compile a test program.
8802 if test "$cross_compiling" = yes; then :
8803 # Try to guess by grepping values from an object file.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 short int ascii_mm[] =
8807 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8808 short int ascii_ii[] =
8809 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8810 int use_ascii (int i) {
8811 return ascii_mm[i] + ascii_ii[i];
8813 short int ebcdic_ii[] =
8814 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8815 short int ebcdic_mm[] =
8816 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8817 int use_ebcdic (int i) {
8818 return ebcdic_mm[i] + ebcdic_ii[i];
8820 extern int foo;
8823 main ()
8825 return use_ascii (foo) == use_ebcdic (foo);
8827 return 0;
8829 _ACEOF
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8832 ac_cv_c_bigendian=yes
8834 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8835 if test "$ac_cv_c_bigendian" = unknown; then
8836 ac_cv_c_bigendian=no
8837 else
8838 # finding both strings is unlikely to happen, but who knows?
8839 ac_cv_c_bigendian=unknown
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 $ac_includes_default
8849 main ()
8852 /* Are we little or big endian? From Harbison&Steele. */
8853 union
8855 long int l;
8856 char c[sizeof (long int)];
8857 } u;
8858 u.l = 1;
8859 return u.c[sizeof (long int) - 1] == 1;
8862 return 0;
8864 _ACEOF
8865 if ac_fn_c_try_run "$LINENO"; then :
8866 ac_cv_c_bigendian=no
8867 else
8868 ac_cv_c_bigendian=yes
8870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8871 conftest.$ac_objext conftest.beam conftest.$ac_ext
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8877 $as_echo "$ac_cv_c_bigendian" >&6; }
8878 case $ac_cv_c_bigendian in #(
8879 yes)
8880 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8881 ;; #(
8883 ;; #(
8884 universal)
8886 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8888 ;; #(
8890 as_fn_error "unknown endianness
8891 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8892 esac
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8896 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8897 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 char __attribute__ ((__aligned__ (1 << 3))) c;
8904 main ()
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 emacs_cv_attribute_aligned=yes
8913 else
8914 emacs_cv_attribute_aligned=no
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8919 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8920 if test $emacs_cv_attribute_aligned = yes; then
8922 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8927 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8928 set x ${MAKE-make}
8929 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8930 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 cat >conftest.make <<\_ACEOF
8934 SHELL = /bin/sh
8935 all:
8936 @echo '@@@%%%=$(MAKE)=@@@%%%'
8937 _ACEOF
8938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8940 *@@@%%%=?*=@@@%%%*)
8941 eval ac_cv_prog_make_${ac_make}_set=yes;;
8943 eval ac_cv_prog_make_${ac_make}_set=no;;
8944 esac
8945 rm -f conftest.make
8947 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8949 $as_echo "yes" >&6; }
8950 SET_MAKE=
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 SET_MAKE="MAKE=${MAKE-make}"
8958 DEPFLAGS=
8959 MKDEPDIR=":"
8960 deps_frag=deps.mk
8961 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8963 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8964 HAVE_GNU_MAKE=no
8965 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8966 if test "x$testval" != x; then
8967 HAVE_GNU_MAKE=yes
8968 else
8969 ac_enable_autodepend=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8972 $as_echo "$HAVE_GNU_MAKE" >&6; }
8973 if test $HAVE_GNU_MAKE = yes; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8975 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8976 SAVE_CFLAGS="$CFLAGS"
8977 CFLAGS="$CFLAGS -MMD -MF deps.d"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8982 main ()
8986 return 0;
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8991 else
8992 ac_enable_autodepend=no
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 CFLAGS="$SAVE_CFLAGS"
8996 test -f deps.d || ac_enable_autodepend=no
8997 rm -rf deps.d
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8999 $as_echo "$ac_enable_autodepend" >&6; }
9001 if test $ac_enable_autodepend = yes; then
9002 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9003 ## In parallel builds, another make might create depdir between
9004 ## the first test and mkdir, so stick another test on the end.
9005 ## Or use install-sh -d? mkdir -p is not portable.
9006 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9007 deps_frag=autodeps.mk
9010 deps_frag=$srcdir/src/$deps_frag
9016 lisp_frag=$srcdir/src/lisp.mk
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9021 $as_echo_n "checking for long file names... " >&6; }
9022 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 ac_cv_sys_long_file_names=yes
9026 # Test for long file names in all the places we know might matter:
9027 # . the current directory, where building will happen
9028 # $prefix/lib where we will be installing things
9029 # $exec_prefix/lib likewise
9030 # $TMPDIR if set, where it might want to write temporary files
9031 # /tmp where it might want to write temporary files
9032 # /var/tmp likewise
9033 # /usr/tmp likewise
9034 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9035 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9036 # in the usual case where exec_prefix is '${prefix}'.
9037 case $ac_dir in #(
9038 . | /* | ?:[\\/]*) ;; #(
9039 *) continue;;
9040 esac
9041 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9042 ac_xdir=$ac_dir/cf$$
9043 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9044 ac_tf1=$ac_xdir/conftest9012345
9045 ac_tf2=$ac_xdir/conftest9012346
9046 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9047 ac_cv_sys_long_file_names=no
9048 rm -f -r "$ac_xdir" 2>/dev/null
9049 test $ac_cv_sys_long_file_names = no && break
9050 done
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9053 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9054 if test $ac_cv_sys_long_file_names = yes; then
9056 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9061 #### Choose a window system.
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9064 $as_echo_n "checking for X... " >&6; }
9067 # Check whether --with-x was given.
9068 if test "${with_x+set}" = set; then :
9069 withval=$with_x;
9072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9073 if test "x$with_x" = xno; then
9074 # The user explicitly disabled X.
9075 have_x=disabled
9076 else
9077 case $x_includes,$x_libraries in #(
9078 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9079 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 # One or both of the vars are not set, and there is no cached value.
9083 ac_x_includes=no ac_x_libraries=no
9084 rm -f -r conftest.dir
9085 if mkdir conftest.dir; then
9086 cd conftest.dir
9087 cat >Imakefile <<'_ACEOF'
9088 incroot:
9089 @echo incroot='${INCROOT}'
9090 usrlibdir:
9091 @echo usrlibdir='${USRLIBDIR}'
9092 libdir:
9093 @echo libdir='${LIBDIR}'
9094 _ACEOF
9095 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9097 for ac_var in incroot usrlibdir libdir; do
9098 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9099 done
9100 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9101 for ac_extension in a so sl dylib la dll; do
9102 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9103 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9104 ac_im_usrlibdir=$ac_im_libdir; break
9106 done
9107 # Screen out bogus values from the imake configuration. They are
9108 # bogus both because they are the default anyway, and because
9109 # using them would break gcc on systems where it needs fixed includes.
9110 case $ac_im_incroot in
9111 /usr/include) ac_x_includes= ;;
9112 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9113 esac
9114 case $ac_im_usrlibdir in
9115 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9116 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9117 esac
9119 cd ..
9120 rm -f -r conftest.dir
9123 # Standard set of common directories for X headers.
9124 # Check X11 before X11Rn because it is often a symlink to the current release.
9125 ac_x_header_dirs='
9126 /usr/X11/include
9127 /usr/X11R7/include
9128 /usr/X11R6/include
9129 /usr/X11R5/include
9130 /usr/X11R4/include
9132 /usr/include/X11
9133 /usr/include/X11R7
9134 /usr/include/X11R6
9135 /usr/include/X11R5
9136 /usr/include/X11R4
9138 /usr/local/X11/include
9139 /usr/local/X11R7/include
9140 /usr/local/X11R6/include
9141 /usr/local/X11R5/include
9142 /usr/local/X11R4/include
9144 /usr/local/include/X11
9145 /usr/local/include/X11R7
9146 /usr/local/include/X11R6
9147 /usr/local/include/X11R5
9148 /usr/local/include/X11R4
9150 /usr/X386/include
9151 /usr/x386/include
9152 /usr/XFree86/include/X11
9154 /usr/include
9155 /usr/local/include
9156 /usr/unsupported/include
9157 /usr/athena/include
9158 /usr/local/x11r5/include
9159 /usr/lpp/Xamples/include
9161 /usr/openwin/include
9162 /usr/openwin/share/include'
9164 if test "$ac_x_includes" = no; then
9165 # Guess where to find include files, by looking for Xlib.h.
9166 # First, try using that file with no special directory specified.
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 #include <X11/Xlib.h>
9170 _ACEOF
9171 if ac_fn_c_try_cpp "$LINENO"; then :
9172 # We can compile using X headers with no special include directory.
9173 ac_x_includes=
9174 else
9175 for ac_dir in $ac_x_header_dirs; do
9176 if test -r "$ac_dir/X11/Xlib.h"; then
9177 ac_x_includes=$ac_dir
9178 break
9180 done
9182 rm -f conftest.err conftest.$ac_ext
9183 fi # $ac_x_includes = no
9185 if test "$ac_x_libraries" = no; then
9186 # Check for the libraries.
9187 # See if we find them without any special options.
9188 # Don't add to $LIBS permanently.
9189 ac_save_LIBS=$LIBS
9190 LIBS="-lX11 $LIBS"
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9195 main ()
9197 XrmInitialize ()
9199 return 0;
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"; then :
9203 LIBS=$ac_save_LIBS
9204 # We can link X programs with no special library path.
9205 ac_x_libraries=
9206 else
9207 LIBS=$ac_save_LIBS
9208 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9210 # Don't even attempt the hair of trying to link an X program!
9211 for ac_extension in a so sl dylib la dll; do
9212 if test -r "$ac_dir/libX11.$ac_extension"; then
9213 ac_x_libraries=$ac_dir
9214 break 2
9216 done
9217 done
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 fi # $ac_x_libraries = no
9223 case $ac_x_includes,$ac_x_libraries in #(
9224 no,* | *,no | *\'*)
9225 # Didn't find X, or a directory has "'" in its name.
9226 ac_cv_have_x="have_x=no";; #(
9228 # Record where we found X for the cache.
9229 ac_cv_have_x="have_x=yes\
9230 ac_x_includes='$ac_x_includes'\
9231 ac_x_libraries='$ac_x_libraries'"
9232 esac
9234 ;; #(
9235 *) have_x=yes;;
9236 esac
9237 eval "$ac_cv_have_x"
9238 fi # $with_x != no
9240 if test "$have_x" != yes; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9242 $as_echo "$have_x" >&6; }
9243 no_x=yes
9244 else
9245 # If each of the values was on the command line, it overrides each guess.
9246 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9247 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9248 # Update the cache value to reflect the command line values.
9249 ac_cv_have_x="have_x=yes\
9250 ac_x_includes='$x_includes'\
9251 ac_x_libraries='$x_libraries'"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9253 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9256 if test "$no_x" = yes; then
9257 window_system=none
9258 else
9259 window_system=x11
9262 ## Workaround for bug in autoconf <= 2.62.
9263 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9264 ## No need to do anything special for these standard directories.
9265 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9267 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9271 LD_SWITCH_X_SITE_AUX=
9272 LD_SWITCH_X_SITE_AUX_RPATH=
9273 if test "${x_libraries}" != NONE; then
9274 if test -n "${x_libraries}"; then
9275 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9276 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9277 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9279 x_default_search_path=""
9280 x_search_path=${x_libraries}
9281 if test -z "${x_search_path}"; then
9282 x_search_path=/usr/lib
9284 for x_library in `echo ${x_search_path}: | \
9285 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9286 x_search_path="\
9287 ${x_library}/X11/%L/%T/%N%C%S:\
9288 ${x_library}/X11/%l/%T/%N%C%S:\
9289 ${x_library}/X11/%T/%N%C%S:\
9290 ${x_library}/X11/%L/%T/%N%S:\
9291 ${x_library}/X11/%l/%T/%N%S:\
9292 ${x_library}/X11/%T/%N%S"
9293 if test x"${x_default_search_path}" = x; then
9294 x_default_search_path=${x_search_path}
9295 else
9296 x_default_search_path="${x_search_path}:${x_default_search_path}"
9298 done
9303 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9304 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9307 if test x"${x_includes}" = x; then
9308 bitmapdir=/usr/include/X11/bitmaps
9309 else
9310 # accumulate include directories that have X11 bitmap subdirectories
9311 bmd_acc="dummyval"
9312 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9313 if test -d "${bmd}/X11/bitmaps"; then
9314 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9316 if test -d "${bmd}/bitmaps"; then
9317 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9319 done
9320 if test ${bmd_acc} != "dummyval"; then
9321 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9325 HAVE_NS=no
9326 NS_IMPL_COCOA=no
9327 NS_IMPL_GNUSTEP=no
9328 tmp_CPPFLAGS="$CPPFLAGS"
9329 tmp_CFLAGS="$CFLAGS"
9330 CPPFLAGS="$CPPFLAGS -x objective-c"
9331 CFLAGS="$CFLAGS -x objective-c"
9332 TEMACS_LDFLAGS2="\${LDFLAGS}"
9333 if test "${with_ns}" != no; then
9334 if test "${opsys}" = darwin; then
9335 NS_IMPL_COCOA=yes
9336 ns_appdir=`pwd`/nextstep/Emacs.app
9337 ns_appbindir=${ns_appdir}/Contents/MacOS/
9338 ns_appresdir=${ns_appdir}/Contents/Resources
9339 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9340 elif test -f $GNUSTEP_CONFIG_FILE; then
9341 NS_IMPL_GNUSTEP=yes
9342 ns_appdir=`pwd`/nextstep/Emacs.app
9343 ns_appbindir=${ns_appdir}/
9344 ns_appresdir=${ns_appdir}/Resources
9345 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9346 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9347 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9348 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9349 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9350 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9351 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9352 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9353 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9356 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9357 LIB_STANDARD=
9358 START_FILES=
9359 TEMACS_LDFLAGS2=
9361 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9362 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9363 HAVE_NS=yes
9364 else
9365 as_fn_error "\`--with-ns' was specified, but the include
9366 files are missing or cannot be compiled." "$LINENO" 5
9370 NS_HAVE_NSINTEGER=yes
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373 #include <Foundation/NSObjCRuntime.h>
9375 main ()
9377 NSInteger i;
9379 return 0;
9381 _ACEOF
9382 if ac_fn_c_try_compile "$LINENO"; then :
9383 ns_have_nsinteger=yes
9384 else
9385 ns_have_nsinteger=no
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 if test $ns_have_nsinteger = no; then
9389 NS_HAVE_NSINTEGER=no
9394 ns_frag=/dev/null
9395 NS_OBJ=
9396 NS_OBJC_OBJ=
9397 if test "${HAVE_NS}" = yes; then
9398 window_system=nextstep
9399 with_xft=no
9400 # set up packaging dirs
9401 exec_prefix=${ns_appbindir}
9402 libexecdir=${ns_appbindir}/libexec
9403 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9404 prefix=${ns_appresdir}
9406 ns_frag=$srcdir/src/ns.mk
9407 NS_OBJ="fontset.o fringe.o image.o"
9408 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9410 CFLAGS="$tmp_CFLAGS"
9411 CPPFLAGS="$tmp_CPPFLAGS"
9417 case "${window_system}" in
9418 x11 )
9419 HAVE_X_WINDOWS=yes
9420 HAVE_X11=yes
9421 case "${with_x_toolkit}" in
9422 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9423 motif ) USE_X_TOOLKIT=MOTIF ;;
9424 gtk ) with_gtk=yes
9425 USE_X_TOOLKIT=none ;;
9426 gtk3 ) with_gtk3=yes
9427 USE_X_TOOLKIT=none ;;
9428 no ) USE_X_TOOLKIT=none ;;
9429 * ) USE_X_TOOLKIT=maybe ;;
9430 esac
9432 nextstep | none )
9433 HAVE_X_WINDOWS=no
9434 HAVE_X11=no
9435 USE_X_TOOLKIT=none
9437 esac
9439 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9440 # Extract the first word of "X", so it can be a program name with args.
9441 set dummy X; ac_word=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 if test -n "$HAVE_XSERVER"; then
9448 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9449 else
9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 for as_dir in $PATH
9453 IFS=$as_save_IFS
9454 test -z "$as_dir" && as_dir=.
9455 for ac_exec_ext in '' $ac_executable_extensions; do
9456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9457 ac_cv_prog_HAVE_XSERVER="true"
9458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 break 2
9461 done
9462 done
9463 IFS=$as_save_IFS
9465 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9468 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9469 if test -n "$HAVE_XSERVER"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9471 $as_echo "$HAVE_XSERVER" >&6; }
9472 else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9478 if test "$HAVE_XSERVER" = true ||
9479 test -n "$DISPLAY" ||
9480 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9481 as_fn_error "You seem to be running X, but no X development libraries
9482 were found. You should install the relevant development files for X
9483 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9484 sure you have development files for image handling, i.e.
9485 tiff, gif, jpeg, png and xpm.
9486 If you are sure you want Emacs compiled without X window support, pass
9487 --without-x
9488 to configure." "$LINENO" 5
9492 ### If we're using X11, we should use the X menu package.
9493 HAVE_MENUS=no
9494 case ${HAVE_X11} in
9495 yes ) HAVE_MENUS=yes ;;
9496 esac
9498 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9499 # Assume not, until told otherwise.
9500 GNU_MALLOC=yes
9501 doug_lea_malloc=yes
9502 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9503 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9505 else
9506 doug_lea_malloc=no
9509 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9510 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9512 else
9513 doug_lea_malloc=no
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9517 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9518 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 extern void (* __after_morecore_hook)();
9525 main ()
9527 __after_morecore_hook = 0
9529 return 0;
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 emacs_cv_var___after_morecore_hook=yes
9534 else
9535 emacs_cv_var___after_morecore_hook=no
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9541 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9542 if test $emacs_cv_var___after_morecore_hook = no; then
9543 doug_lea_malloc=no
9547 system_malloc=no
9548 case "$opsys" in
9549 ## darwin ld insists on the use of malloc routines in the System framework.
9550 darwin|sol2-10) system_malloc=yes ;;
9551 esac
9553 if test "${system_malloc}" = "yes"; then
9555 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9557 GNU_MALLOC=no
9558 GNU_MALLOC_reason="
9559 (The GNU allocators don't work with this system configuration.)"
9560 GMALLOC_OBJ=
9561 VMLIMIT_OBJ=
9562 else
9563 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9564 VMLIMIT_OBJ=vm-limit.o
9569 if test "$doug_lea_malloc" = "yes" ; then
9570 if test "$GNU_MALLOC" = yes ; then
9571 GNU_MALLOC_reason="
9572 (Using Doug Lea's new malloc from the GNU C Library.)"
9575 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9578 ## Use mmap directly for allocating larger buffers.
9579 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9580 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9581 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9582 case "$opsys" in
9583 gnu*) REL_ALLOC=no ;;
9584 esac
9587 if test x"${REL_ALLOC}" = x; then
9588 REL_ALLOC=${GNU_MALLOC}
9591 use_mmap_for_buffers=no
9592 case "$opsys" in
9593 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9594 esac
9599 for ac_header in $ac_header_list
9600 do :
9601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9602 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9604 eval as_val=\$$as_ac_Header
9605 if test "x$as_val" = x""yes; then :
9606 cat >>confdefs.h <<_ACEOF
9607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9608 _ACEOF
9612 done
9621 for ac_func in getpagesize
9622 do :
9623 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9624 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9625 cat >>confdefs.h <<_ACEOF
9626 #define HAVE_GETPAGESIZE 1
9627 _ACEOF
9630 done
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9633 $as_echo_n "checking for working mmap... " >&6; }
9634 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test "$cross_compiling" = yes; then :
9638 ac_cv_func_mmap_fixed_mapped=no
9639 else
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 $ac_includes_default
9643 /* malloc might have been renamed as rpl_malloc. */
9644 #undef malloc
9646 /* Thanks to Mike Haertel and Jim Avera for this test.
9647 Here is a matrix of mmap possibilities:
9648 mmap private not fixed
9649 mmap private fixed at somewhere currently unmapped
9650 mmap private fixed at somewhere already mapped
9651 mmap shared not fixed
9652 mmap shared fixed at somewhere currently unmapped
9653 mmap shared fixed at somewhere already mapped
9654 For private mappings, we should verify that changes cannot be read()
9655 back from the file, nor mmap's back from the file at a different
9656 address. (There have been systems where private was not correctly
9657 implemented like the infamous i386 svr4.0, and systems where the
9658 VM page cache was not coherent with the file system buffer cache
9659 like early versions of FreeBSD and possibly contemporary NetBSD.)
9660 For shared mappings, we should conversely verify that changes get
9661 propagated back to all the places they're supposed to be.
9663 Grep wants private fixed already mapped.
9664 The main things grep needs to know about mmap are:
9665 * does it exist and is it safe to write into the mmap'd area
9666 * how to use it (BSD variants) */
9668 #include <fcntl.h>
9669 #include <sys/mman.h>
9671 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9672 char *malloc ();
9673 #endif
9675 /* This mess was copied from the GNU getpagesize.h. */
9676 #ifndef HAVE_GETPAGESIZE
9677 # ifdef _SC_PAGESIZE
9678 # define getpagesize() sysconf(_SC_PAGESIZE)
9679 # else /* no _SC_PAGESIZE */
9680 # ifdef HAVE_SYS_PARAM_H
9681 # include <sys/param.h>
9682 # ifdef EXEC_PAGESIZE
9683 # define getpagesize() EXEC_PAGESIZE
9684 # else /* no EXEC_PAGESIZE */
9685 # ifdef NBPG
9686 # define getpagesize() NBPG * CLSIZE
9687 # ifndef CLSIZE
9688 # define CLSIZE 1
9689 # endif /* no CLSIZE */
9690 # else /* no NBPG */
9691 # ifdef NBPC
9692 # define getpagesize() NBPC
9693 # else /* no NBPC */
9694 # ifdef PAGESIZE
9695 # define getpagesize() PAGESIZE
9696 # endif /* PAGESIZE */
9697 # endif /* no NBPC */
9698 # endif /* no NBPG */
9699 # endif /* no EXEC_PAGESIZE */
9700 # else /* no HAVE_SYS_PARAM_H */
9701 # define getpagesize() 8192 /* punt totally */
9702 # endif /* no HAVE_SYS_PARAM_H */
9703 # endif /* no _SC_PAGESIZE */
9705 #endif /* no HAVE_GETPAGESIZE */
9708 main ()
9710 char *data, *data2, *data3;
9711 const char *cdata2;
9712 int i, pagesize;
9713 int fd, fd2;
9715 pagesize = getpagesize ();
9717 /* First, make a file with some known garbage in it. */
9718 data = (char *) malloc (pagesize);
9719 if (!data)
9720 return 1;
9721 for (i = 0; i < pagesize; ++i)
9722 *(data + i) = rand ();
9723 umask (0);
9724 fd = creat ("conftest.mmap", 0600);
9725 if (fd < 0)
9726 return 2;
9727 if (write (fd, data, pagesize) != pagesize)
9728 return 3;
9729 close (fd);
9731 /* Next, check that the tail of a page is zero-filled. File must have
9732 non-zero length, otherwise we risk SIGBUS for entire page. */
9733 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9734 if (fd2 < 0)
9735 return 4;
9736 cdata2 = "";
9737 if (write (fd2, cdata2, 1) != 1)
9738 return 5;
9739 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9740 if (data2 == MAP_FAILED)
9741 return 6;
9742 for (i = 0; i < pagesize; ++i)
9743 if (*(data2 + i))
9744 return 7;
9745 close (fd2);
9746 if (munmap (data2, pagesize))
9747 return 8;
9749 /* Next, try to mmap the file at a fixed address which already has
9750 something else allocated at it. If we can, also make sure that
9751 we see the same garbage. */
9752 fd = open ("conftest.mmap", O_RDWR);
9753 if (fd < 0)
9754 return 9;
9755 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9756 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9757 return 10;
9758 for (i = 0; i < pagesize; ++i)
9759 if (*(data + i) != *(data2 + i))
9760 return 11;
9762 /* Finally, make sure that changes to the mapped area do not
9763 percolate back to the file as seen by read(). (This is a bug on
9764 some variants of i386 svr4.0.) */
9765 for (i = 0; i < pagesize; ++i)
9766 *(data2 + i) = *(data2 + i) + 1;
9767 data3 = (char *) malloc (pagesize);
9768 if (!data3)
9769 return 12;
9770 if (read (fd, data3, pagesize) != pagesize)
9771 return 13;
9772 for (i = 0; i < pagesize; ++i)
9773 if (*(data + i) != *(data3 + i))
9774 return 14;
9775 close (fd);
9776 return 0;
9778 _ACEOF
9779 if ac_fn_c_try_run "$LINENO"; then :
9780 ac_cv_func_mmap_fixed_mapped=yes
9781 else
9782 ac_cv_func_mmap_fixed_mapped=no
9784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9785 conftest.$ac_objext conftest.beam conftest.$ac_ext
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9790 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9791 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9793 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9796 rm -f conftest.mmap conftest.txt
9798 if test $use_mmap_for_buffers = yes; then
9800 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9802 REL_ALLOC=no
9805 LIBS="$LIBS_SYSTEM $LIBS"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9808 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9809 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 ac_check_lib_save_LIBS=$LIBS
9813 LIBS="-ldnet $LIBS"
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9817 /* Override any GCC internal prototype to avoid an error.
9818 Use char because int might match the return type of a GCC
9819 builtin and then its argument prototype would still apply. */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 char dnet_ntoa ();
9825 main ()
9827 return dnet_ntoa ();
9829 return 0;
9831 _ACEOF
9832 if ac_fn_c_try_link "$LINENO"; then :
9833 ac_cv_lib_dnet_dnet_ntoa=yes
9834 else
9835 ac_cv_lib_dnet_dnet_ntoa=no
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LIBS=$ac_check_lib_save_LIBS
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9842 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9843 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9844 cat >>confdefs.h <<_ACEOF
9845 #define HAVE_LIBDNET 1
9846 _ACEOF
9848 LIBS="-ldnet $LIBS"
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9854 $as_echo_n "checking for main in -lXbsd... " >&6; }
9855 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 ac_check_lib_save_LIBS=$LIBS
9859 LIBS="-lXbsd $LIBS"
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9865 main ()
9867 return main ();
9869 return 0;
9871 _ACEOF
9872 if ac_fn_c_try_link "$LINENO"; then :
9873 ac_cv_lib_Xbsd_main=yes
9874 else
9875 ac_cv_lib_Xbsd_main=no
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LIBS=$ac_check_lib_save_LIBS
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9882 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9883 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9884 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9888 LIB_PTHREAD=
9889 for ac_header in pthread.h
9890 do :
9891 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9892 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9893 cat >>confdefs.h <<_ACEOF
9894 #define HAVE_PTHREAD_H 1
9895 _ACEOF
9899 done
9901 if test "$ac_cv_header_pthread_h"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9903 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9904 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-lpthread $LIBS"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char pthread_self ();
9920 main ()
9922 return pthread_self ();
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 ac_cv_lib_pthread_pthread_self=yes
9929 else
9930 ac_cv_lib_pthread_pthread_self=no
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9937 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9938 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9939 HAVE_PTHREAD=yes
9943 if test "$HAVE_PTHREAD" = yes; then
9944 case "${canonical}" in
9945 *-hpux*) ;;
9946 *) LIB_PTHREAD="-lpthread" ;;
9947 esac
9949 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9955 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9956 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 ac_check_lib_save_LIBS=$LIBS
9960 LIBS="-lpthreads $LIBS"
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char cma_open ();
9972 main ()
9974 return cma_open ();
9976 return 0;
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 ac_cv_lib_pthreads_cma_open=yes
9981 else
9982 ac_cv_lib_pthreads_cma_open=no
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9989 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9990 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9991 cat >>confdefs.h <<_ACEOF
9992 #define HAVE_LIBPTHREADS 1
9993 _ACEOF
9995 LIBS="-lpthreads $LIBS"
10000 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10001 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10002 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10003 ## added to LIBS in configure would never contain the pthreads part,
10004 ## but the value used in Makefiles might. FIXME?
10006 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10007 ## be harmless on older versions of X where it happens to exist.
10008 test "$opsys" = "aix4-2" && \
10009 test $ac_cv_lib_pthreads_cma_open = yes && \
10010 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10013 case ${host_os} in
10014 aix*)
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10016 $as_echo_n "checking for -bbigtoc option... " >&6; }
10017 if test "${gdb_cv_bigtoc+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10021 case $GCC in
10022 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10023 *) gdb_cv_bigtoc=-bbigtoc ;;
10024 esac
10026 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10031 main ()
10033 int i;
10035 return 0;
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10040 else
10041 gdb_cv_bigtoc=
10043 rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10048 $as_echo "$gdb_cv_bigtoc" >&6; }
10050 esac
10052 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10053 # used for the tests that follow. We set them back to REAL_CFLAGS and
10054 # REAL_CPPFLAGS later on.
10056 REAL_CFLAGS="$CFLAGS"
10057 REAL_CPPFLAGS="$CPPFLAGS"
10059 if test "${HAVE_X11}" = "yes"; then
10060 DEFS="$C_SWITCH_X_SITE $DEFS"
10061 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10062 LIBS="-lX11 $LIBS"
10063 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10064 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10066 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10067 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10068 # but it's more convenient here to set LD_RUN_PATH
10069 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10070 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10071 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10072 export LD_RUN_PATH
10075 if test "${opsys}" = "gnu-linux"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10077 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10082 main ()
10084 XOpenDisplay ("foo");
10086 return 0;
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"; then :
10090 xlinux_first_failure=no
10091 else
10092 xlinux_first_failure=yes
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 if test "${xlinux_first_failure}" = "yes"; then
10097 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10098 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10099 OLD_CPPFLAGS="$CPPFLAGS"
10100 OLD_LIBS="$LIBS"
10101 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10102 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10103 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10104 LIBS="$LIBS -b i486-linuxaout"
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10109 main ()
10111 XOpenDisplay ("foo");
10113 return 0;
10115 _ACEOF
10116 if ac_fn_c_try_link "$LINENO"; then :
10117 xlinux_second_failure=no
10118 else
10119 xlinux_second_failure=yes
10121 rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123 if test "${xlinux_second_failure}" = "yes"; then
10124 # If we get the same failure with -b, there is no use adding -b.
10125 # So take it out. This plays safe.
10126 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10127 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10128 CPPFLAGS="$OLD_CPPFLAGS"
10129 LIBS="$OLD_LIBS"
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10134 $as_echo "yes" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10142 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10143 # header files included from there.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10145 $as_echo_n "checking for Xkb... " >&6; }
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 #include <X11/Xlib.h>
10149 #include <X11/XKBlib.h>
10151 main ()
10153 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10155 return 0;
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10159 emacs_xkb=yes
10160 else
10161 emacs_xkb=no
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10166 $as_echo "$emacs_xkb" >&6; }
10167 if test $emacs_xkb = yes; then
10169 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10173 for ac_func in XrmSetDatabase XScreenResourceString \
10174 XScreenNumberOfScreen XSetWMProtocols
10175 do :
10176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10178 eval as_val=\$$as_ac_var
10179 if test "x$as_val" = x""yes; then :
10180 cat >>confdefs.h <<_ACEOF
10181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10182 _ACEOF
10185 done
10189 if test "${window_system}" = "x11"; then
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10191 $as_echo_n "checking X11 version 6... " >&6; }
10192 if test "${emacs_cv_x11_version_6+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <X11/Xlib.h>
10199 main ()
10201 #if XlibSpecificationRelease < 6
10202 fail;
10203 #endif
10206 return 0;
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210 emacs_cv_x11_version_6=yes
10211 else
10212 emacs_cv_x11_version_6=no
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10218 if test $emacs_cv_x11_version_6 = yes; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10220 $as_echo "6 or newer" >&6; }
10222 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10225 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10227 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10228 ## XIM support.
10229 case "$opsys" in
10230 sol2-*) : ;;
10232 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10235 esac
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10238 $as_echo "before 6" >&6; }
10243 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10244 HAVE_RSVG=no
10245 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10246 if test "${with_rsvg}" != "no"; then
10247 RSVG_REQUIRED=2.11.0
10248 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10251 succeeded=no
10253 # Extract the first word of "pkg-config", so it can be a program name with args.
10254 set dummy pkg-config; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 case $PKG_CONFIG in
10261 [\\/]* | ?:[\\/]*)
10262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10276 done
10277 done
10278 IFS=$as_save_IFS
10280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10282 esac
10284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10285 if test -n "$PKG_CONFIG"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10287 $as_echo "$PKG_CONFIG" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test "$PKG_CONFIG" = "no" ; then
10297 else
10298 PKG_CONFIG_MIN_VERSION=0.9.0
10299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10301 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10303 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; }
10306 succeeded=yes
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10309 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10310 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10312 $as_echo "$RSVG_CFLAGS" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10315 $as_echo_n "checking RSVG_LIBS... " >&6; }
10316 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10318 $as_echo "$RSVG_LIBS" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 RSVG_CFLAGS=""
10323 RSVG_LIBS=""
10324 ## If we have a custom action on failure, don't print errors, but
10325 ## do set a variable so people can do so.
10326 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10332 else
10333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10338 if test $succeeded = yes; then
10339 HAVE_RSVG=yes
10340 else
10347 if test $HAVE_RSVG = yes; then
10349 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10351 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10352 LIBS="$RSVG_LIBS $LIBS"
10357 HAVE_IMAGEMAGICK=no
10358 if test "${HAVE_X11}" = "yes"; then
10359 if test "${with_imagemagick}" != "no"; then
10360 ## 6.2.8 is the earliest version known to work, but earlier versions
10361 ## might work - let us know if you find one.
10362 ## 6.0.7 does not work. See bug#7955.
10363 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10365 succeeded=no
10367 # Extract the first word of "pkg-config", so it can be a program name with args.
10368 set dummy pkg-config; ac_word=$2
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10370 $as_echo_n "checking for $ac_word... " >&6; }
10371 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 case $PKG_CONFIG in
10375 [\\/]* | ?:[\\/]*)
10376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380 for as_dir in $PATH
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10390 done
10391 done
10392 IFS=$as_save_IFS
10394 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10396 esac
10398 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10399 if test -n "$PKG_CONFIG"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10401 $as_echo "$PKG_CONFIG" >&6; }
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test "$PKG_CONFIG" = "no" ; then
10411 else
10412 PKG_CONFIG_MIN_VERSION=0.9.0
10413 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10415 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10417 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419 $as_echo "yes" >&6; }
10420 succeeded=yes
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10423 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10424 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10426 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10429 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10430 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10432 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10433 else
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435 $as_echo "no" >&6; }
10436 IMAGEMAGICK_CFLAGS=""
10437 IMAGEMAGICK_LIBS=""
10438 ## If we have a custom action on failure, don't print errors, but
10439 ## do set a variable so people can do so.
10440 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10446 else
10447 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10448 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10452 if test $succeeded = yes; then
10453 HAVE_IMAGEMAGICK=yes
10454 else
10461 if test $HAVE_IMAGEMAGICK = yes; then
10463 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10465 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10466 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10467 for ac_func in MagickExportImagePixels
10468 do :
10469 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10470 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10471 cat >>confdefs.h <<_ACEOF
10472 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10473 _ACEOF
10476 done
10483 HAVE_GTK=no
10484 GTK_OBJ=
10485 if test "${with_gtk3}" = "yes"; then
10486 GLIB_REQUIRED=2.28
10487 GTK_REQUIRED=3.0
10488 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10491 succeeded=no
10493 # Extract the first word of "pkg-config", so it can be a program name with args.
10494 set dummy pkg-config; ac_word=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 case $PKG_CONFIG in
10501 [\\/]* | ?:[\\/]*)
10502 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506 for as_dir in $PATH
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10512 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10516 done
10517 done
10518 IFS=$as_save_IFS
10520 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10522 esac
10524 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10525 if test -n "$PKG_CONFIG"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10527 $as_echo "$PKG_CONFIG" >&6; }
10528 else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530 $as_echo "no" >&6; }
10535 if test "$PKG_CONFIG" = "no" ; then
10536 pkg_check_gtk=no
10537 else
10538 PKG_CONFIG_MIN_VERSION=0.9.0
10539 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10541 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10543 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545 $as_echo "yes" >&6; }
10546 succeeded=yes
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10549 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10550 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10552 $as_echo "$GTK_CFLAGS" >&6; }
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10555 $as_echo_n "checking GTK_LIBS... " >&6; }
10556 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10558 $as_echo "$GTK_LIBS" >&6; }
10559 else
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10561 $as_echo "no" >&6; }
10562 GTK_CFLAGS=""
10563 GTK_LIBS=""
10564 ## If we have a custom action on failure, don't print errors, but
10565 ## do set a variable so people can do so.
10566 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10572 else
10573 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10574 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10578 if test $succeeded = yes; then
10579 pkg_check_gtk=yes
10580 else
10581 pkg_check_gtk=no
10584 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10585 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10588 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10590 GTK_OBJ=emacsgtkfixed.o
10593 if test "$pkg_check_gtk" != "yes"; then
10594 HAVE_GTK=no
10595 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10596 GLIB_REQUIRED=2.6
10597 GTK_REQUIRED=2.6
10598 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10601 succeeded=no
10603 # Extract the first word of "pkg-config", so it can be a program name with args.
10604 set dummy pkg-config; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 case $PKG_CONFIG in
10611 [\\/]* | ?:[\\/]*)
10612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10626 done
10627 done
10628 IFS=$as_save_IFS
10630 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10632 esac
10634 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10635 if test -n "$PKG_CONFIG"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10637 $as_echo "$PKG_CONFIG" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10645 if test "$PKG_CONFIG" = "no" ; then
10646 pkg_check_gtk=no
10647 else
10648 PKG_CONFIG_MIN_VERSION=0.9.0
10649 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10651 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10653 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655 $as_echo "yes" >&6; }
10656 succeeded=yes
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10659 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10660 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10662 $as_echo "$GTK_CFLAGS" >&6; }
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10665 $as_echo_n "checking GTK_LIBS... " >&6; }
10666 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10668 $as_echo "$GTK_LIBS" >&6; }
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10672 GTK_CFLAGS=""
10673 GTK_LIBS=""
10674 ## If we have a custom action on failure, don't print errors, but
10675 ## do set a variable so people can do so.
10676 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10682 else
10683 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10684 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10688 if test $succeeded = yes; then
10689 pkg_check_gtk=yes
10690 else
10691 pkg_check_gtk=no
10694 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10695 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10700 if test x"$pkg_check_gtk" = xyes; then
10704 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10705 CFLAGS="$CFLAGS $GTK_CFLAGS"
10706 LIBS="$GTK_LIBS $LIBS"
10707 GTK_COMPILES=no
10708 for ac_func in gtk_main
10709 do :
10710 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10711 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_GTK_MAIN 1
10714 _ACEOF
10715 GTK_COMPILES=yes
10717 done
10719 if test "${GTK_COMPILES}" != "yes"; then
10720 if test "$USE_X_TOOLKIT" != "maybe"; then
10721 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10723 else
10724 HAVE_GTK=yes
10726 $as_echo "#define USE_GTK 1" >>confdefs.h
10728 GTK_OBJ="gtkutil.o $GTK_OBJ"
10729 USE_X_TOOLKIT=none
10730 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10734 closing open displays. This is no problem if you just use
10735 one display, but if you use more than one and close one of them
10736 Emacs may crash." >&5
10737 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10738 closing open displays. This is no problem if you just use
10739 one display, but if you use more than one and close one of them
10740 Emacs may crash." >&2;}
10741 sleep 3
10749 if test "${HAVE_GTK}" = "yes"; then
10751 if test "$with_toolkit_scroll_bars" != no; then
10752 with_toolkit_scroll_bars=yes
10755 HAVE_GTK_FILE_SELECTION=no
10756 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10757 #include <gtk/gtk.h>
10759 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10760 HAVE_GTK_FILE_SELECTION=yes
10761 else
10762 HAVE_GTK_FILE_SELECTION=no
10765 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10766 for ac_func in gtk_file_selection_new
10767 do :
10768 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10769 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_GTK_FILE_SELECTION_NEW 1
10772 _ACEOF
10775 done
10780 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10781 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10782 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10783 gtk_orientable_set_orientation
10784 do :
10785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10787 eval as_val=\$$as_ac_var
10788 if test "x$as_val" = x""yes; then :
10789 cat >>confdefs.h <<_ACEOF
10790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10791 _ACEOF
10794 done
10799 HAVE_DBUS=no
10800 DBUS_OBJ=
10801 if test "${with_dbus}" = "yes"; then
10803 succeeded=no
10805 # Extract the first word of "pkg-config", so it can be a program name with args.
10806 set dummy pkg-config; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 case $PKG_CONFIG in
10813 [\\/]* | ?:[\\/]*)
10814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10828 done
10829 done
10830 IFS=$as_save_IFS
10832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10834 esac
10836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10837 if test -n "$PKG_CONFIG"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10839 $as_echo "$PKG_CONFIG" >&6; }
10840 else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10847 if test "$PKG_CONFIG" = "no" ; then
10848 HAVE_DBUS=no
10849 else
10850 PKG_CONFIG_MIN_VERSION=0.9.0
10851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10853 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10855 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10857 $as_echo "yes" >&6; }
10858 succeeded=yes
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10861 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10862 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10864 $as_echo "$DBUS_CFLAGS" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10867 $as_echo_n "checking DBUS_LIBS... " >&6; }
10868 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10870 $as_echo "$DBUS_LIBS" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 DBUS_CFLAGS=""
10875 DBUS_LIBS=""
10876 ## If we have a custom action on failure, don't print errors, but
10877 ## do set a variable so people can do so.
10878 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10884 else
10885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10890 if test $succeeded = yes; then
10891 HAVE_DBUS=yes
10892 else
10893 HAVE_DBUS=no
10896 if test "$HAVE_DBUS" = yes; then
10897 LIBS="$LIBS $DBUS_LIBS"
10899 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10901 for ac_func in dbus_watch_get_unix_fd
10902 do :
10903 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10904 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10907 _ACEOF
10910 done
10912 DBUS_OBJ=dbusbind.o
10917 HAVE_GCONF=no
10918 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10920 succeeded=no
10922 # Extract the first word of "pkg-config", so it can be a program name with args.
10923 set dummy pkg-config; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 case $PKG_CONFIG in
10930 [\\/]* | ?:[\\/]*)
10931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10937 IFS=$as_save_IFS
10938 test -z "$as_dir" && as_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 break 2
10945 done
10946 done
10947 IFS=$as_save_IFS
10949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10951 esac
10953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10954 if test -n "$PKG_CONFIG"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10956 $as_echo "$PKG_CONFIG" >&6; }
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10964 if test "$PKG_CONFIG" = "no" ; then
10965 HAVE_GCONF=no
10966 else
10967 PKG_CONFIG_MIN_VERSION=0.9.0
10968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10970 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10972 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10974 $as_echo "yes" >&6; }
10975 succeeded=yes
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10978 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10979 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10981 $as_echo "$GCONF_CFLAGS" >&6; }
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10984 $as_echo_n "checking GCONF_LIBS... " >&6; }
10985 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10987 $as_echo "$GCONF_LIBS" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10991 GCONF_CFLAGS=""
10992 GCONF_LIBS=""
10993 ## If we have a custom action on failure, don't print errors, but
10994 ## do set a variable so people can do so.
10995 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11001 else
11002 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11003 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11007 if test $succeeded = yes; then
11008 HAVE_GCONF=yes
11009 else
11010 HAVE_GCONF=no
11013 if test "$HAVE_GCONF" = yes; then
11015 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11017 for ac_func in g_type_init
11018 do :
11019 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11020 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11021 cat >>confdefs.h <<_ACEOF
11022 #define HAVE_G_TYPE_INIT 1
11023 _ACEOF
11026 done
11031 HAVE_LIBSELINUX=no
11032 LIBSELINUX_LIBS=
11033 if test "${with_selinux}" = "yes"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11035 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11036 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-lselinux $LIBS"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char lgetfilecon ();
11052 main ()
11054 return lgetfilecon ();
11056 return 0;
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_selinux_lgetfilecon=yes
11061 else
11062 ac_cv_lib_selinux_lgetfilecon=no
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11069 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11070 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11071 HAVE_LIBSELINUX=yes
11072 else
11073 HAVE_LIBSELINUX=no
11076 if test "$HAVE_LIBSELINUX" = yes; then
11078 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11080 LIBSELINUX_LIBS=-lselinux
11085 HAVE_GNUTLS=no
11086 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11087 if test "${with_gnutls}" = "yes" ; then
11089 succeeded=no
11091 # Extract the first word of "pkg-config", so it can be a program name with args.
11092 set dummy pkg-config; ac_word=$2
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094 $as_echo_n "checking for $ac_word... " >&6; }
11095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 case $PKG_CONFIG in
11099 [\\/]* | ?:[\\/]*)
11100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11114 done
11115 done
11116 IFS=$as_save_IFS
11118 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11120 esac
11122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11123 if test -n "$PKG_CONFIG"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11125 $as_echo "$PKG_CONFIG" >&6; }
11126 else
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128 $as_echo "no" >&6; }
11133 if test "$PKG_CONFIG" = "no" ; then
11134 HAVE_GNUTLS=no
11135 else
11136 PKG_CONFIG_MIN_VERSION=0.9.0
11137 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11139 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11141 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144 succeeded=yes
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11147 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11148 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11150 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11153 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11154 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11156 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160 LIBGNUTLS_CFLAGS=""
11161 LIBGNUTLS_LIBS=""
11162 ## If we have a custom action on failure, don't print errors, but
11163 ## do set a variable so people can do so.
11164 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11170 else
11171 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11172 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11176 if test $succeeded = yes; then
11177 HAVE_GNUTLS=yes
11178 else
11179 HAVE_GNUTLS=no
11182 if test "${HAVE_GNUTLS}" = "yes"; then
11184 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11188 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11189 LIBS="$LIBGNUTLS_LIBS $LIBS"
11190 for ac_func in gnutls_certificate_set_verify_function
11191 do :
11192 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11193 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11194 cat >>confdefs.h <<_ACEOF
11195 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11196 _ACEOF
11197 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11199 done
11202 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11204 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11212 HAVE_XAW3D=no
11213 LUCID_LIBW=
11214 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11215 if test "$with_xaw3d" != no; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11217 $as_echo_n "checking for xaw3d... " >&6; }
11218 if test "${emacs_cv_xaw3d+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 #include <X11/Intrinsic.h>
11225 #include <X11/Xaw3d/Simple.h>
11227 main ()
11231 return 0;
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"; then :
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11236 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11237 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 ac_check_lib_save_LIBS=$LIBS
11241 LIBS="-lXaw3d $LIBS"
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11245 /* Override any GCC internal prototype to avoid an error.
11246 Use char because int might match the return type of a GCC
11247 builtin and then its argument prototype would still apply. */
11248 #ifdef __cplusplus
11249 extern "C"
11250 #endif
11251 char XawScrollbarSetThumb ();
11253 main ()
11255 return XawScrollbarSetThumb ();
11257 return 0;
11259 _ACEOF
11260 if ac_fn_c_try_link "$LINENO"; then :
11261 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11262 else
11263 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11265 rm -f core conftest.err conftest.$ac_objext \
11266 conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11270 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11271 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11272 emacs_cv_xaw3d=yes
11273 else
11274 emacs_cv_xaw3d=no
11277 else
11278 emacs_cv_xaw3d=no
11280 rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11284 else
11285 emacs_cv_xaw3d=no
11287 if test $emacs_cv_xaw3d = yes; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11289 $as_echo "yes; using Lucid toolkit" >&6; }
11290 USE_X_TOOLKIT=LUCID
11291 HAVE_XAW3D=yes
11292 LUCID_LIBW=-lXaw3d
11294 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11300 $as_echo_n "checking for libXaw... " >&6; }
11301 if test "${emacs_cv_xaw+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 #include <X11/Intrinsic.h>
11308 #include <X11/Xaw/Simple.h>
11310 main ()
11314 return 0;
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"; then :
11318 emacs_cv_xaw=yes
11319 else
11320 emacs_cv_xaw=no
11322 rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11326 if test $emacs_cv_xaw = yes; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11328 $as_echo "yes; using Lucid toolkit" >&6; }
11329 USE_X_TOOLKIT=LUCID
11330 LUCID_LIBW=-lXaw
11331 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11332 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11333 else
11334 as_fn_error "No X toolkit could be found.
11335 If you are sure you want Emacs compiled without an X toolkit, pass
11336 --with-x-toolkit=no
11337 to configure. Otherwise, install the development libraries for the toolkit
11338 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11343 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11345 LIBXTR6=
11346 if test "${USE_X_TOOLKIT}" != "none"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11348 $as_echo_n "checking X11 toolkit version... " >&6; }
11349 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <X11/Intrinsic.h>
11356 main ()
11358 #if XtSpecificationRelease < 6
11359 fail;
11360 #endif
11363 return 0;
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367 emacs_cv_x11_toolkit_version_6=yes
11368 else
11369 emacs_cv_x11_toolkit_version_6=no
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
11375 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11376 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11378 $as_echo "6 or newer" >&6; }
11380 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11382 LIBXTR6="-lSM -lICE"
11383 case "$opsys" in
11384 ## Use libw.a along with X11R6 Xt.
11385 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11386 esac
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11389 $as_echo "before 6" >&6; }
11392 OLDLIBS="$LIBS"
11393 if test x$HAVE_X11XTR6 = xyes; then
11394 LIBS="-lXt -lSM -lICE $LIBS"
11395 else
11396 LIBS="-lXt $LIBS"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11399 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11400 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-lXmu $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char XmuConvertStandardSelection ();
11416 main ()
11418 return XmuConvertStandardSelection ();
11420 return 0;
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11425 else
11426 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11433 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11434 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11435 cat >>confdefs.h <<_ACEOF
11436 #define HAVE_LIBXMU 1
11437 _ACEOF
11439 LIBS="-lXmu $LIBS"
11443 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11447 LIBXMU=-lXmu
11448 case $opsys in
11449 ## These systems don't supply Xmu.
11450 hpux* | aix4-2 )
11451 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11453 esac
11456 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11457 if test "${HAVE_X11}" = "yes"; then
11458 if test "${USE_X_TOOLKIT}" != "none"; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11460 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11461 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-lXext $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char XShapeQueryExtension ();
11477 main ()
11479 return XShapeQueryExtension ();
11481 return 0;
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_Xext_XShapeQueryExtension=yes
11486 else
11487 ac_cv_lib_Xext_XShapeQueryExtension=no
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11494 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11495 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11496 cat >>confdefs.h <<_ACEOF
11497 #define HAVE_LIBXEXT 1
11498 _ACEOF
11500 LIBS="-lXext $LIBS"
11507 LIBXP=
11508 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11510 $as_echo_n "checking for Motif version 2.1... " >&6; }
11511 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 #include <Xm/Xm.h>
11518 main ()
11520 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11521 int x = 5;
11522 #else
11523 Motif version prior to 2.1.
11524 #endif
11526 return 0;
11528 _ACEOF
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530 emacs_cv_motif_version_2_1=yes
11531 else
11532 emacs_cv_motif_version_2_1=no
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11537 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11538 if test $emacs_cv_motif_version_2_1 = yes; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11540 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11541 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-lXp $LIBS"
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char XpCreateContext ();
11557 main ()
11559 return XpCreateContext ();
11561 return 0;
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_Xp_XpCreateContext=yes
11566 else
11567 ac_cv_lib_Xp_XpCreateContext=no
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11574 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11575 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11576 LIBXP=-lXp
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11581 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11582 if test "${emacs_cv_lesstif+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 # We put this in CFLAGS temporarily to precede other -I options
11586 # that might be in CFLAGS temporarily.
11587 # We put this in CPPFLAGS where it precedes the other -I options.
11588 OLD_CPPFLAGS=$CPPFLAGS
11589 OLD_CFLAGS=$CFLAGS
11590 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11591 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11596 main ()
11598 int x = 5;
11600 return 0;
11602 _ACEOF
11603 if ac_fn_c_try_compile "$LINENO"; then :
11604 emacs_cv_lesstif=yes
11605 else
11606 emacs_cv_lesstif=no
11608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11611 $as_echo "$emacs_cv_lesstif" >&6; }
11612 if test $emacs_cv_lesstif = yes; then
11613 # Make sure this -I option remains in CPPFLAGS after it is set
11614 # back to REAL_CPPFLAGS.
11615 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11616 # have those other -I options anyway. Ultimately, having this
11617 # directory ultimately in CPPFLAGS will be enough.
11618 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11619 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11620 else
11621 CFLAGS=$OLD_CFLAGS
11622 CPPFLAGS=$OLD_CPPFLAGS
11628 USE_TOOLKIT_SCROLL_BARS=no
11629 if test "${with_toolkit_scroll_bars}" != "no"; then
11630 if test "${USE_X_TOOLKIT}" != "none"; then
11631 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11632 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11634 HAVE_XAW3D=no
11635 USE_TOOLKIT_SCROLL_BARS=yes
11636 elif test "${HAVE_XAW3D}" = "yes"; then
11637 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11639 USE_TOOLKIT_SCROLL_BARS=yes
11641 elif test "${HAVE_GTK}" = "yes"; then
11642 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11644 USE_TOOLKIT_SCROLL_BARS=yes
11645 elif test "${HAVE_NS}" = "yes"; then
11646 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11648 USE_TOOLKIT_SCROLL_BARS=yes
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11655 #include <X11/Xlib.h>
11656 #include <X11/Xresource.h>
11658 main ()
11660 XIMProc callback;
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_compile "$LINENO"; then :
11666 HAVE_XIM=yes
11668 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11670 else
11671 HAVE_XIM=no
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 if test "${with_xim}" != "no"; then
11678 $as_echo "#define USE_XIM 1" >>confdefs.h
11683 if test "${HAVE_XIM}" != "no"; then
11684 late_CFLAGS=$CFLAGS
11685 if test "$GCC" = yes; then
11686 CFLAGS="$CFLAGS --pedantic-errors"
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11691 #include <X11/Xlib.h>
11692 #include <X11/Xresource.h>
11694 main ()
11696 Display *display;
11697 XrmDatabase db;
11698 char *res_name;
11699 char *res_class;
11700 XIMProc callback;
11701 XPointer *client_data;
11702 #ifndef __GNUC__
11703 /* If we're not using GCC, it's probably not XFree86, and this is
11704 probably right, but we can't use something like --pedantic-errors. */
11705 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11706 char*, XIMProc, XPointer*);
11707 #endif
11708 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11709 client_data);
11711 return 0;
11713 _ACEOF
11714 if ac_fn_c_try_compile "$LINENO"; then :
11715 emacs_cv_arg6_star=yes
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 if test "$emacs_cv_arg6_star" = yes; then
11719 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11721 else
11722 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11725 CFLAGS=$late_CFLAGS
11728 ### Start of font-backend (under any platform) section.
11729 # (nothing here yet -- this is a placeholder)
11730 ### End of font-backend (under any platform) section.
11732 ### Start of font-backend (under X11) section.
11733 if test "${HAVE_X11}" = "yes"; then
11735 succeeded=no
11737 # Extract the first word of "pkg-config", so it can be a program name with args.
11738 set dummy pkg-config; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 case $PKG_CONFIG in
11745 [\\/]* | ?:[\\/]*)
11746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11760 done
11761 done
11762 IFS=$as_save_IFS
11764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11766 esac
11768 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11769 if test -n "$PKG_CONFIG"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11771 $as_echo "$PKG_CONFIG" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11779 if test "$PKG_CONFIG" = "no" ; then
11780 HAVE_FC=no
11781 else
11782 PKG_CONFIG_MIN_VERSION=0.9.0
11783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11785 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11787 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 succeeded=yes
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11793 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11794 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11796 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11799 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11800 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11802 $as_echo "$FONTCONFIG_LIBS" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 FONTCONFIG_CFLAGS=""
11807 FONTCONFIG_LIBS=""
11808 ## If we have a custom action on failure, don't print errors, but
11809 ## do set a variable so people can do so.
11810 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11816 else
11817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11822 if test $succeeded = yes; then
11823 HAVE_FC=yes
11824 else
11825 HAVE_FC=no
11829 ## Use -lXft if available, unless `--with-xft=no'.
11830 HAVE_XFT=maybe
11831 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11832 with_xft="no";
11834 if test "x${with_xft}" != "xno"; then
11837 succeeded=no
11839 # Extract the first word of "pkg-config", so it can be a program name with args.
11840 set dummy pkg-config; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 case $PKG_CONFIG in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11862 done
11863 done
11864 IFS=$as_save_IFS
11866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11868 esac
11870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11871 if test -n "$PKG_CONFIG"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11873 $as_echo "$PKG_CONFIG" >&6; }
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11881 if test "$PKG_CONFIG" = "no" ; then
11882 HAVE_XFT=no
11883 else
11884 PKG_CONFIG_MIN_VERSION=0.9.0
11885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11887 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11889 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891 $as_echo "yes" >&6; }
11892 succeeded=yes
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11895 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11896 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11898 $as_echo "$XFT_CFLAGS" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11901 $as_echo_n "checking XFT_LIBS... " >&6; }
11902 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11904 $as_echo "$XFT_LIBS" >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11908 XFT_CFLAGS=""
11909 XFT_LIBS=""
11910 ## If we have a custom action on failure, don't print errors, but
11911 ## do set a variable so people can do so.
11912 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11918 else
11919 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11920 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11924 if test $succeeded = yes; then
11926 else
11927 HAVE_XFT=no
11930 ## Because xftfont.c uses XRenderQueryExtension, we also
11931 ## need to link to -lXrender.
11932 HAVE_XRENDER=no
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11934 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11935 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lXrender $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 char XRenderQueryExtension ();
11951 main ()
11953 return XRenderQueryExtension ();
11955 return 0;
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11960 else
11961 ac_cv_lib_Xrender_XRenderQueryExtension=no
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11968 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11969 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11970 HAVE_XRENDER=yes
11973 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11974 OLD_CPPFLAGS="$CPPFLAGS"
11975 OLD_CFLAGS="$CFLAGS"
11976 OLD_LIBS="$LIBS"
11977 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11978 CFLAGS="$CFLAGS $XFT_CFLAGS"
11979 XFT_LIBS="-lXrender $XFT_LIBS"
11980 LIBS="$XFT_LIBS $LIBS"
11981 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11982 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11984 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11985 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 ac_check_lib_save_LIBS=$LIBS
11989 LIBS="-lXft $XFT_LIBS $LIBS"
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11993 /* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char XftFontOpen ();
12001 main ()
12003 return XftFontOpen ();
12005 return 0;
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"; then :
12009 ac_cv_lib_Xft_XftFontOpen=yes
12010 else
12011 ac_cv_lib_Xft_XftFontOpen=no
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12015 LIBS=$ac_check_lib_save_LIBS
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12018 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12019 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12020 HAVE_XFT=yes
12027 if test "${HAVE_XFT}" = "yes"; then
12029 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12032 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12033 else
12034 CPPFLAGS="$OLD_CPPFLAGS"
12035 CFLAGS="$OLD_CFLAGS"
12036 LIBS="$OLD_LIBS"
12037 fi # "${HAVE_XFT}" = "yes"
12038 fi # "$HAVE_XFT" != no
12039 fi # "x${with_xft}" != "xno"
12041 ## We used to allow building with FreeType and without Xft.
12042 ## However, the ftx font backend driver is not in good shape.
12043 if test "$HAVE_XFT" != "yes"; then
12044 HAVE_XFT=no
12045 HAVE_FREETYPE=no
12046 else
12048 succeeded=no
12050 # Extract the first word of "pkg-config", so it can be a program name with args.
12051 set dummy pkg-config; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 case $PKG_CONFIG in
12058 [\\/]* | ?:[\\/]*)
12059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12073 done
12074 done
12075 IFS=$as_save_IFS
12077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12079 esac
12081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12082 if test -n "$PKG_CONFIG"; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12084 $as_echo "$PKG_CONFIG" >&6; }
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12092 if test "$PKG_CONFIG" = "no" ; then
12093 HAVE_FREETYPE=no
12094 else
12095 PKG_CONFIG_MIN_VERSION=0.9.0
12096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12098 $as_echo_n "checking for freetype2... " >&6; }
12100 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; }
12103 succeeded=yes
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12106 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12107 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12109 $as_echo "$FREETYPE_CFLAGS" >&6; }
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12112 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12113 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12115 $as_echo "$FREETYPE_LIBS" >&6; }
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 FREETYPE_CFLAGS=""
12120 FREETYPE_LIBS=""
12121 ## If we have a custom action on failure, don't print errors, but
12122 ## do set a variable so people can do so.
12123 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12129 else
12130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12135 if test $succeeded = yes; then
12136 HAVE_FREETYPE=yes
12137 else
12138 HAVE_FREETYPE=no
12142 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12145 HAVE_LIBOTF=no
12146 if test "${HAVE_FREETYPE}" = "yes"; then
12148 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12150 if test "${with_libotf}" != "no"; then
12152 succeeded=no
12154 # Extract the first word of "pkg-config", so it can be a program name with args.
12155 set dummy pkg-config; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 case $PKG_CONFIG in
12162 [\\/]* | ?:[\\/]*)
12163 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12173 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12177 done
12178 done
12179 IFS=$as_save_IFS
12181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12183 esac
12185 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12186 if test -n "$PKG_CONFIG"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12188 $as_echo "$PKG_CONFIG" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12196 if test "$PKG_CONFIG" = "no" ; then
12197 HAVE_LIBOTF=no
12198 else
12199 PKG_CONFIG_MIN_VERSION=0.9.0
12200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12202 $as_echo_n "checking for libotf... " >&6; }
12204 if $PKG_CONFIG --exists "libotf" 2>&5; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206 $as_echo "yes" >&6; }
12207 succeeded=yes
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12210 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12211 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12213 $as_echo "$LIBOTF_CFLAGS" >&6; }
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12216 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12217 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12219 $as_echo "$LIBOTF_LIBS" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12223 LIBOTF_CFLAGS=""
12224 LIBOTF_LIBS=""
12225 ## If we have a custom action on failure, don't print errors, but
12226 ## do set a variable so people can do so.
12227 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12233 else
12234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12239 if test $succeeded = yes; then
12240 HAVE_LIBOTF=yes
12241 else
12242 HAVE_LIBOTF=no
12245 if test "$HAVE_LIBOTF" = "yes"; then
12247 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12250 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12251 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lotf $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char OTF_get_variation_glyphs ();
12267 main ()
12269 return OTF_get_variation_glyphs ();
12271 return 0;
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12276 else
12277 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12284 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12285 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12286 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12287 else
12288 HAVE_OTF_GET_VARIATION_GLYPHS=no
12291 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12293 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12300 HAVE_M17N_FLT=no
12301 if test "${HAVE_LIBOTF}" = yes; then
12302 if test "${with_m17n_flt}" != "no"; then
12304 succeeded=no
12306 # Extract the first word of "pkg-config", so it can be a program name with args.
12307 set dummy pkg-config; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 case $PKG_CONFIG in
12314 [\\/]* | ?:[\\/]*)
12315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12329 done
12330 done
12331 IFS=$as_save_IFS
12333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12335 esac
12337 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12338 if test -n "$PKG_CONFIG"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12340 $as_echo "$PKG_CONFIG" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12348 if test "$PKG_CONFIG" = "no" ; then
12349 HAVE_M17N_FLT=no
12350 else
12351 PKG_CONFIG_MIN_VERSION=0.9.0
12352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12354 $as_echo_n "checking for m17n-flt... " >&6; }
12356 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12359 succeeded=yes
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12362 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12363 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12365 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12368 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12369 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12371 $as_echo "$M17N_FLT_LIBS" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12375 M17N_FLT_CFLAGS=""
12376 M17N_FLT_LIBS=""
12377 ## If we have a custom action on failure, don't print errors, but
12378 ## do set a variable so people can do so.
12379 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12385 else
12386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12391 if test $succeeded = yes; then
12392 HAVE_M17N_FLT=yes
12393 else
12394 HAVE_M17N_FLT=no
12397 if test "$HAVE_M17N_FLT" = "yes"; then
12399 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12404 else
12405 HAVE_XFT=no
12406 HAVE_FREETYPE=no
12407 HAVE_LIBOTF=no
12408 HAVE_M17N_FLT=no
12411 ### End of font-backend (under X11) section.
12422 ### Use -lXpm if available, unless `--with-xpm=no'.
12423 HAVE_XPM=no
12424 LIBXPM=
12425 if test "${HAVE_X11}" = "yes"; then
12426 if test "${with_xpm}" != "no"; then
12427 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12428 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12430 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12431 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_check_lib_save_LIBS=$LIBS
12435 LIBS="-lXpm -lX11 $LIBS"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 char XpmReadFileToPixmap ();
12447 main ()
12449 return XpmReadFileToPixmap ();
12451 return 0;
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12456 else
12457 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12464 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12465 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12466 HAVE_XPM=yes
12472 if test "${HAVE_XPM}" = "yes"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12474 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 #include "X11/xpm.h"
12478 #ifndef XpmReturnAllocPixels
12479 no_return_alloc_pixels
12480 #endif
12482 _ACEOF
12483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12484 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12485 HAVE_XPM=no
12486 else
12487 HAVE_XPM=yes
12489 rm -f conftest*
12492 if test "${HAVE_XPM}" = "yes"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12494 $as_echo "yes" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12502 if test "${HAVE_XPM}" = "yes"; then
12504 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12506 LIBXPM=-lXpm
12511 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12512 HAVE_JPEG=no
12513 LIBJPEG=
12514 if test "${HAVE_X11}" = "yes"; then
12515 if test "${with_jpeg}" != "no"; then
12516 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12517 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12519 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12520 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 ac_check_lib_save_LIBS=$LIBS
12524 LIBS="-ljpeg $LIBS"
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char jpeg_destroy_compress ();
12536 main ()
12538 return jpeg_destroy_compress ();
12540 return 0;
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12545 else
12546 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12553 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12554 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12555 HAVE_JPEG=yes
12563 if test "${HAVE_JPEG}" = "yes"; then
12564 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568 #include <jpeglib.h>
12569 version=JPEG_LIB_VERSION
12571 _ACEOF
12572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12573 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12574 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12578 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12579 HAVE_JPEG=no
12581 rm -f conftest*
12584 if test "${HAVE_JPEG}" = "yes"; then
12585 LIBJPEG=-ljpeg
12590 ### Use -lpng if available, unless `--with-png=no'.
12591 HAVE_PNG=no
12592 LIBPNG=
12593 if test "${HAVE_X11}" = "yes"; then
12594 if test "${with_png}" != "no"; then
12595 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12596 # in /usr/include/libpng.
12597 for ac_header in png.h libpng/png.h
12598 do :
12599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12600 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12601 eval as_val=\$$as_ac_Header
12602 if test "x$as_val" = x""yes; then :
12603 cat >>confdefs.h <<_ACEOF
12604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12605 _ACEOF
12609 done
12611 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12613 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12614 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-lpng -lz -lm $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char png_get_channels ();
12630 main ()
12632 return png_get_channels ();
12634 return 0;
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 ac_cv_lib_png_png_get_channels=yes
12639 else
12640 ac_cv_lib_png_png_get_channels=no
12642 rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12647 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12648 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12649 HAVE_PNG=yes
12655 if test "${HAVE_PNG}" = "yes"; then
12657 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12659 LIBPNG="-lpng -lz -lm"
12664 ### Use -ltiff if available, unless `--with-tiff=no'.
12665 HAVE_TIFF=no
12666 LIBTIFF=
12667 if test "${HAVE_X11}" = "yes"; then
12668 if test "${with_tiff}" != "no"; then
12669 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12670 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12671 tifflibs="-lz -lm"
12672 # At least one tiff package requires the jpeg library.
12673 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12675 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12676 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 ac_check_lib_save_LIBS=$LIBS
12680 LIBS="-ltiff $tifflibs $LIBS"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 /* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 char TIFFGetVersion ();
12692 main ()
12694 return TIFFGetVersion ();
12696 return 0;
12698 _ACEOF
12699 if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_lib_tiff_TIFFGetVersion=yes
12701 else
12702 ac_cv_lib_tiff_TIFFGetVersion=no
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12709 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12710 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12711 HAVE_TIFF=yes
12719 if test "${HAVE_TIFF}" = "yes"; then
12721 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12723 LIBTIFF=-ltiff
12728 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12729 HAVE_GIF=no
12730 LIBGIF=
12731 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12732 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12733 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12734 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12735 # Earlier versions can crash Emacs.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12737 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12738 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lgif $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char EGifPutExtensionLast ();
12754 main ()
12756 return EGifPutExtensionLast ();
12758 return 0;
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_gif_EGifPutExtensionLast=yes
12763 else
12764 ac_cv_lib_gif_EGifPutExtensionLast=no
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12771 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12772 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12773 HAVE_GIF=yes
12774 else
12775 HAVE_GIF=maybe
12782 if test "$HAVE_GIF" = yes; then
12783 LIBGIF=-lgif
12784 elif test "$HAVE_GIF" = maybe; then
12785 # If gif_lib.h but no libgif, try libungif.
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12787 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12788 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 ac_check_lib_save_LIBS=$LIBS
12792 LIBS="-lungif $LIBS"
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char EGifPutExtensionLast ();
12804 main ()
12806 return EGifPutExtensionLast ();
12808 return 0;
12810 _ACEOF
12811 if ac_fn_c_try_link "$LINENO"; then :
12812 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12813 else
12814 ac_cv_lib_ungif_EGifPutExtensionLast=no
12816 rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12821 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12822 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12823 HAVE_GIF=yes
12824 else
12825 HAVE_GIF=no
12828 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12831 if test "${HAVE_GIF}" = "yes"; then
12833 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12839 if test "${HAVE_X11}" = "yes"; then
12840 MISSING=""
12841 WITH_NO=""
12842 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12843 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12844 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12845 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12846 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12847 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12848 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12849 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12850 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12851 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12853 if test "X${MISSING}" != X; then
12854 as_fn_error "The following required libraries were not found:
12855 $MISSING
12856 Maybe some development libraries/packages are missing?
12857 If you don't want to link with them give
12858 $WITH_NO
12859 as options to configure" "$LINENO" 5
12863 ### Use -lgpm if available, unless `--with-gpm=no'.
12864 HAVE_GPM=no
12865 LIBGPM=
12866 if test "${with_gpm}" != "no"; then
12867 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12868 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12870 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12871 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 ac_check_lib_save_LIBS=$LIBS
12875 LIBS="-lgpm $LIBS"
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char Gpm_Open ();
12887 main ()
12889 return Gpm_Open ();
12891 return 0;
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"; then :
12895 ac_cv_lib_gpm_Gpm_Open=yes
12896 else
12897 ac_cv_lib_gpm_Gpm_Open=no
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12904 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12905 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12906 HAVE_GPM=yes
12913 if test "${HAVE_GPM}" = "yes"; then
12915 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12917 LIBGPM=-lgpm
12922 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12923 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12925 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12931 C_SWITCH_X_SYSTEM=
12932 ### Use NeXTstep API to implement GUI.
12933 if test "${HAVE_NS}" = "yes"; then
12935 $as_echo "#define HAVE_NS 1" >>confdefs.h
12937 if test "${NS_IMPL_COCOA}" = "yes"; then
12939 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12941 GNU_OBJC_CFLAGS=
12943 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12945 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12947 # See also .m.o rule in Makefile.in */
12948 # FIXME: are all these flags really needed? Document here why. */
12949 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12950 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12952 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12954 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12957 # We also have mouse menus.
12958 HAVE_MENUS=yes
12959 OTHER_FILES=ns-app
12963 ### Use session management (-lSM -lICE) if available
12964 HAVE_X_SM=no
12965 LIBXSM=
12966 if test "${HAVE_X11}" = "yes"; then
12967 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12968 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12970 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12971 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 ac_check_lib_save_LIBS=$LIBS
12975 LIBS="-lSM -lICE $LIBS"
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982 #ifdef __cplusplus
12983 extern "C"
12984 #endif
12985 char SmcOpenConnection ();
12987 main ()
12989 return SmcOpenConnection ();
12991 return 0;
12993 _ACEOF
12994 if ac_fn_c_try_link "$LINENO"; then :
12995 ac_cv_lib_SM_SmcOpenConnection=yes
12996 else
12997 ac_cv_lib_SM_SmcOpenConnection=no
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001 LIBS=$ac_check_lib_save_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13004 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13005 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13006 HAVE_X_SM=yes
13013 if test "${HAVE_X_SM}" = "yes"; then
13015 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13017 LIBXSM="-lSM -lICE"
13018 case "$LIBS" in
13019 *-lSM*) ;;
13020 *) LIBS="$LIBXSM $LIBS" ;;
13021 esac
13026 ### Use libxml (-lxml2) if available
13027 if test "${with_xml2}" != "no"; then
13028 ### I'm not sure what the version number should be, so I just guessed.
13030 succeeded=no
13032 # Extract the first word of "pkg-config", so it can be a program name with args.
13033 set dummy pkg-config; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 case $PKG_CONFIG in
13040 [\\/]* | ?:[\\/]*)
13041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13055 done
13056 done
13057 IFS=$as_save_IFS
13059 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13061 esac
13063 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13064 if test -n "$PKG_CONFIG"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13066 $as_echo "$PKG_CONFIG" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13074 if test "$PKG_CONFIG" = "no" ; then
13075 HAVE_LIBXML2=no
13076 else
13077 PKG_CONFIG_MIN_VERSION=0.9.0
13078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13080 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13082 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085 succeeded=yes
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13088 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13089 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13091 $as_echo "$LIBXML2_CFLAGS" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13094 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13095 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13097 $as_echo "$LIBXML2_LIBS" >&6; }
13098 else
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13101 LIBXML2_CFLAGS=""
13102 LIBXML2_LIBS=""
13103 ## If we have a custom action on failure, don't print errors, but
13104 ## do set a variable so people can do so.
13105 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13111 else
13112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13117 if test $succeeded = yes; then
13118 HAVE_LIBXML2=yes
13119 else
13120 HAVE_LIBXML2=no
13123 if test "${HAVE_LIBXML2}" = "yes"; then
13124 LIBS="$LIBXML2_LIBS $LIBS"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13126 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13127 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lxml2 $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char htmlReadMemory ();
13143 main ()
13145 return htmlReadMemory ();
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_xml2_htmlReadMemory=yes
13152 else
13153 ac_cv_lib_xml2_htmlReadMemory=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13160 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13161 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13162 HAVE_LIBXML2=yes
13163 else
13164 HAVE_LIBXML2=no
13167 if test "${HAVE_LIBXML2}" = "yes"; then
13169 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13171 else
13172 LIBXML2_LIBS=""
13173 LIBXML2_CFLAGS=""
13180 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13182 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13183 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13188 #include <netdb.h>
13190 main ()
13192 return h_errno;
13194 return 0;
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 emacs_cv_netdb_declares_h_errno=yes
13199 else
13200 emacs_cv_netdb_declares_h_errno=no
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13206 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13207 if test $emacs_cv_netdb_declares_h_errno = yes; then
13209 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13213 # fmod, logb, and frexp are found in -lm on most systems.
13214 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13216 $as_echo_n "checking for sqrt in -lm... " >&6; }
13217 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 ac_check_lib_save_LIBS=$LIBS
13221 LIBS="-lm $LIBS"
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13228 #ifdef __cplusplus
13229 extern "C"
13230 #endif
13231 char sqrt ();
13233 main ()
13235 return sqrt ();
13237 return 0;
13239 _ACEOF
13240 if ac_fn_c_try_link "$LINENO"; then :
13241 ac_cv_lib_m_sqrt=yes
13242 else
13243 ac_cv_lib_m_sqrt=no
13245 rm -f core conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13250 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13251 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_LIBM 1
13254 _ACEOF
13256 LIBS="-lm $LIBS"
13261 # Check for mail-locking functions in a "mail" library. Probably this should
13262 # have the same check as for liblockfile below.
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13264 $as_echo_n "checking for maillock in -lmail... " >&6; }
13265 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-lmail $LIBS"
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13276 #ifdef __cplusplus
13277 extern "C"
13278 #endif
13279 char maillock ();
13281 main ()
13283 return maillock ();
13285 return 0;
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 ac_cv_lib_mail_maillock=yes
13290 else
13291 ac_cv_lib_mail_maillock=no
13293 rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13298 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13299 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13300 have_mail=yes
13301 else
13302 have_mail=no
13305 if test $have_mail = yes; then
13306 LIBS_MAIL=-lmail
13307 LIBS="$LIBS_MAIL $LIBS"
13309 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13311 else
13312 LIBS_MAIL=
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13315 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13316 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-llockfile $LIBS"
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char maillock ();
13332 main ()
13334 return maillock ();
13336 return 0;
13338 _ACEOF
13339 if ac_fn_c_try_link "$LINENO"; then :
13340 ac_cv_lib_lockfile_maillock=yes
13341 else
13342 ac_cv_lib_lockfile_maillock=no
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13349 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13350 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13351 have_lockfile=yes
13352 else
13353 have_lockfile=no
13356 if test $have_lockfile = yes; then
13357 LIBS_MAIL=-llockfile
13358 LIBS="$LIBS_MAIL $LIBS"
13360 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13362 else
13363 # If we have the shared liblockfile, assume we must use it for mail
13364 # locking (e.g. Debian). If we couldn't link against liblockfile
13365 # (no liblockfile.a installed), ensure that we don't need to.
13366 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13367 set dummy liblockfile.so; ac_word=$2
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369 $as_echo_n "checking for $ac_word... " >&6; }
13370 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 if test -n "$liblockfile"; then
13374 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13375 else
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13378 for as_dir in $as_dummy
13380 IFS=$as_save_IFS
13381 test -z "$as_dir" && as_dir=.
13382 for ac_exec_ext in '' $ac_executable_extensions; do
13383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13384 ac_cv_prog_liblockfile="yes"
13385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13386 break 2
13388 done
13389 done
13390 IFS=$as_save_IFS
13392 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13395 liblockfile=$ac_cv_prog_liblockfile
13396 if test -n "$liblockfile"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13398 $as_echo "$liblockfile" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13405 if test $ac_cv_prog_liblockfile = yes; then
13406 as_fn_error "Shared liblockfile found but can't link against it.
13407 This probably means that movemail could lose mail.
13408 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13411 for ac_func in touchlock
13412 do :
13413 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13414 if test "x$ac_cv_func_touchlock" = x""yes; then :
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_TOUCHLOCK 1
13417 _ACEOF
13420 done
13422 for ac_header in maillock.h
13423 do :
13424 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_MAILLOCK_H 1
13428 _ACEOF
13432 done
13436 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13437 ## interlock access to the mail spool. The alternative is a lock file named
13438 ## /usr/spool/mail/$USER.lock.
13439 mail_lock=no
13440 case "$opsys" in
13441 aix4-2) mail_lock="lockf" ;;
13443 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13445 ## On GNU/Linux systems, both methods are used by various mail programs.
13446 ## I assume most people are using newer mailers that have heard of flock.
13447 ## Change this if you need to.
13448 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13449 ## configure gets the right answers, and that means *NOT* using flock.
13450 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13451 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13452 ## Debian maintainer hasn't provided a clean fix for Emacs.
13453 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13454 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13455 ## correct logic. -- fx
13456 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13457 ## liblockfile is a Free Software replacement for libmail, used on
13458 ## Debian systems and elsewhere. -rfr.
13459 gnu-*)
13460 mail_lock="flock"
13461 if test $have_mail = yes || test $have_lockfile = yes; then
13462 test $ac_cv_header_maillock_h = yes && mail_lock=no
13465 esac
13467 BLESSMAIL_TARGET=
13468 case "$mail_lock" in
13469 flock)
13470 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13473 lockf)
13474 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13477 *) BLESSMAIL_TARGET="need-blessmail" ;;
13478 esac
13482 for ac_func in gethostname getdomainname \
13483 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13484 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13485 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13486 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13487 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
13488 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13489 gai_strerror mkstemp getline getdelim mremap fsync sync \
13490 difftime mempcpy mblen mbrlen posix_memalign \
13491 cfmakeraw cfsetspeed isnan copysign __executable_start
13492 do :
13493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13494 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13495 eval as_val=\$$as_ac_var
13496 if test "x$as_val" = x""yes; then :
13497 cat >>confdefs.h <<_ACEOF
13498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13499 _ACEOF
13502 done
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13506 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13507 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13514 main ()
13516 __builtin_unwind_init ();
13518 return 0;
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 emacs_cv_func___builtin_unwind_init=yes
13523 else
13524 emacs_cv_func___builtin_unwind_init=no
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13530 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13531 if test $emacs_cv_func___builtin_unwind_init = yes; then
13533 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13537 for ac_header in sys/un.h
13538 do :
13539 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13540 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13541 cat >>confdefs.h <<_ACEOF
13542 #define HAVE_SYS_UN_H 1
13543 _ACEOF
13547 done
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13551 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13552 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 while :; do
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13558 #include <sys/types.h> /* for off_t */
13559 #include <stdio.h>
13561 main ()
13563 int (*fp) (FILE *, off_t, int) = fseeko;
13564 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13566 return 0;
13568 _ACEOF
13569 if ac_fn_c_try_link "$LINENO"; then :
13570 ac_cv_sys_largefile_source=no; break
13572 rm -f core conftest.err conftest.$ac_objext \
13573 conftest$ac_exeext conftest.$ac_ext
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #define _LARGEFILE_SOURCE 1
13577 #include <sys/types.h> /* for off_t */
13578 #include <stdio.h>
13580 main ()
13582 int (*fp) (FILE *, off_t, int) = fseeko;
13583 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13585 return 0;
13587 _ACEOF
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 ac_cv_sys_largefile_source=1; break
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 ac_cv_sys_largefile_source=unknown
13594 break
13595 done
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13598 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13599 case $ac_cv_sys_largefile_source in #(
13600 no | unknown) ;;
13602 cat >>confdefs.h <<_ACEOF
13603 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13604 _ACEOF
13606 esac
13607 rm -rf conftest*
13609 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13610 # in glibc 2.1.3, but that breaks too many other things.
13611 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13612 if test $ac_cv_sys_largefile_source != unknown; then
13614 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13620 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13621 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 # Use it with a single arg.
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 $ac_includes_default
13629 main ()
13631 getpgrp (0);
13633 return 0;
13635 _ACEOF
13636 if ac_fn_c_try_compile "$LINENO"; then :
13637 ac_cv_func_getpgrp_void=no
13638 else
13639 ac_cv_func_getpgrp_void=yes
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13645 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13646 if test $ac_cv_func_getpgrp_void = yes; then
13648 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13653 <<<<<<< TREE
13654 # Configure gnulib.
13655 =======
13656 # UNIX98 PTYs.
13657 for ac_func in grantpt
13658 do :
13659 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13660 if test "x$ac_cv_func_grantpt" = x""yes; then :
13661 cat >>confdefs.h <<_ACEOF
13662 #define HAVE_GRANTPT 1
13663 _ACEOF
13666 done
13669 # PTY-related GNU extensions.
13670 for ac_func in getpt
13671 do :
13672 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
13673 if test "x$ac_cv_func_getpt" = x""yes; then :
13674 cat >>confdefs.h <<_ACEOF
13675 #define HAVE_GETPT 1
13676 _ACEOF
13679 done
13682 # Check this now, so that we will NOT find the above functions in ncurses.
13683 # That is because we have not set up to link ncurses in lib-src.
13684 # It's better to believe a function is not available
13685 # than to expect to find it in ncurses.
13686 # Also we need tputs and friends to be able to build at all.
13687 have_tputs_et_al=true
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13689 $as_echo_n "checking for library containing tputs... " >&6; }
13690 if test "${ac_cv_search_tputs+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13693 ac_func_search_save_LIBS=$LIBS
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char tputs ();
13705 main ()
13707 return tputs ();
13709 return 0;
13711 _ACEOF
13712 for ac_lib in '' ncurses terminfo termcap; do
13713 if test -z "$ac_lib"; then
13714 ac_res="none required"
13715 else
13716 ac_res=-l$ac_lib
13717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_search_tputs=$ac_res
13722 rm -f core conftest.err conftest.$ac_objext \
13723 conftest$ac_exeext
13724 if test "${ac_cv_search_tputs+set}" = set; then :
13725 break
13727 done
13728 if test "${ac_cv_search_tputs+set}" = set; then :
13730 else
13731 ac_cv_search_tputs=no
13733 rm conftest.$ac_ext
13734 LIBS=$ac_func_search_save_LIBS
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
13737 $as_echo "$ac_cv_search_tputs" >&6; }
13738 ac_res=$ac_cv_search_tputs
13739 if test "$ac_res" != no; then :
13740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13742 else
13743 have_tputs_et_al=false
13746 if test "$have_tputs_et_al" != true; then
13747 as_fn_error "I couldn't find termcap functions (tputs and friends).
13748 Maybe some development libraries/packages are missing? Try installing
13749 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
13751 # Must define this when any termcap library is found.
13753 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
13755 ## FIXME This was the cpp logic, but I am not sure it is right.
13756 ## The above test has not necessarily found libncurses.
13757 HAVE_LIBNCURSES=yes
13759 ## Use terminfo instead of termcap?
13760 ## Note only system files NOT using terminfo are:
13761 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
13762 ## darwin|gnu without ncurses.
13763 TERMINFO=no
13764 LIBS_TERMCAP=
13765 case "$opsys" in
13766 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13767 ## hpux10-20: Use the system provided termcap(3) library.
13768 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13769 ## is necessary. Otherwise Emacs dumps core when run -nw.
13770 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13772 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13773 ## The ncurses library has been moved out of the System framework in
13774 ## Mac OS X 10.2. So if configure detects it, set the command-line
13775 ## option to use it.
13776 darwin|gnu*)
13777 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13778 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13779 TERMINFO=yes
13780 LIBS_TERMCAP="-lncurses"
13784 freebsd)
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13786 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13787 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <osreldate.h>
13794 main ()
13796 #if __FreeBSD_version < 400000
13797 fail;
13798 #endif
13801 return 0;
13803 _ACEOF
13804 if ac_fn_c_try_link "$LINENO"; then :
13805 emacs_cv_freebsd_terminfo=yes
13806 else
13807 emacs_cv_freebsd_terminfo=no
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13815 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13817 if test $emacs_cv_freebsd_terminfo = yes; then
13818 TERMINFO=yes
13819 LIBS_TERMCAP="-lncurses"
13820 else
13821 LIBS_TERMCAP="-ltermcap"
13825 netbsd)
13826 if test $ac_cv_search_tputs = -lterminfo; then
13827 TERMINFO=yes
13828 LIBS_TERMCAP="-lterminfo"
13829 else
13830 LIBS_TERMCAP="-ltermcap"
13834 esac
13836 case "$opsys" in
13837 ## hpux: Make sure we get select from libc rather than from libcurses
13838 ## because libcurses on HPUX 10.10 has a broken version of select.
13839 ## We used to use -lc -lcurses, but this may be cleaner.
13840 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13842 openbsd) LIBS_TERMCAP="-lncurses" ;;
13844 ## Must use system termcap, if we use any termcap. It does special things.
13845 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13846 esac
13848 TERMCAP_OBJ=tparam.o
13849 if test $TERMINFO = yes; then
13851 $as_echo "#define TERMINFO 1" >>confdefs.h
13854 ## Default used to be -ltermcap. Add a case above if need something else.
13855 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13857 TERMCAP_OBJ=terminfo.o
13863 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13864 resolv=no
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 #include <netinet/in.h>
13868 #include <arpa/nameser.h>
13869 #include <resolv.h>
13871 main ()
13873 return res_init();
13875 return 0;
13877 _ACEOF
13878 if ac_fn_c_try_link "$LINENO"; then :
13879 have_res_init=yes
13880 else
13881 have_res_init=no
13883 rm -f core conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13885 if test "$have_res_init" = no; then
13886 OLIBS="$LIBS"
13887 LIBS="$LIBS -lresolv"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13889 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 #include <netinet/in.h>
13893 #include <arpa/nameser.h>
13894 #include <resolv.h>
13896 main ()
13898 return res_init();
13900 return 0;
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 have_res_init=yes
13905 else
13906 have_res_init=no
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13911 $as_echo "$have_res_init" >&6; }
13912 if test "$have_res_init" = yes ; then
13913 resolv=yes
13915 LIBS="$OLIBS"
13918 if test "$have_res_init" = yes; then
13920 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13924 # Do we need the Hesiod library to provide the support routines?
13925 LIBHESIOD=
13926 if test "$with_hesiod" != no ; then
13927 # Don't set $LIBS here -- see comments above. FIXME which comments?
13928 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13929 if test "x$ac_cv_func_res_send" = x""yes; then :
13931 else
13932 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13933 if test "x$ac_cv_func___res_send" = x""yes; then :
13935 else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13937 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13938 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 ac_check_lib_save_LIBS=$LIBS
13942 LIBS="-lresolv $LIBS"
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 /* Override any GCC internal prototype to avoid an error.
13947 Use char because int might match the return type of a GCC
13948 builtin and then its argument prototype would still apply. */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char res_send ();
13954 main ()
13956 return res_send ();
13958 return 0;
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 ac_cv_lib_resolv_res_send=yes
13963 else
13964 ac_cv_lib_resolv_res_send=no
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13968 LIBS=$ac_check_lib_save_LIBS
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13971 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13972 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13973 resolv=yes
13974 else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13976 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13977 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 ac_check_lib_save_LIBS=$LIBS
13981 LIBS="-lresolv $LIBS"
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply. */
13988 #ifdef __cplusplus
13989 extern "C"
13990 #endif
13991 char __res_send ();
13993 main ()
13995 return __res_send ();
13997 return 0;
13999 _ACEOF
14000 if ac_fn_c_try_link "$LINENO"; then :
14001 ac_cv_lib_resolv___res_send=yes
14002 else
14003 ac_cv_lib_resolv___res_send=no
14005 rm -f core conftest.err conftest.$ac_objext \
14006 conftest$ac_exeext conftest.$ac_ext
14007 LIBS=$ac_check_lib_save_LIBS
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14010 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14011 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14012 resolv=yes
14021 if test "$resolv" = yes ; then
14022 RESOLVLIB=-lresolv
14023 else
14024 RESOLVLIB=
14026 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14027 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14031 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14032 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lhesiod $RESOLVLIB $LIBS"
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14040 /* Override any GCC internal prototype to avoid an error.
14041 Use char because int might match the return type of a GCC
14042 builtin and then its argument prototype would still apply. */
14043 #ifdef __cplusplus
14044 extern "C"
14045 #endif
14046 char hes_getmailhost ();
14048 main ()
14050 return hes_getmailhost ();
14052 return 0;
14054 _ACEOF
14055 if ac_fn_c_try_link "$LINENO"; then :
14056 ac_cv_lib_hesiod_hes_getmailhost=yes
14057 else
14058 ac_cv_lib_hesiod_hes_getmailhost=no
14060 rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14065 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14066 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14067 hesiod=yes
14068 else
14075 if test x"$hesiod" = xyes; then
14077 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14079 LIBHESIOD=-lhesiod
14084 # Do we need libresolv (due to res_init or Hesiod)?
14085 if test "$resolv" = yes ; then
14087 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14089 LIBRESOLV=-lresolv
14090 else
14091 LIBRESOLV=
14095 # These tell us which Kerberos-related libraries to use.
14096 COM_ERRLIB=
14097 CRYPTOLIB=
14098 KRB5LIB=
14099 DESLIB=
14100 KRB4LIB=
14102 if test "${with_kerberos}" != no; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14104 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14105 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 ac_check_lib_save_LIBS=$LIBS
14109 LIBS="-lcom_err $LIBS"
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char com_err ();
14121 main ()
14123 return com_err ();
14125 return 0;
14127 _ACEOF
14128 if ac_fn_c_try_link "$LINENO"; then :
14129 ac_cv_lib_com_err_com_err=yes
14130 else
14131 ac_cv_lib_com_err_com_err=no
14133 rm -f core conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14138 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14139 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14140 have_com_err=yes
14141 else
14142 have_com_err=no
14145 if test $have_com_err = yes; then
14146 COM_ERRLIB=-lcom_err
14147 LIBS="$COM_ERRLIB $LIBS"
14149 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14153 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14154 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-lcrypto $LIBS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14165 #ifdef __cplusplus
14166 extern "C"
14167 #endif
14168 char mit_des_cbc_encrypt ();
14170 main ()
14172 return mit_des_cbc_encrypt ();
14174 return 0;
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14179 else
14180 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14187 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14188 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14189 have_crypto=yes
14190 else
14191 have_crypto=no
14194 if test $have_crypto = yes; then
14195 CRYPTOLIB=-lcrypto
14196 LIBS="$CRYPTOLIB $LIBS"
14198 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14202 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14203 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 ac_check_lib_save_LIBS=$LIBS
14207 LIBS="-lk5crypto $LIBS"
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14214 #ifdef __cplusplus
14215 extern "C"
14216 #endif
14217 char mit_des_cbc_encrypt ();
14219 main ()
14221 return mit_des_cbc_encrypt ();
14223 return 0;
14225 _ACEOF
14226 if ac_fn_c_try_link "$LINENO"; then :
14227 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14228 else
14229 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14231 rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14236 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14237 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14238 have_k5crypto=yes
14239 else
14240 have_k5crypto=no
14243 if test $have_k5crypto = yes; then
14244 CRYPTOLIB=-lk5crypto
14245 LIBS="$CRYPTOLIB $LIBS"
14247 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14251 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14252 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 ac_check_lib_save_LIBS=$LIBS
14256 LIBS="-lkrb5 $LIBS"
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char krb5_init_context ();
14268 main ()
14270 return krb5_init_context ();
14272 return 0;
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_lib_krb5_krb5_init_context=yes
14277 else
14278 ac_cv_lib_krb5_krb5_init_context=no
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LIBS=$ac_check_lib_save_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14285 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14286 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14287 have_krb5=yes
14288 else
14289 have_krb5=no
14292 if test $have_krb5=yes; then
14293 KRB5LIB=-lkrb5
14294 LIBS="$KRB5LIB $LIBS"
14296 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14299 if test "${with_kerberos5}" = no; then
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14301 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14302 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 ac_check_lib_save_LIBS=$LIBS
14306 LIBS="-ldes425 $LIBS"
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313 #ifdef __cplusplus
14314 extern "C"
14315 #endif
14316 char des_cbc_encrypt ();
14318 main ()
14320 return des_cbc_encrypt ();
14322 return 0;
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 ac_cv_lib_des425_des_cbc_encrypt=yes
14327 else
14328 ac_cv_lib_des425_des_cbc_encrypt=no
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 LIBS=$ac_check_lib_save_LIBS
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14335 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14336 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14337 have_des425=yes
14338 else
14339 have_des425=no
14342 if test $have_des425 = yes; then
14343 DESLIB=-ldes425
14344 LIBS="$DESLIB $LIBS"
14346 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14348 else
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14350 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14351 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 ac_check_lib_save_LIBS=$LIBS
14355 LIBS="-ldes $LIBS"
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char des_cbc_encrypt ();
14367 main ()
14369 return des_cbc_encrypt ();
14371 return 0;
14373 _ACEOF
14374 if ac_fn_c_try_link "$LINENO"; then :
14375 ac_cv_lib_des_des_cbc_encrypt=yes
14376 else
14377 ac_cv_lib_des_des_cbc_encrypt=no
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 LIBS=$ac_check_lib_save_LIBS
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14384 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14385 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14386 have_des=yes
14387 else
14388 have_des=no
14391 if test $have_des = yes; then
14392 DESLIB=-ldes
14393 LIBS="$DESLIB $LIBS"
14395 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14400 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14401 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 ac_check_lib_save_LIBS=$LIBS
14405 LIBS="-lkrb4 $LIBS"
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14409 /* Override any GCC internal prototype to avoid an error.
14410 Use char because int might match the return type of a GCC
14411 builtin and then its argument prototype would still apply. */
14412 #ifdef __cplusplus
14413 extern "C"
14414 #endif
14415 char krb_get_cred ();
14417 main ()
14419 return krb_get_cred ();
14421 return 0;
14423 _ACEOF
14424 if ac_fn_c_try_link "$LINENO"; then :
14425 ac_cv_lib_krb4_krb_get_cred=yes
14426 else
14427 ac_cv_lib_krb4_krb_get_cred=no
14429 rm -f core conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14434 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14435 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14436 have_krb4=yes
14437 else
14438 have_krb4=no
14441 if test $have_krb4 = yes; then
14442 KRB4LIB=-lkrb4
14443 LIBS="$KRB4LIB $LIBS"
14445 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14449 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14450 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-lkrb $LIBS"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char krb_get_cred ();
14466 main ()
14468 return krb_get_cred ();
14470 return 0;
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_krb_krb_get_cred=yes
14475 else
14476 ac_cv_lib_krb_krb_get_cred=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14483 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14484 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14485 have_krb=yes
14486 else
14487 have_krb=no
14490 if test $have_krb = yes; then
14491 KRB4LIB=-lkrb
14492 LIBS="$KRB4LIB $LIBS"
14494 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14500 if test "${with_kerberos5}" != no; then
14501 for ac_header in krb5.h
14502 do :
14503 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14504 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14505 cat >>confdefs.h <<_ACEOF
14506 #define HAVE_KRB5_H 1
14507 _ACEOF
14508 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14510 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14512 cat >>confdefs.h <<_ACEOF
14513 #define HAVE_KRB5_ERROR_TEXT 1
14514 _ACEOF
14518 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14520 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_KRB5_ERROR_E_TEXT 1
14524 _ACEOF
14531 done
14533 else
14534 for ac_header in des.h
14535 do :
14536 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14537 if test "x$ac_cv_header_des_h" = x""yes; then :
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_DES_H 1
14540 _ACEOF
14542 else
14543 for ac_header in kerberosIV/des.h
14544 do :
14545 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14546 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_KERBEROSIV_DES_H 1
14549 _ACEOF
14551 else
14552 for ac_header in kerberos/des.h
14553 do :
14554 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14555 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_KERBEROS_DES_H 1
14558 _ACEOF
14562 done
14566 done
14570 done
14572 for ac_header in krb.h
14573 do :
14574 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14575 if test "x$ac_cv_header_krb_h" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_KRB_H 1
14578 _ACEOF
14580 else
14581 for ac_header in kerberosIV/krb.h
14582 do :
14583 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14584 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14585 cat >>confdefs.h <<_ACEOF
14586 #define HAVE_KERBEROSIV_KRB_H 1
14587 _ACEOF
14589 else
14590 for ac_header in kerberos/krb.h
14591 do :
14592 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14593 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14594 cat >>confdefs.h <<_ACEOF
14595 #define HAVE_KERBEROS_KRB_H 1
14596 _ACEOF
14600 done
14604 done
14608 done
14611 for ac_header in com_err.h
14612 do :
14613 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14614 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_COM_ERR_H 1
14617 _ACEOF
14621 done
14631 # Solaris requires -lintl if you want strerror (which calls dgettext)
14632 # to return localized messages.
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
14634 $as_echo_n "checking for dgettext in -lintl... " >&6; }
14635 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 ac_check_lib_save_LIBS=$LIBS
14639 LIBS="-lintl $LIBS"
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14646 #ifdef __cplusplus
14647 extern "C"
14648 #endif
14649 char dgettext ();
14651 main ()
14653 return dgettext ();
14655 return 0;
14657 _ACEOF
14658 if ac_fn_c_try_link "$LINENO"; then :
14659 ac_cv_lib_intl_dgettext=yes
14660 else
14661 ac_cv_lib_intl_dgettext=no
14663 rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14665 LIBS=$ac_check_lib_save_LIBS
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
14668 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
14669 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
14670 cat >>confdefs.h <<_ACEOF
14671 #define HAVE_LIBINTL 1
14672 _ACEOF
14674 LIBS="-lintl $LIBS"
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14680 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14681 if test "${emacs_cv_localtime_cache+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 if test x$ac_cv_func_tzset = xyes; then
14685 if test "$cross_compiling" = yes; then :
14686 # If we have tzset, assume the worst when cross-compiling.
14687 emacs_cv_localtime_cache=yes
14688 else
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 #include <time.h>
14692 char TZ_GMT0[] = "TZ=GMT0";
14693 char TZ_PST8[] = "TZ=PST8";
14694 main()
14696 time_t now = time ((time_t *) 0);
14697 int hour_GMT0, hour_unset;
14698 if (putenv (TZ_GMT0) != 0)
14699 exit (1);
14700 hour_GMT0 = localtime (&now)->tm_hour;
14701 unsetenv("TZ");
14702 hour_unset = localtime (&now)->tm_hour;
14703 if (putenv (TZ_PST8) != 0)
14704 exit (1);
14705 if (localtime (&now)->tm_hour == hour_GMT0)
14706 exit (1);
14707 unsetenv("TZ");
14708 if (localtime (&now)->tm_hour != hour_unset)
14709 exit (1);
14710 exit (0);
14712 _ACEOF
14713 if ac_fn_c_try_run "$LINENO"; then :
14714 emacs_cv_localtime_cache=no
14715 else
14716 emacs_cv_localtime_cache=yes
14718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14719 conftest.$ac_objext conftest.beam conftest.$ac_ext
14722 else
14723 # If we lack tzset, report that localtime does not cache TZ,
14724 # since we can't invalidate the cache if we don't have tzset.
14725 emacs_cv_localtime_cache=no
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14729 $as_echo "$emacs_cv_localtime_cache" >&6; }
14730 if test $emacs_cv_localtime_cache = yes; then
14732 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14736 if test "x$HAVE_TIMEVAL" = xyes; then
14737 for ac_func in gettimeofday
14738 do :
14739 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14740 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_GETTIMEOFDAY 1
14743 _ACEOF
14746 done
14748 if test $ac_cv_func_gettimeofday = yes; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
14750 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
14751 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #ifdef TIME_WITH_SYS_TIME
14758 #include <sys/time.h>
14759 #include <time.h>
14760 #else
14761 #ifdef HAVE_SYS_TIME_H
14762 #include <sys/time.h>
14763 #else
14764 #include <time.h>
14765 #endif
14766 #endif
14768 main ()
14770 struct timeval time;
14771 gettimeofday (&time, 0);
14773 return 0;
14775 _ACEOF
14776 if ac_fn_c_try_compile "$LINENO"; then :
14777 emacs_cv_gettimeofday_two_arguments=yes
14778 else
14779 emacs_cv_gettimeofday_two_arguments=no
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14784 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14785 if test $emacs_cv_gettimeofday_two_arguments = no; then
14787 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14793 ok_so_far=yes
14794 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14795 if test "x$ac_cv_func_socket" = x""yes; then :
14797 else
14798 ok_so_far=no
14801 if test $ok_so_far = yes; then
14802 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14803 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14805 else
14806 ok_so_far=no
14811 if test $ok_so_far = yes; then
14812 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14813 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14815 else
14816 ok_so_far=no
14821 if test $ok_so_far = yes; then
14823 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14827 if test -f /usr/lpp/X11/bin/smt.exp; then
14829 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14834 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14835 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14837 $as_echo "yes" >&6; }
14839 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14841 else
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843 $as_echo "no" >&6; }
14846 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14847 if test "x$ac_cv_type_pid_t" = x""yes; then :
14849 else
14851 cat >>confdefs.h <<_ACEOF
14852 #define pid_t int
14853 _ACEOF
14857 for ac_header in vfork.h
14858 do :
14859 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14860 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14861 cat >>confdefs.h <<_ACEOF
14862 #define HAVE_VFORK_H 1
14863 _ACEOF
14867 done
14869 for ac_func in fork vfork
14870 do :
14871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14873 eval as_val=\$$as_ac_var
14874 if test "x$as_val" = x""yes; then :
14875 cat >>confdefs.h <<_ACEOF
14876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14877 _ACEOF
14880 done
14882 if test "x$ac_cv_func_fork" = xyes; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14884 $as_echo_n "checking for working fork... " >&6; }
14885 if test "${ac_cv_func_fork_works+set}" = set; then :
14886 $as_echo_n "(cached) " >&6
14887 else
14888 if test "$cross_compiling" = yes; then :
14889 ac_cv_func_fork_works=cross
14890 else
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14893 $ac_includes_default
14895 main ()
14898 /* By Ruediger Kuhlmann. */
14899 return fork () < 0;
14902 return 0;
14904 _ACEOF
14905 if ac_fn_c_try_run "$LINENO"; then :
14906 ac_cv_func_fork_works=yes
14907 else
14908 ac_cv_func_fork_works=no
14910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14911 conftest.$ac_objext conftest.beam conftest.$ac_ext
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14916 $as_echo "$ac_cv_func_fork_works" >&6; }
14918 else
14919 ac_cv_func_fork_works=$ac_cv_func_fork
14921 if test "x$ac_cv_func_fork_works" = xcross; then
14922 case $host in
14923 *-*-amigaos* | *-*-msdosdjgpp*)
14924 # Override, as these systems have only a dummy fork() stub
14925 ac_cv_func_fork_works=no
14928 ac_cv_func_fork_works=yes
14930 esac
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14932 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14934 ac_cv_func_vfork_works=$ac_cv_func_vfork
14935 if test "x$ac_cv_func_vfork" = xyes; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14937 $as_echo_n "checking for working vfork... " >&6; }
14938 if test "${ac_cv_func_vfork_works+set}" = set; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 if test "$cross_compiling" = yes; then :
14942 ac_cv_func_vfork_works=cross
14943 else
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 /* Thanks to Paul Eggert for this test. */
14947 $ac_includes_default
14948 #include <sys/wait.h>
14949 #ifdef HAVE_VFORK_H
14950 # include <vfork.h>
14951 #endif
14952 /* On some sparc systems, changes by the child to local and incoming
14953 argument registers are propagated back to the parent. The compiler
14954 is told about this with #include <vfork.h>, but some compilers
14955 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14956 static variable whose address is put into a register that is
14957 clobbered by the vfork. */
14958 static void
14959 #ifdef __cplusplus
14960 sparc_address_test (int arg)
14961 # else
14962 sparc_address_test (arg) int arg;
14963 #endif
14965 static pid_t child;
14966 if (!child) {
14967 child = vfork ();
14968 if (child < 0) {
14969 perror ("vfork");
14970 _exit(2);
14972 if (!child) {
14973 arg = getpid();
14974 write(-1, "", 0);
14975 _exit (arg);
14981 main ()
14983 pid_t parent = getpid ();
14984 pid_t child;
14986 sparc_address_test (0);
14988 child = vfork ();
14990 if (child == 0) {
14991 /* Here is another test for sparc vfork register problems. This
14992 test uses lots of local variables, at least as many local
14993 variables as main has allocated so far including compiler
14994 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14995 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14996 reuse the register of parent for one of the local variables,
14997 since it will think that parent can't possibly be used any more
14998 in this routine. Assigning to the local variable will thus
14999 munge parent in the parent process. */
15000 pid_t
15001 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15002 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15003 /* Convince the compiler that p..p7 are live; otherwise, it might
15004 use the same hardware register for all 8 local variables. */
15005 if (p != p1 || p != p2 || p != p3 || p != p4
15006 || p != p5 || p != p6 || p != p7)
15007 _exit(1);
15009 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15010 from child file descriptors. If the child closes a descriptor
15011 before it execs or exits, this munges the parent's descriptor
15012 as well. Test for this by closing stdout in the child. */
15013 _exit(close(fileno(stdout)) != 0);
15014 } else {
15015 int status;
15016 struct stat st;
15018 while (wait(&status) != child)
15020 return (
15021 /* Was there some problem with vforking? */
15022 child < 0
15024 /* Did the child fail? (This shouldn't happen.) */
15025 || status
15027 /* Did the vfork/compiler bug occur? */
15028 || parent != getpid()
15030 /* Did the file descriptor bug occur? */
15031 || fstat(fileno(stdout), &st) != 0
15035 _ACEOF
15036 if ac_fn_c_try_run "$LINENO"; then :
15037 ac_cv_func_vfork_works=yes
15038 else
15039 ac_cv_func_vfork_works=no
15041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15042 conftest.$ac_objext conftest.beam conftest.$ac_ext
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15047 $as_echo "$ac_cv_func_vfork_works" >&6; }
15050 if test "x$ac_cv_func_fork_works" = xcross; then
15051 ac_cv_func_vfork_works=$ac_cv_func_vfork
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15053 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15056 if test "x$ac_cv_func_vfork_works" = xyes; then
15058 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15060 else
15062 $as_echo "#define vfork fork" >>confdefs.h
15065 if test "x$ac_cv_func_fork_works" = xyes; then
15067 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15073 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15074 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15079 #include <langinfo.h>
15081 main ()
15083 char* cs = nl_langinfo(CODESET);
15085 return 0;
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 emacs_cv_langinfo_codeset=yes
15090 else
15091 emacs_cv_langinfo_codeset=no
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15098 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15099 if test $emacs_cv_langinfo_codeset = yes; then
15101 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15106 $as_echo_n "checking for mbstate_t... " >&6; }
15107 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 $ac_includes_default
15113 # include <wchar.h>
15115 main ()
15117 mbstate_t x; return sizeof x;
15119 return 0;
15121 _ACEOF
15122 if ac_fn_c_try_compile "$LINENO"; then :
15123 ac_cv_type_mbstate_t=yes
15124 else
15125 ac_cv_type_mbstate_t=no
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15130 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15131 if test $ac_cv_type_mbstate_t = yes; then
15133 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15135 else
15137 $as_echo "#define mbstate_t int" >>confdefs.h
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15142 $as_echo_n "checking for C restricted array declarations... " >&6; }
15143 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 void fred (int x[__restrict]);
15150 main ()
15154 return 0;
15156 _ACEOF
15157 if ac_fn_c_try_compile "$LINENO"; then :
15158 emacs_cv_c_restrict_arr=yes
15159 else
15160 emacs_cv_c_restrict_arr=no
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15165 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15166 if test "$emacs_cv_c_restrict_arr" = yes; then
15168 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15173 # Set up the CFLAGS for real compilation, so we can substitute it.
15174 CFLAGS="$REAL_CFLAGS"
15175 CPPFLAGS="$REAL_CPPFLAGS"
15177 ## Hack to detect a buggy GCC version.
15178 if test "x$GCC" = xyes \
15179 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15180 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15181 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15182 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15185 version=$PACKAGE_VERSION
15187 ### Specify what sort of things we'll be editing into Makefile and config.h.
15188 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15191 ## Unused?
15212 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15213 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15214 ## end of LIBX_BASE, but nothing ever set it.
15219 ## Used in lwlib/Makefile.in.
15221 if test -n "${machfile}"; then
15222 M_FILE="\$(srcdir)/${machfile}"
15223 else
15224 M_FILE=
15226 S_FILE="\$(srcdir)/${opsysfile}"
15237 cat >>confdefs.h <<_ACEOF
15238 #define EMACS_CONFIGURATION "${canonical}"
15239 _ACEOF
15242 cat >>confdefs.h <<_ACEOF
15243 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15244 _ACEOF
15246 if test -n "$machfile"; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define config_machfile "${machfile}"
15250 _ACEOF
15254 cat >>confdefs.h <<_ACEOF
15255 #define config_opsysfile "${opsysfile}"
15256 _ACEOF
15259 XMENU_OBJ=
15260 XOBJ=
15261 FONT_OBJ=
15262 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15264 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15266 XMENU_OBJ=xmenu.o
15267 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15268 FONT_OBJ=xfont.o
15269 if test "$HAVE_XFT" = "yes"; then
15270 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15271 elif test "$HAVE_FREETYPE" = "yes"; then
15272 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15280 WIDGET_OBJ=
15281 MOTIF_LIBW=
15282 if test "${USE_X_TOOLKIT}" != "none" ; then
15283 WIDGET_OBJ=widget.o
15285 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15287 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15289 $as_echo "#define USE_LUCID 1" >>confdefs.h
15291 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15293 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15295 MOTIF_LIBW=-lXm
15296 case "$opsys" in
15297 gnu-linux)
15298 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15299 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15302 unixware)
15303 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15304 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15305 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15308 aix4-2)
15309 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15310 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15312 esac
15313 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15318 TOOLKIT_LIBW=
15319 case "$USE_X_TOOLKIT" in
15320 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15321 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15322 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15323 esac
15326 if test "$USE_X_TOOLKIT" = "none"; then
15327 LIBXT_OTHER="\$(LIBXSM)"
15328 OLDXMENU_TARGET="really-oldXMenu"
15329 else
15330 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15331 OLDXMENU_TARGET="really-lwlib"
15335 ## The X Menu stuff is present in the X10 distribution, but missing
15336 ## from X11. If we have X10, just use the installed library;
15337 ## otherwise, use our own copy.
15338 if test "${HAVE_X11}" = "yes" ; then
15340 $as_echo "#define HAVE_X11 1" >>confdefs.h
15343 if test "$USE_X_TOOLKIT" = "none"; then
15344 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15345 else
15346 OLDXMENU="\${lwlibdir}/liblw.a"
15348 LIBXMENU="\$(OLDXMENU)"
15349 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15350 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15351 else
15352 ## For a syntactically valid Makefile; not actually used for anything.
15353 ## See comments in src/Makefile.in.
15354 OLDXMENU=nothing
15355 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15356 if test "${HAVE_X_WINDOWS}" = "yes"; then
15357 LIBXMENU="-lXMenu"
15358 else
15359 LIBXMENU=
15361 LIBX_OTHER=
15362 OLDXMENU_DEPS=
15365 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15366 OLDXMENU_TARGET=
15367 OLDXMENU=nothing
15368 LIBXMENU=
15369 OLDXMENU_DEPS=
15378 if test "${HAVE_MENUS}" = "yes" ; then
15380 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15384 if test "${GNU_MALLOC}" = "yes" ; then
15386 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15390 RALLOC_OBJ=
15391 if test "${REL_ALLOC}" = "yes" ; then
15393 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15396 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15400 if test "$opsys" = "cygwin"; then
15401 CYGWIN_OBJ="sheap.o"
15402 ## Cygwin differs because of its unexec().
15403 PRE_ALLOC_OBJ=
15404 POST_ALLOC_OBJ=lastfile.o
15405 else
15406 CYGWIN_OBJ=
15407 PRE_ALLOC_OBJ=lastfile.o
15408 POST_ALLOC_OBJ=
15414 # Configure gnulib here, now that we know LIBS.
15415 >>>>>>> MERGE-SOURCE
15426 LIBC_FATAL_STDERR_=1
15427 export LIBC_FATAL_STDERR_
15429 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15430 # for constant arguments. Useless!
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15432 $as_echo_n "checking for working alloca.h... " >&6; }
15433 if test "${ac_cv_working_alloca_h+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 #include <alloca.h>
15440 main ()
15442 char *p = (char *) alloca (2 * sizeof (int));
15443 if (p) return 0;
15445 return 0;
15447 _ACEOF
15448 if ac_fn_c_try_link "$LINENO"; then :
15449 ac_cv_working_alloca_h=yes
15450 else
15451 ac_cv_working_alloca_h=no
15453 rm -f core conftest.err conftest.$ac_objext \
15454 conftest$ac_exeext conftest.$ac_ext
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15457 $as_echo "$ac_cv_working_alloca_h" >&6; }
15458 if test $ac_cv_working_alloca_h = yes; then
15460 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15465 $as_echo_n "checking for alloca... " >&6; }
15466 if test "${ac_cv_func_alloca_works+set}" = set; then :
15467 $as_echo_n "(cached) " >&6
15468 else
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471 #ifdef __GNUC__
15472 # define alloca __builtin_alloca
15473 #else
15474 # ifdef _MSC_VER
15475 # include <malloc.h>
15476 # define alloca _alloca
15477 # else
15478 # ifdef HAVE_ALLOCA_H
15479 # include <alloca.h>
15480 # else
15481 # ifdef _AIX
15482 #pragma alloca
15483 # else
15484 # ifndef alloca /* predefined by HP cc +Olibcalls */
15485 char *alloca ();
15486 # endif
15487 # endif
15488 # endif
15489 # endif
15490 #endif
15493 main ()
15495 char *p = (char *) alloca (1);
15496 if (p) return 0;
15498 return 0;
15500 _ACEOF
15501 if ac_fn_c_try_link "$LINENO"; then :
15502 ac_cv_func_alloca_works=yes
15503 else
15504 ac_cv_func_alloca_works=no
15506 rm -f core conftest.err conftest.$ac_objext \
15507 conftest$ac_exeext conftest.$ac_ext
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15510 $as_echo "$ac_cv_func_alloca_works" >&6; }
15512 if test $ac_cv_func_alloca_works = yes; then
15514 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15516 else
15517 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15518 # that cause trouble. Some versions do not even contain alloca or
15519 # contain a buggy version. If you still want to use their alloca,
15520 # use ar to extract alloca.o from them instead of compiling alloca.c.
15526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15528 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15532 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15533 if test "${ac_cv_os_cray+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 #if defined CRAY && ! defined CRAY2
15539 webecray
15540 #else
15541 wenotbecray
15542 #endif
15544 _ACEOF
15545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15546 $EGREP "webecray" >/dev/null 2>&1; then :
15547 ac_cv_os_cray=yes
15548 else
15549 ac_cv_os_cray=no
15551 rm -f conftest*
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15555 $as_echo "$ac_cv_os_cray" >&6; }
15556 if test $ac_cv_os_cray = yes; then
15557 for ac_func in _getb67 GETB67 getb67; do
15558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15560 eval as_val=\$$as_ac_var
15561 if test "x$as_val" = x""yes; then :
15563 cat >>confdefs.h <<_ACEOF
15564 #define CRAY_STACKSEG_END $ac_func
15565 _ACEOF
15567 break
15570 done
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15574 $as_echo_n "checking stack direction for C alloca... " >&6; }
15575 if test "${ac_cv_c_stack_direction+set}" = set; then :
15576 $as_echo_n "(cached) " >&6
15577 else
15578 if test "$cross_compiling" = yes; then :
15579 ac_cv_c_stack_direction=0
15580 else
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 $ac_includes_default
15585 find_stack_direction (int *addr, int depth)
15587 int dir, dummy = 0;
15588 if (! addr)
15589 addr = &dummy;
15590 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15591 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15592 return dir + dummy;
15596 main (int argc, char **argv)
15598 return find_stack_direction (0, argc + !argv + 20) < 0;
15600 _ACEOF
15601 if ac_fn_c_try_run "$LINENO"; then :
15602 ac_cv_c_stack_direction=1
15603 else
15604 ac_cv_c_stack_direction=-1
15606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15607 conftest.$ac_objext conftest.beam conftest.$ac_ext
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15612 $as_echo "$ac_cv_c_stack_direction" >&6; }
15613 cat >>confdefs.h <<_ACEOF
15614 #define STACK_DIRECTION $ac_cv_c_stack_direction
15615 _ACEOF
15623 for ac_func in $ac_func_list
15624 do :
15625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15627 eval as_val=\$$as_ac_var
15628 if test "x$as_val" = x""yes; then :
15629 cat >>confdefs.h <<_ACEOF
15630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15631 _ACEOF
15634 done
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15640 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15641 if test "${ac_cv_c_bigendian+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 ac_cv_c_bigendian=unknown
15645 # See if we're dealing with a universal compiler.
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 #ifndef __APPLE_CC__
15649 not a universal capable compiler
15650 #endif
15651 typedef int dummy;
15653 _ACEOF
15654 if ac_fn_c_try_compile "$LINENO"; then :
15656 # Check for potential -arch flags. It is not universal unless
15657 # there are at least two -arch flags with different values.
15658 ac_arch=
15659 ac_prev=
15660 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15661 if test -n "$ac_prev"; then
15662 case $ac_word in
15663 i?86 | x86_64 | ppc | ppc64)
15664 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15665 ac_arch=$ac_word
15666 else
15667 ac_cv_c_bigendian=universal
15668 break
15671 esac
15672 ac_prev=
15673 elif test "x$ac_word" = "x-arch"; then
15674 ac_prev=arch
15676 done
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 if test $ac_cv_c_bigendian = unknown; then
15680 # See if sys/param.h defines the BYTE_ORDER macro.
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include <sys/types.h>
15684 #include <sys/param.h>
15687 main ()
15689 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15690 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15691 && LITTLE_ENDIAN)
15692 bogus endian macros
15693 #endif
15696 return 0;
15698 _ACEOF
15699 if ac_fn_c_try_compile "$LINENO"; then :
15700 # It does; now see whether it defined to BIG_ENDIAN or not.
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <sys/types.h>
15704 #include <sys/param.h>
15707 main ()
15709 #if BYTE_ORDER != BIG_ENDIAN
15710 not big endian
15711 #endif
15714 return 0;
15716 _ACEOF
15717 if ac_fn_c_try_compile "$LINENO"; then :
15718 ac_cv_c_bigendian=yes
15719 else
15720 ac_cv_c_bigendian=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 if test $ac_cv_c_bigendian = unknown; then
15727 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 #include <limits.h>
15733 main ()
15735 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15736 bogus endian macros
15737 #endif
15740 return 0;
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 # It does; now see whether it defined to _BIG_ENDIAN or not.
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include <limits.h>
15750 main ()
15752 #ifndef _BIG_ENDIAN
15753 not big endian
15754 #endif
15757 return 0;
15759 _ACEOF
15760 if ac_fn_c_try_compile "$LINENO"; then :
15761 ac_cv_c_bigendian=yes
15762 else
15763 ac_cv_c_bigendian=no
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 if test $ac_cv_c_bigendian = unknown; then
15770 # Compile a test program.
15771 if test "$cross_compiling" = yes; then :
15772 # Try to guess by grepping values from an object file.
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15775 short int ascii_mm[] =
15776 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15777 short int ascii_ii[] =
15778 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15779 int use_ascii (int i) {
15780 return ascii_mm[i] + ascii_ii[i];
15782 short int ebcdic_ii[] =
15783 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15784 short int ebcdic_mm[] =
15785 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15786 int use_ebcdic (int i) {
15787 return ebcdic_mm[i] + ebcdic_ii[i];
15789 extern int foo;
15792 main ()
15794 return use_ascii (foo) == use_ebcdic (foo);
15796 return 0;
15798 _ACEOF
15799 if ac_fn_c_try_compile "$LINENO"; then :
15800 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15801 ac_cv_c_bigendian=yes
15803 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15804 if test "$ac_cv_c_bigendian" = unknown; then
15805 ac_cv_c_bigendian=no
15806 else
15807 # finding both strings is unlikely to happen, but who knows?
15808 ac_cv_c_bigendian=unknown
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 else
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 $ac_includes_default
15818 main ()
15821 /* Are we little or big endian? From Harbison&Steele. */
15822 union
15824 long int l;
15825 char c[sizeof (long int)];
15826 } u;
15827 u.l = 1;
15828 return u.c[sizeof (long int) - 1] == 1;
15831 return 0;
15833 _ACEOF
15834 if ac_fn_c_try_run "$LINENO"; then :
15835 ac_cv_c_bigendian=no
15836 else
15837 ac_cv_c_bigendian=yes
15839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15840 conftest.$ac_objext conftest.beam conftest.$ac_ext
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15846 $as_echo "$ac_cv_c_bigendian" >&6; }
15847 case $ac_cv_c_bigendian in #(
15848 yes)
15849 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15850 ;; #(
15852 ;; #(
15853 universal)
15855 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15857 ;; #(
15859 as_fn_error "unknown endianness
15860 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15861 esac
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15865 $as_echo_n "checking for inline... " >&6; }
15866 if test "${ac_cv_c_inline+set}" = set; then :
15867 $as_echo_n "(cached) " >&6
15868 else
15869 ac_cv_c_inline=no
15870 for ac_kw in inline __inline__ __inline; do
15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 #ifndef __cplusplus
15874 typedef int foo_t;
15875 static $ac_kw foo_t static_foo () {return 0; }
15876 $ac_kw foo_t foo () {return 0; }
15877 #endif
15879 _ACEOF
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881 ac_cv_c_inline=$ac_kw
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 test "$ac_cv_c_inline" != no && break
15885 done
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15889 $as_echo "$ac_cv_c_inline" >&6; }
15891 case $ac_cv_c_inline in
15892 inline | yes) ;;
15894 case $ac_cv_c_inline in
15895 no) ac_val=;;
15896 *) ac_val=$ac_cv_c_inline;;
15897 esac
15898 cat >>confdefs.h <<_ACEOF
15899 #ifndef __cplusplus
15900 #define inline $ac_val
15901 #endif
15902 _ACEOF
15904 esac
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
15908 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
15909 if test "${gl_cv_func_c99_strtold+set}" = set; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914 /* On HP-UX before 11.23, strtold returns a struct instead of
15915 long double. Reject implementations like that, by requiring
15916 compatibility with the C99 prototype. */
15917 #include <stdlib.h>
15918 static long double (*p) (char const *, char **) = strtold;
15919 static long double
15920 test (char const *nptr, char **endptr)
15922 long double r;
15923 r = strtold (nptr, endptr);
15924 return r;
15927 main ()
15929 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
15931 return 0;
15933 _ACEOF
15934 if ac_fn_c_try_link "$LINENO"; then :
15935 gl_cv_func_c99_strtold=yes
15936 else
15937 gl_cv_func_c99_strtold=no
15939 rm -f core conftest.err conftest.$ac_objext \
15940 conftest$ac_exeext conftest.$ac_ext
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
15943 $as_echo "$gl_cv_func_c99_strtold" >&6; }
15944 if test $gl_cv_func_c99_strtold = yes; then
15946 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
15951 GNULIB_CHOWN=0;
15952 GNULIB_CLOSE=0;
15953 GNULIB_DUP2=0;
15954 GNULIB_DUP3=0;
15955 GNULIB_ENVIRON=0;
15956 GNULIB_EUIDACCESS=0;
15957 GNULIB_FACCESSAT=0;
15958 GNULIB_FCHDIR=0;
15959 GNULIB_FCHOWNAT=0;
15960 GNULIB_FSYNC=0;
15961 GNULIB_FTRUNCATE=0;
15962 GNULIB_GETCWD=0;
15963 GNULIB_GETDOMAINNAME=0;
15964 GNULIB_GETDTABLESIZE=0;
15965 GNULIB_GETGROUPS=0;
15966 GNULIB_GETHOSTNAME=0;
15967 GNULIB_GETLOGIN=0;
15968 GNULIB_GETLOGIN_R=0;
15969 GNULIB_GETPAGESIZE=0;
15970 GNULIB_GETUSERSHELL=0;
15971 GNULIB_GROUP_MEMBER=0;
15972 GNULIB_LCHOWN=0;
15973 GNULIB_LINK=0;
15974 GNULIB_LINKAT=0;
15975 GNULIB_LSEEK=0;
15976 GNULIB_PIPE=0;
15977 GNULIB_PIPE2=0;
15978 GNULIB_PREAD=0;
15979 GNULIB_PWRITE=0;
15980 GNULIB_READ=0;
15981 GNULIB_READLINK=0;
15982 GNULIB_READLINKAT=0;
15983 GNULIB_RMDIR=0;
15984 GNULIB_SLEEP=0;
15985 GNULIB_SYMLINK=0;
15986 GNULIB_SYMLINKAT=0;
15987 GNULIB_TTYNAME_R=0;
15988 GNULIB_UNISTD_H_GETOPT=0;
15989 GNULIB_UNISTD_H_NONBLOCKING=0;
15990 GNULIB_UNISTD_H_SIGPIPE=0;
15991 GNULIB_UNLINK=0;
15992 GNULIB_UNLINKAT=0;
15993 GNULIB_USLEEP=0;
15994 GNULIB_WRITE=0;
15995 HAVE_CHOWN=1;
15996 HAVE_DUP2=1;
15997 HAVE_DUP3=1;
15998 HAVE_EUIDACCESS=1;
15999 HAVE_FACCESSAT=1;
16000 HAVE_FCHDIR=1;
16001 HAVE_FCHOWNAT=1;
16002 HAVE_FSYNC=1;
16003 HAVE_FTRUNCATE=1;
16004 HAVE_GETDTABLESIZE=1;
16005 HAVE_GETGROUPS=1;
16006 HAVE_GETHOSTNAME=1;
16007 HAVE_GETLOGIN=1;
16008 HAVE_GETPAGESIZE=1;
16009 HAVE_GROUP_MEMBER=1;
16010 HAVE_LCHOWN=1;
16011 HAVE_LINK=1;
16012 HAVE_LINKAT=1;
16013 HAVE_PIPE=1;
16014 HAVE_PIPE2=1;
16015 HAVE_PREAD=1;
16016 HAVE_PWRITE=1;
16017 HAVE_READLINK=1;
16018 HAVE_READLINKAT=1;
16019 HAVE_SLEEP=1;
16020 HAVE_SYMLINK=1;
16021 HAVE_SYMLINKAT=1;
16022 HAVE_UNLINKAT=1;
16023 HAVE_USLEEP=1;
16024 HAVE_DECL_ENVIRON=1;
16025 HAVE_DECL_FCHDIR=1;
16026 HAVE_DECL_GETDOMAINNAME=1;
16027 HAVE_DECL_GETLOGIN_R=1;
16028 HAVE_DECL_GETPAGESIZE=1;
16029 HAVE_DECL_GETUSERSHELL=1;
16030 HAVE_DECL_TTYNAME_R=1;
16031 HAVE_OS_H=0;
16032 HAVE_SYS_PARAM_H=0;
16033 REPLACE_CHOWN=0;
16034 REPLACE_CLOSE=0;
16035 REPLACE_DUP=0;
16036 REPLACE_DUP2=0;
16037 REPLACE_FCHOWNAT=0;
16038 REPLACE_GETCWD=0;
16039 REPLACE_GETDOMAINNAME=0;
16040 REPLACE_GETLOGIN_R=0;
16041 REPLACE_GETGROUPS=0;
16042 REPLACE_GETPAGESIZE=0;
16043 REPLACE_LCHOWN=0;
16044 REPLACE_LINK=0;
16045 REPLACE_LINKAT=0;
16046 REPLACE_LSEEK=0;
16047 REPLACE_PREAD=0;
16048 REPLACE_PWRITE=0;
16049 REPLACE_READ=0;
16050 REPLACE_READLINK=0;
16051 REPLACE_RMDIR=0;
16052 REPLACE_SLEEP=0;
16053 REPLACE_SYMLINK=0;
16054 REPLACE_TTYNAME_R=0;
16055 REPLACE_UNLINK=0;
16056 REPLACE_UNLINKAT=0;
16057 REPLACE_USLEEP=0;
16058 REPLACE_WRITE=0;
16059 UNISTD_H_HAVE_WINSOCK2_H=0;
16060 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16066 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16067 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16068 $as_echo_n "(cached) " >&6
16069 else
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16073 #include <sys/types.h>
16074 #include <sys/stat.h>
16076 main ()
16078 struct stat s; s.st_dm_mode;
16080 return 0;
16082 _ACEOF
16083 if ac_fn_c_try_compile "$LINENO"; then :
16084 ac_cv_struct_st_dm_mode=yes
16085 else
16086 ac_cv_struct_st_dm_mode=no
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16091 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16093 if test $ac_cv_struct_st_dm_mode = yes; then
16095 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16100 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16101 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16102 ac_have_decl=1
16103 else
16104 ac_have_decl=0
16107 cat >>confdefs.h <<_ACEOF
16108 #define HAVE_DECL_STRMODE $ac_have_decl
16109 _ACEOF
16112 GNULIB__EXIT=0;
16113 GNULIB_ATOLL=0;
16114 GNULIB_CALLOC_POSIX=0;
16115 GNULIB_CANONICALIZE_FILE_NAME=0;
16116 GNULIB_GETLOADAVG=0;
16117 GNULIB_GETSUBOPT=0;
16118 GNULIB_GRANTPT=0;
16119 GNULIB_MALLOC_POSIX=0;
16120 GNULIB_MBTOWC=0;
16121 GNULIB_MKDTEMP=0;
16122 GNULIB_MKOSTEMP=0;
16123 GNULIB_MKOSTEMPS=0;
16124 GNULIB_MKSTEMP=0;
16125 GNULIB_MKSTEMPS=0;
16126 GNULIB_PTSNAME=0;
16127 GNULIB_PUTENV=0;
16128 GNULIB_RANDOM_R=0;
16129 GNULIB_REALLOC_POSIX=0;
16130 GNULIB_REALPATH=0;
16131 GNULIB_RPMATCH=0;
16132 GNULIB_SETENV=0;
16133 GNULIB_STRTOD=0;
16134 GNULIB_STRTOLL=0;
16135 GNULIB_STRTOULL=0;
16136 GNULIB_SYSTEM_POSIX=0;
16137 GNULIB_UNLOCKPT=0;
16138 GNULIB_UNSETENV=0;
16139 GNULIB_WCTOMB=0;
16140 HAVE__EXIT=1;
16141 HAVE_ATOLL=1;
16142 HAVE_CANONICALIZE_FILE_NAME=1;
16143 HAVE_DECL_GETLOADAVG=1;
16144 HAVE_GETSUBOPT=1;
16145 HAVE_GRANTPT=1;
16146 HAVE_MKDTEMP=1;
16147 HAVE_MKOSTEMP=1;
16148 HAVE_MKOSTEMPS=1;
16149 HAVE_MKSTEMP=1;
16150 HAVE_MKSTEMPS=1;
16151 HAVE_PTSNAME=1;
16152 HAVE_RANDOM_H=1;
16153 HAVE_RANDOM_R=1;
16154 HAVE_REALPATH=1;
16155 HAVE_RPMATCH=1;
16156 HAVE_SETENV=1;
16157 HAVE_DECL_SETENV=1;
16158 HAVE_STRTOD=1;
16159 HAVE_STRTOLL=1;
16160 HAVE_STRTOULL=1;
16161 HAVE_STRUCT_RANDOM_DATA=1;
16162 HAVE_SYS_LOADAVG_H=0;
16163 HAVE_UNLOCKPT=1;
16164 HAVE_DECL_UNSETENV=1;
16165 REPLACE_CALLOC=0;
16166 REPLACE_CANONICALIZE_FILE_NAME=0;
16167 REPLACE_MALLOC=0;
16168 REPLACE_MBTOWC=0;
16169 REPLACE_MKSTEMP=0;
16170 REPLACE_PUTENV=0;
16171 REPLACE_REALLOC=0;
16172 REPLACE_REALPATH=0;
16173 REPLACE_SETENV=0;
16174 REPLACE_STRTOD=0;
16175 REPLACE_UNSETENV=0;
16176 REPLACE_WCTOMB=0;
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16181 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16182 if test "${gl_cv_have_include_next+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 rm -rf conftestd1a conftestd1b conftestd2
16186 mkdir conftestd1a conftestd1b conftestd2
16187 cat <<EOF > conftestd1a/conftest.h
16188 #define DEFINED_IN_CONFTESTD1
16189 #include_next <conftest.h>
16190 #ifdef DEFINED_IN_CONFTESTD2
16191 int foo;
16192 #else
16193 #error "include_next doesn't work"
16194 #endif
16196 cat <<EOF > conftestd1b/conftest.h
16197 #define DEFINED_IN_CONFTESTD1
16198 #include <stdio.h>
16199 #include_next <conftest.h>
16200 #ifdef DEFINED_IN_CONFTESTD2
16201 int foo;
16202 #else
16203 #error "include_next doesn't work"
16204 #endif
16206 cat <<EOF > conftestd2/conftest.h
16207 #ifndef DEFINED_IN_CONFTESTD1
16208 #error "include_next test doesn't work"
16209 #endif
16210 #define DEFINED_IN_CONFTESTD2
16212 gl_save_CPPFLAGS="$CPPFLAGS"
16213 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 #include <conftest.h>
16217 _ACEOF
16218 if ac_fn_c_try_compile "$LINENO"; then :
16219 gl_cv_have_include_next=yes
16220 else
16221 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #include <conftest.h>
16225 _ACEOF
16226 if ac_fn_c_try_compile "$LINENO"; then :
16227 gl_cv_have_include_next=buggy
16228 else
16229 gl_cv_have_include_next=no
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 CPPFLAGS="$gl_save_CPPFLAGS"
16236 rm -rf conftestd1a conftestd1b conftestd2
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16240 $as_echo "$gl_cv_have_include_next" >&6; }
16241 PRAGMA_SYSTEM_HEADER=
16242 if test $gl_cv_have_include_next = yes; then
16243 INCLUDE_NEXT=include_next
16244 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16245 if test -n "$GCC"; then
16246 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16248 else
16249 if test $gl_cv_have_include_next = buggy; then
16250 INCLUDE_NEXT=include
16251 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16252 else
16253 INCLUDE_NEXT=include
16254 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16261 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16262 if test "${gl_cv_pragma_columns+set}" = set; then :
16263 $as_echo_n "(cached) " >&6
16264 else
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16268 #ifdef __TANDEM
16269 choke me
16270 #endif
16272 _ACEOF
16273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16274 $EGREP "choke me" >/dev/null 2>&1; then :
16275 gl_cv_pragma_columns=yes
16276 else
16277 gl_cv_pragma_columns=no
16279 rm -f conftest*
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16284 $as_echo "$gl_cv_pragma_columns" >&6; }
16285 if test $gl_cv_pragma_columns = yes; then
16286 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16287 else
16288 PRAGMA_COLUMNS=
16307 if test $gl_cv_have_include_next = yes; then
16308 gl_cv_next_getopt_h='<'getopt.h'>'
16309 else
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16311 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16312 if test "${gl_cv_next_getopt_h+set}" = set; then :
16313 $as_echo_n "(cached) " >&6
16314 else
16316 if test $ac_cv_header_getopt_h = yes; then
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 #include <getopt.h>
16323 _ACEOF
16324 case "$host_os" in
16325 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16326 *) gl_absname_cpp="$ac_cpp" ;;
16327 esac
16328 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16329 sed -n '\#/getopt.h#{
16330 s#.*"\(.*/getopt.h\)".*#\1#
16331 s#^/[^/]#//&#
16334 }'`'"'
16335 else
16336 gl_cv_next_getopt_h='<'getopt.h'>'
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16342 $as_echo "$gl_cv_next_getopt_h" >&6; }
16344 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16346 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16348 gl_next_as_first_directive='<'getopt.h'>'
16349 else
16350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16351 gl_next_as_first_directive=$gl_cv_next_getopt_h
16353 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16358 if test $ac_cv_header_getopt_h = yes; then
16359 HAVE_GETOPT_H=1
16360 else
16361 HAVE_GETOPT_H=0
16365 gl_replace_getopt=
16367 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16368 for ac_header in getopt.h
16369 do :
16370 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16371 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16372 cat >>confdefs.h <<_ACEOF
16373 #define HAVE_GETOPT_H 1
16374 _ACEOF
16376 else
16377 gl_replace_getopt=yes
16380 done
16384 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16385 for ac_func in getopt_long_only
16386 do :
16387 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16388 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16389 cat >>confdefs.h <<_ACEOF
16390 #define HAVE_GETOPT_LONG_ONLY 1
16391 _ACEOF
16393 else
16394 gl_replace_getopt=yes
16396 done
16400 if test -z "$gl_replace_getopt"; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16402 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16403 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
16405 else
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16409 #include <unistd.h>
16411 main ()
16413 int *p = &optreset; return optreset;
16415 return 0;
16417 _ACEOF
16418 if ac_fn_c_try_compile "$LINENO"; then :
16419 gl_optind_min=1
16420 else
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 #include <getopt.h>
16425 main ()
16427 return !getopt_clip;
16429 return 0;
16431 _ACEOF
16432 if ac_fn_c_try_compile "$LINENO"; then :
16433 gl_optind_min=1
16434 else
16435 gl_optind_min=0
16437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 gl_save_CPPFLAGS=$CPPFLAGS
16442 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16443 if test "$cross_compiling" = yes; then :
16444 case "$host_os" in
16445 mingw*) gl_cv_func_getopt_posix="guessing no";;
16446 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16447 *) gl_cv_func_getopt_posix="guessing yes";;
16448 esac
16450 else
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16454 #include <unistd.h>
16455 #include <stdlib.h>
16456 #include <string.h>
16459 main ()
16462 int argc = 0;
16463 char *argv[10];
16464 int c;
16466 argv[argc++] = "program";
16467 argv[argc++] = "-a";
16468 argv[argc++] = "foo";
16469 argv[argc++] = "bar";
16470 argv[argc] = NULL;
16471 optind = OPTIND_MIN;
16472 opterr = 0;
16474 c = getopt (argc, argv, "ab");
16475 if (!(c == 'a'))
16476 return 1;
16477 c = getopt (argc, argv, "ab");
16478 if (!(c == -1))
16479 return 2;
16480 if (!(optind == 2))
16481 return 3;
16483 /* Some internal state exists at this point. */
16485 int argc = 0;
16486 char *argv[10];
16487 int c;
16489 argv[argc++] = "program";
16490 argv[argc++] = "donald";
16491 argv[argc++] = "-p";
16492 argv[argc++] = "billy";
16493 argv[argc++] = "duck";
16494 argv[argc++] = "-a";
16495 argv[argc++] = "bar";
16496 argv[argc] = NULL;
16497 optind = OPTIND_MIN;
16498 opterr = 0;
16500 c = getopt (argc, argv, "+abp:q:");
16501 if (!(c == -1))
16502 return 4;
16503 if (!(strcmp (argv[0], "program") == 0))
16504 return 5;
16505 if (!(strcmp (argv[1], "donald") == 0))
16506 return 6;
16507 if (!(strcmp (argv[2], "-p") == 0))
16508 return 7;
16509 if (!(strcmp (argv[3], "billy") == 0))
16510 return 8;
16511 if (!(strcmp (argv[4], "duck") == 0))
16512 return 9;
16513 if (!(strcmp (argv[5], "-a") == 0))
16514 return 10;
16515 if (!(strcmp (argv[6], "bar") == 0))
16516 return 11;
16517 if (!(optind == 1))
16518 return 12;
16520 /* Detect MacOS 10.5, AIX 7.1 bug. */
16522 char *argv[3] = { "program", "-ab", NULL };
16523 optind = OPTIND_MIN;
16524 opterr = 0;
16525 if (getopt (2, argv, "ab:") != 'a')
16526 return 13;
16527 if (getopt (2, argv, "ab:") != '?')
16528 return 14;
16529 if (optopt != 'b')
16530 return 15;
16531 if (optind != 2)
16532 return 16;
16535 return 0;
16538 _ACEOF
16539 if ac_fn_c_try_run "$LINENO"; then :
16540 gl_cv_func_getopt_posix=yes
16541 else
16542 gl_cv_func_getopt_posix=no
16544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16545 conftest.$ac_objext conftest.beam conftest.$ac_ext
16548 CPPFLAGS=$gl_save_CPPFLAGS
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
16552 $as_echo "$gl_cv_func_getopt_posix" >&6; }
16553 case "$gl_cv_func_getopt_posix" in
16554 *no) gl_replace_getopt=yes ;;
16555 esac
16558 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
16560 $as_echo_n "checking for working GNU getopt function... " >&6; }
16561 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
16565 # optstring is necessary for programs like m4 that have POSIX-mandated
16566 # semantics for supporting options interspersed with files.
16567 # Also, since getopt_long is a GNU extension, we require optind=0.
16568 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
16569 # so take care to revert to the correct (non-)export state.
16570 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
16571 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
16572 xx) gl_had_POSIXLY_CORRECT=exported ;;
16573 x) gl_had_POSIXLY_CORRECT=yes ;;
16574 *) gl_had_POSIXLY_CORRECT= ;;
16575 esac
16576 POSIXLY_CORRECT=1
16577 export POSIXLY_CORRECT
16578 if test "$cross_compiling" = yes; then :
16579 case $host_os:$ac_cv_have_decl_optreset in
16580 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
16581 *:yes) gl_cv_func_getopt_gnu=no;;
16582 *) gl_cv_func_getopt_gnu=yes;;
16583 esac
16585 else
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <getopt.h>
16589 #include <stddef.h>
16590 #include <string.h>
16593 main ()
16596 int result = 0;
16597 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
16598 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
16599 OSF/1 5.1, Solaris 10. */
16601 char *myargv[3];
16602 myargv[0] = "conftest";
16603 myargv[1] = "-+";
16604 myargv[2] = 0;
16605 opterr = 0;
16606 if (getopt (2, myargv, "+a") != '?')
16607 result |= 1;
16609 /* This code succeeds on glibc 2.8, mingw,
16610 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
16611 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
16613 char *argv[] = { "program", "-p", "foo", "bar", NULL };
16615 optind = 1;
16616 if (getopt (4, argv, "p::") != 'p')
16617 result |= 2;
16618 else if (optarg != NULL)
16619 result |= 4;
16620 else if (getopt (4, argv, "p::") != -1)
16621 result |= 6;
16622 else if (optind != 2)
16623 result |= 8;
16625 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
16627 char *argv[] = { "program", "foo", "-p", NULL };
16628 optind = 0;
16629 if (getopt (3, argv, "-p") != 1)
16630 result |= 16;
16631 else if (getopt (3, argv, "-p") != 'p')
16632 result |= 32;
16634 /* This code fails on glibc 2.11. */
16636 char *argv[] = { "program", "-b", "-a", NULL };
16637 optind = opterr = 0;
16638 if (getopt (3, argv, "+:a:b") != 'b')
16639 result |= 64;
16640 else if (getopt (3, argv, "+:a:b") != ':')
16641 result |= 64;
16643 return result;
16646 return 0;
16648 _ACEOF
16649 if ac_fn_c_try_run "$LINENO"; then :
16650 gl_cv_func_getopt_gnu=yes
16651 else
16652 gl_cv_func_getopt_gnu=no
16654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16655 conftest.$ac_objext conftest.beam conftest.$ac_ext
16658 case $gl_had_POSIXLY_CORRECT in
16659 exported) ;;
16660 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
16661 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
16662 esac
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
16666 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
16667 if test "$gl_cv_func_getopt_gnu" = "no"; then
16668 gl_replace_getopt=yes
16676 REPLACE_GETOPT=0
16679 if test -n "$gl_replace_getopt"; then :
16681 REPLACE_GETOPT=1
16686 if test $REPLACE_GETOPT = 1; then
16688 GETOPT_H=getopt.h
16690 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16694 GNULIB_UNISTD_H_GETOPT=1
16697 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16698 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16699 ac_have_decl=1
16700 else
16701 ac_have_decl=0
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_DECL_GETENV $ac_have_decl
16706 _ACEOF
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16710 $as_echo_n "checking for unsigned long long int... " >&6; }
16711 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
16712 $as_echo_n "(cached) " >&6
16713 else
16714 ac_cv_type_unsigned_long_long_int=yes
16715 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16719 /* For now, do not test the preprocessor; as of 2007 there are too many
16720 implementations with broken preprocessors. Perhaps this can
16721 be revisited in 2012. In the meantime, code should not expect
16722 #if to work with literals wider than 32 bits. */
16723 /* Test literals. */
16724 long long int ll = 9223372036854775807ll;
16725 long long int nll = -9223372036854775807LL;
16726 unsigned long long int ull = 18446744073709551615ULL;
16727 /* Test constant expressions. */
16728 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16729 ? 1 : -1)];
16730 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16731 ? 1 : -1)];
16732 int i = 63;
16734 main ()
16736 /* Test availability of runtime routines for shift and division. */
16737 long long int llmax = 9223372036854775807ll;
16738 unsigned long long int ullmax = 18446744073709551615ull;
16739 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16740 | (llmax / ll) | (llmax % ll)
16741 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16742 | (ullmax / ull) | (ullmax % ull));
16744 return 0;
16747 _ACEOF
16748 if ac_fn_c_try_link "$LINENO"; then :
16750 else
16751 ac_cv_type_unsigned_long_long_int=no
16753 rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16758 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16759 if test $ac_cv_type_unsigned_long_long_int = yes; then
16761 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16768 $as_echo_n "checking for long long int... " >&6; }
16769 if test "${ac_cv_type_long_long_int+set}" = set; then :
16770 $as_echo_n "(cached) " >&6
16771 else
16772 ac_cv_type_long_long_int=yes
16773 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16774 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16775 if test $ac_cv_type_long_long_int = yes; then
16776 if test "$cross_compiling" = yes; then :
16778 else
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <limits.h>
16782 #ifndef LLONG_MAX
16783 # define HALF \
16784 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16785 # define LLONG_MAX (HALF - 1 + HALF)
16786 #endif
16788 main ()
16790 long long int n = 1;
16791 int i;
16792 for (i = 0; ; i++)
16794 long long int m = n << i;
16795 if (m >> i != n)
16796 return 1;
16797 if (LLONG_MAX / 2 < m)
16798 break;
16800 return 0;
16802 return 0;
16804 _ACEOF
16805 if ac_fn_c_try_run "$LINENO"; then :
16807 else
16808 ac_cv_type_long_long_int=no
16810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16811 conftest.$ac_objext conftest.beam conftest.$ac_ext
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16818 $as_echo "$ac_cv_type_long_long_int" >&6; }
16819 if test $ac_cv_type_long_long_int = yes; then
16821 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16830 gl_cv_c_multiarch=no
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 #ifndef __APPLE_CC__
16834 not a universal capable compiler
16835 #endif
16836 typedef int dummy;
16838 _ACEOF
16839 if ac_fn_c_try_compile "$LINENO"; then :
16841 arch=
16842 prev=
16843 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16844 if test -n "$prev"; then
16845 case $word in
16846 i?86 | x86_64 | ppc | ppc64)
16847 if test -z "$arch" || test "$arch" = "$word"; then
16848 arch="$word"
16849 else
16850 gl_cv_c_multiarch=yes
16853 esac
16854 prev=
16855 else
16856 if test "x$word" = "x-arch"; then
16857 prev=arch
16860 done
16863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 if test $gl_cv_c_multiarch = yes; then
16865 APPLE_UNIVERSAL_BUILD=1
16866 else
16867 APPLE_UNIVERSAL_BUILD=0
16874 if test $ac_cv_type_long_long_int = yes; then
16875 HAVE_LONG_LONG_INT=1
16876 else
16877 HAVE_LONG_LONG_INT=0
16881 if test $ac_cv_type_unsigned_long_long_int = yes; then
16882 HAVE_UNSIGNED_LONG_LONG_INT=1
16883 else
16884 HAVE_UNSIGNED_LONG_LONG_INT=0
16889 if test $ac_cv_header_wchar_h = yes; then
16890 HAVE_WCHAR_H=1
16891 else
16892 HAVE_WCHAR_H=0
16896 if test $ac_cv_header_inttypes_h = yes; then
16897 HAVE_INTTYPES_H=1
16898 else
16899 HAVE_INTTYPES_H=0
16903 if test $ac_cv_header_sys_types_h = yes; then
16904 HAVE_SYS_TYPES_H=1
16905 else
16906 HAVE_SYS_TYPES_H=0
16919 if test $gl_cv_have_include_next = yes; then
16920 gl_cv_next_stdint_h='<'stdint.h'>'
16921 else
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16923 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16924 if test "${gl_cv_next_stdint_h+set}" = set; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16928 if test $ac_cv_header_stdint_h = yes; then
16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16933 #include <stdint.h>
16935 _ACEOF
16936 case "$host_os" in
16937 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16938 *) gl_absname_cpp="$ac_cpp" ;;
16939 esac
16940 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16941 sed -n '\#/stdint.h#{
16942 s#.*"\(.*/stdint.h\)".*#\1#
16943 s#^/[^/]#//&#
16946 }'`'"'
16947 else
16948 gl_cv_next_stdint_h='<'stdint.h'>'
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16954 $as_echo "$gl_cv_next_stdint_h" >&6; }
16956 NEXT_STDINT_H=$gl_cv_next_stdint_h
16958 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16960 gl_next_as_first_directive='<'stdint.h'>'
16961 else
16962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16963 gl_next_as_first_directive=$gl_cv_next_stdint_h
16965 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16970 if test $ac_cv_header_stdint_h = yes; then
16971 HAVE_STDINT_H=1
16972 else
16973 HAVE_STDINT_H=0
16977 if test $ac_cv_header_stdint_h = yes; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16979 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16980 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 gl_cv_header_working_stdint_h=no
16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985 /* end confdefs.h. */
16988 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16989 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16990 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16991 #include <stdint.h>
16992 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16993 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16994 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16995 #endif
16998 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16999 included before <wchar.h>. */
17000 #include <stddef.h>
17001 #include <signal.h>
17002 #if HAVE_WCHAR_H
17003 # include <stdio.h>
17004 # include <time.h>
17005 # include <wchar.h>
17006 #endif
17009 #ifdef INT8_MAX
17010 int8_t a1 = INT8_MAX;
17011 int8_t a1min = INT8_MIN;
17012 #endif
17013 #ifdef INT16_MAX
17014 int16_t a2 = INT16_MAX;
17015 int16_t a2min = INT16_MIN;
17016 #endif
17017 #ifdef INT32_MAX
17018 int32_t a3 = INT32_MAX;
17019 int32_t a3min = INT32_MIN;
17020 #endif
17021 #ifdef INT64_MAX
17022 int64_t a4 = INT64_MAX;
17023 int64_t a4min = INT64_MIN;
17024 #endif
17025 #ifdef UINT8_MAX
17026 uint8_t b1 = UINT8_MAX;
17027 #else
17028 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17029 #endif
17030 #ifdef UINT16_MAX
17031 uint16_t b2 = UINT16_MAX;
17032 #endif
17033 #ifdef UINT32_MAX
17034 uint32_t b3 = UINT32_MAX;
17035 #endif
17036 #ifdef UINT64_MAX
17037 uint64_t b4 = UINT64_MAX;
17038 #endif
17039 int_least8_t c1 = INT8_C (0x7f);
17040 int_least8_t c1max = INT_LEAST8_MAX;
17041 int_least8_t c1min = INT_LEAST8_MIN;
17042 int_least16_t c2 = INT16_C (0x7fff);
17043 int_least16_t c2max = INT_LEAST16_MAX;
17044 int_least16_t c2min = INT_LEAST16_MIN;
17045 int_least32_t c3 = INT32_C (0x7fffffff);
17046 int_least32_t c3max = INT_LEAST32_MAX;
17047 int_least32_t c3min = INT_LEAST32_MIN;
17048 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17049 int_least64_t c4max = INT_LEAST64_MAX;
17050 int_least64_t c4min = INT_LEAST64_MIN;
17051 uint_least8_t d1 = UINT8_C (0xff);
17052 uint_least8_t d1max = UINT_LEAST8_MAX;
17053 uint_least16_t d2 = UINT16_C (0xffff);
17054 uint_least16_t d2max = UINT_LEAST16_MAX;
17055 uint_least32_t d3 = UINT32_C (0xffffffff);
17056 uint_least32_t d3max = UINT_LEAST32_MAX;
17057 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17058 uint_least64_t d4max = UINT_LEAST64_MAX;
17059 int_fast8_t e1 = INT_FAST8_MAX;
17060 int_fast8_t e1min = INT_FAST8_MIN;
17061 int_fast16_t e2 = INT_FAST16_MAX;
17062 int_fast16_t e2min = INT_FAST16_MIN;
17063 int_fast32_t e3 = INT_FAST32_MAX;
17064 int_fast32_t e3min = INT_FAST32_MIN;
17065 int_fast64_t e4 = INT_FAST64_MAX;
17066 int_fast64_t e4min = INT_FAST64_MIN;
17067 uint_fast8_t f1 = UINT_FAST8_MAX;
17068 uint_fast16_t f2 = UINT_FAST16_MAX;
17069 uint_fast32_t f3 = UINT_FAST32_MAX;
17070 uint_fast64_t f4 = UINT_FAST64_MAX;
17071 #ifdef INTPTR_MAX
17072 intptr_t g = INTPTR_MAX;
17073 intptr_t gmin = INTPTR_MIN;
17074 #endif
17075 #ifdef UINTPTR_MAX
17076 uintptr_t h = UINTPTR_MAX;
17077 #endif
17078 intmax_t i = INTMAX_MAX;
17079 uintmax_t j = UINTMAX_MAX;
17081 #include <limits.h> /* for CHAR_BIT */
17082 #define TYPE_MINIMUM(t) \
17083 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17084 #define TYPE_MAXIMUM(t) \
17085 ((t) ((t) 0 < (t) -1 \
17086 ? (t) -1 \
17087 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17088 struct s {
17089 int check_PTRDIFF:
17090 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17091 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17092 ? 1 : -1;
17093 /* Detect bug in FreeBSD 6.0 / ia64. */
17094 int check_SIG_ATOMIC:
17095 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17096 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17097 ? 1 : -1;
17098 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17099 int check_WCHAR:
17100 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17101 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17102 ? 1 : -1;
17103 /* Detect bug in mingw. */
17104 int check_WINT:
17105 WINT_MIN == TYPE_MINIMUM (wint_t)
17106 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17107 ? 1 : -1;
17109 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17110 int check_UINT8_C:
17111 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17112 int check_UINT16_C:
17113 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17115 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17116 #ifdef UINT8_MAX
17117 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17118 #endif
17119 #ifdef UINT16_MAX
17120 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17121 #endif
17122 #ifdef UINT32_MAX
17123 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17124 #endif
17125 #ifdef UINT64_MAX
17126 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17127 #endif
17128 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17129 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17130 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17131 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17132 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17133 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17134 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17135 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17136 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17137 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17138 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17142 main ()
17146 return 0;
17148 _ACEOF
17149 if ac_fn_c_try_compile "$LINENO"; then :
17150 if test "$cross_compiling" = yes; then :
17151 gl_cv_header_working_stdint_h=yes
17153 else
17154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155 /* end confdefs.h. */
17158 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17159 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17160 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17161 #include <stdint.h>
17164 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17165 included before <wchar.h>. */
17166 #include <stddef.h>
17167 #include <signal.h>
17168 #if HAVE_WCHAR_H
17169 # include <stdio.h>
17170 # include <time.h>
17171 # include <wchar.h>
17172 #endif
17175 #include <stdio.h>
17176 #include <string.h>
17177 #define MVAL(macro) MVAL1(macro)
17178 #define MVAL1(expression) #expression
17179 static const char *macro_values[] =
17181 #ifdef INT8_MAX
17182 MVAL (INT8_MAX),
17183 #endif
17184 #ifdef INT16_MAX
17185 MVAL (INT16_MAX),
17186 #endif
17187 #ifdef INT32_MAX
17188 MVAL (INT32_MAX),
17189 #endif
17190 #ifdef INT64_MAX
17191 MVAL (INT64_MAX),
17192 #endif
17193 #ifdef UINT8_MAX
17194 MVAL (UINT8_MAX),
17195 #endif
17196 #ifdef UINT16_MAX
17197 MVAL (UINT16_MAX),
17198 #endif
17199 #ifdef UINT32_MAX
17200 MVAL (UINT32_MAX),
17201 #endif
17202 #ifdef UINT64_MAX
17203 MVAL (UINT64_MAX),
17204 #endif
17205 NULL
17209 main ()
17212 const char **mv;
17213 for (mv = macro_values; *mv != NULL; mv++)
17215 const char *value = *mv;
17216 /* Test whether it looks like a cast expression. */
17217 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17218 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17219 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17220 || strncmp (value, "((int)"/*)*/, 6) == 0
17221 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17222 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17223 return mv - macro_values + 1;
17225 return 0;
17228 return 0;
17230 _ACEOF
17231 if ac_fn_c_try_run "$LINENO"; then :
17232 gl_cv_header_working_stdint_h=yes
17234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17235 conftest.$ac_objext conftest.beam conftest.$ac_ext
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17244 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17246 if test "$gl_cv_header_working_stdint_h" = yes; then
17247 STDINT_H=
17248 else
17249 for ac_header in sys/inttypes.h sys/bitypes.h
17250 do :
17251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17253 eval as_val=\$$as_ac_Header
17254 if test "x$as_val" = x""yes; then :
17255 cat >>confdefs.h <<_ACEOF
17256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17257 _ACEOF
17261 done
17263 if test $ac_cv_header_sys_inttypes_h = yes; then
17264 HAVE_SYS_INTTYPES_H=1
17265 else
17266 HAVE_SYS_INTTYPES_H=0
17269 if test $ac_cv_header_sys_bitypes_h = yes; then
17270 HAVE_SYS_BITYPES_H=1
17271 else
17272 HAVE_SYS_BITYPES_H=0
17278 if test $APPLE_UNIVERSAL_BUILD = 0; then
17281 for gltype in ptrdiff_t size_t ; do
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17283 $as_echo_n "checking for bit size of $gltype... " >&6; }
17284 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17285 $as_echo_n "(cached) " >&6
17286 else
17287 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17288 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17289 included before <wchar.h>. */
17290 #include <stddef.h>
17291 #include <signal.h>
17292 #if HAVE_WCHAR_H
17293 # include <stdio.h>
17294 # include <time.h>
17295 # include <wchar.h>
17296 #endif
17298 #include <limits.h>"; then :
17300 else
17301 result=unknown
17304 eval gl_cv_bitsizeof_${gltype}=\$result
17307 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17309 $as_echo "$ac_res" >&6; }
17310 eval result=\$gl_cv_bitsizeof_${gltype}
17311 if test $result = unknown; then
17312 result=0
17314 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17315 cat >>confdefs.h <<_ACEOF
17316 #define BITSIZEOF_${GLTYPE} $result
17317 _ACEOF
17319 eval BITSIZEOF_${GLTYPE}=\$result
17320 done
17326 for gltype in sig_atomic_t wchar_t wint_t ; do
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17328 $as_echo_n "checking for bit size of $gltype... " >&6; }
17329 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17333 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17334 included before <wchar.h>. */
17335 #include <stddef.h>
17336 #include <signal.h>
17337 #if HAVE_WCHAR_H
17338 # include <stdio.h>
17339 # include <time.h>
17340 # include <wchar.h>
17341 #endif
17343 #include <limits.h>"; then :
17345 else
17346 result=unknown
17349 eval gl_cv_bitsizeof_${gltype}=\$result
17352 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17354 $as_echo "$ac_res" >&6; }
17355 eval result=\$gl_cv_bitsizeof_${gltype}
17356 if test $result = unknown; then
17357 result=0
17359 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17360 cat >>confdefs.h <<_ACEOF
17361 #define BITSIZEOF_${GLTYPE} $result
17362 _ACEOF
17364 eval BITSIZEOF_${GLTYPE}=\$result
17365 done
17370 for gltype in sig_atomic_t wchar_t wint_t ; do
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17372 $as_echo_n "checking whether $gltype is signed... " >&6; }
17373 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17374 $as_echo_n "(cached) " >&6
17375 else
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17379 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17380 included before <wchar.h>. */
17381 #include <stddef.h>
17382 #include <signal.h>
17383 #if HAVE_WCHAR_H
17384 # include <stdio.h>
17385 # include <time.h>
17386 # include <wchar.h>
17387 #endif
17389 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17391 main ()
17395 return 0;
17397 _ACEOF
17398 if ac_fn_c_try_compile "$LINENO"; then :
17399 result=yes
17400 else
17401 result=no
17403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404 eval gl_cv_type_${gltype}_signed=\$result
17407 eval ac_res=\$gl_cv_type_${gltype}_signed
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17409 $as_echo "$ac_res" >&6; }
17410 eval result=\$gl_cv_type_${gltype}_signed
17411 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17412 if test "$result" = yes; then
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_SIGNED_${GLTYPE} 1
17415 _ACEOF
17417 eval HAVE_SIGNED_${GLTYPE}=1
17418 else
17419 eval HAVE_SIGNED_${GLTYPE}=0
17421 done
17424 gl_cv_type_ptrdiff_t_signed=yes
17425 gl_cv_type_size_t_signed=no
17426 if test $APPLE_UNIVERSAL_BUILD = 0; then
17429 for gltype in ptrdiff_t size_t ; do
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17431 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17432 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17433 $as_echo_n "(cached) " >&6
17434 else
17435 eval gl_cv_type_${gltype}_suffix=no
17436 eval result=\$gl_cv_type_${gltype}_signed
17437 if test "$result" = yes; then
17438 glsufu=
17439 else
17440 glsufu=u
17442 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17443 case $glsuf in
17444 '') gltype1='int';;
17445 l) gltype1='long int';;
17446 ll) gltype1='long long int';;
17447 i64) gltype1='__int64';;
17448 u) gltype1='unsigned int';;
17449 ul) gltype1='unsigned long int';;
17450 ull) gltype1='unsigned long long int';;
17451 ui64)gltype1='unsigned __int64';;
17452 esac
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17456 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17457 included before <wchar.h>. */
17458 #include <stddef.h>
17459 #include <signal.h>
17460 #if HAVE_WCHAR_H
17461 # include <stdio.h>
17462 # include <time.h>
17463 # include <wchar.h>
17464 #endif
17466 extern $gltype foo;
17467 extern $gltype1 foo;
17469 main ()
17473 return 0;
17475 _ACEOF
17476 if ac_fn_c_try_compile "$LINENO"; then :
17477 eval gl_cv_type_${gltype}_suffix=\$glsuf
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 eval result=\$gl_cv_type_${gltype}_suffix
17481 test "$result" != no && break
17482 done
17484 eval ac_res=\$gl_cv_type_${gltype}_suffix
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17486 $as_echo "$ac_res" >&6; }
17487 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17488 eval result=\$gl_cv_type_${gltype}_suffix
17489 test "$result" = no && result=
17490 eval ${GLTYPE}_SUFFIX=\$result
17491 cat >>confdefs.h <<_ACEOF
17492 #define ${GLTYPE}_SUFFIX $result
17493 _ACEOF
17495 done
17501 for gltype in sig_atomic_t wchar_t wint_t ; do
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17503 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17504 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 eval gl_cv_type_${gltype}_suffix=no
17508 eval result=\$gl_cv_type_${gltype}_signed
17509 if test "$result" = yes; then
17510 glsufu=
17511 else
17512 glsufu=u
17514 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17515 case $glsuf in
17516 '') gltype1='int';;
17517 l) gltype1='long int';;
17518 ll) gltype1='long long int';;
17519 i64) gltype1='__int64';;
17520 u) gltype1='unsigned int';;
17521 ul) gltype1='unsigned long int';;
17522 ull) gltype1='unsigned long long int';;
17523 ui64)gltype1='unsigned __int64';;
17524 esac
17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h. */
17528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17529 included before <wchar.h>. */
17530 #include <stddef.h>
17531 #include <signal.h>
17532 #if HAVE_WCHAR_H
17533 # include <stdio.h>
17534 # include <time.h>
17535 # include <wchar.h>
17536 #endif
17538 extern $gltype foo;
17539 extern $gltype1 foo;
17541 main ()
17545 return 0;
17547 _ACEOF
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 eval gl_cv_type_${gltype}_suffix=\$glsuf
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 eval result=\$gl_cv_type_${gltype}_suffix
17553 test "$result" != no && break
17554 done
17556 eval ac_res=\$gl_cv_type_${gltype}_suffix
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17558 $as_echo "$ac_res" >&6; }
17559 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17560 eval result=\$gl_cv_type_${gltype}_suffix
17561 test "$result" = no && result=
17562 eval ${GLTYPE}_SUFFIX=\$result
17563 cat >>confdefs.h <<_ACEOF
17564 #define ${GLTYPE}_SUFFIX $result
17565 _ACEOF
17567 done
17571 STDINT_H=stdint.h
17574 if test -n "$STDINT_H"; then
17575 GL_GENERATE_STDINT_H_TRUE=
17576 GL_GENERATE_STDINT_H_FALSE='#'
17577 else
17578 GL_GENERATE_STDINT_H_TRUE='#'
17579 GL_GENERATE_STDINT_H_FALSE=
17586 GNULIB_IMAXABS=0;
17587 GNULIB_IMAXDIV=0;
17588 GNULIB_STRTOIMAX=0;
17589 GNULIB_STRTOUMAX=0;
17590 HAVE_DECL_IMAXABS=1;
17591 HAVE_DECL_IMAXDIV=1;
17592 HAVE_DECL_STRTOIMAX=1;
17593 HAVE_DECL_STRTOUMAX=1;
17594 INT32_MAX_LT_INTMAX_MAX=1;
17595 INT64_MAX_EQ_LONG_MAX='defined _LP64';
17596 PRI_MACROS_BROKEN=0;
17597 PRIPTR_PREFIX=__PRIPTR_PREFIX;
17598 UINT32_MAX_LT_UINTMAX_MAX=1;
17599 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
17615 if test $gl_cv_have_include_next = yes; then
17616 gl_cv_next_inttypes_h='<'inttypes.h'>'
17617 else
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
17619 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
17620 if test "${gl_cv_next_inttypes_h+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17624 if test $ac_cv_header_inttypes_h = yes; then
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629 #include <inttypes.h>
17631 _ACEOF
17632 case "$host_os" in
17633 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17634 *) gl_absname_cpp="$ac_cpp" ;;
17635 esac
17636 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17637 sed -n '\#/inttypes.h#{
17638 s#.*"\(.*/inttypes.h\)".*#\1#
17639 s#^/[^/]#//&#
17642 }'`'"'
17643 else
17644 gl_cv_next_inttypes_h='<'inttypes.h'>'
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
17650 $as_echo "$gl_cv_next_inttypes_h" >&6; }
17652 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
17654 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17656 gl_next_as_first_directive='<'inttypes.h'>'
17657 else
17658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17659 gl_next_as_first_directive=$gl_cv_next_inttypes_h
17661 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
17670 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
17677 GNULIB_FCHMODAT=0;
17678 GNULIB_FSTATAT=0;
17679 GNULIB_FUTIMENS=0;
17680 GNULIB_LCHMOD=0;
17681 GNULIB_LSTAT=0;
17682 GNULIB_MKDIRAT=0;
17683 GNULIB_MKFIFO=0;
17684 GNULIB_MKFIFOAT=0;
17685 GNULIB_MKNOD=0;
17686 GNULIB_MKNODAT=0;
17687 GNULIB_STAT=0;
17688 GNULIB_UTIMENSAT=0;
17689 HAVE_FCHMODAT=1;
17690 HAVE_FSTATAT=1;
17691 HAVE_FUTIMENS=1;
17692 HAVE_LCHMOD=1;
17693 HAVE_LSTAT=1;
17694 HAVE_MKDIRAT=1;
17695 HAVE_MKFIFO=1;
17696 HAVE_MKFIFOAT=1;
17697 HAVE_MKNOD=1;
17698 HAVE_MKNODAT=1;
17699 HAVE_UTIMENSAT=1;
17700 REPLACE_FSTAT=0;
17701 REPLACE_FSTATAT=0;
17702 REPLACE_FUTIMENS=0;
17703 REPLACE_LSTAT=0;
17704 REPLACE_MKDIR=0;
17705 REPLACE_MKFIFO=0;
17706 REPLACE_MKNOD=0;
17707 REPLACE_STAT=0;
17708 REPLACE_UTIMENSAT=0;
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17714 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17715 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17716 $as_echo_n "(cached) " >&6
17717 else
17718 rm -f conftest.sym conftest.file
17719 echo >conftest.file
17720 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17721 if test "$cross_compiling" = yes; then :
17722 # When cross-compiling, be pessimistic so we will end up using the
17723 # replacement version of lstat that checks for trailing slashes and
17724 # calls lstat a second time when necessary.
17725 gl_cv_func_lstat_dereferences_slashed_symlink=no
17727 else
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17730 $ac_includes_default
17732 main ()
17734 struct stat sbuf;
17735 /* Linux will dereference the symlink and fail, as required by
17736 POSIX. That is better in the sense that it means we will not
17737 have to compile and use the lstat wrapper. */
17738 return lstat ("conftest.sym/", &sbuf) == 0;
17741 return 0;
17743 _ACEOF
17744 if ac_fn_c_try_run "$LINENO"; then :
17745 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17746 else
17747 gl_cv_func_lstat_dereferences_slashed_symlink=no
17749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17750 conftest.$ac_objext conftest.beam conftest.$ac_ext
17753 else
17754 # If the 'ln -s' command failed, then we probably don't even
17755 # have an lstat function.
17756 gl_cv_func_lstat_dereferences_slashed_symlink=no
17758 rm -f conftest.sym conftest.file
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17762 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17763 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
17765 cat >>confdefs.h <<_ACEOF
17766 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17767 _ACEOF
17771 GNULIB_MKTIME=0;
17772 GNULIB_NANOSLEEP=0;
17773 GNULIB_STRPTIME=0;
17774 GNULIB_TIMEGM=0;
17775 GNULIB_TIME_R=0;
17776 HAVE_DECL_LOCALTIME_R=1;
17777 HAVE_NANOSLEEP=1;
17778 HAVE_STRPTIME=1;
17779 HAVE_TIMEGM=1;
17780 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17781 REPLACE_MKTIME=GNULIB_PORTCHECK;
17782 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17783 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17792 if test $ac_cv_header_sys_socket_h = no; then
17793 for ac_header in ws2tcpip.h
17794 do :
17795 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17796 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_WS2TCPIP_H 1
17799 _ACEOF
17803 done
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17808 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17809 if test "${ac_cv_header_stdbool_h+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17811 else
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17815 #include <stdbool.h>
17816 #ifndef bool
17817 "error: bool is not defined"
17818 #endif
17819 #ifndef false
17820 "error: false is not defined"
17821 #endif
17822 #if false
17823 "error: false is not 0"
17824 #endif
17825 #ifndef true
17826 "error: true is not defined"
17827 #endif
17828 #if true != 1
17829 "error: true is not 1"
17830 #endif
17831 #ifndef __bool_true_false_are_defined
17832 "error: __bool_true_false_are_defined is not defined"
17833 #endif
17835 struct s { _Bool s: 1; _Bool t; } s;
17837 char a[true == 1 ? 1 : -1];
17838 char b[false == 0 ? 1 : -1];
17839 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17840 char d[(bool) 0.5 == true ? 1 : -1];
17841 /* See body of main program for 'e'. */
17842 char f[(_Bool) 0.0 == false ? 1 : -1];
17843 char g[true];
17844 char h[sizeof (_Bool)];
17845 char i[sizeof s.t];
17846 enum { j = false, k = true, l = false * true, m = true * 256 };
17847 /* The following fails for
17848 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17849 _Bool n[m];
17850 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17851 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17852 /* Catch a bug in an HP-UX C compiler. See
17853 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17854 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17856 _Bool q = true;
17857 _Bool *pq = &q;
17860 main ()
17863 bool e = &s;
17864 *pq |= q;
17865 *pq |= ! q;
17866 /* Refer to every declared value, to avoid compiler optimizations. */
17867 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17868 + !m + !n + !o + !p + !q + !pq);
17871 return 0;
17873 _ACEOF
17874 if ac_fn_c_try_compile "$LINENO"; then :
17875 ac_cv_header_stdbool_h=yes
17876 else
17877 ac_cv_header_stdbool_h=no
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17882 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17883 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17884 if test "x$ac_cv_type__Bool" = x""yes; then :
17886 cat >>confdefs.h <<_ACEOF
17887 #define HAVE__BOOL 1
17888 _ACEOF
17895 REPLACE_NULL=0;
17896 HAVE_WCHAR_T=1;
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17900 $as_echo_n "checking for wchar_t... " >&6; }
17901 if test "${gt_cv_c_wchar_t+set}" = set; then :
17902 $as_echo_n "(cached) " >&6
17903 else
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906 #include <stddef.h>
17907 wchar_t foo = (wchar_t)'\0';
17909 main ()
17913 return 0;
17915 _ACEOF
17916 if ac_fn_c_try_compile "$LINENO"; then :
17917 gt_cv_c_wchar_t=yes
17918 else
17919 gt_cv_c_wchar_t=no
17921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17924 $as_echo "$gt_cv_c_wchar_t" >&6; }
17925 if test $gt_cv_c_wchar_t = yes; then
17927 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17932 GNULIB_DPRINTF=0;
17933 GNULIB_FCLOSE=0;
17934 GNULIB_FFLUSH=0;
17935 GNULIB_FGETC=0;
17936 GNULIB_FGETS=0;
17937 GNULIB_FOPEN=0;
17938 GNULIB_FPRINTF=0;
17939 GNULIB_FPRINTF_POSIX=0;
17940 GNULIB_FPURGE=0;
17941 GNULIB_FPUTC=0;
17942 GNULIB_FPUTS=0;
17943 GNULIB_FREAD=0;
17944 GNULIB_FREOPEN=0;
17945 GNULIB_FSCANF=0;
17946 GNULIB_FSEEK=0;
17947 GNULIB_FSEEKO=0;
17948 GNULIB_FTELL=0;
17949 GNULIB_FTELLO=0;
17950 GNULIB_FWRITE=0;
17951 GNULIB_GETC=0;
17952 GNULIB_GETCHAR=0;
17953 GNULIB_GETDELIM=0;
17954 GNULIB_GETLINE=0;
17955 GNULIB_GETS=0;
17956 GNULIB_OBSTACK_PRINTF=0;
17957 GNULIB_OBSTACK_PRINTF_POSIX=0;
17958 GNULIB_PERROR=0;
17959 GNULIB_POPEN=0;
17960 GNULIB_PRINTF=0;
17961 GNULIB_PRINTF_POSIX=0;
17962 GNULIB_PUTC=0;
17963 GNULIB_PUTCHAR=0;
17964 GNULIB_PUTS=0;
17965 GNULIB_REMOVE=0;
17966 GNULIB_RENAME=0;
17967 GNULIB_RENAMEAT=0;
17968 GNULIB_SCANF=0;
17969 GNULIB_SNPRINTF=0;
17970 GNULIB_SPRINTF_POSIX=0;
17971 GNULIB_STDIO_H_NONBLOCKING=0;
17972 GNULIB_STDIO_H_SIGPIPE=0;
17973 GNULIB_TMPFILE=0;
17974 GNULIB_VASPRINTF=0;
17975 GNULIB_VFSCANF=0;
17976 GNULIB_VSCANF=0;
17977 GNULIB_VDPRINTF=0;
17978 GNULIB_VFPRINTF=0;
17979 GNULIB_VFPRINTF_POSIX=0;
17980 GNULIB_VPRINTF=0;
17981 GNULIB_VPRINTF_POSIX=0;
17982 GNULIB_VSNPRINTF=0;
17983 GNULIB_VSPRINTF_POSIX=0;
17984 HAVE_DECL_FPURGE=1;
17985 HAVE_DECL_FSEEKO=1;
17986 HAVE_DECL_FTELLO=1;
17987 HAVE_DECL_GETDELIM=1;
17988 HAVE_DECL_GETLINE=1;
17989 HAVE_DECL_OBSTACK_PRINTF=1;
17990 HAVE_DECL_SNPRINTF=1;
17991 HAVE_DECL_VSNPRINTF=1;
17992 HAVE_DPRINTF=1;
17993 HAVE_FSEEKO=1;
17994 HAVE_FTELLO=1;
17995 HAVE_RENAMEAT=1;
17996 HAVE_VASPRINTF=1;
17997 HAVE_VDPRINTF=1;
17998 REPLACE_DPRINTF=0;
17999 REPLACE_FCLOSE=0;
18000 REPLACE_FFLUSH=0;
18001 REPLACE_FOPEN=0;
18002 REPLACE_FPRINTF=0;
18003 REPLACE_FPURGE=0;
18004 REPLACE_FREOPEN=0;
18005 REPLACE_FSEEK=0;
18006 REPLACE_FSEEKO=0;
18007 REPLACE_FTELL=0;
18008 REPLACE_FTELLO=0;
18009 REPLACE_GETDELIM=0;
18010 REPLACE_GETLINE=0;
18011 REPLACE_OBSTACK_PRINTF=0;
18012 REPLACE_PERROR=0;
18013 REPLACE_POPEN=0;
18014 REPLACE_PRINTF=0;
18015 REPLACE_REMOVE=0;
18016 REPLACE_RENAME=0;
18017 REPLACE_RENAMEAT=0;
18018 REPLACE_SNPRINTF=0;
18019 REPLACE_SPRINTF=0;
18020 REPLACE_STDIO_READ_FUNCS=0;
18021 REPLACE_STDIO_WRITE_FUNCS=0;
18022 REPLACE_TMPFILE=0;
18023 REPLACE_VASPRINTF=0;
18024 REPLACE_VDPRINTF=0;
18025 REPLACE_VFPRINTF=0;
18026 REPLACE_VPRINTF=0;
18027 REPLACE_VSNPRINTF=0;
18028 REPLACE_VSPRINTF=0;
18031 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18033 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18035 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18042 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18043 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18044 ac_have_decl=1
18045 else
18046 ac_have_decl=0
18049 cat >>confdefs.h <<_ACEOF
18050 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18051 _ACEOF
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18056 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18057 if test "${ac_cv_header_stat_broken+set}" = set; then :
18058 $as_echo_n "(cached) " >&6
18059 else
18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061 /* end confdefs.h. */
18062 #include <sys/types.h>
18063 #include <sys/stat.h>
18065 #if defined S_ISBLK && defined S_IFDIR
18066 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18067 #endif
18069 #if defined S_ISBLK && defined S_IFCHR
18070 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18071 #endif
18073 #if defined S_ISLNK && defined S_IFREG
18074 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18075 #endif
18077 #if defined S_ISSOCK && defined S_IFREG
18078 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18079 #endif
18081 _ACEOF
18082 if ac_fn_c_try_compile "$LINENO"; then :
18083 ac_cv_header_stat_broken=no
18084 else
18085 ac_cv_header_stat_broken=yes
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18090 $as_echo "$ac_cv_header_stat_broken" >&6; }
18091 if test $ac_cv_header_stat_broken = yes; then
18093 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18100 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18101 if test "${ac_cv_c_restrict+set}" = set; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 ac_cv_c_restrict=no
18105 # The order here caters to the fact that C++ does not require restrict.
18106 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109 typedef int * int_ptr;
18110 int foo (int_ptr $ac_kw ip) {
18111 return ip[0];
18114 main ()
18116 int s[1];
18117 int * $ac_kw t = s;
18118 t[0] = 0;
18119 return foo(t)
18121 return 0;
18123 _ACEOF
18124 if ac_fn_c_try_compile "$LINENO"; then :
18125 ac_cv_c_restrict=$ac_kw
18127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18128 test "$ac_cv_c_restrict" != no && break
18129 done
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18133 $as_echo "$ac_cv_c_restrict" >&6; }
18135 case $ac_cv_c_restrict in
18136 restrict) ;;
18137 no) $as_echo "#define restrict /**/" >>confdefs.h
18139 *) cat >>confdefs.h <<_ACEOF
18140 #define restrict $ac_cv_c_restrict
18141 _ACEOF
18143 esac
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18150 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18151 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
18152 $as_echo_n "(cached) " >&6
18153 else
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156 #include <time.h>
18159 main ()
18161 static struct timespec x; x.tv_sec = x.tv_nsec;
18163 return 0;
18165 _ACEOF
18166 if ac_fn_c_try_compile "$LINENO"; then :
18167 gl_cv_sys_struct_timespec_in_time_h=yes
18168 else
18169 gl_cv_sys_struct_timespec_in_time_h=no
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18174 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18176 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18177 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18178 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18179 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18180 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18181 else
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18183 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18184 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18186 else
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189 #include <sys/time.h>
18192 main ()
18194 static struct timespec x; x.tv_sec = x.tv_nsec;
18196 return 0;
18198 _ACEOF
18199 if ac_fn_c_try_compile "$LINENO"; then :
18200 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18201 else
18202 gl_cv_sys_struct_timespec_in_sys_time_h=no
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18207 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18208 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18209 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18210 else
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18212 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18213 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
18214 $as_echo_n "(cached) " >&6
18215 else
18216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 #include <pthread.h>
18221 main ()
18223 static struct timespec x; x.tv_sec = x.tv_nsec;
18225 return 0;
18227 _ACEOF
18228 if ac_fn_c_try_compile "$LINENO"; then :
18229 gl_cv_sys_struct_timespec_in_pthread_h=yes
18230 else
18231 gl_cv_sys_struct_timespec_in_pthread_h=no
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18236 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18237 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18257 if test $gl_cv_have_include_next = yes; then
18258 gl_cv_next_time_h='<'time.h'>'
18259 else
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18261 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18262 if test "${gl_cv_next_time_h+set}" = set; then :
18263 $as_echo_n "(cached) " >&6
18264 else
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18268 #include <time.h>
18270 _ACEOF
18271 case "$host_os" in
18272 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18273 *) gl_absname_cpp="$ac_cpp" ;;
18274 esac
18275 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18276 sed -n '\#/time.h#{
18277 s#.*"\(.*/time.h\)".*#\1#
18278 s#^/[^/]#//&#
18281 }'`'"'
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18286 $as_echo "$gl_cv_next_time_h" >&6; }
18288 NEXT_TIME_H=$gl_cv_next_time_h
18290 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18292 gl_next_as_first_directive='<'time.h'>'
18293 else
18294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18295 gl_next_as_first_directive=$gl_cv_next_time_h
18297 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18304 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
18305 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
18306 ac_have_decl=1
18307 else
18308 ac_have_decl=0
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
18313 _ACEOF
18318 if false; then
18319 GL_COND_LIBTOOL_TRUE=
18320 GL_COND_LIBTOOL_FALSE='#'
18321 else
18322 GL_COND_LIBTOOL_TRUE='#'
18323 GL_COND_LIBTOOL_FALSE=
18326 gl_cond_libtool=false
18327 gl_libdeps=
18328 gl_ltlibdeps=
18329 gl_m4_base='m4'
18339 gl_source_base='lib'
18342 if test $ac_cv_func_alloca_works = no; then
18346 # Define an additional variable used in the Makefile substitution.
18347 if test $ac_cv_working_alloca_h = yes; then
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18349 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18350 if test "${gl_cv_rpl_alloca+set}" = set; then :
18351 $as_echo_n "(cached) " >&6
18352 else
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18357 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18358 Need own alloca
18359 #endif
18361 _ACEOF
18362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18363 $EGREP "Need own alloca" >/dev/null 2>&1; then :
18364 gl_cv_rpl_alloca=yes
18365 else
18366 gl_cv_rpl_alloca=no
18368 rm -f conftest*
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18373 $as_echo "$gl_cv_rpl_alloca" >&6; }
18374 if test $gl_cv_rpl_alloca = yes; then
18376 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18378 ALLOCA_H=alloca.h
18379 else
18380 ALLOCA_H=
18382 else
18383 ALLOCA_H=alloca.h
18386 if test -n "$ALLOCA_H"; then
18387 GL_GENERATE_ALLOCA_H_TRUE=
18388 GL_GENERATE_ALLOCA_H_FALSE='#'
18389 else
18390 GL_GENERATE_ALLOCA_H_TRUE='#'
18391 GL_GENERATE_ALLOCA_H_FALSE=
18420 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
18423 if test $HAVE_DUP2 = 1; then
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18425 $as_echo_n "checking whether dup2 works... " >&6; }
18426 if test "${gl_cv_func_dup2_works+set}" = set; then :
18427 $as_echo_n "(cached) " >&6
18428 else
18429 if test "$cross_compiling" = yes; then :
18430 case "$host_os" in
18431 mingw*) # on this platform, dup2 always returns 0 for success
18432 gl_cv_func_dup2_works=no;;
18433 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
18434 gl_cv_func_dup2_works=no;;
18435 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
18436 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
18437 gl_cv_func_dup2_works=no;;
18438 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
18439 gl_cv_func_dup2_works=no;;
18440 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18441 gl_cv_func_dup2_works=no;;
18442 *) gl_cv_func_dup2_works=yes;;
18443 esac
18444 else
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 #include <unistd.h>
18449 #include <fcntl.h>
18450 #include <errno.h>
18452 main ()
18454 int result = 0;
18455 #ifdef FD_CLOEXEC
18456 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18457 result |= 1;
18458 #endif
18459 if (dup2 (1, 1) == 0)
18460 result |= 2;
18461 #ifdef FD_CLOEXEC
18462 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18463 result |= 4;
18464 #endif
18465 close (0);
18466 if (dup2 (0, 0) != -1)
18467 result |= 8;
18468 /* Many gnulib modules require POSIX conformance of EBADF. */
18469 if (dup2 (2, 1000000) == -1 && errno != EBADF)
18470 result |= 16;
18471 return result;
18474 return 0;
18477 _ACEOF
18478 if ac_fn_c_try_run "$LINENO"; then :
18479 gl_cv_func_dup2_works=yes
18480 else
18481 gl_cv_func_dup2_works=no
18483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18484 conftest.$ac_objext conftest.beam conftest.$ac_ext
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18490 $as_echo "$gl_cv_func_dup2_works" >&6; }
18491 if test "$gl_cv_func_dup2_works" = no; then
18495 if test $ac_cv_func_dup2 = yes; then
18496 REPLACE_DUP2=1
18506 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
18517 GNULIB_DUP2=1
18529 # Persuade glibc <stdlib.h> to declare getloadavg().
18532 gl_save_LIBS=$LIBS
18534 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
18535 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
18536 HAVE_GETLOADAVG=1
18537 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18538 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18540 else
18541 gl_func_getloadavg_done=no
18543 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18544 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18545 # to get the right answer into the cache.
18546 # For kstat on solaris, we need to test for libelf and libkvm to force the
18547 # definition of SVR4 below.
18548 if test $gl_func_getloadavg_done = no; then
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18550 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18551 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18553 else
18554 ac_check_lib_save_LIBS=$LIBS
18555 LIBS="-lelf $LIBS"
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18559 /* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18562 #ifdef __cplusplus
18563 extern "C"
18564 #endif
18565 char elf_begin ();
18567 main ()
18569 return elf_begin ();
18571 return 0;
18573 _ACEOF
18574 if ac_fn_c_try_link "$LINENO"; then :
18575 ac_cv_lib_elf_elf_begin=yes
18576 else
18577 ac_cv_lib_elf_elf_begin=no
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18581 LIBS=$ac_check_lib_save_LIBS
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18584 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18585 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18586 LIBS="-lelf $LIBS"
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18590 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18591 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 ac_check_lib_save_LIBS=$LIBS
18595 LIBS="-lkvm $LIBS"
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char kvm_open ();
18607 main ()
18609 return kvm_open ();
18611 return 0;
18613 _ACEOF
18614 if ac_fn_c_try_link "$LINENO"; then :
18615 ac_cv_lib_kvm_kvm_open=yes
18616 else
18617 ac_cv_lib_kvm_kvm_open=no
18619 rm -f core conftest.err conftest.$ac_objext \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18624 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18625 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18626 LIBS="-lkvm $LIBS"
18629 # Check for the 4.4BSD definition of getloadavg.
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18631 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18632 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18633 $as_echo_n "(cached) " >&6
18634 else
18635 ac_check_lib_save_LIBS=$LIBS
18636 LIBS="-lutil $LIBS"
18637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18638 /* end confdefs.h. */
18640 /* Override any GCC internal prototype to avoid an error.
18641 Use char because int might match the return type of a GCC
18642 builtin and then its argument prototype would still apply. */
18643 #ifdef __cplusplus
18644 extern "C"
18645 #endif
18646 char getloadavg ();
18648 main ()
18650 return getloadavg ();
18652 return 0;
18654 _ACEOF
18655 if ac_fn_c_try_link "$LINENO"; then :
18656 ac_cv_lib_util_getloadavg=yes
18657 else
18658 ac_cv_lib_util_getloadavg=no
18660 rm -f core conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18665 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18666 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18667 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
18672 if test $gl_func_getloadavg_done = no; then
18673 # There is a commonly available library for RS/6000 AIX.
18674 # Since it is not a standard part of AIX, it might be installed locally.
18675 gl_getloadavg_LIBS=$LIBS
18676 LIBS="-L/usr/local/lib $LIBS"
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18678 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18679 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18680 $as_echo_n "(cached) " >&6
18681 else
18682 ac_check_lib_save_LIBS=$LIBS
18683 LIBS="-lgetloadavg $LIBS"
18684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685 /* end confdefs.h. */
18687 /* Override any GCC internal prototype to avoid an error.
18688 Use char because int might match the return type of a GCC
18689 builtin and then its argument prototype would still apply. */
18690 #ifdef __cplusplus
18691 extern "C"
18692 #endif
18693 char getloadavg ();
18695 main ()
18697 return getloadavg ();
18699 return 0;
18701 _ACEOF
18702 if ac_fn_c_try_link "$LINENO"; then :
18703 ac_cv_lib_getloadavg_getloadavg=yes
18704 else
18705 ac_cv_lib_getloadavg_getloadavg=no
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18712 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18713 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18714 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
18715 else
18716 LIBS=$gl_getloadavg_LIBS
18721 # Set up the replacement function if necessary.
18722 if test $gl_func_getloadavg_done = no; then
18723 HAVE_GETLOADAVG=0
18725 # Solaris has libkstat which does not require root.
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18727 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18728 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18729 $as_echo_n "(cached) " >&6
18730 else
18731 ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lkstat $LIBS"
18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734 /* end confdefs.h. */
18736 /* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18739 #ifdef __cplusplus
18740 extern "C"
18741 #endif
18742 char kstat_open ();
18744 main ()
18746 return kstat_open ();
18748 return 0;
18750 _ACEOF
18751 if ac_fn_c_try_link "$LINENO"; then :
18752 ac_cv_lib_kstat_kstat_open=yes
18753 else
18754 ac_cv_lib_kstat_kstat_open=no
18756 rm -f core conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758 LIBS=$ac_check_lib_save_LIBS
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18761 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18762 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_LIBKSTAT 1
18765 _ACEOF
18767 LIBS="-lkstat $LIBS"
18771 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
18773 # AIX has libperfstat which does not require root
18774 if test $gl_func_getloadavg_done = no; then
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
18776 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
18777 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18779 else
18780 ac_check_lib_save_LIBS=$LIBS
18781 LIBS="-lperfstat $LIBS"
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18785 /* Override any GCC internal prototype to avoid an error.
18786 Use char because int might match the return type of a GCC
18787 builtin and then its argument prototype would still apply. */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 char perfstat_cpu_total ();
18793 main ()
18795 return perfstat_cpu_total ();
18797 return 0;
18799 _ACEOF
18800 if ac_fn_c_try_link "$LINENO"; then :
18801 ac_cv_lib_perfstat_perfstat_cpu_total=yes
18802 else
18803 ac_cv_lib_perfstat_perfstat_cpu_total=no
18805 rm -f core conftest.err conftest.$ac_objext \
18806 conftest$ac_exeext conftest.$ac_ext
18807 LIBS=$ac_check_lib_save_LIBS
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
18810 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
18811 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
18812 cat >>confdefs.h <<_ACEOF
18813 #define HAVE_LIBPERFSTAT 1
18814 _ACEOF
18816 LIBS="-lperfstat $LIBS"
18820 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
18823 if test $gl_func_getloadavg_done = no; then
18824 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18825 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18826 gl_func_getloadavg_done=yes
18828 $as_echo "#define DGUX 1" >>confdefs.h
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18831 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18832 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18833 $as_echo_n "(cached) " >&6
18834 else
18835 ac_check_lib_save_LIBS=$LIBS
18836 LIBS="-ldgc $LIBS"
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18840 /* Override any GCC internal prototype to avoid an error.
18841 Use char because int might match the return type of a GCC
18842 builtin and then its argument prototype would still apply. */
18843 #ifdef __cplusplus
18844 extern "C"
18845 #endif
18846 char dg_sys_info ();
18848 main ()
18850 return dg_sys_info ();
18852 return 0;
18854 _ACEOF
18855 if ac_fn_c_try_link "$LINENO"; then :
18856 ac_cv_lib_dgc_dg_sys_info=yes
18857 else
18858 ac_cv_lib_dgc_dg_sys_info=no
18860 rm -f core conftest.err conftest.$ac_objext \
18861 conftest$ac_exeext conftest.$ac_ext
18862 LIBS=$ac_check_lib_save_LIBS
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18865 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18866 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
18867 cat >>confdefs.h <<_ACEOF
18868 #define HAVE_LIBDGC 1
18869 _ACEOF
18871 LIBS="-ldgc $LIBS"
18883 if test "x$gl_save_LIBS" = x; then
18884 GETLOADAVG_LIBS=$LIBS
18885 else
18886 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
18888 LIBS=$gl_save_LIBS
18891 # Test whether the system declares getloadavg. Solaris has the function
18892 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
18893 for ac_header in sys/loadavg.h
18894 do :
18895 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
18896 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_SYS_LOADAVG_H 1
18899 _ACEOF
18903 done
18905 if test $ac_cv_header_sys_loadavg_h = yes; then
18906 HAVE_SYS_LOADAVG_H=1
18907 else
18908 HAVE_SYS_LOADAVG_H=0
18910 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
18911 # include <sys/loadavg.h>
18912 #endif
18913 #include <stdlib.h>
18915 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
18917 else
18918 HAVE_DECL_GETLOADAVG=0
18922 if test $HAVE_GETLOADAVG = 0; then
18931 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
18934 # Figure out what our getloadavg.c needs.
18936 # On HPUX9, an unprivileged user can get load averages this way.
18937 if test $gl_func_getloadavg_done = no; then
18938 for ac_func in pstat_getdynamic
18939 do :
18940 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18941 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18942 cat >>confdefs.h <<_ACEOF
18943 #define HAVE_PSTAT_GETDYNAMIC 1
18944 _ACEOF
18945 gl_func_getloadavg_done=yes
18947 done
18951 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18952 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18953 # Irix 4.0.5F has the header but not the library.
18954 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
18955 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
18956 gl_func_getloadavg_done=yes
18958 $as_echo "#define SVR4 1" >>confdefs.h
18962 if test $gl_func_getloadavg_done = no; then
18963 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
18964 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
18965 gl_func_getloadavg_done=yes
18967 $as_echo "#define UMAX 1" >>confdefs.h
18970 $as_echo "#define UMAX4_3 1" >>confdefs.h
18977 if test $gl_func_getloadavg_done = no; then
18978 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
18979 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
18980 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
18987 if test $gl_func_getloadavg_done = no; then
18988 for ac_header in mach/mach.h
18989 do :
18990 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
18991 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
18992 cat >>confdefs.h <<_ACEOF
18993 #define HAVE_MACH_MACH_H 1
18994 _ACEOF
18998 done
19002 for ac_header in nlist.h
19003 do :
19004 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19005 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_NLIST_H 1
19008 _ACEOF
19009 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19011 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19013 cat >>confdefs.h <<_ACEOF
19014 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19015 _ACEOF
19020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h. */
19022 #include <nlist.h>
19024 main ()
19026 struct nlist x;
19027 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19028 x.n_un.n_name = "";
19029 #else
19030 x.n_name = "";
19031 #endif
19033 return 0;
19035 _ACEOF
19036 if ac_fn_c_try_link "$LINENO"; then :
19038 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19046 done
19054 GNULIB_GETLOADAVG=1
19065 if test $REPLACE_GETOPT = 1; then
19074 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19084 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19095 REPLACE_GETOPT=0
19098 if test -n "$gl_replace_getopt"; then :
19100 REPLACE_GETOPT=1
19105 if test $REPLACE_GETOPT = 1; then
19107 GETOPT_H=getopt.h
19109 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19113 GNULIB_UNISTD_H_GETOPT=1
19116 if test $REPLACE_GETOPT = 1; then
19125 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19135 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19146 if test $ac_cv_func_lstat = yes; then
19148 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
19149 REPLACE_LSTAT=1
19151 else
19152 HAVE_LSTAT=0
19155 if test $REPLACE_LSTAT = 1; then
19164 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19176 GNULIB_LSTAT=1
19188 if test $APPLE_UNIVERSAL_BUILD = 1; then
19189 # A universal build on Apple MacOS X platforms.
19190 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19191 # But we need a configuration result that is valid in both modes.
19192 gl_cv_func_working_mktime=no
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19195 $as_echo_n "checking for working mktime... " >&6; }
19196 if test "${gl_cv_func_working_mktime+set}" = set; then :
19197 $as_echo_n "(cached) " >&6
19198 else
19199 if test "$cross_compiling" = yes; then :
19200 gl_cv_func_working_mktime=no
19201 else
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19204 /* Test program from Paul Eggert and Tony Leneis. */
19205 #include <limits.h>
19206 #include <stdlib.h>
19207 #include <time.h>
19209 #ifdef HAVE_UNISTD_H
19210 # include <unistd.h>
19211 #endif
19213 #ifndef HAVE_ALARM
19214 # define alarm(X) /* empty */
19215 #endif
19217 /* Work around redefinition to rpl_putenv by other config tests. */
19218 #undef putenv
19220 static time_t time_t_max;
19221 static time_t time_t_min;
19223 /* Values we'll use to set the TZ environment variable. */
19224 static char *tz_strings[] = {
19225 (char *) 0, "TZ=GMT0", "TZ=JST-9",
19226 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19228 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19230 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19231 Based on a problem report from Andreas Jaeger. */
19232 static int
19233 spring_forward_gap ()
19235 /* glibc (up to about 1998-10-07) failed this test. */
19236 struct tm tm;
19238 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19239 instead of "TZ=America/Vancouver" in order to detect the bug even
19240 on systems that don't support the Olson extension, or don't have the
19241 full zoneinfo tables installed. */
19242 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19244 tm.tm_year = 98;
19245 tm.tm_mon = 3;
19246 tm.tm_mday = 5;
19247 tm.tm_hour = 2;
19248 tm.tm_min = 0;
19249 tm.tm_sec = 0;
19250 tm.tm_isdst = -1;
19251 return mktime (&tm) != (time_t) -1;
19254 static int
19255 mktime_test1 (time_t now)
19257 struct tm *lt;
19258 return ! (lt = localtime (&now)) || mktime (lt) == now;
19261 static int
19262 mktime_test (time_t now)
19264 return (mktime_test1 (now)
19265 && mktime_test1 ((time_t) (time_t_max - now))
19266 && mktime_test1 ((time_t) (time_t_min + now)));
19269 static int
19270 irix_6_4_bug ()
19272 /* Based on code from Ariel Faigon. */
19273 struct tm tm;
19274 tm.tm_year = 96;
19275 tm.tm_mon = 3;
19276 tm.tm_mday = 0;
19277 tm.tm_hour = 0;
19278 tm.tm_min = 0;
19279 tm.tm_sec = 0;
19280 tm.tm_isdst = -1;
19281 mktime (&tm);
19282 return tm.tm_mon == 2 && tm.tm_mday == 31;
19285 static int
19286 bigtime_test (int j)
19288 struct tm tm;
19289 time_t now;
19290 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19291 now = mktime (&tm);
19292 if (now != (time_t) -1)
19294 struct tm *lt = localtime (&now);
19295 if (! (lt
19296 && lt->tm_year == tm.tm_year
19297 && lt->tm_mon == tm.tm_mon
19298 && lt->tm_mday == tm.tm_mday
19299 && lt->tm_hour == tm.tm_hour
19300 && lt->tm_min == tm.tm_min
19301 && lt->tm_sec == tm.tm_sec
19302 && lt->tm_yday == tm.tm_yday
19303 && lt->tm_wday == tm.tm_wday
19304 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19305 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19306 return 0;
19308 return 1;
19311 static int
19312 year_2050_test ()
19314 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19315 ignoring leap seconds. */
19316 unsigned long int answer = 2527315200UL;
19318 struct tm tm;
19319 time_t t;
19320 tm.tm_year = 2050 - 1900;
19321 tm.tm_mon = 2 - 1;
19322 tm.tm_mday = 1;
19323 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19324 tm.tm_isdst = -1;
19326 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19327 instead of "TZ=America/Vancouver" in order to detect the bug even
19328 on systems that don't support the Olson extension, or don't have the
19329 full zoneinfo tables installed. */
19330 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19332 t = mktime (&tm);
19334 /* Check that the result is either a failure, or close enough
19335 to the correct answer that we can assume the discrepancy is
19336 due to leap seconds. */
19337 return (t == (time_t) -1
19338 || (0 < t && answer - 120 <= t && t <= answer + 120));
19342 main ()
19344 int result = 0;
19345 time_t t, delta;
19346 int i, j;
19347 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
19348 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
19350 /* This test makes some buggy mktime implementations loop.
19351 Give up after 60 seconds; a mktime slower than that
19352 isn't worth using anyway. */
19353 alarm (60);
19355 time_t_max = (! time_t_signed
19356 ? (time_t) -1
19357 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
19358 * 2 + 1));
19359 time_t_min = (! time_t_signed
19360 ? (time_t) 0
19361 : time_t_signed_magnitude
19362 ? ~ (time_t) 0
19363 : ~ time_t_max);
19365 delta = time_t_max / 997; /* a suitable prime number */
19366 for (i = 0; i < N_STRINGS; i++)
19368 if (tz_strings[i])
19369 putenv (tz_strings[i]);
19371 for (t = 0; t <= time_t_max - delta; t += delta)
19372 if (! mktime_test (t))
19373 result |= 1;
19374 if (! (mktime_test ((time_t) 1)
19375 && mktime_test ((time_t) (60 * 60))
19376 && mktime_test ((time_t) (60 * 60 * 24))))
19377 result |= 2;
19379 for (j = 1; ; j <<= 1)
19380 if (! bigtime_test (j))
19381 result |= 4;
19382 else if (INT_MAX / 2 < j)
19383 break;
19384 if (! bigtime_test (INT_MAX))
19385 result |= 8;
19387 if (! irix_6_4_bug ())
19388 result |= 16;
19389 if (! spring_forward_gap ())
19390 result |= 32;
19391 if (! year_2050_test ())
19392 result |= 64;
19393 return result;
19395 _ACEOF
19396 if ac_fn_c_try_run "$LINENO"; then :
19397 gl_cv_func_working_mktime=yes
19398 else
19399 gl_cv_func_working_mktime=no
19401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19402 conftest.$ac_objext conftest.beam conftest.$ac_ext
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
19408 $as_echo "$gl_cv_func_working_mktime" >&6; }
19410 if test $gl_cv_func_working_mktime = no; then
19411 REPLACE_MKTIME=1
19412 else
19413 REPLACE_MKTIME=0
19416 if test $REPLACE_MKTIME = 1; then
19425 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
19436 GNULIB_MKTIME=1
19446 if test $ac_cv_func_readlink = no; then
19447 HAVE_READLINK=0
19448 else
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
19450 $as_echo_n "checking whether readlink signature is correct... " >&6; }
19451 if test "${gl_cv_decl_readlink_works+set}" = set; then :
19452 $as_echo_n "(cached) " >&6
19453 else
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19456 #include <unistd.h>
19457 /* Cause compilation failure if original declaration has wrong type. */
19458 ssize_t readlink (const char *, char *, size_t);
19460 main ()
19464 return 0;
19466 _ACEOF
19467 if ac_fn_c_try_compile "$LINENO"; then :
19468 gl_cv_decl_readlink_works=yes
19469 else
19470 gl_cv_decl_readlink_works=no
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
19475 $as_echo "$gl_cv_decl_readlink_works" >&6; }
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
19477 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
19478 if test "${gl_cv_func_readlink_works+set}" = set; then :
19479 $as_echo_n "(cached) " >&6
19480 else
19481 # We have readlink, so assume ln -s works.
19482 ln -s conftest.no-such conftest.link
19483 ln -s conftest.link conftest.lnk2
19484 if test "$cross_compiling" = yes; then :
19485 gl_cv_func_readlink_works="guessing no"
19486 else
19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488 /* end confdefs.h. */
19489 #include <unistd.h>
19492 main ()
19494 char buf[20];
19495 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
19497 return 0;
19499 _ACEOF
19500 if ac_fn_c_try_run "$LINENO"; then :
19501 gl_cv_func_readlink_works=yes
19502 else
19503 gl_cv_func_readlink_works=no
19505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19506 conftest.$ac_objext conftest.beam conftest.$ac_ext
19509 rm -f conftest.link conftest.lnk2
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
19512 $as_echo "$gl_cv_func_readlink_works" >&6; }
19513 if test "$gl_cv_func_readlink_works" != yes; then
19515 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
19517 REPLACE_READLINK=1
19518 elif test "$gl_cv_decl_readlink_works" != yes; then
19519 REPLACE_READLINK=1
19523 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
19532 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
19543 GNULIB_READLINK=1
19549 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19550 /* <sys/types.h> is not needed according to POSIX, but the
19551 <sys/socket.h> in i386-unknown-freebsd4.10 and
19552 powerpc-apple-darwin5.5 required it. */
19553 #include <sys/types.h>
19554 #if HAVE_SYS_SOCKET_H
19555 # include <sys/socket.h>
19556 #elif HAVE_WS2TCPIP_H
19557 # include <ws2tcpip.h>
19558 #endif
19561 if test "x$ac_cv_type_socklen_t" = x""yes; then :
19563 else
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
19565 $as_echo_n "checking for socklen_t equivalent... " >&6; }
19566 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
19567 $as_echo_n "(cached) " >&6
19568 else
19569 # Systems have either "struct sockaddr *" or
19570 # "void *" as the second argument to getpeername
19571 gl_cv_socklen_t_equiv=
19572 for arg2 in "struct sockaddr" void; do
19573 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576 #include <sys/types.h>
19577 #include <sys/socket.h>
19579 int getpeername (int, $arg2 *, $t *);
19581 main ()
19583 $t len;
19584 getpeername (0, 0, &len);
19586 return 0;
19588 _ACEOF
19589 if ac_fn_c_try_compile "$LINENO"; then :
19590 gl_cv_socklen_t_equiv="$t"
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 test "$gl_cv_socklen_t_equiv" != "" && break
19594 done
19595 test "$gl_cv_socklen_t_equiv" != "" && break
19596 done
19600 if test "$gl_cv_socklen_t_equiv" = ""; then
19601 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
19604 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
19606 cat >>confdefs.h <<_ACEOF
19607 #define socklen_t $gl_cv_socklen_t_equiv
19608 _ACEOF
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19614 $as_echo_n "checking for ssize_t... " >&6; }
19615 if test "${gt_cv_ssize_t+set}" = set; then :
19616 $as_echo_n "(cached) " >&6
19617 else
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19620 #include <sys/types.h>
19622 main ()
19624 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19625 return !x;
19627 return 0;
19629 _ACEOF
19630 if ac_fn_c_try_compile "$LINENO"; then :
19631 gt_cv_ssize_t=yes
19632 else
19633 gt_cv_ssize_t=no
19635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
19638 $as_echo "$gt_cv_ssize_t" >&6; }
19639 if test $gt_cv_ssize_t = no; then
19641 $as_echo "#define ssize_t int" >>confdefs.h
19646 STDARG_H=''
19647 NEXT_STDARG_H='<stdarg.h>'
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
19649 $as_echo_n "checking for va_copy... " >&6; }
19650 if test "${gl_cv_func_va_copy+set}" = set; then :
19651 $as_echo_n "(cached) " >&6
19652 else
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19656 #include <stdarg.h>
19658 main ()
19661 #ifndef va_copy
19662 void (*func) (va_list, va_list) = va_copy;
19663 #endif
19666 return 0;
19668 _ACEOF
19669 if ac_fn_c_try_compile "$LINENO"; then :
19670 gl_cv_func_va_copy=yes
19671 else
19672 gl_cv_func_va_copy=no
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
19678 $as_echo "$gl_cv_func_va_copy" >&6; }
19679 if test $gl_cv_func_va_copy = no; then
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 #if defined _AIX && !defined __GNUC__
19683 AIX vaccine
19684 #endif
19686 _ACEOF
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "vaccine" >/dev/null 2>&1; then :
19689 gl_aixcc=yes
19690 else
19691 gl_aixcc=no
19693 rm -f conftest*
19695 if test $gl_aixcc = yes; then
19696 STDARG_H=stdarg.h
19705 if test $gl_cv_have_include_next = yes; then
19706 gl_cv_next_stdarg_h='<'stdarg.h'>'
19707 else
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
19709 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
19710 if test "${gl_cv_next_stdarg_h+set}" = set; then :
19711 $as_echo_n "(cached) " >&6
19712 else
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716 #include <stdarg.h>
19718 _ACEOF
19719 case "$host_os" in
19720 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19721 *) gl_absname_cpp="$ac_cpp" ;;
19722 esac
19723 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19724 sed -n '\#/stdarg.h#{
19725 s#.*"\(.*/stdarg.h\)".*#\1#
19726 s#^/[^/]#//&#
19729 }'`'"'
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
19734 $as_echo "$gl_cv_next_stdarg_h" >&6; }
19736 NEXT_STDARG_H=$gl_cv_next_stdarg_h
19738 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19740 gl_next_as_first_directive='<'stdarg.h'>'
19741 else
19742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19743 gl_next_as_first_directive=$gl_cv_next_stdarg_h
19745 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
19750 if test "$gl_cv_next_stdarg_h" = '""'; then
19751 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
19752 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
19754 else
19756 saved_as_echo_n="$as_echo_n"
19757 as_echo_n=':'
19758 if test "${gl_cv_func___va_copy+set}" = set; then :
19759 $as_echo_n "(cached) " >&6
19760 else
19762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19763 /* end confdefs.h. */
19764 #include <stdarg.h>
19766 main ()
19769 #ifndef __va_copy
19770 error, bail out
19771 #endif
19774 return 0;
19776 _ACEOF
19777 if ac_fn_c_try_compile "$LINENO"; then :
19778 gl_cv_func___va_copy=yes
19779 else
19780 gl_cv_func___va_copy=no
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19785 as_echo_n="$saved_as_echo_n"
19787 if test $gl_cv_func___va_copy = yes; then
19789 $as_echo "#define va_copy __va_copy" >>confdefs.h
19791 else
19794 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
19800 if test -n "$STDARG_H"; then
19801 GL_GENERATE_STDARG_H_TRUE=
19802 GL_GENERATE_STDARG_H_FALSE='#'
19803 else
19804 GL_GENERATE_STDARG_H_TRUE='#'
19805 GL_GENERATE_STDARG_H_FALSE=
19813 # Define two additional variables used in the Makefile substitution.
19815 if test "$ac_cv_header_stdbool_h" = yes; then
19816 STDBOOL_H=''
19817 else
19818 STDBOOL_H='stdbool.h'
19821 if test -n "$STDBOOL_H"; then
19822 GL_GENERATE_STDBOOL_H_TRUE=
19823 GL_GENERATE_STDBOOL_H_FALSE='#'
19824 else
19825 GL_GENERATE_STDBOOL_H_TRUE='#'
19826 GL_GENERATE_STDBOOL_H_FALSE=
19830 if test "$ac_cv_type__Bool" = yes; then
19831 HAVE__BOOL=1
19832 else
19833 HAVE__BOOL=0
19840 STDDEF_H=
19841 if test $gt_cv_c_wchar_t = no; then
19842 HAVE_WCHAR_T=0
19843 STDDEF_H=stddef.h
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
19846 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
19847 if test "${gl_cv_decl_null_works+set}" = set; then :
19848 $as_echo_n "(cached) " >&6
19849 else
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852 #include <stddef.h>
19853 int test[2 * (sizeof NULL == sizeof (void *)) -1];
19856 main ()
19860 return 0;
19862 _ACEOF
19863 if ac_fn_c_try_compile "$LINENO"; then :
19864 gl_cv_decl_null_works=yes
19865 else
19866 gl_cv_decl_null_works=no
19868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
19871 $as_echo "$gl_cv_decl_null_works" >&6; }
19872 if test $gl_cv_decl_null_works = no; then
19873 REPLACE_NULL=1
19874 STDDEF_H=stddef.h
19877 if test -n "$STDDEF_H"; then
19878 GL_GENERATE_STDDEF_H_TRUE=
19879 GL_GENERATE_STDDEF_H_FALSE='#'
19880 else
19881 GL_GENERATE_STDDEF_H_TRUE='#'
19882 GL_GENERATE_STDDEF_H_FALSE=
19885 if test -n "$STDDEF_H"; then
19894 if test $gl_cv_have_include_next = yes; then
19895 gl_cv_next_stddef_h='<'stddef.h'>'
19896 else
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
19898 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
19899 if test "${gl_cv_next_stddef_h+set}" = set; then :
19900 $as_echo_n "(cached) " >&6
19901 else
19903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19904 /* end confdefs.h. */
19905 #include <stddef.h>
19907 _ACEOF
19908 case "$host_os" in
19909 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19910 *) gl_absname_cpp="$ac_cpp" ;;
19911 esac
19912 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19913 sed -n '\#/stddef.h#{
19914 s#.*"\(.*/stddef.h\)".*#\1#
19915 s#^/[^/]#//&#
19918 }'`'"'
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
19923 $as_echo "$gl_cv_next_stddef_h" >&6; }
19925 NEXT_STDDEF_H=$gl_cv_next_stddef_h
19927 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19929 gl_next_as_first_directive='<'stddef.h'>'
19930 else
19931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19932 gl_next_as_first_directive=$gl_cv_next_stddef_h
19934 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
19953 if test $gl_cv_have_include_next = yes; then
19954 gl_cv_next_stdio_h='<'stdio.h'>'
19955 else
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
19957 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
19958 if test "${gl_cv_next_stdio_h+set}" = set; then :
19959 $as_echo_n "(cached) " >&6
19960 else
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19964 #include <stdio.h>
19966 _ACEOF
19967 case "$host_os" in
19968 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19969 *) gl_absname_cpp="$ac_cpp" ;;
19970 esac
19971 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19972 sed -n '\#/stdio.h#{
19973 s#.*"\(.*/stdio.h\)".*#\1#
19974 s#^/[^/]#//&#
19977 }'`'"'
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
19982 $as_echo "$gl_cv_next_stdio_h" >&6; }
19984 NEXT_STDIO_H=$gl_cv_next_stdio_h
19986 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19988 gl_next_as_first_directive='<'stdio.h'>'
19989 else
19990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19991 gl_next_as_first_directive=$gl_cv_next_stdio_h
19993 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
19999 GNULIB_FSCANF=1
20000 GNULIB_SCANF=1
20001 GNULIB_FGETC=1
20002 GNULIB_GETC=1
20003 GNULIB_GETCHAR=1
20004 GNULIB_FGETS=1
20005 GNULIB_GETS=1
20006 GNULIB_FREAD=1
20009 GNULIB_FPRINTF=1
20010 GNULIB_PRINTF=1
20011 GNULIB_VFPRINTF=1
20012 GNULIB_VPRINTF=1
20013 GNULIB_FPUTC=1
20014 GNULIB_PUTC=1
20015 GNULIB_PUTCHAR=1
20016 GNULIB_FPUTS=1
20017 GNULIB_PUTS=1
20018 GNULIB_FWRITE=1
20034 if test $gl_cv_have_include_next = yes; then
20035 gl_cv_next_stdlib_h='<'stdlib.h'>'
20036 else
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
20038 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
20039 if test "${gl_cv_next_stdlib_h+set}" = set; then :
20040 $as_echo_n "(cached) " >&6
20041 else
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045 #include <stdlib.h>
20047 _ACEOF
20048 case "$host_os" in
20049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20050 *) gl_absname_cpp="$ac_cpp" ;;
20051 esac
20052 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20053 sed -n '\#/stdlib.h#{
20054 s#.*"\(.*/stdlib.h\)".*#\1#
20055 s#^/[^/]#//&#
20058 }'`'"'
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
20063 $as_echo "$gl_cv_next_stdlib_h" >&6; }
20065 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
20067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20069 gl_next_as_first_directive='<'stdlib.h'>'
20070 else
20071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20072 gl_next_as_first_directive=$gl_cv_next_stdlib_h
20074 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
20084 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20092 $as_echo "#define my_strftime nstrftime" >>confdefs.h
20100 if test "$ac_cv_have_decl_strtoumax" != yes; then
20101 HAVE_DECL_STRTOUMAX=0
20103 for ac_func in strtoumax
20104 do :
20105 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
20106 if test "x$ac_cv_func_strtoumax" = x""yes; then :
20107 cat >>confdefs.h <<_ACEOF
20108 #define HAVE_STRTOUMAX 1
20109 _ACEOF
20112 done
20116 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
20125 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
20128 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
20129 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
20130 ac_have_decl=1
20131 else
20132 ac_have_decl=0
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_DECL_STRTOULL $ac_have_decl
20137 _ACEOF
20147 GNULIB_STRTOUMAX=1
20155 if test $ac_cv_func_symlink = no; then
20156 HAVE_SYMLINK=0
20157 else
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
20159 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
20160 if test "${gl_cv_func_symlink_works+set}" = set; then :
20161 $as_echo_n "(cached) " >&6
20162 else
20163 if test "$cross_compiling" = yes; then :
20164 gl_cv_func_symlink_works="guessing no"
20165 else
20166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20167 /* end confdefs.h. */
20168 #include <unistd.h>
20171 main ()
20173 int result = 0;
20174 if (!symlink ("a", "conftest.link/"))
20175 result |= 1;
20176 if (symlink ("conftest.f", "conftest.lnk2"))
20177 result |= 2;
20178 else if (!symlink ("a", "conftest.lnk2/"))
20179 result |= 4;
20180 return result;
20183 return 0;
20185 _ACEOF
20186 if ac_fn_c_try_run "$LINENO"; then :
20187 gl_cv_func_symlink_works=yes
20188 else
20189 gl_cv_func_symlink_works=no
20191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20192 conftest.$ac_objext conftest.beam conftest.$ac_ext
20195 rm -f conftest.f conftest.link conftest.lnk2
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
20198 $as_echo "$gl_cv_func_symlink_works" >&6; }
20199 if test "$gl_cv_func_symlink_works" != yes; then
20200 REPLACE_SYMLINK=1
20204 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
20213 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
20221 GNULIB_SYMLINK=1
20243 if test $gl_cv_have_include_next = yes; then
20244 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20245 else
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20247 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20248 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
20249 $as_echo_n "(cached) " >&6
20250 else
20252 if test $ac_cv_header_sys_stat_h = yes; then
20255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256 /* end confdefs.h. */
20257 #include <sys/stat.h>
20259 _ACEOF
20260 case "$host_os" in
20261 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20262 *) gl_absname_cpp="$ac_cpp" ;;
20263 esac
20264 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20265 sed -n '\#/sys/stat.h#{
20266 s#.*"\(.*/sys/stat.h\)".*#\1#
20267 s#^/[^/]#//&#
20270 }'`'"'
20271 else
20272 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20278 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20280 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20282 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20284 gl_next_as_first_directive='<'sys/stat.h'>'
20285 else
20286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20287 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20289 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20295 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20296 #include <sys/stat.h>
20298 if test "x$ac_cv_type_nlink_t" = x""yes; then :
20300 else
20302 $as_echo "#define nlink_t int" >>confdefs.h
20320 if test $ac_cv_have_decl_localtime_r = no; then
20321 HAVE_DECL_LOCALTIME_R=0
20325 if test $ac_cv_func_localtime_r = yes; then
20326 HAVE_LOCALTIME_R=1
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
20328 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
20329 if test "${gl_cv_time_r_posix+set}" = set; then :
20330 $as_echo_n "(cached) " >&6
20331 else
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20334 #include <time.h>
20336 main ()
20338 /* We don't need to append 'restrict's to the argument types,
20339 even though the POSIX signature has the 'restrict's,
20340 since C99 says they can't affect type compatibility. */
20341 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
20342 if (ptr) return 0;
20343 /* Check the return type is a pointer.
20344 On HP-UX 10 it is 'int'. */
20345 *localtime_r (0, 0);
20347 return 0;
20350 _ACEOF
20351 if ac_fn_c_try_compile "$LINENO"; then :
20352 gl_cv_time_r_posix=yes
20353 else
20354 gl_cv_time_r_posix=no
20356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
20360 $as_echo "$gl_cv_time_r_posix" >&6; }
20361 if test $gl_cv_time_r_posix = yes; then
20362 REPLACE_LOCALTIME_R=0
20363 else
20364 REPLACE_LOCALTIME_R=1
20366 else
20367 HAVE_LOCALTIME_R=0
20370 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
20379 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
20390 GNULIB_TIME_R=1
20410 if test $gl_cv_have_include_next = yes; then
20411 gl_cv_next_unistd_h='<'unistd.h'>'
20412 else
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
20414 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
20415 if test "${gl_cv_next_unistd_h+set}" = set; then :
20416 $as_echo_n "(cached) " >&6
20417 else
20419 if test $ac_cv_header_unistd_h = yes; then
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h. */
20424 #include <unistd.h>
20426 _ACEOF
20427 case "$host_os" in
20428 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20429 *) gl_absname_cpp="$ac_cpp" ;;
20430 esac
20431 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20432 sed -n '\#/unistd.h#{
20433 s#.*"\(.*/unistd.h\)".*#\1#
20434 s#^/[^/]#//&#
20437 }'`'"'
20438 else
20439 gl_cv_next_unistd_h='<'unistd.h'>'
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
20445 $as_echo "$gl_cv_next_unistd_h" >&6; }
20447 NEXT_UNISTD_H=$gl_cv_next_unistd_h
20449 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20451 gl_next_as_first_directive='<'unistd.h'>'
20452 else
20453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20454 gl_next_as_first_directive=$gl_cv_next_unistd_h
20456 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
20461 if test $ac_cv_header_unistd_h = yes; then
20462 HAVE_UNISTD_H=1
20463 else
20464 HAVE_UNISTD_H=0
20470 gl_gnulib_enabled_dosname=false
20471 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
20472 gl_gnulib_enabled_stat=false
20473 gl_gnulib_enabled_strtoull=false
20474 gl_gnulib_enabled_verify=false
20475 func_gl_gnulib_m4code_dosname ()
20477 if ! $gl_gnulib_enabled_dosname; then
20478 gl_gnulib_enabled_dosname=true
20481 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
20483 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
20486 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
20489 func_gl_gnulib_m4code_stat ()
20491 if ! $gl_gnulib_enabled_stat; then
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
20496 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
20497 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
20498 $as_echo_n "(cached) " >&6
20499 else
20500 if test "$cross_compiling" = yes; then :
20501 case $host_os in
20502 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
20503 *) gl_cv_func_stat_dir_slash="guessing yes";;
20504 esac
20505 else
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20508 #include <sys/stat.h>
20511 main ()
20513 struct stat st; return stat (".", &st) != stat ("./", &st);
20515 return 0;
20517 _ACEOF
20518 if ac_fn_c_try_run "$LINENO"; then :
20519 gl_cv_func_stat_dir_slash=yes
20520 else
20521 gl_cv_func_stat_dir_slash=no
20523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20524 conftest.$ac_objext conftest.beam conftest.$ac_ext
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
20529 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
20531 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
20532 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20534 else
20535 touch conftest.tmp
20536 # Assume that if we have lstat, we can also check symlinks.
20537 if test $ac_cv_func_lstat = yes; then
20538 ln -s conftest.tmp conftest.lnk
20540 if test "$cross_compiling" = yes; then :
20541 gl_cv_func_stat_file_slash="guessing no"
20542 else
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 #include <sys/stat.h>
20548 main ()
20550 int result = 0;
20551 struct stat st;
20552 if (!stat ("conftest.tmp/", &st))
20553 result |= 1;
20554 #if HAVE_LSTAT
20555 if (!stat ("conftest.lnk/", &st))
20556 result |= 2;
20557 #endif
20558 return result;
20561 return 0;
20563 _ACEOF
20564 if ac_fn_c_try_run "$LINENO"; then :
20565 gl_cv_func_stat_file_slash=yes
20566 else
20567 gl_cv_func_stat_file_slash=no
20569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20570 conftest.$ac_objext conftest.beam conftest.$ac_ext
20573 rm -f conftest.tmp conftest.lnk
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
20576 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
20577 case $gl_cv_func_stat_dir_slash in
20578 *no) REPLACE_STAT=1
20580 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
20582 esac
20583 case $gl_cv_func_stat_file_slash in
20584 *no) REPLACE_STAT=1
20586 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
20588 esac
20590 if test $REPLACE_STAT = 1; then
20599 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
20611 GNULIB_STAT=1
20617 gl_gnulib_enabled_stat=true
20618 if $condition; then
20619 func_gl_gnulib_m4code_dosname
20621 if $condition; then
20622 func_gl_gnulib_m4code_verify
20626 func_gl_gnulib_m4code_strtoull ()
20628 if ! $gl_gnulib_enabled_strtoull; then
20632 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
20633 for ac_func in strtoull
20634 do :
20635 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
20636 if test "x$ac_cv_func_strtoull" = x""yes; then :
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_STRTOULL 1
20639 _ACEOF
20642 done
20644 if test $ac_cv_func_strtoull = no; then
20645 HAVE_STRTOULL=0
20649 if test $HAVE_STRTOULL = 0; then
20658 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
20669 GNULIB_STRTOULL=1
20675 gl_gnulib_enabled_strtoull=true
20678 func_gl_gnulib_m4code_verify ()
20680 if ! $gl_gnulib_enabled_verify; then
20681 gl_gnulib_enabled_verify=true
20684 if test $REPLACE_GETOPT = 1; then
20685 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
20687 if test $REPLACE_LSTAT = 1; then
20688 func_gl_gnulib_m4code_dosname
20690 if test $REPLACE_LSTAT = 1; then
20691 func_gl_gnulib_m4code_stat
20693 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20694 func_gl_gnulib_m4code_stat
20696 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
20697 func_gl_gnulib_m4code_verify
20699 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
20700 func_gl_gnulib_m4code_strtoull
20703 if $gl_gnulib_enabled_dosname; then
20704 gl_GNULIB_ENABLED_dosname_TRUE=
20705 gl_GNULIB_ENABLED_dosname_FALSE='#'
20706 else
20707 gl_GNULIB_ENABLED_dosname_TRUE='#'
20708 gl_GNULIB_ENABLED_dosname_FALSE=
20711 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
20712 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
20713 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
20714 else
20715 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
20716 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
20719 if $gl_gnulib_enabled_stat; then
20720 gl_GNULIB_ENABLED_stat_TRUE=
20721 gl_GNULIB_ENABLED_stat_FALSE='#'
20722 else
20723 gl_GNULIB_ENABLED_stat_TRUE='#'
20724 gl_GNULIB_ENABLED_stat_FALSE=
20727 if $gl_gnulib_enabled_strtoull; then
20728 gl_GNULIB_ENABLED_strtoull_TRUE=
20729 gl_GNULIB_ENABLED_strtoull_FALSE='#'
20730 else
20731 gl_GNULIB_ENABLED_strtoull_TRUE='#'
20732 gl_GNULIB_ENABLED_strtoull_FALSE=
20735 if $gl_gnulib_enabled_verify; then
20736 gl_GNULIB_ENABLED_verify_TRUE=
20737 gl_GNULIB_ENABLED_verify_FALSE='#'
20738 else
20739 gl_GNULIB_ENABLED_verify_TRUE='#'
20740 gl_GNULIB_ENABLED_verify_FALSE=
20743 # End of code from modules
20753 gltests_libdeps=
20754 gltests_ltlibdeps=
20764 gl_source_base='tests'
20765 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
20767 gl_module_indicator_condition=$gltests_WITNESS
20778 LIBGNU_LIBDEPS="$gl_libdeps"
20780 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
20784 # UNIX98 PTYs.
20785 for ac_func in grantpt
20786 do :
20787 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
20788 if test "x$ac_cv_func_grantpt" = x""yes; then :
20789 cat >>confdefs.h <<_ACEOF
20790 #define HAVE_GRANTPT 1
20791 _ACEOF
20794 done
20797 # PTY-related GNU extensions.
20798 for ac_func in getpt
20799 do :
20800 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
20801 if test "x$ac_cv_func_getpt" = x""yes; then :
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_GETPT 1
20804 _ACEOF
20807 done
20810 # Check this now, so that we will NOT find the above functions in ncurses.
20811 # That is because we have not set up to link ncurses in lib-src.
20812 # It's better to believe a function is not available
20813 # than to expect to find it in ncurses.
20814 # Also we need tputs and friends to be able to build at all.
20815 have_tputs_et_al=true
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
20817 $as_echo_n "checking for library containing tputs... " >&6; }
20818 if test "${ac_cv_search_tputs+set}" = set; then :
20819 $as_echo_n "(cached) " >&6
20820 else
20821 ac_func_search_save_LIBS=$LIBS
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h. */
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 char tputs ();
20833 main ()
20835 return tputs ();
20837 return 0;
20839 _ACEOF
20840 for ac_lib in '' ncurses terminfo termcap; do
20841 if test -z "$ac_lib"; then
20842 ac_res="none required"
20843 else
20844 ac_res=-l$ac_lib
20845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20847 if ac_fn_c_try_link "$LINENO"; then :
20848 ac_cv_search_tputs=$ac_res
20850 rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext
20852 if test "${ac_cv_search_tputs+set}" = set; then :
20853 break
20855 done
20856 if test "${ac_cv_search_tputs+set}" = set; then :
20858 else
20859 ac_cv_search_tputs=no
20861 rm conftest.$ac_ext
20862 LIBS=$ac_func_search_save_LIBS
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
20865 $as_echo "$ac_cv_search_tputs" >&6; }
20866 ac_res=$ac_cv_search_tputs
20867 if test "$ac_res" != no; then :
20868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20870 else
20871 have_tputs_et_al=false
20874 if test "$have_tputs_et_al" != true; then
20875 as_fn_error "I couldn't find termcap functions (tputs and friends).
20876 Maybe some development libraries/packages are missing? Try installing
20877 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
20879 # Must define this when any termcap library is found.
20881 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
20883 ## FIXME This was the cpp logic, but I am not sure it is right.
20884 ## The above test has not necessarily found libncurses.
20885 HAVE_LIBNCURSES=yes
20887 ## Use terminfo instead of termcap?
20888 ## Note only system files NOT using terminfo are:
20889 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
20890 ## darwin|gnu without ncurses.
20891 TERMINFO=no
20892 LIBS_TERMCAP=
20893 case "$opsys" in
20894 ## cygwin: Fewer environment variables to go wrong, more terminal types.
20895 ## hpux10-20: Use the system provided termcap(3) library.
20896 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
20897 ## is necessary. Otherwise Emacs dumps core when run -nw.
20898 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
20900 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
20901 ## The ncurses library has been moved out of the System framework in
20902 ## Mac OS X 10.2. So if configure detects it, set the command-line
20903 ## option to use it.
20904 darwin|gnu*)
20905 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
20906 if test "x$HAVE_LIBNCURSES" = "xyes"; then
20907 TERMINFO=yes
20908 LIBS_TERMCAP="-lncurses"
20912 freebsd)
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
20914 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
20915 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
20916 $as_echo_n "(cached) " >&6
20917 else
20918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20919 /* end confdefs.h. */
20920 #include <osreldate.h>
20922 main ()
20924 #if __FreeBSD_version < 400000
20925 fail;
20926 #endif
20929 return 0;
20931 _ACEOF
20932 if ac_fn_c_try_link "$LINENO"; then :
20933 emacs_cv_freebsd_terminfo=yes
20934 else
20935 emacs_cv_freebsd_terminfo=no
20937 rm -f core conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
20943 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
20945 if test $emacs_cv_freebsd_terminfo = yes; then
20946 TERMINFO=yes
20947 LIBS_TERMCAP="-lncurses"
20948 else
20949 LIBS_TERMCAP="-ltermcap"
20953 netbsd)
20954 if test $ac_cv_search_tputs = -lterminfo; then
20955 TERMINFO=yes
20956 LIBS_TERMCAP="-lterminfo"
20957 else
20958 LIBS_TERMCAP="-ltermcap"
20962 esac
20964 case "$opsys" in
20965 ## hpux: Make sure we get select from libc rather than from libcurses
20966 ## because libcurses on HPUX 10.10 has a broken version of select.
20967 ## We used to use -lc -lcurses, but this may be cleaner.
20968 hpux*) LIBS_TERMCAP="-ltermcap" ;;
20970 openbsd) LIBS_TERMCAP="-lncurses" ;;
20972 ## Must use system termcap, if we use any termcap. It does special things.
20973 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
20974 esac
20976 TERMCAP_OBJ=tparam.o
20977 if test $TERMINFO = yes; then
20979 $as_echo "#define TERMINFO 1" >>confdefs.h
20982 ## Default used to be -ltermcap. Add a case above if need something else.
20983 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
20985 TERMCAP_OBJ=terminfo.o
20991 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20992 resolv=no
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20995 #include <netinet/in.h>
20996 #include <arpa/nameser.h>
20997 #include <resolv.h>
20999 main ()
21001 return res_init();
21003 return 0;
21005 _ACEOF
21006 if ac_fn_c_try_link "$LINENO"; then :
21007 have_res_init=yes
21008 else
21009 have_res_init=no
21011 rm -f core conftest.err conftest.$ac_objext \
21012 conftest$ac_exeext conftest.$ac_ext
21013 if test "$have_res_init" = no; then
21014 OLIBS="$LIBS"
21015 LIBS="$LIBS -lresolv"
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21017 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019 /* end confdefs.h. */
21020 #include <netinet/in.h>
21021 #include <arpa/nameser.h>
21022 #include <resolv.h>
21024 main ()
21026 return res_init();
21028 return 0;
21030 _ACEOF
21031 if ac_fn_c_try_link "$LINENO"; then :
21032 have_res_init=yes
21033 else
21034 have_res_init=no
21036 rm -f core conftest.err conftest.$ac_objext \
21037 conftest$ac_exeext conftest.$ac_ext
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21039 $as_echo "$have_res_init" >&6; }
21040 if test "$have_res_init" = yes ; then
21041 resolv=yes
21043 LIBS="$OLIBS"
21046 if test "$have_res_init" = yes; then
21048 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21052 # Do we need the Hesiod library to provide the support routines?
21053 LIBHESIOD=
21054 if test "$with_hesiod" != no ; then
21055 # Don't set $LIBS here -- see comments above. FIXME which comments?
21056 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21057 if test "x$ac_cv_func_res_send" = x""yes; then :
21059 else
21060 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21061 if test "x$ac_cv_func___res_send" = x""yes; then :
21063 else
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21065 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21066 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21067 $as_echo_n "(cached) " >&6
21068 else
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lresolv $LIBS"
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21074 /* Override any GCC internal prototype to avoid an error.
21075 Use char because int might match the return type of a GCC
21076 builtin and then its argument prototype would still apply. */
21077 #ifdef __cplusplus
21078 extern "C"
21079 #endif
21080 char res_send ();
21082 main ()
21084 return res_send ();
21086 return 0;
21088 _ACEOF
21089 if ac_fn_c_try_link "$LINENO"; then :
21090 ac_cv_lib_resolv_res_send=yes
21091 else
21092 ac_cv_lib_resolv_res_send=no
21094 rm -f core conftest.err conftest.$ac_objext \
21095 conftest$ac_exeext conftest.$ac_ext
21096 LIBS=$ac_check_lib_save_LIBS
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21099 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21100 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21101 resolv=yes
21102 else
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21104 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21105 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21106 $as_echo_n "(cached) " >&6
21107 else
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lresolv $LIBS"
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21113 /* Override any GCC internal prototype to avoid an error.
21114 Use char because int might match the return type of a GCC
21115 builtin and then its argument prototype would still apply. */
21116 #ifdef __cplusplus
21117 extern "C"
21118 #endif
21119 char __res_send ();
21121 main ()
21123 return __res_send ();
21125 return 0;
21127 _ACEOF
21128 if ac_fn_c_try_link "$LINENO"; then :
21129 ac_cv_lib_resolv___res_send=yes
21130 else
21131 ac_cv_lib_resolv___res_send=no
21133 rm -f core conftest.err conftest.$ac_objext \
21134 conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21138 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21139 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21140 resolv=yes
21149 if test "$resolv" = yes ; then
21150 RESOLVLIB=-lresolv
21151 else
21152 RESOLVLIB=
21154 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21155 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21157 else
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21159 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21160 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21161 $as_echo_n "(cached) " >&6
21162 else
21163 ac_check_lib_save_LIBS=$LIBS
21164 LIBS="-lhesiod $RESOLVLIB $LIBS"
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21168 /* Override any GCC internal prototype to avoid an error.
21169 Use char because int might match the return type of a GCC
21170 builtin and then its argument prototype would still apply. */
21171 #ifdef __cplusplus
21172 extern "C"
21173 #endif
21174 char hes_getmailhost ();
21176 main ()
21178 return hes_getmailhost ();
21180 return 0;
21182 _ACEOF
21183 if ac_fn_c_try_link "$LINENO"; then :
21184 ac_cv_lib_hesiod_hes_getmailhost=yes
21185 else
21186 ac_cv_lib_hesiod_hes_getmailhost=no
21188 rm -f core conftest.err conftest.$ac_objext \
21189 conftest$ac_exeext conftest.$ac_ext
21190 LIBS=$ac_check_lib_save_LIBS
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21193 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21194 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21195 hesiod=yes
21196 else
21203 if test x"$hesiod" = xyes; then
21205 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21207 LIBHESIOD=-lhesiod
21212 # Do we need libresolv (due to res_init or Hesiod)?
21213 if test "$resolv" = yes ; then
21215 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21217 LIBRESOLV=-lresolv
21218 else
21219 LIBRESOLV=
21223 # These tell us which Kerberos-related libraries to use.
21224 COM_ERRLIB=
21225 CRYPTOLIB=
21226 KRB5LIB=
21227 DESLIB=
21228 KRB4LIB=
21230 if test "${with_kerberos}" != no; then
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21232 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21233 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21235 else
21236 ac_check_lib_save_LIBS=$LIBS
21237 LIBS="-lcom_err $LIBS"
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21241 /* Override any GCC internal prototype to avoid an error.
21242 Use char because int might match the return type of a GCC
21243 builtin and then its argument prototype would still apply. */
21244 #ifdef __cplusplus
21245 extern "C"
21246 #endif
21247 char com_err ();
21249 main ()
21251 return com_err ();
21253 return 0;
21255 _ACEOF
21256 if ac_fn_c_try_link "$LINENO"; then :
21257 ac_cv_lib_com_err_com_err=yes
21258 else
21259 ac_cv_lib_com_err_com_err=no
21261 rm -f core conftest.err conftest.$ac_objext \
21262 conftest$ac_exeext conftest.$ac_ext
21263 LIBS=$ac_check_lib_save_LIBS
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21266 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21267 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21268 have_com_err=yes
21269 else
21270 have_com_err=no
21273 if test $have_com_err = yes; then
21274 COM_ERRLIB=-lcom_err
21275 LIBS="$COM_ERRLIB $LIBS"
21277 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21281 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21282 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21283 $as_echo_n "(cached) " >&6
21284 else
21285 ac_check_lib_save_LIBS=$LIBS
21286 LIBS="-lcrypto $LIBS"
21287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288 /* end confdefs.h. */
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21293 #ifdef __cplusplus
21294 extern "C"
21295 #endif
21296 char mit_des_cbc_encrypt ();
21298 main ()
21300 return mit_des_cbc_encrypt ();
21302 return 0;
21304 _ACEOF
21305 if ac_fn_c_try_link "$LINENO"; then :
21306 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21307 else
21308 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21310 rm -f core conftest.err conftest.$ac_objext \
21311 conftest$ac_exeext conftest.$ac_ext
21312 LIBS=$ac_check_lib_save_LIBS
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21315 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21316 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21317 have_crypto=yes
21318 else
21319 have_crypto=no
21322 if test $have_crypto = yes; then
21323 CRYPTOLIB=-lcrypto
21324 LIBS="$CRYPTOLIB $LIBS"
21326 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21330 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21331 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21332 $as_echo_n "(cached) " >&6
21333 else
21334 ac_check_lib_save_LIBS=$LIBS
21335 LIBS="-lk5crypto $LIBS"
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21339 /* Override any GCC internal prototype to avoid an error.
21340 Use char because int might match the return type of a GCC
21341 builtin and then its argument prototype would still apply. */
21342 #ifdef __cplusplus
21343 extern "C"
21344 #endif
21345 char mit_des_cbc_encrypt ();
21347 main ()
21349 return mit_des_cbc_encrypt ();
21351 return 0;
21353 _ACEOF
21354 if ac_fn_c_try_link "$LINENO"; then :
21355 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21356 else
21357 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21359 rm -f core conftest.err conftest.$ac_objext \
21360 conftest$ac_exeext conftest.$ac_ext
21361 LIBS=$ac_check_lib_save_LIBS
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21364 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21365 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21366 have_k5crypto=yes
21367 else
21368 have_k5crypto=no
21371 if test $have_k5crypto = yes; then
21372 CRYPTOLIB=-lk5crypto
21373 LIBS="$CRYPTOLIB $LIBS"
21375 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21379 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21380 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21381 $as_echo_n "(cached) " >&6
21382 else
21383 ac_check_lib_save_LIBS=$LIBS
21384 LIBS="-lkrb5 $LIBS"
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21388 /* Override any GCC internal prototype to avoid an error.
21389 Use char because int might match the return type of a GCC
21390 builtin and then its argument prototype would still apply. */
21391 #ifdef __cplusplus
21392 extern "C"
21393 #endif
21394 char krb5_init_context ();
21396 main ()
21398 return krb5_init_context ();
21400 return 0;
21402 _ACEOF
21403 if ac_fn_c_try_link "$LINENO"; then :
21404 ac_cv_lib_krb5_krb5_init_context=yes
21405 else
21406 ac_cv_lib_krb5_krb5_init_context=no
21408 rm -f core conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21410 LIBS=$ac_check_lib_save_LIBS
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21413 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21414 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21415 have_krb5=yes
21416 else
21417 have_krb5=no
21420 if test $have_krb5=yes; then
21421 KRB5LIB=-lkrb5
21422 LIBS="$KRB5LIB $LIBS"
21424 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21427 if test "${with_kerberos5}" = no; then
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21429 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21430 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21431 $as_echo_n "(cached) " >&6
21432 else
21433 ac_check_lib_save_LIBS=$LIBS
21434 LIBS="-ldes425 $LIBS"
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21438 /* Override any GCC internal prototype to avoid an error.
21439 Use char because int might match the return type of a GCC
21440 builtin and then its argument prototype would still apply. */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char des_cbc_encrypt ();
21446 main ()
21448 return des_cbc_encrypt ();
21450 return 0;
21452 _ACEOF
21453 if ac_fn_c_try_link "$LINENO"; then :
21454 ac_cv_lib_des425_des_cbc_encrypt=yes
21455 else
21456 ac_cv_lib_des425_des_cbc_encrypt=no
21458 rm -f core conftest.err conftest.$ac_objext \
21459 conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21463 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21464 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21465 have_des425=yes
21466 else
21467 have_des425=no
21470 if test $have_des425 = yes; then
21471 DESLIB=-ldes425
21472 LIBS="$DESLIB $LIBS"
21474 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21476 else
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21478 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21479 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21480 $as_echo_n "(cached) " >&6
21481 else
21482 ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-ldes $LIBS"
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21487 /* Override any GCC internal prototype to avoid an error.
21488 Use char because int might match the return type of a GCC
21489 builtin and then its argument prototype would still apply. */
21490 #ifdef __cplusplus
21491 extern "C"
21492 #endif
21493 char des_cbc_encrypt ();
21495 main ()
21497 return des_cbc_encrypt ();
21499 return 0;
21501 _ACEOF
21502 if ac_fn_c_try_link "$LINENO"; then :
21503 ac_cv_lib_des_des_cbc_encrypt=yes
21504 else
21505 ac_cv_lib_des_des_cbc_encrypt=no
21507 rm -f core conftest.err conftest.$ac_objext \
21508 conftest$ac_exeext conftest.$ac_ext
21509 LIBS=$ac_check_lib_save_LIBS
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21512 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21513 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21514 have_des=yes
21515 else
21516 have_des=no
21519 if test $have_des = yes; then
21520 DESLIB=-ldes
21521 LIBS="$DESLIB $LIBS"
21523 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21528 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21529 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21530 $as_echo_n "(cached) " >&6
21531 else
21532 ac_check_lib_save_LIBS=$LIBS
21533 LIBS="-lkrb4 $LIBS"
21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535 /* end confdefs.h. */
21537 /* Override any GCC internal prototype to avoid an error.
21538 Use char because int might match the return type of a GCC
21539 builtin and then its argument prototype would still apply. */
21540 #ifdef __cplusplus
21541 extern "C"
21542 #endif
21543 char krb_get_cred ();
21545 main ()
21547 return krb_get_cred ();
21549 return 0;
21551 _ACEOF
21552 if ac_fn_c_try_link "$LINENO"; then :
21553 ac_cv_lib_krb4_krb_get_cred=yes
21554 else
21555 ac_cv_lib_krb4_krb_get_cred=no
21557 rm -f core conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21559 LIBS=$ac_check_lib_save_LIBS
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21562 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21563 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
21564 have_krb4=yes
21565 else
21566 have_krb4=no
21569 if test $have_krb4 = yes; then
21570 KRB4LIB=-lkrb4
21571 LIBS="$KRB4LIB $LIBS"
21573 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21575 else
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21577 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21578 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21579 $as_echo_n "(cached) " >&6
21580 else
21581 ac_check_lib_save_LIBS=$LIBS
21582 LIBS="-lkrb $LIBS"
21583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21584 /* end confdefs.h. */
21586 /* Override any GCC internal prototype to avoid an error.
21587 Use char because int might match the return type of a GCC
21588 builtin and then its argument prototype would still apply. */
21589 #ifdef __cplusplus
21590 extern "C"
21591 #endif
21592 char krb_get_cred ();
21594 main ()
21596 return krb_get_cred ();
21598 return 0;
21600 _ACEOF
21601 if ac_fn_c_try_link "$LINENO"; then :
21602 ac_cv_lib_krb_krb_get_cred=yes
21603 else
21604 ac_cv_lib_krb_krb_get_cred=no
21606 rm -f core conftest.err conftest.$ac_objext \
21607 conftest$ac_exeext conftest.$ac_ext
21608 LIBS=$ac_check_lib_save_LIBS
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21611 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21612 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
21613 have_krb=yes
21614 else
21615 have_krb=no
21618 if test $have_krb = yes; then
21619 KRB4LIB=-lkrb
21620 LIBS="$KRB4LIB $LIBS"
21622 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
21628 if test "${with_kerberos5}" != no; then
21629 for ac_header in krb5.h
21630 do :
21631 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
21632 if test "x$ac_cv_header_krb5_h" = x""yes; then :
21633 cat >>confdefs.h <<_ACEOF
21634 #define HAVE_KRB5_H 1
21635 _ACEOF
21636 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
21638 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
21640 cat >>confdefs.h <<_ACEOF
21641 #define HAVE_KRB5_ERROR_TEXT 1
21642 _ACEOF
21646 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
21648 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
21650 cat >>confdefs.h <<_ACEOF
21651 #define HAVE_KRB5_ERROR_E_TEXT 1
21652 _ACEOF
21659 done
21661 else
21662 for ac_header in des.h
21663 do :
21664 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21665 if test "x$ac_cv_header_des_h" = x""yes; then :
21666 cat >>confdefs.h <<_ACEOF
21667 #define HAVE_DES_H 1
21668 _ACEOF
21670 else
21671 for ac_header in kerberosIV/des.h
21672 do :
21673 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
21674 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
21675 cat >>confdefs.h <<_ACEOF
21676 #define HAVE_KERBEROSIV_DES_H 1
21677 _ACEOF
21679 else
21680 for ac_header in kerberos/des.h
21681 do :
21682 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
21683 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
21684 cat >>confdefs.h <<_ACEOF
21685 #define HAVE_KERBEROS_DES_H 1
21686 _ACEOF
21690 done
21694 done
21698 done
21700 for ac_header in krb.h
21701 do :
21702 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
21703 if test "x$ac_cv_header_krb_h" = x""yes; then :
21704 cat >>confdefs.h <<_ACEOF
21705 #define HAVE_KRB_H 1
21706 _ACEOF
21708 else
21709 for ac_header in kerberosIV/krb.h
21710 do :
21711 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
21712 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE_KERBEROSIV_KRB_H 1
21715 _ACEOF
21717 else
21718 for ac_header in kerberos/krb.h
21719 do :
21720 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
21721 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_KERBEROS_KRB_H 1
21724 _ACEOF
21728 done
21732 done
21736 done
21739 for ac_header in com_err.h
21740 do :
21741 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
21742 if test "x$ac_cv_header_com_err_h" = x""yes; then :
21743 cat >>confdefs.h <<_ACEOF
21744 #define HAVE_COM_ERR_H 1
21745 _ACEOF
21749 done
21759 # Solaris requires -lintl if you want strerror (which calls dgettext)
21760 # to return localized messages.
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
21762 $as_echo_n "checking for dgettext in -lintl... " >&6; }
21763 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lintl $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21774 #ifdef __cplusplus
21775 extern "C"
21776 #endif
21777 char dgettext ();
21779 main ()
21781 return dgettext ();
21783 return 0;
21785 _ACEOF
21786 if ac_fn_c_try_link "$LINENO"; then :
21787 ac_cv_lib_intl_dgettext=yes
21788 else
21789 ac_cv_lib_intl_dgettext=no
21791 rm -f core conftest.err conftest.$ac_objext \
21792 conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
21796 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
21797 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE_LIBINTL 1
21800 _ACEOF
21802 LIBS="-lintl $LIBS"
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
21808 $as_echo_n "checking whether localtime caches TZ... " >&6; }
21809 if test "${emacs_cv_localtime_cache+set}" = set; then :
21810 $as_echo_n "(cached) " >&6
21811 else
21812 if test x$ac_cv_func_tzset = xyes; then
21813 if test "$cross_compiling" = yes; then :
21814 # If we have tzset, assume the worst when cross-compiling.
21815 emacs_cv_localtime_cache=yes
21816 else
21817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21818 /* end confdefs.h. */
21819 #include <time.h>
21820 char TZ_GMT0[] = "TZ=GMT0";
21821 char TZ_PST8[] = "TZ=PST8";
21822 main()
21824 time_t now = time ((time_t *) 0);
21825 int hour_GMT0, hour_unset;
21826 if (putenv (TZ_GMT0) != 0)
21827 exit (1);
21828 hour_GMT0 = localtime (&now)->tm_hour;
21829 unsetenv("TZ");
21830 hour_unset = localtime (&now)->tm_hour;
21831 if (putenv (TZ_PST8) != 0)
21832 exit (1);
21833 if (localtime (&now)->tm_hour == hour_GMT0)
21834 exit (1);
21835 unsetenv("TZ");
21836 if (localtime (&now)->tm_hour != hour_unset)
21837 exit (1);
21838 exit (0);
21840 _ACEOF
21841 if ac_fn_c_try_run "$LINENO"; then :
21842 emacs_cv_localtime_cache=no
21843 else
21844 emacs_cv_localtime_cache=yes
21846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21847 conftest.$ac_objext conftest.beam conftest.$ac_ext
21850 else
21851 # If we lack tzset, report that localtime does not cache TZ,
21852 # since we can't invalidate the cache if we don't have tzset.
21853 emacs_cv_localtime_cache=no
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
21857 $as_echo "$emacs_cv_localtime_cache" >&6; }
21858 if test $emacs_cv_localtime_cache = yes; then
21860 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
21864 if test "x$HAVE_TIMEVAL" = xyes; then
21865 for ac_func in gettimeofday
21866 do :
21867 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
21868 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
21869 cat >>confdefs.h <<_ACEOF
21870 #define HAVE_GETTIMEOFDAY 1
21871 _ACEOF
21874 done
21876 if test $ac_cv_func_gettimeofday = yes; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
21878 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
21879 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21881 else
21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h. */
21885 #ifdef TIME_WITH_SYS_TIME
21886 #include <sys/time.h>
21887 #include <time.h>
21888 #else
21889 #ifdef HAVE_SYS_TIME_H
21890 #include <sys/time.h>
21891 #else
21892 #include <time.h>
21893 #endif
21894 #endif
21896 main ()
21898 struct timeval time;
21899 gettimeofday (&time, 0);
21901 return 0;
21903 _ACEOF
21904 if ac_fn_c_try_compile "$LINENO"; then :
21905 emacs_cv_gettimeofday_two_arguments=yes
21906 else
21907 emacs_cv_gettimeofday_two_arguments=no
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
21912 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
21913 if test $emacs_cv_gettimeofday_two_arguments = no; then
21915 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
21921 ok_so_far=yes
21922 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21923 if test "x$ac_cv_func_socket" = x""yes; then :
21925 else
21926 ok_so_far=no
21929 if test $ok_so_far = yes; then
21930 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
21931 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
21933 else
21934 ok_so_far=no
21939 if test $ok_so_far = yes; then
21940 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
21941 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
21943 else
21944 ok_so_far=no
21949 if test $ok_so_far = yes; then
21951 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
21955 if test -f /usr/lpp/X11/bin/smt.exp; then
21957 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
21962 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
21963 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21965 $as_echo "yes" >&6; }
21967 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
21969 else
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21971 $as_echo "no" >&6; }
21974 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21975 if test "x$ac_cv_type_pid_t" = x""yes; then :
21977 else
21979 cat >>confdefs.h <<_ACEOF
21980 #define pid_t int
21981 _ACEOF
21985 for ac_header in vfork.h
21986 do :
21987 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21988 if test "x$ac_cv_header_vfork_h" = x""yes; then :
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_VFORK_H 1
21991 _ACEOF
21995 done
21997 for ac_func in fork vfork
21998 do :
21999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22001 eval as_val=\$$as_ac_var
22002 if test "x$as_val" = x""yes; then :
22003 cat >>confdefs.h <<_ACEOF
22004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22005 _ACEOF
22008 done
22010 if test "x$ac_cv_func_fork" = xyes; then
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22012 $as_echo_n "checking for working fork... " >&6; }
22013 if test "${ac_cv_func_fork_works+set}" = set; then :
22014 $as_echo_n "(cached) " >&6
22015 else
22016 if test "$cross_compiling" = yes; then :
22017 ac_cv_func_fork_works=cross
22018 else
22019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22020 /* end confdefs.h. */
22021 $ac_includes_default
22023 main ()
22026 /* By Ruediger Kuhlmann. */
22027 return fork () < 0;
22030 return 0;
22032 _ACEOF
22033 if ac_fn_c_try_run "$LINENO"; then :
22034 ac_cv_func_fork_works=yes
22035 else
22036 ac_cv_func_fork_works=no
22038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22039 conftest.$ac_objext conftest.beam conftest.$ac_ext
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22044 $as_echo "$ac_cv_func_fork_works" >&6; }
22046 else
22047 ac_cv_func_fork_works=$ac_cv_func_fork
22049 if test "x$ac_cv_func_fork_works" = xcross; then
22050 case $host in
22051 *-*-amigaos* | *-*-msdosdjgpp*)
22052 # Override, as these systems have only a dummy fork() stub
22053 ac_cv_func_fork_works=no
22056 ac_cv_func_fork_works=yes
22058 esac
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22060 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22062 ac_cv_func_vfork_works=$ac_cv_func_vfork
22063 if test "x$ac_cv_func_vfork" = xyes; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22065 $as_echo_n "checking for working vfork... " >&6; }
22066 if test "${ac_cv_func_vfork_works+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 if test "$cross_compiling" = yes; then :
22070 ac_cv_func_vfork_works=cross
22071 else
22072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22073 /* end confdefs.h. */
22074 /* Thanks to Paul Eggert for this test. */
22075 $ac_includes_default
22076 #include <sys/wait.h>
22077 #ifdef HAVE_VFORK_H
22078 # include <vfork.h>
22079 #endif
22080 /* On some sparc systems, changes by the child to local and incoming
22081 argument registers are propagated back to the parent. The compiler
22082 is told about this with #include <vfork.h>, but some compilers
22083 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22084 static variable whose address is put into a register that is
22085 clobbered by the vfork. */
22086 static void
22087 #ifdef __cplusplus
22088 sparc_address_test (int arg)
22089 # else
22090 sparc_address_test (arg) int arg;
22091 #endif
22093 static pid_t child;
22094 if (!child) {
22095 child = vfork ();
22096 if (child < 0) {
22097 perror ("vfork");
22098 _exit(2);
22100 if (!child) {
22101 arg = getpid();
22102 write(-1, "", 0);
22103 _exit (arg);
22109 main ()
22111 pid_t parent = getpid ();
22112 pid_t child;
22114 sparc_address_test (0);
22116 child = vfork ();
22118 if (child == 0) {
22119 /* Here is another test for sparc vfork register problems. This
22120 test uses lots of local variables, at least as many local
22121 variables as main has allocated so far including compiler
22122 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22123 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22124 reuse the register of parent for one of the local variables,
22125 since it will think that parent can't possibly be used any more
22126 in this routine. Assigning to the local variable will thus
22127 munge parent in the parent process. */
22128 pid_t
22129 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22130 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22131 /* Convince the compiler that p..p7 are live; otherwise, it might
22132 use the same hardware register for all 8 local variables. */
22133 if (p != p1 || p != p2 || p != p3 || p != p4
22134 || p != p5 || p != p6 || p != p7)
22135 _exit(1);
22137 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22138 from child file descriptors. If the child closes a descriptor
22139 before it execs or exits, this munges the parent's descriptor
22140 as well. Test for this by closing stdout in the child. */
22141 _exit(close(fileno(stdout)) != 0);
22142 } else {
22143 int status;
22144 struct stat st;
22146 while (wait(&status) != child)
22148 return (
22149 /* Was there some problem with vforking? */
22150 child < 0
22152 /* Did the child fail? (This shouldn't happen.) */
22153 || status
22155 /* Did the vfork/compiler bug occur? */
22156 || parent != getpid()
22158 /* Did the file descriptor bug occur? */
22159 || fstat(fileno(stdout), &st) != 0
22163 _ACEOF
22164 if ac_fn_c_try_run "$LINENO"; then :
22165 ac_cv_func_vfork_works=yes
22166 else
22167 ac_cv_func_vfork_works=no
22169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22170 conftest.$ac_objext conftest.beam conftest.$ac_ext
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22175 $as_echo "$ac_cv_func_vfork_works" >&6; }
22178 if test "x$ac_cv_func_fork_works" = xcross; then
22179 ac_cv_func_vfork_works=$ac_cv_func_vfork
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22181 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22184 if test "x$ac_cv_func_vfork_works" = xyes; then
22186 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22188 else
22190 $as_echo "#define vfork fork" >>confdefs.h
22193 if test "x$ac_cv_func_fork_works" = xyes; then
22195 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22201 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22202 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22203 $as_echo_n "(cached) " >&6
22204 else
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h. */
22207 #include <langinfo.h>
22209 main ()
22211 char* cs = nl_langinfo(CODESET);
22213 return 0;
22215 _ACEOF
22216 if ac_fn_c_try_link "$LINENO"; then :
22217 emacs_cv_langinfo_codeset=yes
22218 else
22219 emacs_cv_langinfo_codeset=no
22221 rm -f core conftest.err conftest.$ac_objext \
22222 conftest$ac_exeext conftest.$ac_ext
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22226 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22227 if test $emacs_cv_langinfo_codeset = yes; then
22229 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22234 $as_echo_n "checking for mbstate_t... " >&6; }
22235 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22236 $as_echo_n "(cached) " >&6
22237 else
22238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239 /* end confdefs.h. */
22240 $ac_includes_default
22241 # include <wchar.h>
22243 main ()
22245 mbstate_t x; return sizeof x;
22247 return 0;
22249 _ACEOF
22250 if ac_fn_c_try_compile "$LINENO"; then :
22251 ac_cv_type_mbstate_t=yes
22252 else
22253 ac_cv_type_mbstate_t=no
22255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22258 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22259 if test $ac_cv_type_mbstate_t = yes; then
22261 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22263 else
22265 $as_echo "#define mbstate_t int" >>confdefs.h
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22270 $as_echo_n "checking for C restricted array declarations... " >&6; }
22271 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22272 $as_echo_n "(cached) " >&6
22273 else
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h. */
22276 void fred (int x[__restrict]);
22278 main ()
22282 return 0;
22284 _ACEOF
22285 if ac_fn_c_try_compile "$LINENO"; then :
22286 emacs_cv_c_restrict_arr=yes
22287 else
22288 emacs_cv_c_restrict_arr=no
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22293 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22294 if test "$emacs_cv_c_restrict_arr" = yes; then
22296 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22302 # Set up the CFLAGS for real compilation, so we can substitute it.
22303 CFLAGS="$REAL_CFLAGS"
22304 CPPFLAGS="$REAL_CPPFLAGS"
22306 ## Hack to detect a buggy GCC version.
22307 if test "x$GCC" = xyes \
22308 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22309 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
22310 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
22311 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22314 version=$PACKAGE_VERSION
22316 ### Specify what sort of things we'll be editing into Makefile and config.h.
22317 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22320 ## Unused?
22341 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22342 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22343 ## end of LIBX_BASE, but nothing ever set it.
22348 ## Used in lwlib/Makefile.in.
22350 if test -n "${machfile}"; then
22351 M_FILE="\$(srcdir)/${machfile}"
22352 else
22353 M_FILE=
22355 S_FILE="\$(srcdir)/${opsysfile}"
22366 cat >>confdefs.h <<_ACEOF
22367 #define EMACS_CONFIGURATION "${canonical}"
22368 _ACEOF
22371 cat >>confdefs.h <<_ACEOF
22372 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22373 _ACEOF
22375 if test -n "$machfile"; then
22377 cat >>confdefs.h <<_ACEOF
22378 #define config_machfile "${machfile}"
22379 _ACEOF
22383 cat >>confdefs.h <<_ACEOF
22384 #define config_opsysfile "${opsysfile}"
22385 _ACEOF
22388 XMENU_OBJ=
22389 XOBJ=
22390 FONT_OBJ=
22391 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22393 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22395 XMENU_OBJ=xmenu.o
22396 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22397 FONT_OBJ=xfont.o
22398 if test "$HAVE_XFT" = "yes"; then
22399 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22400 elif test "$HAVE_FREETYPE" = "yes"; then
22401 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
22409 WIDGET_OBJ=
22410 MOTIF_LIBW=
22411 if test "${USE_X_TOOLKIT}" != "none" ; then
22412 WIDGET_OBJ=widget.o
22414 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22416 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22418 $as_echo "#define USE_LUCID 1" >>confdefs.h
22420 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22422 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22424 MOTIF_LIBW=-lXm
22425 case "$opsys" in
22426 gnu-linux)
22427 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22428 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
22431 unixware)
22432 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22433 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22434 MOTIF_LIBW="MOTIF_LIBW -lXimp"
22437 aix4-2)
22438 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22439 MOTIF_LIBW="$MOTIF_LIBW -li18n"
22441 esac
22442 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
22447 TOOLKIT_LIBW=
22448 case "$USE_X_TOOLKIT" in
22449 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
22450 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
22451 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS -lXcomposite" ;;
22452 esac
22455 if test "$USE_X_TOOLKIT" = "none"; then
22456 LIBXT_OTHER="\$(LIBXSM)"
22457 OLDXMENU_TARGET="really-oldXMenu"
22458 else
22459 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22460 OLDXMENU_TARGET="really-lwlib"
22464 ## The X Menu stuff is present in the X10 distribution, but missing
22465 ## from X11. If we have X10, just use the installed library;
22466 ## otherwise, use our own copy.
22467 if test "${HAVE_X11}" = "yes" ; then
22469 $as_echo "#define HAVE_X11 1" >>confdefs.h
22472 if test "$USE_X_TOOLKIT" = "none"; then
22473 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
22474 else
22475 OLDXMENU="\${lwlibdir}/liblw.a"
22477 LIBXMENU="\$(OLDXMENU)"
22478 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
22479 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
22480 else
22481 ## For a syntactically valid Makefile; not actually used for anything.
22482 ## See comments in src/Makefile.in.
22483 OLDXMENU=nothing
22484 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22485 if test "${HAVE_X_WINDOWS}" = "yes"; then
22486 LIBXMENU="-lXMenu"
22487 else
22488 LIBXMENU=
22490 LIBX_OTHER=
22491 OLDXMENU_DEPS=
22494 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
22495 OLDXMENU_TARGET=
22496 OLDXMENU=nothing
22497 LIBXMENU=
22498 OLDXMENU_DEPS=
22507 if test "${HAVE_MENUS}" = "yes" ; then
22509 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22513 if test "${GNU_MALLOC}" = "yes" ; then
22515 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22519 RALLOC_OBJ=
22520 if test "${REL_ALLOC}" = "yes" ; then
22522 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22525 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
22529 if test "$opsys" = "cygwin"; then
22530 CYGWIN_OBJ="sheap.o"
22531 ## Cygwin differs because of its unexec().
22532 PRE_ALLOC_OBJ=
22533 POST_ALLOC_OBJ=lastfile.o
22534 else
22535 CYGWIN_OBJ=
22536 PRE_ALLOC_OBJ=lastfile.o
22537 POST_ALLOC_OBJ=
22544 case "$opsys" in
22545 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22547 darwin)
22548 ## The -headerpad option tells ld (see man page) to leave room at the
22549 ## end of the header for adding load commands. Needed for dumping.
22550 ## 0x690 is the total size of 30 segment load commands (at 56
22551 ## each); under Cocoa 31 commands are required.
22552 if test "$HAVE_NS" = "yes"; then
22553 libs_nsgui="-framework AppKit"
22554 headerpad_extra=6C8
22555 else
22556 libs_nsgui=
22557 headerpad_extra=690
22559 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22561 ## This is here because src/Makefile.in did some extra fiddling around
22562 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22563 ## #ifndef LD_SWITCH_SYSTEM
22564 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22565 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22566 ## not using gcc, darwin system not on an alpha (ie darwin, since
22567 ## darwin + alpha does not occur).
22568 ## Because this was done in src/Makefile.in, the resulting part of
22569 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22570 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22571 ## rather than LD_SWITCH_SYSTEM.
22572 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22573 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22576 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22577 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22578 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22579 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22580 ## had different values in configure (in ac_link) and src/Makefile.in.
22581 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22582 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22584 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22585 esac
22587 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22588 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22594 LD_FIRSTFLAG=
22595 ORDINARY_LINK=
22596 case "$opsys" in
22597 ## gnu: GNU needs its own crt0.
22598 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22600 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22601 ## library search parth, i.e. it won't search /usr/lib for libc and
22602 ## friends. Using -nostartfiles instead avoids this problem, and
22603 ## will also work on earlier NetBSD releases.
22604 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22606 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22607 ## MkLinux/LinuxPPC needs this.
22608 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22609 gnu-*)
22610 case "$machine" in
22611 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22612 esac
22614 esac
22617 if test "x$ORDINARY_LINK" = "xyes"; then
22619 LD_FIRSTFLAG=""
22621 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22624 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22625 ## freebsd, gnu-* not on macppc|ibms390x.
22626 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22628 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22629 ## places that are difficult to figure out at make time. Fortunately,
22630 ## these same versions allow you to pass arbitrary flags on to the
22631 ## linker, so there is no reason not to use it as a linker.
22633 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22634 ## searching for libraries in its internal directories, so we have to
22635 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22636 LD_FIRSTFLAG="-nostdlib"
22639 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22640 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22645 ## FIXME? The logic here is not precisely the same as that above.
22646 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22647 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22648 LIB_GCC=
22649 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22651 case "$opsys" in
22652 freebsd|netbsd|openbsd) LIB_GCC= ;;
22654 gnu-*)
22655 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22656 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22657 case $host_cpu in
22658 arm*)
22659 LIB_GCC="-lgcc_s"
22662 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22663 ## immediately undefine it again and redefine it to empty.
22664 ## Was the C_SWITCH_X_SITE part really necessary?
22665 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22666 LIB_GCC=
22668 esac
22671 ## Ask GCC where to find libgcc.a.
22672 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22673 esac
22677 ## If we're using X11/GNUstep, define some consequences.
22678 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22680 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22683 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22690 #### Report on what we decided to do.
22691 #### Report GTK as a toolkit, even if it doesn't use Xt.
22692 #### It makes printing result more understandable as using GTK sets
22693 #### toolkit_scroll_bars to yes by default.
22694 if test "${HAVE_GTK}" = "yes"; then
22695 USE_X_TOOLKIT=GTK
22698 and_machfile=
22699 if test -n "$machfile"; then
22700 and_machfile=" and \`${machfile}'"
22703 echo "
22704 Configured for \`${canonical}'.
22706 Where should the build process find the source code? ${srcdir}
22707 What operating system and machine description files should Emacs use?
22708 \`${opsysfile}'${and_machfile}
22709 What compiler should emacs be built with? ${CC} ${CFLAGS}
22710 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22711 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22712 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22713 What window system should Emacs use? ${window_system}
22714 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22716 if test -n "${x_includes}"; then
22717 echo " Where do we find X Windows header files? ${x_includes}"
22718 else
22719 echo " Where do we find X Windows header files? Standard dirs"
22721 if test -n "${x_libraries}"; then
22722 echo " Where do we find X Windows libraries? ${x_libraries}"
22723 else
22724 echo " Where do we find X Windows libraries? Standard dirs"
22727 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22728 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22729 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22730 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22731 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22732 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22733 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22734 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22736 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22737 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22738 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22739 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22740 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22741 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22743 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22744 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22745 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22746 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22748 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22749 echo
22751 if test $USE_XASSERTS = yes; then
22752 echo " Compiling with asserts turned on."
22753 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22756 echo
22758 if test "$HAVE_NS" = "yes"; then
22759 echo
22760 echo "You must run \"make install\" in order to test the built application.
22761 The installed application will go to nextstep/Emacs.app and can be
22762 run or moved from there."
22763 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22764 echo "The application will be fully self-contained."
22765 else
22766 echo "The lisp resources for the application will be installed under ${prefix}.
22767 You may need to run \"make install\" with sudo. The application will fail
22768 to run if these resources are not installed."
22770 echo
22774 # Remove any trailing slashes in these variables.
22775 test "${prefix}" != NONE &&
22776 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22777 test "${exec_prefix}" != NONE &&
22778 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22780 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"
22782 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"
22785 opt_makefile=test/automated/Makefile
22787 if test -f $srcdir/${opt_makefile}.in; then
22788 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22789 ac_config_files="$ac_config_files test/automated/Makefile"
22793 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22797 ac_config_commands="$ac_config_commands mkdirs"
22800 ac_config_commands="$ac_config_commands epaths"
22803 ac_config_commands="$ac_config_commands gdbinit"
22806 cat >confcache <<\_ACEOF
22807 # This file is a shell script that caches the results of configure
22808 # tests run on this system so they can be shared between configure
22809 # scripts and configure runs, see configure's option --config-cache.
22810 # It is not useful on other systems. If it contains results you don't
22811 # want to keep, you may remove or edit it.
22813 # config.status only pays attention to the cache file if you give it
22814 # the --recheck option to rerun configure.
22816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22818 # following values.
22820 _ACEOF
22822 # The following way of writing the cache mishandles newlines in values,
22823 # but we know of no workaround that is simple, portable, and efficient.
22824 # So, we kill variables containing newlines.
22825 # Ultrix sh set writes to stderr and can't be redirected directly,
22826 # and sets the high bit in the cache file unless we assign to the vars.
22828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22829 eval ac_val=\$$ac_var
22830 case $ac_val in #(
22831 *${as_nl}*)
22832 case $ac_var in #(
22833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22835 esac
22836 case $ac_var in #(
22837 _ | IFS | as_nl) ;; #(
22838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22839 *) { eval $ac_var=; unset $ac_var;} ;;
22840 esac ;;
22841 esac
22842 done
22844 (set) 2>&1 |
22845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22846 *${as_nl}ac_space=\ *)
22847 # `set' does not quote correctly, so add quotes: double-quote
22848 # substitution turns \\\\ into \\, and sed turns \\ into \.
22849 sed -n \
22850 "s/'/'\\\\''/g;
22851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22852 ;; #(
22854 # `set' quotes correctly as required by POSIX, so do not add quotes.
22855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22857 esac |
22858 sort
22860 sed '
22861 /^ac_cv_env_/b end
22862 t clear
22863 :clear
22864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22865 t end
22866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22867 :end' >>confcache
22868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22869 if test -w "$cache_file"; then
22870 test "x$cache_file" != "x/dev/null" &&
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22872 $as_echo "$as_me: updating cache $cache_file" >&6;}
22873 cat confcache >$cache_file
22874 else
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22879 rm -f confcache
22881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22882 # Let make expand exec_prefix.
22883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22885 DEFS=-DHAVE_CONFIG_H
22887 ac_libobjs=
22888 ac_ltlibobjs=
22889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22890 # 1. Remove the extension, and $U if already installed.
22891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22894 # will be set to the directory where LIBOBJS objects are built.
22895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22897 done
22898 LIBOBJS=$ac_libobjs
22900 LTLIBOBJS=$ac_ltlibobjs
22903 if test -n "$EXEEXT"; then
22904 am__EXEEXT_TRUE=
22905 am__EXEEXT_FALSE='#'
22906 else
22907 am__EXEEXT_TRUE='#'
22908 am__EXEEXT_FALSE=
22911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22912 as_fn_error "conditional \"AMDEP\" was never defined.
22913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22916 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22920 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22921 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22924 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22925 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22929 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22930 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22933 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22934 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22937 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22938 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22941 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22942 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22945 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22946 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22949 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22950 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22953 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22954 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22957 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22958 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22961 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22962 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22966 gl_libobjs=
22967 gl_ltlibobjs=
22968 if test -n "$gl_LIBOBJS"; then
22969 # Remove the extension.
22970 sed_drop_objext='s/\.o$//;s/\.obj$//'
22971 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22972 gl_libobjs="$gl_libobjs $i.$ac_objext"
22973 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22974 done
22976 gl_LIBOBJS=$gl_libobjs
22978 gl_LTLIBOBJS=$gl_ltlibobjs
22982 gltests_libobjs=
22983 gltests_ltlibobjs=
22984 if test -n "$gltests_LIBOBJS"; then
22985 # Remove the extension.
22986 sed_drop_objext='s/\.o$//;s/\.obj$//'
22987 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22988 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22989 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22990 done
22992 gltests_LIBOBJS=$gltests_libobjs
22994 gltests_LTLIBOBJS=$gltests_ltlibobjs
22998 : ${CONFIG_STATUS=./config.status}
22999 ac_write_fail=0
23000 ac_clean_files_save=$ac_clean_files
23001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23003 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23004 as_write_fail=0
23005 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23006 #! $SHELL
23007 # Generated by $as_me.
23008 # Run this file to recreate the current configuration.
23009 # Compiler output produced by configure, useful for debugging
23010 # configure, is in config.log if it exists.
23012 debug=false
23013 ac_cs_recheck=false
23014 ac_cs_silent=false
23016 SHELL=\${CONFIG_SHELL-$SHELL}
23017 export SHELL
23018 _ASEOF
23019 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23020 ## -------------------- ##
23021 ## M4sh Initialization. ##
23022 ## -------------------- ##
23024 # Be more Bourne compatible
23025 DUALCASE=1; export DUALCASE # for MKS sh
23026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23027 emulate sh
23028 NULLCMD=:
23029 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23030 # is contrary to our usage. Disable this feature.
23031 alias -g '${1+"$@"}'='"$@"'
23032 setopt NO_GLOB_SUBST
23033 else
23034 case `(set -o) 2>/dev/null` in #(
23035 *posix*) :
23036 set -o posix ;; #(
23037 *) :
23039 esac
23043 as_nl='
23045 export as_nl
23046 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23047 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23050 # Prefer a ksh shell builtin over an external printf program on Solaris,
23051 # but without wasting forks for bash or zsh.
23052 if test -z "$BASH_VERSION$ZSH_VERSION" \
23053 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23054 as_echo='print -r --'
23055 as_echo_n='print -rn --'
23056 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23057 as_echo='printf %s\n'
23058 as_echo_n='printf %s'
23059 else
23060 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23061 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23062 as_echo_n='/usr/ucb/echo -n'
23063 else
23064 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23065 as_echo_n_body='eval
23066 arg=$1;
23067 case $arg in #(
23068 *"$as_nl"*)
23069 expr "X$arg" : "X\\(.*\\)$as_nl";
23070 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23071 esac;
23072 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23074 export as_echo_n_body
23075 as_echo_n='sh -c $as_echo_n_body as_echo'
23077 export as_echo_body
23078 as_echo='sh -c $as_echo_body as_echo'
23081 # The user is always right.
23082 if test "${PATH_SEPARATOR+set}" != set; then
23083 PATH_SEPARATOR=:
23084 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23085 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23086 PATH_SEPARATOR=';'
23091 # IFS
23092 # We need space, tab and new line, in precisely that order. Quoting is
23093 # there to prevent editors from complaining about space-tab.
23094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23095 # splitting by setting IFS to empty value.)
23096 IFS=" "" $as_nl"
23098 # Find who we are. Look in the path if we contain no directory separator.
23099 case $0 in #((
23100 *[\\/]* ) as_myself=$0 ;;
23101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23102 for as_dir in $PATH
23104 IFS=$as_save_IFS
23105 test -z "$as_dir" && as_dir=.
23106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23107 done
23108 IFS=$as_save_IFS
23111 esac
23112 # We did not find ourselves, most probably we were run as `sh COMMAND'
23113 # in which case we are not to be found in the path.
23114 if test "x$as_myself" = x; then
23115 as_myself=$0
23117 if test ! -f "$as_myself"; then
23118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23119 exit 1
23122 # Unset variables that we do not need and which cause bugs (e.g. in
23123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23124 # suppresses any "Segmentation fault" message there. '((' could
23125 # trigger a bug in pdksh 5.2.14.
23126 for as_var in BASH_ENV ENV MAIL MAILPATH
23127 do eval test x\${$as_var+set} = xset \
23128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23129 done
23130 PS1='$ '
23131 PS2='> '
23132 PS4='+ '
23134 # NLS nuisances.
23135 LC_ALL=C
23136 export LC_ALL
23137 LANGUAGE=C
23138 export LANGUAGE
23140 # CDPATH.
23141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23144 # as_fn_error ERROR [LINENO LOG_FD]
23145 # ---------------------------------
23146 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23147 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23148 # script with status $?, using 1 if that was 0.
23149 as_fn_error ()
23151 as_status=$?; test $as_status -eq 0 && as_status=1
23152 if test "$3"; then
23153 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23156 $as_echo "$as_me: error: $1" >&2
23157 as_fn_exit $as_status
23158 } # as_fn_error
23161 # as_fn_set_status STATUS
23162 # -----------------------
23163 # Set $? to STATUS, without forking.
23164 as_fn_set_status ()
23166 return $1
23167 } # as_fn_set_status
23169 # as_fn_exit STATUS
23170 # -----------------
23171 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23172 as_fn_exit ()
23174 set +e
23175 as_fn_set_status $1
23176 exit $1
23177 } # as_fn_exit
23179 # as_fn_unset VAR
23180 # ---------------
23181 # Portably unset VAR.
23182 as_fn_unset ()
23184 { eval $1=; unset $1;}
23186 as_unset=as_fn_unset
23187 # as_fn_append VAR VALUE
23188 # ----------------------
23189 # Append the text in VALUE to the end of the definition contained in VAR. Take
23190 # advantage of any shell optimizations that allow amortized linear growth over
23191 # repeated appends, instead of the typical quadratic growth present in naive
23192 # implementations.
23193 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23194 eval 'as_fn_append ()
23196 eval $1+=\$2
23198 else
23199 as_fn_append ()
23201 eval $1=\$$1\$2
23203 fi # as_fn_append
23205 # as_fn_arith ARG...
23206 # ------------------
23207 # Perform arithmetic evaluation on the ARGs, and store the result in the
23208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23209 # must be portable across $(()) and expr.
23210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23211 eval 'as_fn_arith ()
23213 as_val=$(( $* ))
23215 else
23216 as_fn_arith ()
23218 as_val=`expr "$@" || test $? -eq 1`
23220 fi # as_fn_arith
23223 if expr a : '\(a\)' >/dev/null 2>&1 &&
23224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23225 as_expr=expr
23226 else
23227 as_expr=false
23230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23231 as_basename=basename
23232 else
23233 as_basename=false
23236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23237 as_dirname=dirname
23238 else
23239 as_dirname=false
23242 as_me=`$as_basename -- "$0" ||
23243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23244 X"$0" : 'X\(//\)$' \| \
23245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23246 $as_echo X/"$0" |
23247 sed '/^.*\/\([^/][^/]*\)\/*$/{
23248 s//\1/
23251 /^X\/\(\/\/\)$/{
23252 s//\1/
23255 /^X\/\(\/\).*/{
23256 s//\1/
23259 s/.*/./; q'`
23261 # Avoid depending upon Character Ranges.
23262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23265 as_cr_digits='0123456789'
23266 as_cr_alnum=$as_cr_Letters$as_cr_digits
23268 ECHO_C= ECHO_N= ECHO_T=
23269 case `echo -n x` in #(((((
23270 -n*)
23271 case `echo 'xy\c'` in
23272 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23273 xy) ECHO_C='\c';;
23274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23275 ECHO_T=' ';;
23276 esac;;
23278 ECHO_N='-n';;
23279 esac
23281 rm -f conf$$ conf$$.exe conf$$.file
23282 if test -d conf$$.dir; then
23283 rm -f conf$$.dir/conf$$.file
23284 else
23285 rm -f conf$$.dir
23286 mkdir conf$$.dir 2>/dev/null
23288 if (echo >conf$$.file) 2>/dev/null; then
23289 if ln -s conf$$.file conf$$ 2>/dev/null; then
23290 as_ln_s='ln -s'
23291 # ... but there are two gotchas:
23292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23294 # In both cases, we have to default to `cp -p'.
23295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23296 as_ln_s='cp -p'
23297 elif ln conf$$.file conf$$ 2>/dev/null; then
23298 as_ln_s=ln
23299 else
23300 as_ln_s='cp -p'
23302 else
23303 as_ln_s='cp -p'
23305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23306 rmdir conf$$.dir 2>/dev/null
23309 # as_fn_mkdir_p
23310 # -------------
23311 # Create "$as_dir" as a directory, including parents if necessary.
23312 as_fn_mkdir_p ()
23315 case $as_dir in #(
23316 -*) as_dir=./$as_dir;;
23317 esac
23318 test -d "$as_dir" || eval $as_mkdir_p || {
23319 as_dirs=
23320 while :; do
23321 case $as_dir in #(
23322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23323 *) as_qdir=$as_dir;;
23324 esac
23325 as_dirs="'$as_qdir' $as_dirs"
23326 as_dir=`$as_dirname -- "$as_dir" ||
23327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23328 X"$as_dir" : 'X\(//\)[^/]' \| \
23329 X"$as_dir" : 'X\(//\)$' \| \
23330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23331 $as_echo X"$as_dir" |
23332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23333 s//\1/
23336 /^X\(\/\/\)[^/].*/{
23337 s//\1/
23340 /^X\(\/\/\)$/{
23341 s//\1/
23344 /^X\(\/\).*/{
23345 s//\1/
23348 s/.*/./; q'`
23349 test -d "$as_dir" && break
23350 done
23351 test -z "$as_dirs" || eval "mkdir $as_dirs"
23352 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23355 } # as_fn_mkdir_p
23356 if mkdir -p . 2>/dev/null; then
23357 as_mkdir_p='mkdir -p "$as_dir"'
23358 else
23359 test -d ./-p && rmdir ./-p
23360 as_mkdir_p=false
23363 if test -x / >/dev/null 2>&1; then
23364 as_test_x='test -x'
23365 else
23366 if ls -dL / >/dev/null 2>&1; then
23367 as_ls_L_option=L
23368 else
23369 as_ls_L_option=
23371 as_test_x='
23372 eval sh -c '\''
23373 if test -d "$1"; then
23374 test -d "$1/.";
23375 else
23376 case $1 in #(
23377 -*)set "./$1";;
23378 esac;
23379 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23380 ???[sx]*):;;*)false;;esac;fi
23381 '\'' sh
23384 as_executable_p=$as_test_x
23386 # Sed expression to map a string onto a valid CPP name.
23387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23389 # Sed expression to map a string onto a valid variable name.
23390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23393 exec 6>&1
23394 ## ----------------------------------- ##
23395 ## Main body of $CONFIG_STATUS script. ##
23396 ## ----------------------------------- ##
23397 _ASEOF
23398 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23401 # Save the log message, to keep $0 and so on meaningful, and to
23402 # report actual input values of CONFIG_FILES etc. instead of their
23403 # values after options handling.
23404 ac_log="
23405 This file was extended by emacs $as_me 24.0.50, which was
23406 generated by GNU Autoconf 2.65. Invocation command line was
23408 CONFIG_FILES = $CONFIG_FILES
23409 CONFIG_HEADERS = $CONFIG_HEADERS
23410 CONFIG_LINKS = $CONFIG_LINKS
23411 CONFIG_COMMANDS = $CONFIG_COMMANDS
23412 $ $0 $@
23414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23417 _ACEOF
23419 case $ac_config_files in *"
23420 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23421 esac
23423 case $ac_config_headers in *"
23424 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23425 esac
23428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23429 # Files that config.status was made for.
23430 config_files="$ac_config_files"
23431 config_headers="$ac_config_headers"
23432 config_commands="$ac_config_commands"
23434 _ACEOF
23436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23437 ac_cs_usage="\
23438 \`$as_me' instantiates files and other configuration actions
23439 from templates according to the current configuration. Unless the files
23440 and actions are specified as TAGs, all are instantiated by default.
23442 Usage: $0 [OPTION]... [TAG]...
23444 -h, --help print this help, then exit
23445 -V, --version print version number and configuration settings, then exit
23446 --config print configuration, then exit
23447 -q, --quiet, --silent
23448 do not print progress messages
23449 -d, --debug don't remove temporary files
23450 --recheck update $as_me by reconfiguring in the same conditions
23451 --file=FILE[:TEMPLATE]
23452 instantiate the configuration file FILE
23453 --header=FILE[:TEMPLATE]
23454 instantiate the configuration header FILE
23456 Configuration files:
23457 $config_files
23459 Configuration headers:
23460 $config_headers
23462 Configuration commands:
23463 $config_commands
23465 Report bugs to the package provider."
23467 _ACEOF
23468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23469 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23470 ac_cs_version="\\
23471 emacs config.status 24.0.50
23472 configured by $0, generated by GNU Autoconf 2.65,
23473 with options \\"\$ac_cs_config\\"
23475 Copyright (C) 2009 Free Software Foundation, Inc.
23476 This config.status script is free software; the Free Software Foundation
23477 gives unlimited permission to copy, distribute and modify it."
23479 ac_pwd='$ac_pwd'
23480 srcdir='$srcdir'
23481 INSTALL='$INSTALL'
23482 MKDIR_P='$MKDIR_P'
23483 AWK='$AWK'
23484 test -n "\$AWK" || AWK=awk
23485 _ACEOF
23487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23488 # The default lists apply if the user does not specify any file.
23489 ac_need_defaults=:
23490 while test $# != 0
23492 case $1 in
23493 --*=*)
23494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23496 ac_shift=:
23499 ac_option=$1
23500 ac_optarg=$2
23501 ac_shift=shift
23503 esac
23505 case $ac_option in
23506 # Handling of the options.
23507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23508 ac_cs_recheck=: ;;
23509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23510 $as_echo "$ac_cs_version"; exit ;;
23511 --config | --confi | --conf | --con | --co | --c )
23512 $as_echo "$ac_cs_config"; exit ;;
23513 --debug | --debu | --deb | --de | --d | -d )
23514 debug=: ;;
23515 --file | --fil | --fi | --f )
23516 $ac_shift
23517 case $ac_optarg in
23518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23519 esac
23520 as_fn_append CONFIG_FILES " '$ac_optarg'"
23521 ac_need_defaults=false;;
23522 --header | --heade | --head | --hea )
23523 $ac_shift
23524 case $ac_optarg in
23525 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23526 esac
23527 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23528 ac_need_defaults=false;;
23529 --he | --h)
23530 # Conflict between --help and --header
23531 as_fn_error "ambiguous option: \`$1'
23532 Try \`$0 --help' for more information.";;
23533 --help | --hel | -h )
23534 $as_echo "$ac_cs_usage"; exit ;;
23535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23536 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23537 ac_cs_silent=: ;;
23539 # This is an error.
23540 -*) as_fn_error "unrecognized option: \`$1'
23541 Try \`$0 --help' for more information." ;;
23543 *) as_fn_append ac_config_targets " $1"
23544 ac_need_defaults=false ;;
23546 esac
23547 shift
23548 done
23550 ac_configure_extra_args=
23552 if $ac_cs_silent; then
23553 exec 6>/dev/null
23554 ac_configure_extra_args="$ac_configure_extra_args --silent"
23557 _ACEOF
23558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23559 if \$ac_cs_recheck; then
23560 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23561 shift
23562 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23563 CONFIG_SHELL='$SHELL'
23564 export CONFIG_SHELL
23565 exec "\$@"
23568 _ACEOF
23569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23570 exec 5>>config.log
23572 echo
23573 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23574 ## Running $as_me. ##
23575 _ASBOX
23576 $as_echo "$ac_log"
23577 } >&5
23579 _ACEOF
23580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23582 # INIT-COMMANDS
23584 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23585 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23587 _ACEOF
23589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23591 # Handling of arguments.
23592 for ac_config_target in $ac_config_targets
23594 case $ac_config_target in
23595 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23596 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23598 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23599 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23600 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23601 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23602 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23603 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23604 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23605 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23606 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23607 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23608 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23609 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23610 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23611 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23612 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23614 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23615 esac
23616 done
23619 # If the user did not use the arguments to specify the items to instantiate,
23620 # then the envvar interface is used. Set only those that are not.
23621 # We use the long form for the default assignment because of an extremely
23622 # bizarre bug on SunOS 4.1.3.
23623 if $ac_need_defaults; then
23624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23629 # Have a temporary directory for convenience. Make it in the build tree
23630 # simply because there is no reason against having it here, and in addition,
23631 # creating and moving files from /tmp can sometimes cause problems.
23632 # Hook for its removal unless debugging.
23633 # Note that there is a small window in which the directory will not be cleaned:
23634 # after its creation but before its name has been assigned to `$tmp'.
23635 $debug ||
23637 tmp=
23638 trap 'exit_status=$?
23639 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23641 trap 'as_fn_exit 1' 1 2 13 15
23643 # Create a (secure) tmp directory for tmp files.
23646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23647 test -n "$tmp" && test -d "$tmp"
23648 } ||
23650 tmp=./conf$$-$RANDOM
23651 (umask 077 && mkdir "$tmp")
23652 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23654 # Set up the scripts for CONFIG_FILES section.
23655 # No need to generate them if there are no CONFIG_FILES.
23656 # This happens for instance with `./config.status config.h'.
23657 if test -n "$CONFIG_FILES"; then
23659 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23660 ac_cs_awk_getline=:
23661 ac_cs_awk_pipe_init=
23662 ac_cs_awk_read_file='
23663 while ((getline aline < (F[key])) > 0)
23664 print(aline)
23665 close(F[key])'
23666 ac_cs_awk_pipe_fini=
23667 else
23668 ac_cs_awk_getline=false
23669 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23670 ac_cs_awk_read_file='
23671 print "|#_!!_#|"
23672 print "cat " F[key] " &&"
23673 '$ac_cs_awk_pipe_init
23674 # The final `:' finishes the AND list.
23675 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23677 ac_cr=`echo X | tr X '\015'`
23678 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23679 # But we know of no other shell where ac_cr would be empty at this
23680 # point, so we can use a bashism as a fallback.
23681 if test "x$ac_cr" = x; then
23682 eval ac_cr=\$\'\\r\'
23684 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23685 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23686 ac_cs_awk_cr='\r'
23687 else
23688 ac_cs_awk_cr=$ac_cr
23691 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23692 _ACEOF
23694 # Create commands to substitute file output variables.
23696 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23697 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23698 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23699 echo "_ACAWK" &&
23700 echo "_ACEOF"
23701 } >conf$$files.sh &&
23702 . ./conf$$files.sh ||
23703 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23704 rm -f conf$$files.sh
23707 echo "cat >conf$$subs.awk <<_ACEOF" &&
23708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23709 echo "_ACEOF"
23710 } >conf$$subs.sh ||
23711 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23712 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23713 ac_delim='%!_!# '
23714 for ac_last_try in false false false false false :; do
23715 . ./conf$$subs.sh ||
23716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23718 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23719 if test $ac_delim_n = $ac_delim_num; then
23720 break
23721 elif $ac_last_try; then
23722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23723 else
23724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23726 done
23727 rm -f conf$$subs.sh
23729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23730 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23731 _ACEOF
23732 sed -n '
23734 s/^/S["/; s/!.*/"]=/
23737 s/^[^!]*!//
23738 :repl
23739 t repl
23740 s/'"$ac_delim"'$//
23741 t delim
23744 s/\(.\{148\}\)..*/\1/
23745 t more1
23746 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23749 b repl
23750 :more1
23751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23754 s/.\{148\}//
23755 t nl
23756 :delim
23758 s/\(.\{148\}\)..*/\1/
23759 t more2
23760 s/["\\]/\\&/g; s/^/"/; s/$/"/
23763 :more2
23764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23767 s/.\{148\}//
23768 t delim
23769 ' <conf$$subs.awk | sed '
23770 /^[^""]/{
23772 s/\n//
23774 ' >>$CONFIG_STATUS || ac_write_fail=1
23775 rm -f conf$$subs.awk
23776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23777 _ACAWK
23778 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23779 for (key in S) S_is_set[key] = 1
23780 FS = "\a"
23781 \$ac_cs_awk_pipe_init
23784 line = $ 0
23785 nfields = split(line, field, "@")
23786 substed = 0
23787 len = length(field[1])
23788 for (i = 2; i < nfields; i++) {
23789 key = field[i]
23790 keylen = length(key)
23791 if (S_is_set[key]) {
23792 value = S[key]
23793 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23794 len += length(value) + length(field[++i])
23795 substed = 1
23796 } else
23797 len += 1 + keylen
23799 if (nfields == 3 && !substed) {
23800 key = field[2]
23801 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23802 \$ac_cs_awk_read_file
23803 next
23806 print line
23808 \$ac_cs_awk_pipe_fini
23809 _ACAWK
23810 _ACEOF
23811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23814 else
23816 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23817 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23818 _ACEOF
23820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23822 # trailing colons and then remove the whole line if VPATH becomes empty
23823 # (actually we leave an empty line to preserve line numbers).
23824 if test "x$srcdir" = x.; then
23825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23826 s/:*\$(srcdir):*/:/
23827 s/:*\${srcdir}:*/:/
23828 s/:*@srcdir@:*/:/
23829 s/^\([^=]*=[ ]*\):*/\1/
23830 s/:*$//
23831 s/^[^=]*=[ ]*$//
23835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23836 fi # test -n "$CONFIG_FILES"
23838 # Set up the scripts for CONFIG_HEADERS section.
23839 # No need to generate them if there are no CONFIG_HEADERS.
23840 # This happens for instance with `./config.status Makefile'.
23841 if test -n "$CONFIG_HEADERS"; then
23842 cat >"$tmp/defines.awk" <<\_ACAWK ||
23843 BEGIN {
23844 _ACEOF
23846 # Transform confdefs.h into an awk script `defines.awk', embedded as
23847 # here-document in config.status, that substitutes the proper values into
23848 # config.h.in to produce config.h.
23850 # Create a delimiter string that does not exist in confdefs.h, to ease
23851 # handling of long lines.
23852 ac_delim='%!_!# '
23853 for ac_last_try in false false :; do
23854 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23855 if test -z "$ac_t"; then
23856 break
23857 elif $ac_last_try; then
23858 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23859 else
23860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23862 done
23864 # For the awk script, D is an array of macro values keyed by name,
23865 # likewise P contains macro parameters if any. Preserve backslash
23866 # newline sequences.
23868 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23869 sed -n '
23870 s/.\{148\}/&'"$ac_delim"'/g
23871 t rset
23872 :rset
23873 s/^[ ]*#[ ]*define[ ][ ]*/ /
23874 t def
23876 :def
23877 s/\\$//
23878 t bsnl
23879 s/["\\]/\\&/g
23880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23881 D["\1"]=" \3"/p
23882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23884 :bsnl
23885 s/["\\]/\\&/g
23886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23887 D["\1"]=" \3\\\\\\n"\\/p
23888 t cont
23889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23890 t cont
23892 :cont
23894 s/.\{148\}/&'"$ac_delim"'/g
23895 t clear
23896 :clear
23897 s/\\$//
23898 t bsnlc
23899 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23901 :bsnlc
23902 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23903 b cont
23904 ' <confdefs.h | sed '
23905 s/'"$ac_delim"'/"\\\
23906 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23909 for (key in D) D_is_set[key] = 1
23910 FS = "\a"
23912 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23913 line = \$ 0
23914 split(line, arg, " ")
23915 if (arg[1] == "#") {
23916 defundef = arg[2]
23917 mac1 = arg[3]
23918 } else {
23919 defundef = substr(arg[1], 2)
23920 mac1 = arg[2]
23922 split(mac1, mac2, "(") #)
23923 macro = mac2[1]
23924 prefix = substr(line, 1, index(line, defundef) - 1)
23925 if (D_is_set[macro]) {
23926 # Preserve the white space surrounding the "#".
23927 print prefix "define", macro P[macro] D[macro]
23928 next
23929 } else {
23930 # Replace #undef with comments. This is necessary, for example,
23931 # in the case of _POSIX_SOURCE, which is predefined and required
23932 # on some systems where configure will not decide to define it.
23933 if (defundef == "undef") {
23934 print "/*", prefix defundef, macro, "*/"
23935 next
23939 { print }
23940 _ACAWK
23941 _ACEOF
23942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23943 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23944 fi # test -n "$CONFIG_HEADERS"
23947 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23948 shift
23949 for ac_tag
23951 case $ac_tag in
23952 :[FHLC]) ac_mode=$ac_tag; continue;;
23953 esac
23954 case $ac_mode$ac_tag in
23955 :[FHL]*:*);;
23956 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23957 :[FH]-) ac_tag=-:-;;
23958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23959 esac
23960 ac_save_IFS=$IFS
23961 IFS=:
23962 set x $ac_tag
23963 IFS=$ac_save_IFS
23964 shift
23965 ac_file=$1
23966 shift
23968 case $ac_mode in
23969 :L) ac_source=$1;;
23970 :[FH])
23971 ac_file_inputs=
23972 for ac_f
23974 case $ac_f in
23975 -) ac_f="$tmp/stdin";;
23976 *) # Look for the file first in the build tree, then in the source tree
23977 # (if the path is not absolute). The absolute path cannot be DOS-style,
23978 # because $ac_f cannot contain `:'.
23979 test -f "$ac_f" ||
23980 case $ac_f in
23981 [\\/$]*) false;;
23982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23983 esac ||
23984 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23985 esac
23986 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23987 as_fn_append ac_file_inputs " '$ac_f'"
23988 done
23990 # Let's still pretend it is `configure' which instantiates (i.e., don't
23991 # use $as_me), people would be surprised to read:
23992 # /* config.h. Generated by config.status. */
23993 configure_input='Generated from '`
23994 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23995 `' by configure.'
23996 if test x"$ac_file" != x-; then
23997 configure_input="$ac_file. $configure_input"
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23999 $as_echo "$as_me: creating $ac_file" >&6;}
24001 # Neutralize special characters interpreted by sed in replacement strings.
24002 case $configure_input in #(
24003 *\&* | *\|* | *\\* )
24004 ac_sed_conf_input=`$as_echo "$configure_input" |
24005 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24006 *) ac_sed_conf_input=$configure_input;;
24007 esac
24009 case $ac_tag in
24010 *:-:* | *:-) cat >"$tmp/stdin" \
24011 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24012 esac
24014 esac
24016 ac_dir=`$as_dirname -- "$ac_file" ||
24017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24018 X"$ac_file" : 'X\(//\)[^/]' \| \
24019 X"$ac_file" : 'X\(//\)$' \| \
24020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24021 $as_echo X"$ac_file" |
24022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24023 s//\1/
24026 /^X\(\/\/\)[^/].*/{
24027 s//\1/
24030 /^X\(\/\/\)$/{
24031 s//\1/
24034 /^X\(\/\).*/{
24035 s//\1/
24038 s/.*/./; q'`
24039 as_dir="$ac_dir"; as_fn_mkdir_p
24040 ac_builddir=.
24042 case "$ac_dir" in
24043 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24045 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24046 # A ".." for each directory in $ac_dir_suffix.
24047 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24048 case $ac_top_builddir_sub in
24049 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24050 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24051 esac ;;
24052 esac
24053 ac_abs_top_builddir=$ac_pwd
24054 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24055 # for backward compatibility:
24056 ac_top_builddir=$ac_top_build_prefix
24058 case $srcdir in
24059 .) # We are building in place.
24060 ac_srcdir=.
24061 ac_top_srcdir=$ac_top_builddir_sub
24062 ac_abs_top_srcdir=$ac_pwd ;;
24063 [\\/]* | ?:[\\/]* ) # Absolute name.
24064 ac_srcdir=$srcdir$ac_dir_suffix;
24065 ac_top_srcdir=$srcdir
24066 ac_abs_top_srcdir=$srcdir ;;
24067 *) # Relative name.
24068 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24069 ac_top_srcdir=$ac_top_build_prefix$srcdir
24070 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24071 esac
24072 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24075 case $ac_mode in
24078 # CONFIG_FILE
24081 case $INSTALL in
24082 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24083 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24084 esac
24085 ac_MKDIR_P=$MKDIR_P
24086 case $MKDIR_P in
24087 [\\/$]* | ?:[\\/]* ) ;;
24088 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24089 esac
24090 _ACEOF
24092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24093 # If the template does not know about datarootdir, expand it.
24094 # FIXME: This hack should be removed a few years after 2.60.
24095 ac_datarootdir_hack=; ac_datarootdir_seen=
24096 ac_sed_dataroot='
24097 /datarootdir/ {
24101 /@datadir@/p
24102 /@docdir@/p
24103 /@infodir@/p
24104 /@localedir@/p
24105 /@mandir@/p'
24106 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24107 *datarootdir*) ac_datarootdir_seen=yes;;
24108 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24110 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24111 _ACEOF
24112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24113 ac_datarootdir_hack='
24114 s&@datadir@&$datadir&g
24115 s&@docdir@&$docdir&g
24116 s&@infodir@&$infodir&g
24117 s&@localedir@&$localedir&g
24118 s&@mandir@&$mandir&g
24119 s&\\\${datarootdir}&$datarootdir&g' ;;
24120 esac
24121 _ACEOF
24123 # Neutralize VPATH when `$srcdir' = `.'.
24124 # Shell code in configure.ac might set extrasub.
24125 # FIXME: do we really want to maintain this feature?
24126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24127 ac_sed_extra="$ac_vpsub
24128 $extrasub
24129 _ACEOF
24130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24133 s|@configure_input@|$ac_sed_conf_input|;t t
24134 s&@top_builddir@&$ac_top_builddir_sub&;t t
24135 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24136 s&@srcdir@&$ac_srcdir&;t t
24137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24138 s&@top_srcdir@&$ac_top_srcdir&;t t
24139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24140 s&@builddir@&$ac_builddir&;t t
24141 s&@abs_builddir@&$ac_abs_builddir&;t t
24142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24143 s&@INSTALL@&$ac_INSTALL&;t t
24144 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24145 $ac_datarootdir_hack
24147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24148 if $ac_cs_awk_getline; then
24149 $AWK -f "$tmp/subs.awk"
24150 else
24151 $AWK -f "$tmp/subs.awk" | $SHELL
24152 fi >$tmp/out \
24153 || as_fn_error "could not create $ac_file" "$LINENO" 5
24155 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24159 which seems to be undefined. Please make sure it is defined." >&5
24160 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24161 which seems to be undefined. Please make sure it is defined." >&2;}
24163 rm -f "$tmp/stdin"
24164 case $ac_file in
24165 -) cat "$tmp/out" && rm -f "$tmp/out";;
24166 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24167 esac \
24168 || as_fn_error "could not create $ac_file" "$LINENO" 5
24172 # CONFIG_HEADER
24174 if test x"$ac_file" != x-; then
24176 $as_echo "/* $configure_input */" \
24177 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24178 } >"$tmp/config.h" \
24179 || as_fn_error "could not create $ac_file" "$LINENO" 5
24180 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24182 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24183 else
24184 rm -f "$ac_file"
24185 mv "$tmp/config.h" "$ac_file" \
24186 || as_fn_error "could not create $ac_file" "$LINENO" 5
24188 else
24189 $as_echo "/* $configure_input */" \
24190 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24191 || as_fn_error "could not create -" "$LINENO" 5
24193 # Compute "$ac_file"'s index in $config_headers.
24194 _am_arg="$ac_file"
24195 _am_stamp_count=1
24196 for _am_header in $config_headers :; do
24197 case $_am_header in
24198 $_am_arg | $_am_arg:* )
24199 break ;;
24201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24202 esac
24203 done
24204 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24205 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24206 X"$_am_arg" : 'X\(//\)[^/]' \| \
24207 X"$_am_arg" : 'X\(//\)$' \| \
24208 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24209 $as_echo X"$_am_arg" |
24210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24211 s//\1/
24214 /^X\(\/\/\)[^/].*/{
24215 s//\1/
24218 /^X\(\/\/\)$/{
24219 s//\1/
24222 /^X\(\/\).*/{
24223 s//\1/
24226 s/.*/./; q'`/stamp-h$_am_stamp_count
24229 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24230 $as_echo "$as_me: executing $ac_file commands" >&6;}
24232 esac
24235 case $ac_file$ac_mode in
24236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24238 # are listed without --file. Let's play safe and only enable the eval
24239 # if we detect the quoting.
24240 case $CONFIG_FILES in
24241 *\'*) eval set x "$CONFIG_FILES" ;;
24242 *) set x $CONFIG_FILES ;;
24243 esac
24244 shift
24245 for mf
24247 # Strip MF so we end up with the name of the file.
24248 mf=`echo "$mf" | sed -e 's/:.*$//'`
24249 # Check whether this is an Automake generated Makefile or not.
24250 # We used to match only the files named `Makefile.in', but
24251 # some people rename them; so instead we look at the file content.
24252 # Grep'ing the first line is not enough: some people post-process
24253 # each Makefile.in and add a new line on top of each file to say so.
24254 # Grep'ing the whole file is not good either: AIX grep has a line
24255 # limit of 2048, but all sed's we know have understand at least 4000.
24256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24257 dirpart=`$as_dirname -- "$mf" ||
24258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24259 X"$mf" : 'X\(//\)[^/]' \| \
24260 X"$mf" : 'X\(//\)$' \| \
24261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24262 $as_echo X"$mf" |
24263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24264 s//\1/
24267 /^X\(\/\/\)[^/].*/{
24268 s//\1/
24271 /^X\(\/\/\)$/{
24272 s//\1/
24275 /^X\(\/\).*/{
24276 s//\1/
24279 s/.*/./; q'`
24280 else
24281 continue
24283 # Extract the definition of DEPDIR, am__include, and am__quote
24284 # from the Makefile without running `make'.
24285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24286 test -z "$DEPDIR" && continue
24287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24288 test -z "am__include" && continue
24289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24290 # When using ansi2knr, U may be empty or an underscore; expand it
24291 U=`sed -n 's/^U = //p' < "$mf"`
24292 # Find all dependency output files, they are included files with
24293 # $(DEPDIR) in their names. We invoke sed twice because it is the
24294 # simplest approach to changing $(DEPDIR) to its actual value in the
24295 # expansion.
24296 for file in `sed -n "
24297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24299 # Make sure the directory exists.
24300 test -f "$dirpart/$file" && continue
24301 fdir=`$as_dirname -- "$file" ||
24302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24303 X"$file" : 'X\(//\)[^/]' \| \
24304 X"$file" : 'X\(//\)$' \| \
24305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24306 $as_echo X"$file" |
24307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24308 s//\1/
24311 /^X\(\/\/\)[^/].*/{
24312 s//\1/
24315 /^X\(\/\/\)$/{
24316 s//\1/
24319 /^X\(\/\).*/{
24320 s//\1/
24323 s/.*/./; q'`
24324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24325 # echo "creating $dirpart/$file"
24326 echo '# dummy' > "$dirpart/$file"
24327 done
24328 done
24331 "mkdirs":C)
24332 for dir in etc lisp ; do
24333 test -d ${dir} || mkdir ${dir}
24334 done
24336 "epaths":C)
24337 echo creating src/epaths.h
24338 ${MAKE-make} epaths-force
24340 "gdbinit":C)
24341 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24342 echo creating src/.gdbinit
24343 echo source $srcdir/src/.gdbinit > src/.gdbinit
24347 esac
24348 done # for ac_tag
24351 as_fn_exit 0
24352 _ACEOF
24353 ac_clean_files=$ac_clean_files_save
24355 test $ac_write_fail = 0 ||
24356 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24359 # configure is writing to config.log, and then calls config.status.
24360 # config.status does its own redirection, appending to config.log.
24361 # Unfortunately, on DOS this fails, as config.log is still kept open
24362 # by configure, so config.status won't be able to write to it; its
24363 # output is simply discarded. So we exec the FD to /dev/null,
24364 # effectively closing config.log, so it can be properly (re)opened and
24365 # appended to by config.status. When coming back to configure, we
24366 # need to make the FD available again.
24367 if test "$no_create" != yes; then
24368 ac_cs_success=:
24369 ac_config_status_args=
24370 test "$silent" = yes &&
24371 ac_config_status_args="$ac_config_status_args --quiet"
24372 exec 5>/dev/null
24373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24374 exec 5>>config.log
24375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24376 # would make configure fail if this is the last instruction.
24377 $ac_cs_success || as_fn_exit $?
24379 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24381 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}