Merge changes made in Gnus trunk.
[emacs.git] / configure
blob558ed63da1732defc53479197bb74782a2433069
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 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, 2010 Free Software
8 # Foundation, 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681 NEXT_STDLIB_H
682 STDINT_H
683 WINT_T_SUFFIX
684 WCHAR_T_SUFFIX
685 SIG_ATOMIC_T_SUFFIX
686 SIZE_T_SUFFIX
687 PTRDIFF_T_SUFFIX
688 HAVE_SIGNED_WINT_T
689 HAVE_SIGNED_WCHAR_T
690 HAVE_SIGNED_SIG_ATOMIC_T
691 BITSIZEOF_WINT_T
692 BITSIZEOF_WCHAR_T
693 BITSIZEOF_SIG_ATOMIC_T
694 BITSIZEOF_SIZE_T
695 BITSIZEOF_PTRDIFF_T
696 HAVE_SYS_BITYPES_H
697 HAVE_SYS_INTTYPES_H
698 HAVE_STDINT_H
699 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
700 NEXT_STDINT_H
701 HAVE_SYS_TYPES_H
702 HAVE_INTTYPES_H
703 HAVE_WCHAR_H
704 HAVE_UNSIGNED_LONG_LONG_INT
705 HAVE_LONG_LONG_INT
706 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
707 NEXT_STDDEF_H
708 STDDEF_H
709 HAVE_WCHAR_T
710 REPLACE_NULL
711 HAVE__BOOL
712 STDBOOL_H
713 APPLE_UNIVERSAL_BUILD
714 REPLACE_TIMEGM
715 REPLACE_NANOSLEEP
716 REPLACE_MKTIME
717 REPLACE_LOCALTIME_R
718 HAVE_TIMEGM
719 HAVE_STRPTIME
720 HAVE_NANOSLEEP
721 HAVE_DECL_LOCALTIME_R
722 GNULIB_TIME_R
723 GNULIB_TIMEGM
724 GNULIB_STRPTIME
725 GNULIB_NANOSLEEP
726 GNULIB_MKTIME
727 LTLIBINTL
728 LIBINTL
729 GETOPT_H
730 HAVE_GETOPT_H
731 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
732 NEXT_GETOPT_H
733 PRAGMA_COLUMNS
734 PRAGMA_SYSTEM_HEADER
735 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
736 INCLUDE_NEXT
737 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
738 UNISTD_H_HAVE_WINSOCK2_H
739 REPLACE_WRITE
740 REPLACE_USLEEP
741 REPLACE_UNLINKAT
742 REPLACE_UNLINK
743 REPLACE_TTYNAME_R
744 REPLACE_SYMLINK
745 REPLACE_SLEEP
746 REPLACE_RMDIR
747 REPLACE_READLINK
748 REPLACE_PWRITE
749 REPLACE_PREAD
750 REPLACE_LSEEK
751 REPLACE_LINKAT
752 REPLACE_LINK
753 REPLACE_LCHOWN
754 REPLACE_GETPAGESIZE
755 REPLACE_GETGROUPS
756 REPLACE_GETLOGIN_R
757 REPLACE_GETDOMAINNAME
758 REPLACE_GETCWD
759 REPLACE_FCHOWNAT
760 REPLACE_DUP2
761 REPLACE_DUP
762 REPLACE_CLOSE
763 REPLACE_CHOWN
764 HAVE_SYS_PARAM_H
765 HAVE_OS_H
766 HAVE_DECL_TTYNAME_R
767 HAVE_DECL_GETUSERSHELL
768 HAVE_DECL_GETPAGESIZE
769 HAVE_DECL_GETLOGIN_R
770 HAVE_DECL_GETDOMAINNAME
771 HAVE_DECL_FCHDIR
772 HAVE_DECL_ENVIRON
773 HAVE_USLEEP
774 HAVE_UNLINKAT
775 HAVE_SYMLINKAT
776 HAVE_SYMLINK
777 HAVE_SLEEP
778 HAVE_READLINKAT
779 HAVE_READLINK
780 HAVE_PWRITE
781 HAVE_PREAD
782 HAVE_PIPE2
783 HAVE_PIPE
784 HAVE_LINKAT
785 HAVE_LINK
786 HAVE_LCHOWN
787 HAVE_GETPAGESIZE
788 HAVE_GETLOGIN
789 HAVE_GETHOSTNAME
790 HAVE_GETGROUPS
791 HAVE_GETDTABLESIZE
792 HAVE_FTRUNCATE
793 HAVE_FSYNC
794 HAVE_FCHOWNAT
795 HAVE_FCHDIR
796 HAVE_FACCESSAT
797 HAVE_EUIDACCESS
798 HAVE_DUP3
799 HAVE_DUP2
800 HAVE_CHOWN
801 GNULIB_WRITE
802 GNULIB_USLEEP
803 GNULIB_UNLINKAT
804 GNULIB_UNLINK
805 GNULIB_UNISTD_H_SIGPIPE
806 GNULIB_UNISTD_H_GETOPT
807 GNULIB_TTYNAME_R
808 GNULIB_SYMLINKAT
809 GNULIB_SYMLINK
810 GNULIB_SLEEP
811 GNULIB_RMDIR
812 GNULIB_READLINKAT
813 GNULIB_READLINK
814 GNULIB_PWRITE
815 GNULIB_PREAD
816 GNULIB_PIPE2
817 GNULIB_PIPE
818 GNULIB_LSEEK
819 GNULIB_LINKAT
820 GNULIB_LINK
821 GNULIB_LCHOWN
822 GNULIB_GETUSERSHELL
823 GNULIB_GETPAGESIZE
824 GNULIB_GETLOGIN_R
825 GNULIB_GETLOGIN
826 GNULIB_GETHOSTNAME
827 GNULIB_GETGROUPS
828 GNULIB_GETDTABLESIZE
829 GNULIB_GETDOMAINNAME
830 GNULIB_GETCWD
831 GNULIB_FTRUNCATE
832 GNULIB_FSYNC
833 GNULIB_FCHOWNAT
834 GNULIB_FCHDIR
835 GNULIB_FACCESSAT
836 GNULIB_EUIDACCESS
837 GNULIB_ENVIRON
838 GNULIB_DUP3
839 GNULIB_DUP2
840 GNULIB_CLOSE
841 GNULIB_CHOWN
842 GETLOADAVG_LIBS
843 REPLACE_UNSETENV
844 REPLACE_STRTOD
845 REPLACE_SETENV
846 REPLACE_REALPATH
847 REPLACE_REALLOC
848 REPLACE_PUTENV
849 REPLACE_MKSTEMP
850 REPLACE_MALLOC
851 REPLACE_CANONICALIZE_FILE_NAME
852 REPLACE_CALLOC
853 HAVE_DECL_UNSETENV
854 HAVE_UNLOCKPT
855 HAVE_SYS_LOADAVG_H
856 HAVE_STRUCT_RANDOM_DATA
857 HAVE_STRTOULL
858 HAVE_STRTOLL
859 HAVE_STRTOD
860 HAVE_DECL_SETENV
861 HAVE_SETENV
862 HAVE_RPMATCH
863 HAVE_REALPATH
864 HAVE_RANDOM_R
865 HAVE_RANDOM_H
866 HAVE_PTSNAME
867 HAVE_MKSTEMPS
868 HAVE_MKSTEMP
869 HAVE_MKOSTEMPS
870 HAVE_MKOSTEMP
871 HAVE_MKDTEMP
872 HAVE_GRANTPT
873 HAVE_GETSUBOPT
874 HAVE_DECL_GETLOADAVG
875 HAVE_CANONICALIZE_FILE_NAME
876 HAVE_ATOLL
877 HAVE__EXIT
878 GNULIB_UNSETENV
879 GNULIB_UNLOCKPT
880 GNULIB_SYSTEM_POSIX
881 GNULIB_STRTOULL
882 GNULIB_STRTOLL
883 GNULIB_STRTOD
884 GNULIB_SETENV
885 GNULIB_RPMATCH
886 GNULIB_REALPATH
887 GNULIB_REALLOC_POSIX
888 GNULIB_RANDOM_R
889 GNULIB_PUTENV
890 GNULIB_PTSNAME
891 GNULIB_MKSTEMPS
892 GNULIB_MKSTEMP
893 GNULIB_MKOSTEMPS
894 GNULIB_MKOSTEMP
895 GNULIB_MKDTEMP
896 GNULIB_MALLOC_POSIX
897 GNULIB_GRANTPT
898 GNULIB_GETSUBOPT
899 GNULIB_GETLOADAVG
900 GNULIB_CANONICALIZE_FILE_NAME
901 GNULIB_CALLOC_POSIX
902 GNULIB_ATOLL
903 GNULIB__EXIT
904 GL_COND_LIBTOOL_FALSE
905 GL_COND_LIBTOOL_TRUE
906 BLESSMAIL_TARGET
907 LIBS_MAIL
908 liblockfile
909 ALLOCA
910 LIBXML2_LIBS
911 LIBXML2_CFLAGS
912 LIBXSM
913 LIBGPM
914 LIBGIF
915 LIBTIFF
916 LIBPNG
917 LIBJPEG
918 LIBXPM
919 FREETYPE_LIBS
920 FREETYPE_CFLAGS
921 M17N_FLT_LIBS
922 M17N_FLT_CFLAGS
923 LIBOTF_LIBS
924 LIBOTF_CFLAGS
925 XFT_LIBS
926 XFT_CFLAGS
927 FONTCONFIG_LIBS
928 FONTCONFIG_CFLAGS
929 LIBXMU
930 LIBXTR6
931 LIBGNUTLS_LIBS
932 LIBGNUTLS_CFLAGS
933 LIBSELINUX_LIBS
934 GCONF_LIBS
935 GCONF_CFLAGS
936 DBUS_OBJ
937 DBUS_LIBS
938 DBUS_CFLAGS
939 GTK_OBJ
940 GTK_LIBS
941 GTK_CFLAGS
942 IMAGEMAGICK_LIBS
943 IMAGEMAGICK_CFLAGS
944 RSVG_LIBS
945 RSVG_CFLAGS
946 VMLIMIT_OBJ
947 GMALLOC_OBJ
948 HAVE_XSERVER
949 LIB_STANDARD
950 NS_SUPPORT
951 NS_OBJC_OBJ
952 NS_OBJ
953 TEMACS_LDFLAGS2
954 LD_SWITCH_X_SITE_AUX_RPATH
955 LD_SWITCH_X_SITE_AUX
956 XMKMF
957 DEPFLAGS
958 MKDEPDIR
959 CFLAGS_SOUND
960 ALSA_LIBS
961 ALSA_CFLAGS
962 PKG_CONFIG
963 LIBSOUND
964 START_FILES
965 LIB_MATH
966 CRT_DIR
967 LIBS_SYSTEM
968 C_SWITCH_SYSTEM
969 UNEXEC_OBJ
970 C_SWITCH_MACHINE
971 LD_SWITCH_SYSTEM
972 CANNOT_DUMP
973 HAVE_MAKEINFO
974 GZIP_PROG
975 INSTALL_INFO
976 C_WARNINGS_SWITCH
977 EGREP
978 GREP
980 RANLIB
981 am__fastdepCC_FALSE
982 am__fastdepCC_TRUE
983 CCDEPMODE
984 AMDEPBACKSLASH
985 AMDEP_FALSE
986 AMDEP_TRUE
987 am__quote
988 am__include
989 DEPDIR
990 OBJEXT
991 EXEEXT
992 ac_ct_CC
993 CPPFLAGS
994 LDFLAGS
995 CFLAGS
997 host_os
998 host_vendor
999 host_cpu
1000 host
1001 build_os
1002 build_vendor
1003 build_cpu
1004 build
1005 PROFILING_CFLAGS
1006 MAINT
1007 GZIP_INFO
1008 am__untar
1009 am__tar
1010 AMTAR
1011 am__leading_dot
1012 SET_MAKE
1014 mkdir_p
1015 MKDIR_P
1016 INSTALL_STRIP_PROGRAM
1017 STRIP
1018 install_sh
1019 MAKEINFO
1020 AUTOHEADER
1021 AUTOMAKE
1022 AUTOCONF
1023 ACLOCAL
1024 VERSION
1025 PACKAGE
1026 CYGPATH_W
1027 am__isrc
1028 INSTALL_DATA
1029 INSTALL_SCRIPT
1030 INSTALL_PROGRAM
1031 target_alias
1032 host_alias
1033 build_alias
1034 LIBS
1035 ECHO_T
1036 ECHO_N
1037 ECHO_C
1038 DEFS
1039 mandir
1040 localedir
1041 libdir
1042 psdir
1043 pdfdir
1044 dvidir
1045 htmldir
1046 infodir
1047 docdir
1048 oldincludedir
1049 includedir
1050 localstatedir
1051 sharedstatedir
1052 sysconfdir
1053 datadir
1054 datarootdir
1055 libexecdir
1056 sbindir
1057 bindir
1058 program_transform_name
1059 prefix
1060 exec_prefix
1061 PACKAGE_URL
1062 PACKAGE_BUGREPORT
1063 PACKAGE_STRING
1064 PACKAGE_VERSION
1065 PACKAGE_TARNAME
1066 PACKAGE_NAME
1067 PATH_SEPARATOR
1068 SHELL'
1069 ac_subst_files='deps_frag
1070 ns_frag'
1071 ac_user_opts='
1072 enable_option_checking
1073 with_pop
1074 with_kerberos
1075 with_kerberos5
1076 with_hesiod
1077 with_mmdf
1078 with_mail_unlink
1079 with_mailhost
1080 with_sound
1081 with_sync_input
1082 with_x_toolkit
1083 with_xpm
1084 with_jpeg
1085 with_tiff
1086 with_gif
1087 with_png
1088 with_rsvg
1089 with_xml2
1090 with_imagemagick
1091 with_xft
1092 with_libotf
1093 with_m17n_flt
1094 with_toolkit_scroll_bars
1095 with_xaw3d
1096 with_xim
1097 with_ns
1098 with_gpm
1099 with_dbus
1100 with_gconf
1101 with_selinux
1102 with_gnutls
1103 with_makeinfo
1104 with_compress_info
1105 with_pkg_config_prog
1106 with_crt_dir
1107 with_gameuser
1108 with_gnustep_conf
1109 enable_ns_self_contained
1110 enable_asserts
1111 enable_maintainer_mode
1112 enable_locallisppath
1113 enable_checking
1114 enable_use_lisp_union_type
1115 enable_profiling
1116 enable_autodepend
1117 enable_dependency_tracking
1118 enable_largefile
1119 with_x
1121 ac_precious_vars='build_alias
1122 host_alias
1123 target_alias
1125 CFLAGS
1126 LDFLAGS
1127 LIBS
1128 CPPFLAGS
1130 CPPFLAGS
1132 CPPFLAGS
1133 XMKMF'
1136 # Initialize some variables set by options.
1137 ac_init_help=
1138 ac_init_version=false
1139 ac_unrecognized_opts=
1140 ac_unrecognized_sep=
1141 # The variables have the same names as the options, with
1142 # dashes changed to underlines.
1143 cache_file=/dev/null
1144 exec_prefix=NONE
1145 no_create=
1146 no_recursion=
1147 prefix=NONE
1148 program_prefix=NONE
1149 program_suffix=NONE
1150 program_transform_name=s,x,x,
1151 silent=
1152 site=
1153 srcdir=
1154 verbose=
1155 x_includes=NONE
1156 x_libraries=NONE
1158 # Installation directory options.
1159 # These are left unexpanded so users can "make install exec_prefix=/foo"
1160 # and all the variables that are supposed to be based on exec_prefix
1161 # by default will actually change.
1162 # Use braces instead of parens because sh, perl, etc. also accept them.
1163 # (The list follows the same order as the GNU Coding Standards.)
1164 bindir='${exec_prefix}/bin'
1165 sbindir='${exec_prefix}/sbin'
1166 libexecdir='${exec_prefix}/libexec'
1167 datarootdir='${prefix}/share'
1168 datadir='${datarootdir}'
1169 sysconfdir='${prefix}/etc'
1170 sharedstatedir='${prefix}/com'
1171 localstatedir='${prefix}/var'
1172 includedir='${prefix}/include'
1173 oldincludedir='/usr/include'
1174 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1175 infodir='${datarootdir}/info'
1176 htmldir='${docdir}'
1177 dvidir='${docdir}'
1178 pdfdir='${docdir}'
1179 psdir='${docdir}'
1180 libdir='${exec_prefix}/lib'
1181 localedir='${datarootdir}/locale'
1182 mandir='${datarootdir}/man'
1184 ac_prev=
1185 ac_dashdash=
1186 for ac_option
1188 # If the previous option needs an argument, assign it.
1189 if test -n "$ac_prev"; then
1190 eval $ac_prev=\$ac_option
1191 ac_prev=
1192 continue
1195 case $ac_option in
1196 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1197 *=) ac_optarg= ;;
1198 *) ac_optarg=yes ;;
1199 esac
1201 # Accept the important Cygnus configure options, so we can diagnose typos.
1203 case $ac_dashdash$ac_option in
1205 ac_dashdash=yes ;;
1207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1208 ac_prev=bindir ;;
1209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1210 bindir=$ac_optarg ;;
1212 -build | --build | --buil | --bui | --bu)
1213 ac_prev=build_alias ;;
1214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1215 build_alias=$ac_optarg ;;
1217 -cache-file | --cache-file | --cache-fil | --cache-fi \
1218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1219 ac_prev=cache_file ;;
1220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1222 cache_file=$ac_optarg ;;
1224 --config-cache | -C)
1225 cache_file=config.cache ;;
1227 -datadir | --datadir | --datadi | --datad)
1228 ac_prev=datadir ;;
1229 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1230 datadir=$ac_optarg ;;
1232 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1233 | --dataroo | --dataro | --datar)
1234 ac_prev=datarootdir ;;
1235 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1236 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1237 datarootdir=$ac_optarg ;;
1239 -disable-* | --disable-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid feature name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "enable_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval enable_$ac_useropt=no ;;
1255 -docdir | --docdir | --docdi | --doc | --do)
1256 ac_prev=docdir ;;
1257 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1258 docdir=$ac_optarg ;;
1260 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1261 ac_prev=dvidir ;;
1262 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1263 dvidir=$ac_optarg ;;
1265 -enable-* | --enable-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid feature name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "enable_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval enable_$ac_useropt=\$ac_optarg ;;
1281 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1282 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1283 | --exec | --exe | --ex)
1284 ac_prev=exec_prefix ;;
1285 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1286 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1287 | --exec=* | --exe=* | --ex=*)
1288 exec_prefix=$ac_optarg ;;
1290 -gas | --gas | --ga | --g)
1291 # Obsolete; use --with-gas.
1292 with_gas=yes ;;
1294 -help | --help | --hel | --he | -h)
1295 ac_init_help=long ;;
1296 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1297 ac_init_help=recursive ;;
1298 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1299 ac_init_help=short ;;
1301 -host | --host | --hos | --ho)
1302 ac_prev=host_alias ;;
1303 -host=* | --host=* | --hos=* | --ho=*)
1304 host_alias=$ac_optarg ;;
1306 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1307 ac_prev=htmldir ;;
1308 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1309 | --ht=*)
1310 htmldir=$ac_optarg ;;
1312 -includedir | --includedir | --includedi | --included | --include \
1313 | --includ | --inclu | --incl | --inc)
1314 ac_prev=includedir ;;
1315 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1316 | --includ=* | --inclu=* | --incl=* | --inc=*)
1317 includedir=$ac_optarg ;;
1319 -infodir | --infodir | --infodi | --infod | --info | --inf)
1320 ac_prev=infodir ;;
1321 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1322 infodir=$ac_optarg ;;
1324 -libdir | --libdir | --libdi | --libd)
1325 ac_prev=libdir ;;
1326 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1327 libdir=$ac_optarg ;;
1329 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1330 | --libexe | --libex | --libe)
1331 ac_prev=libexecdir ;;
1332 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1333 | --libexe=* | --libex=* | --libe=*)
1334 libexecdir=$ac_optarg ;;
1336 -localedir | --localedir | --localedi | --localed | --locale)
1337 ac_prev=localedir ;;
1338 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1339 localedir=$ac_optarg ;;
1341 -localstatedir | --localstatedir | --localstatedi | --localstated \
1342 | --localstate | --localstat | --localsta | --localst | --locals)
1343 ac_prev=localstatedir ;;
1344 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1345 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1346 localstatedir=$ac_optarg ;;
1348 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1349 ac_prev=mandir ;;
1350 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1351 mandir=$ac_optarg ;;
1353 -nfp | --nfp | --nf)
1354 # Obsolete; use --without-fp.
1355 with_fp=no ;;
1357 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1358 | --no-cr | --no-c | -n)
1359 no_create=yes ;;
1361 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1362 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1363 no_recursion=yes ;;
1365 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1366 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1367 | --oldin | --oldi | --old | --ol | --o)
1368 ac_prev=oldincludedir ;;
1369 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1370 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1371 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1372 oldincludedir=$ac_optarg ;;
1374 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1375 ac_prev=prefix ;;
1376 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1377 prefix=$ac_optarg ;;
1379 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1380 | --program-pre | --program-pr | --program-p)
1381 ac_prev=program_prefix ;;
1382 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1383 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1384 program_prefix=$ac_optarg ;;
1386 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1387 | --program-suf | --program-su | --program-s)
1388 ac_prev=program_suffix ;;
1389 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1390 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1391 program_suffix=$ac_optarg ;;
1393 -program-transform-name | --program-transform-name \
1394 | --program-transform-nam | --program-transform-na \
1395 | --program-transform-n | --program-transform- \
1396 | --program-transform | --program-transfor \
1397 | --program-transfo | --program-transf \
1398 | --program-trans | --program-tran \
1399 | --progr-tra | --program-tr | --program-t)
1400 ac_prev=program_transform_name ;;
1401 -program-transform-name=* | --program-transform-name=* \
1402 | --program-transform-nam=* | --program-transform-na=* \
1403 | --program-transform-n=* | --program-transform-=* \
1404 | --program-transform=* | --program-transfor=* \
1405 | --program-transfo=* | --program-transf=* \
1406 | --program-trans=* | --program-tran=* \
1407 | --progr-tra=* | --program-tr=* | --program-t=*)
1408 program_transform_name=$ac_optarg ;;
1410 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1411 ac_prev=pdfdir ;;
1412 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1413 pdfdir=$ac_optarg ;;
1415 -psdir | --psdir | --psdi | --psd | --ps)
1416 ac_prev=psdir ;;
1417 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1418 psdir=$ac_optarg ;;
1420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421 | -silent | --silent | --silen | --sile | --sil)
1422 silent=yes ;;
1424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1425 ac_prev=sbindir ;;
1426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1427 | --sbi=* | --sb=*)
1428 sbindir=$ac_optarg ;;
1430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1432 | --sharedst | --shareds | --shared | --share | --shar \
1433 | --sha | --sh)
1434 ac_prev=sharedstatedir ;;
1435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1438 | --sha=* | --sh=*)
1439 sharedstatedir=$ac_optarg ;;
1441 -site | --site | --sit)
1442 ac_prev=site ;;
1443 -site=* | --site=* | --sit=*)
1444 site=$ac_optarg ;;
1446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1447 ac_prev=srcdir ;;
1448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1449 srcdir=$ac_optarg ;;
1451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1452 | --syscon | --sysco | --sysc | --sys | --sy)
1453 ac_prev=sysconfdir ;;
1454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1456 sysconfdir=$ac_optarg ;;
1458 -target | --target | --targe | --targ | --tar | --ta | --t)
1459 ac_prev=target_alias ;;
1460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1461 target_alias=$ac_optarg ;;
1463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1464 verbose=yes ;;
1466 -version | --version | --versio | --versi | --vers | -V)
1467 ac_init_version=: ;;
1469 -with-* | --with-*)
1470 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473 as_fn_error $? "invalid package name: $ac_useropt"
1474 ac_useropt_orig=$ac_useropt
1475 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1478 "with_$ac_useropt"
1479 "*) ;;
1480 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481 ac_unrecognized_sep=', ';;
1482 esac
1483 eval with_$ac_useropt=\$ac_optarg ;;
1485 -without-* | --without-*)
1486 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489 as_fn_error $? "invalid package name: $ac_useropt"
1490 ac_useropt_orig=$ac_useropt
1491 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1494 "with_$ac_useropt"
1495 "*) ;;
1496 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497 ac_unrecognized_sep=', ';;
1498 esac
1499 eval with_$ac_useropt=no ;;
1501 --x)
1502 # Obsolete; use --with-x.
1503 with_x=yes ;;
1505 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1506 | --x-incl | --x-inc | --x-in | --x-i)
1507 ac_prev=x_includes ;;
1508 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1509 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1510 x_includes=$ac_optarg ;;
1512 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1513 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1514 ac_prev=x_libraries ;;
1515 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1516 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1517 x_libraries=$ac_optarg ;;
1519 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1520 Try \`$0 --help' for more information"
1523 *=*)
1524 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1525 # Reject names that are not valid shell variable names.
1526 case $ac_envvar in #(
1527 '' | [0-9]* | *[!_$as_cr_alnum]* )
1528 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1529 esac
1530 eval $ac_envvar=\$ac_optarg
1531 export $ac_envvar ;;
1534 # FIXME: should be removed in autoconf 3.0.
1535 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1537 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1541 esac
1542 done
1544 if test -n "$ac_prev"; then
1545 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1546 as_fn_error $? "missing argument to $ac_option"
1549 if test -n "$ac_unrecognized_opts"; then
1550 case $enable_option_checking in
1551 no) ;;
1552 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1553 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1554 esac
1557 # Check all directory arguments for consistency.
1558 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559 datadir sysconfdir sharedstatedir localstatedir includedir \
1560 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561 libdir localedir mandir
1563 eval ac_val=\$$ac_var
1564 # Remove trailing slashes.
1565 case $ac_val in
1566 */ )
1567 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568 eval $ac_var=\$ac_val;;
1569 esac
1570 # Be sure to have absolute directory names.
1571 case $ac_val in
1572 [\\/$]* | ?:[\\/]* ) continue;;
1573 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1574 esac
1575 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1576 done
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1581 build=$build_alias
1582 host=$host_alias
1583 target=$target_alias
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x; then
1587 if test "x$build_alias" = x; then
1588 cross_compiling=maybe
1589 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used" >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1592 cross_compiling=yes
1596 ac_tool_prefix=
1597 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1599 test "$silent" = yes && exec 6>/dev/null
1602 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di=`ls -di .` &&
1604 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1605 as_fn_error $? "working directory cannot be determined"
1606 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1607 as_fn_error $? "pwd does not report name of working directory"
1610 # Find the source files, if location was not specified.
1611 if test -z "$srcdir"; then
1612 ac_srcdir_defaulted=yes
1613 # Try the directory containing this script, then the parent directory.
1614 ac_confdir=`$as_dirname -- "$as_myself" ||
1615 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616 X"$as_myself" : 'X\(//\)[^/]' \| \
1617 X"$as_myself" : 'X\(//\)$' \| \
1618 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619 $as_echo X"$as_myself" |
1620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1621 s//\1/
1624 /^X\(\/\/\)[^/].*/{
1625 s//\1/
1628 /^X\(\/\/\)$/{
1629 s//\1/
1632 /^X\(\/\).*/{
1633 s//\1/
1636 s/.*/./; q'`
1637 srcdir=$ac_confdir
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1639 srcdir=..
1641 else
1642 ac_srcdir_defaulted=no
1644 if test ! -r "$srcdir/$ac_unique_file"; then
1645 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1646 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1648 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1649 ac_abs_confdir=`(
1650 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1651 pwd)`
1652 # When building in place, set srcdir=.
1653 if test "$ac_abs_confdir" = "$ac_pwd"; then
1654 srcdir=.
1656 # Remove unnecessary trailing slashes from srcdir.
1657 # Double slashes in file names in object file debugging info
1658 # mess up M-x gdb in Emacs.
1659 case $srcdir in
1660 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1661 esac
1662 for ac_var in $ac_precious_vars; do
1663 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1664 eval ac_env_${ac_var}_value=\$${ac_var}
1665 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1666 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1667 done
1670 # Report the --help message.
1672 if test "$ac_init_help" = "long"; then
1673 # Omit some internal or obsolete options to make the list less imposing.
1674 # This message is too long to be a string in the A/UX 3.1 sh.
1675 cat <<_ACEOF
1676 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1678 Usage: $0 [OPTION]... [VAR=VALUE]...
1680 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681 VAR=VALUE. See below for descriptions of some of the useful variables.
1683 Defaults for the options are specified in brackets.
1685 Configuration:
1686 -h, --help display this help and exit
1687 --help=short display options specific to this package
1688 --help=recursive display the short help of all the included packages
1689 -V, --version display version information and exit
1690 -q, --quiet, --silent do not print \`checking ...' messages
1691 --cache-file=FILE cache test results in FILE [disabled]
1692 -C, --config-cache alias for \`--cache-file=config.cache'
1693 -n, --no-create do not create output files
1694 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1696 Installation directories:
1697 --prefix=PREFIX install architecture-independent files in PREFIX
1698 [$ac_default_prefix]
1699 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1700 [PREFIX]
1702 By default, \`make install' will install all the files in
1703 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1704 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705 for instance \`--prefix=\$HOME'.
1707 For better control, use the options below.
1709 Fine tuning of the installation directories:
1710 --bindir=DIR user executables [EPREFIX/bin]
1711 --sbindir=DIR system admin executables [EPREFIX/sbin]
1712 --libexecdir=DIR program executables [EPREFIX/libexec]
1713 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1714 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1715 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1729 _ACEOF
1731 cat <<\_ACEOF
1733 Program names:
1734 --program-prefix=PREFIX prepend PREFIX to installed program names
1735 --program-suffix=SUFFIX append SUFFIX to installed program names
1736 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1738 X features:
1739 --x-includes=DIR X include files are in DIR
1740 --x-libraries=DIR X library files are in DIR
1742 System types:
1743 --build=BUILD configure for building on BUILD [guessed]
1744 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1745 _ACEOF
1748 if test -n "$ac_init_help"; then
1749 case $ac_init_help in
1750 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1751 esac
1752 cat <<\_ACEOF
1754 Optional Features:
1755 --disable-option-checking ignore unrecognized --enable/--with options
1756 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1757 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1758 --disable-ns-self-contained
1759 disable self contained build under NeXTstep
1760 --enable-asserts compile code with asserts enabled
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful (and
1763 sometimes confusing) to the casual installer
1764 --enable-locallisppath=PATH
1765 directories Emacs should search for lisp files
1766 specific to this site
1767 --enable-checking[=LIST]
1768 enable expensive run-time checks. With LIST, enable
1769 only specific categories of checks. Categories are:
1770 all,yes,no. Flags are: stringbytes, stringoverrun,
1771 stringfreelist, xmallocoverrun, conslist
1772 --enable-use-lisp-union-type
1773 use a union for the Lisp_Object data type. This is
1774 only useful for development for catching certain
1775 types of bugs.
1776 --enable-profiling build emacs with profiling support. This might not
1777 work on all platforms
1778 --enable-autodepend automatically generate dependencies to .h-files.
1779 Requires GNU Make and Gcc. Enabled if GNU Make and
1780 Gcc is found
1781 --disable-dependency-tracking speeds up one-time build
1782 --enable-dependency-tracking do not reject slow dependency extractors
1783 --disable-largefile omit support for large files
1785 Optional Packages:
1786 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1787 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1788 --without-pop don't support POP mail retrieval with movemail
1789 --with-kerberos support Kerberos-authenticated POP
1790 --with-kerberos5 support Kerberos version 5 authenticated POP
1791 --with-hesiod support Hesiod to get the POP server host
1792 --with-mmdf support MMDF mailboxes
1793 --with-mail-unlink unlink, rather than empty, mail spool after reading
1794 --with-mailhost=HOSTNAME
1795 string giving default POP mail host
1796 --without-sound don't compile with sound support
1797 --without-sync-input process async input synchronously
1798 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1799 lucid or athena, motif, no)
1800 --without-xpm don't compile with XPM image support
1801 --without-jpeg don't compile with JPEG image support
1802 --without-tiff don't compile with TIFF image support
1803 --without-gif don't compile with GIF image support
1804 --without-png don't compile with PNG image support
1805 --without-rsvg don't compile with SVG image support
1806 --without-xml2 don't compile with XML parsing support
1807 --without-imagemagick don't compile with ImageMagick image support
1808 --without-xft don't use XFT for anti aliased fonts
1809 --without-libotf don't use libotf for OpenType font support
1810 --without-m17n-flt don't use m17n-flt for text shaping
1811 --without-toolkit-scroll-bars
1812 don't use Motif or Xaw3d scroll bars
1813 --without-xaw3d don't use Xaw3d
1814 --without-xim don't use X11 XIM
1815 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1816 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1817 console
1818 --without-dbus don't compile with D-Bus support
1819 --without-gconf don't compile with GConf support
1820 --without-selinux don't compile with SELinux support
1821 --without-gnutls don't use -lgnutls for SSL/TLS support
1822 --without-makeinfo don't require makeinfo for building manuals
1823 --without-compress-info don't compress the installed Info pages
1824 --with-pkg-config-prog=PATH
1825 path to pkg-config for finding GTK and librsvg
1826 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1827 /usr/lib, or /usr/lib64 on some platforms.
1828 --with-gameuser=USER user for shared game score files
1829 --with-gnustep-conf=PATH
1830 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1831 or /etc/GNUstep/GNUstep.conf
1832 --with-x use the X Window System
1834 Some influential environment variables:
1835 CC C compiler command
1836 CFLAGS C compiler flags
1837 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1838 nonstandard directory <lib dir>
1839 LIBS libraries to pass to the linker, e.g. -l<library>
1840 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1841 you have headers in a nonstandard directory <include dir>
1842 CPP C preprocessor
1843 XMKMF Path to xmkmf, Makefile generator for X Window System
1845 Use these variables to override the choices made by `configure' or to help
1846 it to find libraries and programs with nonstandard names/locations.
1848 Report bugs to the package provider.
1849 _ACEOF
1850 ac_status=$?
1853 if test "$ac_init_help" = "recursive"; then
1854 # If there are subdirs, report their specific --help.
1855 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1856 test -d "$ac_dir" ||
1857 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1858 continue
1859 ac_builddir=.
1861 case "$ac_dir" in
1862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865 # A ".." for each directory in $ac_dir_suffix.
1866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867 case $ac_top_builddir_sub in
1868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1870 esac ;;
1871 esac
1872 ac_abs_top_builddir=$ac_pwd
1873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1874 # for backward compatibility:
1875 ac_top_builddir=$ac_top_build_prefix
1877 case $srcdir in
1878 .) # We are building in place.
1879 ac_srcdir=.
1880 ac_top_srcdir=$ac_top_builddir_sub
1881 ac_abs_top_srcdir=$ac_pwd ;;
1882 [\\/]* | ?:[\\/]* ) # Absolute name.
1883 ac_srcdir=$srcdir$ac_dir_suffix;
1884 ac_top_srcdir=$srcdir
1885 ac_abs_top_srcdir=$srcdir ;;
1886 *) # Relative name.
1887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888 ac_top_srcdir=$ac_top_build_prefix$srcdir
1889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1890 esac
1891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1893 cd "$ac_dir" || { ac_status=$?; continue; }
1894 # Check for guested configure.
1895 if test -f "$ac_srcdir/configure.gnu"; then
1896 echo &&
1897 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898 elif test -f "$ac_srcdir/configure"; then
1899 echo &&
1900 $SHELL "$ac_srcdir/configure" --help=recursive
1901 else
1902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1903 fi || ac_status=$?
1904 cd "$ac_pwd" || { ac_status=$?; break; }
1905 done
1908 test -n "$ac_init_help" && exit $ac_status
1909 if $ac_init_version; then
1910 cat <<\_ACEOF
1911 emacs configure 24.0.50
1912 generated by GNU Autoconf 2.68
1914 Copyright (C) 2010 Free Software Foundation, Inc.
1915 This configure script is free software; the Free Software Foundation
1916 gives unlimited permission to copy, distribute and modify it.
1917 _ACEOF
1918 exit
1921 ## ------------------------ ##
1922 ## Autoconf initialization. ##
1923 ## ------------------------ ##
1925 # ac_fn_c_try_compile LINENO
1926 # --------------------------
1927 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext
1932 if { { ac_try="$ac_compile"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_compile") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest.$ac_objext; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1956 ac_retval=1
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_c_try_compile
1963 # ac_fn_c_try_cpp LINENO
1964 # ----------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_cpp ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989 else
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1993 ac_retval=1
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_c_try_cpp
2000 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003 # the include files in INCLUDES and setting the cache variable VAR
2004 # accordingly.
2005 ac_fn_c_check_header_mongrel ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if eval \${$3+:} false; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 else
2018 # Is the header compilable?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020 $as_echo_n "checking $2 usability... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_header_compiler=yes
2028 else
2029 ac_header_compiler=no
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033 $as_echo "$ac_header_compiler" >&6; }
2035 # Is the header present?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037 $as_echo_n "checking $2 presence... " >&6; }
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_cpp "$LINENO"; then :
2043 ac_header_preproc=yes
2044 else
2045 ac_header_preproc=no
2047 rm -f conftest.err conftest.i conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049 $as_echo "$ac_header_preproc" >&6; }
2051 # So? What about this header?
2052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2053 yes:no: )
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 no:yes:* )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 esac
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 eval "$3=\$ac_header_compiler"
2079 eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 } # ac_fn_c_check_header_mongrel
2087 # ac_fn_c_try_run LINENO
2088 # ----------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2091 ac_fn_c_try_run ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_link"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2102 ac_status=$?
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2112 ac_status=$?
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2115 ac_retval=0
2116 else
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 ac_retval=$ac_status
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2127 } # ac_fn_c_try_run
2129 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists and can be compiled using the include files in
2132 # INCLUDES, setting the cache variable VAR accordingly.
2133 ac_fn_c_check_header_compile ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2144 #include <$2>
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 eval "$3=yes"
2148 else
2149 eval "$3=no"
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_header_compile
2160 # ac_fn_c_try_link LINENO
2161 # -----------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_c_try_link ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext conftest$ac_exeext
2167 if { { ac_try="$ac_link"
2168 case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 $as_test_x conftest$ac_exeext
2188 }; then :
2189 ac_retval=0
2190 else
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 ac_retval=1
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_c_try_link
2206 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2207 # ---------------------------------------------
2208 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2209 # accordingly.
2210 ac_fn_c_check_decl ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 as_decl_name=`echo $2|sed 's/ *(.*//'`
2214 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2216 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2224 main ()
2226 #ifndef $as_decl_name
2227 #ifdef __cplusplus
2228 (void) $as_decl_use;
2229 #else
2230 (void) $as_decl_name;
2231 #endif
2232 #endif
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 eval "$3=yes"
2240 else
2241 eval "$3=no"
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 } # ac_fn_c_check_decl
2252 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2253 # ----------------------------------------------
2254 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2255 ac_fn_c_check_header_preproc ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 #include <$2>
2266 _ACEOF
2267 if ac_fn_c_try_cpp "$LINENO"; then :
2268 eval "$3=yes"
2269 else
2270 eval "$3=no"
2272 rm -f conftest.err conftest.i conftest.$ac_ext
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 } # ac_fn_c_check_header_preproc
2281 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282 # ----------------------------------------------------
2283 # Tries to find if the field MEMBER exists in type AGGR, after including
2284 # INCLUDES, setting cache variable VAR accordingly.
2285 ac_fn_c_check_member ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2289 $as_echo_n "checking for $2.$3... " >&6; }
2290 if eval \${$4+:} false; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2297 main ()
2299 static $2 ac_aggr;
2300 if (ac_aggr.$3)
2301 return 0;
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308 else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2313 main ()
2315 static $2 ac_aggr;
2316 if (sizeof ac_aggr.$3)
2317 return 0;
2319 return 0;
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$4=yes"
2324 else
2325 eval "$4=no"
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 eval ac_res=\$$4
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 } # ac_fn_c_check_member
2338 # ac_fn_c_check_func LINENO FUNC VAR
2339 # ----------------------------------
2340 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2341 ac_fn_c_check_func ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2353 #define $2 innocuous_$2
2355 /* System header to define __stub macros and hopefully few prototypes,
2356 which can conflict with char $2 (); below.
2357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2358 <limits.h> exists even on freestanding compilers. */
2360 #ifdef __STDC__
2361 # include <limits.h>
2362 #else
2363 # include <assert.h>
2364 #endif
2366 #undef $2
2368 /* Override any GCC internal prototype to avoid an error.
2369 Use char because int might match the return type of a GCC
2370 builtin and then its argument prototype would still apply. */
2371 #ifdef __cplusplus
2372 extern "C"
2373 #endif
2374 char $2 ();
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined __stub_$2 || defined __stub___$2
2379 choke me
2380 #endif
2383 main ()
2385 return $2 ();
2387 return 0;
2389 _ACEOF
2390 if ac_fn_c_try_link "$LINENO"; then :
2391 eval "$3=yes"
2392 else
2393 eval "$3=no"
2395 rm -f core conftest.err conftest.$ac_objext \
2396 conftest$ac_exeext conftest.$ac_ext
2398 eval ac_res=\$$3
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403 } # ac_fn_c_check_func
2405 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2406 # -------------------------------------------
2407 # Tests whether TYPE exists after having included INCLUDES, setting cache
2408 # variable VAR accordingly.
2409 ac_fn_c_check_type ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 eval "$3=no"
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2422 main ()
2424 if (sizeof ($2))
2425 return 0;
2427 return 0;
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2435 main ()
2437 if (sizeof (($2)))
2438 return 0;
2440 return 0;
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2445 else
2446 eval "$3=yes"
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_type
2459 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2460 # --------------------------------------------
2461 # Tries to find the compile-time value of EXPR in a program that includes
2462 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2463 # computed
2464 ac_fn_c_compute_int ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 if test "$cross_compiling" = yes; then
2468 # Depending upon the size, compute the lo and hi bounds.
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 main ()
2475 static int test_array [1 - 2 * !(($2) >= 0)];
2476 test_array [0] = 0
2479 return 0;
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_lo=0 ac_mid=0
2484 while :; do
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2489 main ()
2491 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2492 test_array [0] = 0
2495 return 0;
2497 _ACEOF
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_hi=$ac_mid; break
2500 else
2501 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2502 if test $ac_lo -le $ac_mid; then
2503 ac_lo= ac_hi=
2504 break
2506 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 done
2510 else
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2515 main ()
2517 static int test_array [1 - 2 * !(($2) < 0)];
2518 test_array [0] = 0
2521 return 0;
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=-1 ac_mid=-1
2526 while :; do
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2531 main ()
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2534 test_array [0] = 0
2537 return 0;
2539 _ACEOF
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 ac_lo=$ac_mid; break
2542 else
2543 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2544 if test $ac_mid -le $ac_hi; then
2545 ac_lo= ac_hi=
2546 break
2548 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 done
2552 else
2553 ac_lo= ac_hi=
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 # Binary search between lo and hi bounds.
2559 while test "x$ac_lo" != "x$ac_hi"; do
2560 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2565 main ()
2567 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2568 test_array [0] = 0
2571 return 0;
2573 _ACEOF
2574 if ac_fn_c_try_compile "$LINENO"; then :
2575 ac_hi=$ac_mid
2576 else
2577 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 done
2581 case $ac_lo in #((
2582 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2583 '') ac_retval=1 ;;
2584 esac
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2589 static long int longval () { return $2; }
2590 static unsigned long int ulongval () { return $2; }
2591 #include <stdio.h>
2592 #include <stdlib.h>
2594 main ()
2597 FILE *f = fopen ("conftest.val", "w");
2598 if (! f)
2599 return 1;
2600 if (($2) < 0)
2602 long int i = longval ();
2603 if (i != ($2))
2604 return 1;
2605 fprintf (f, "%ld", i);
2607 else
2609 unsigned long int i = ulongval ();
2610 if (i != ($2))
2611 return 1;
2612 fprintf (f, "%lu", i);
2614 /* Do not output a trailing newline, as this causes \r\n confusion
2615 on some platforms. */
2616 return ferror (f) || fclose (f) != 0;
2619 return 0;
2621 _ACEOF
2622 if ac_fn_c_try_run "$LINENO"; then :
2623 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2624 else
2625 ac_retval=1
2627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2628 conftest.$ac_objext conftest.beam conftest.$ac_ext
2629 rm -f conftest.val
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2635 } # ac_fn_c_compute_int
2636 cat >config.log <<_ACEOF
2637 This file contains any messages produced by compilers while
2638 running configure, to aid debugging if configure makes a mistake.
2640 It was created by emacs $as_me 24.0.50, which was
2641 generated by GNU Autoconf 2.68. Invocation command line was
2643 $ $0 $@
2645 _ACEOF
2646 exec 5>>config.log
2648 cat <<_ASUNAME
2649 ## --------- ##
2650 ## Platform. ##
2651 ## --------- ##
2653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2670 _ASUNAME
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 $as_echo "PATH: $as_dir"
2678 done
2679 IFS=$as_save_IFS
2681 } >&5
2683 cat >&5 <<_ACEOF
2686 ## ----------- ##
2687 ## Core tests. ##
2688 ## ----------- ##
2690 _ACEOF
2693 # Keep a trace of the command line.
2694 # Strip out --no-create and --no-recursion so they do not pile up.
2695 # Strip out --silent because we don't want to record it for future runs.
2696 # Also quote any args containing shell meta-characters.
2697 # Make two passes to allow for proper duplicate-argument suppression.
2698 ac_configure_args=
2699 ac_configure_args0=
2700 ac_configure_args1=
2701 ac_must_keep_next=false
2702 for ac_pass in 1 2
2704 for ac_arg
2706 case $ac_arg in
2707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2709 | -silent | --silent | --silen | --sile | --sil)
2710 continue ;;
2711 *\'*)
2712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 esac
2714 case $ac_pass in
2715 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2717 as_fn_append ac_configure_args1 " '$ac_arg'"
2718 if test $ac_must_keep_next = true; then
2719 ac_must_keep_next=false # Got value, back to normal.
2720 else
2721 case $ac_arg in
2722 *=* | --config-cache | -C | -disable-* | --disable-* \
2723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2725 | -with-* | --with-* | -without-* | --without-* | --x)
2726 case "$ac_configure_args0 " in
2727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2728 esac
2730 -* ) ac_must_keep_next=true ;;
2731 esac
2733 as_fn_append ac_configure_args " '$ac_arg'"
2735 esac
2736 done
2737 done
2738 { ac_configure_args0=; unset ac_configure_args0;}
2739 { ac_configure_args1=; unset ac_configure_args1;}
2741 # When interrupted or exit'd, cleanup temporary files, and complete
2742 # config.log. We remove comments because anyway the quotes in there
2743 # would cause problems or look ugly.
2744 # WARNING: Use '\'' to represent an apostrophe within the trap.
2745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2746 trap 'exit_status=$?
2747 # Save into config.log some information that might help in debugging.
2749 echo
2751 $as_echo "## ---------------- ##
2752 ## Cache variables. ##
2753 ## ---------------- ##"
2754 echo
2755 # The following way of writing the cache mishandles newlines in values,
2757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2758 eval ac_val=\$$ac_var
2759 case $ac_val in #(
2760 *${as_nl}*)
2761 case $ac_var in #(
2762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2763 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2764 esac
2765 case $ac_var in #(
2766 _ | IFS | as_nl) ;; #(
2767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2768 *) { eval $ac_var=; unset $ac_var;} ;;
2769 esac ;;
2770 esac
2771 done
2772 (set) 2>&1 |
2773 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2774 *${as_nl}ac_space=\ *)
2775 sed -n \
2776 "s/'\''/'\''\\\\'\'''\''/g;
2777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2778 ;; #(
2780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2782 esac |
2783 sort
2785 echo
2787 $as_echo "## ----------------- ##
2788 ## Output variables. ##
2789 ## ----------------- ##"
2790 echo
2791 for ac_var in $ac_subst_vars
2793 eval ac_val=\$$ac_var
2794 case $ac_val in
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 esac
2797 $as_echo "$ac_var='\''$ac_val'\''"
2798 done | sort
2799 echo
2801 if test -n "$ac_subst_files"; then
2802 $as_echo "## ------------------- ##
2803 ## File substitutions. ##
2804 ## ------------------- ##"
2805 echo
2806 for ac_var in $ac_subst_files
2808 eval ac_val=\$$ac_var
2809 case $ac_val in
2810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2811 esac
2812 $as_echo "$ac_var='\''$ac_val'\''"
2813 done | sort
2814 echo
2817 if test -s confdefs.h; then
2818 $as_echo "## ----------- ##
2819 ## confdefs.h. ##
2820 ## ----------- ##"
2821 echo
2822 cat confdefs.h
2823 echo
2825 test "$ac_signal" != 0 &&
2826 $as_echo "$as_me: caught signal $ac_signal"
2827 $as_echo "$as_me: exit $exit_status"
2828 } >&5
2829 rm -f core *.core core.conftest.* &&
2830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2831 exit $exit_status
2833 for ac_signal in 1 2 13 15; do
2834 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2835 done
2836 ac_signal=0
2838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2839 rm -f -r conftest* confdefs.h
2841 $as_echo "/* confdefs.h */" > confdefs.h
2843 # Predefined preprocessor variables.
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_NAME "$PACKAGE_NAME"
2847 _ACEOF
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2851 _ACEOF
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2855 _ACEOF
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_STRING "$PACKAGE_STRING"
2859 _ACEOF
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2863 _ACEOF
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_URL "$PACKAGE_URL"
2867 _ACEOF
2870 # Let the site file select an alternate cache file if it wants to.
2871 # Prefer an explicitly selected file to automatically selected ones.
2872 ac_site_file1=NONE
2873 ac_site_file2=NONE
2874 if test -n "$CONFIG_SITE"; then
2875 # We do not want a PATH search for config.site.
2876 case $CONFIG_SITE in #((
2877 -*) ac_site_file1=./$CONFIG_SITE;;
2878 */*) ac_site_file1=$CONFIG_SITE;;
2879 *) ac_site_file1=./$CONFIG_SITE;;
2880 esac
2881 elif test "x$prefix" != xNONE; then
2882 ac_site_file1=$prefix/share/config.site
2883 ac_site_file2=$prefix/etc/config.site
2884 else
2885 ac_site_file1=$ac_default_prefix/share/config.site
2886 ac_site_file2=$ac_default_prefix/etc/config.site
2888 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2890 test "x$ac_site_file" = xNONE && continue
2891 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2893 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2894 sed 's/^/| /' "$ac_site_file" >&5
2895 . "$ac_site_file" \
2896 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error $? "failed to load site script $ac_site_file
2899 See \`config.log' for more details" "$LINENO" 5; }
2901 done
2903 if test -r "$cache_file"; then
2904 # Some versions of bash will fail to source /dev/null (special files
2905 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2906 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2908 $as_echo "$as_me: loading cache $cache_file" >&6;}
2909 case $cache_file in
2910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2911 *) . "./$cache_file";;
2912 esac
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2916 $as_echo "$as_me: creating cache $cache_file" >&6;}
2917 >$cache_file
2920 as_fn_append ac_header_list " stdlib.h"
2921 as_fn_append ac_header_list " unistd.h"
2922 as_fn_append ac_header_list " sys/param.h"
2923 gl_getopt_required=GNU
2924 as_fn_append ac_header_list " getopt.h"
2925 as_fn_append ac_func_list " alarm"
2926 as_fn_append ac_header_list " wchar.h"
2927 as_fn_append ac_header_list " stdint.h"
2928 as_fn_append ac_func_list " tzset"
2929 as_fn_append ac_header_list " sys/time.h"
2930 as_fn_append ac_func_list " localtime_r"
2931 # Check that the precious variables saved in the cache have kept the same
2932 # value.
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936 eval ac_new_set=\$ac_env_${ac_var}_set
2937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938 eval ac_new_val=\$ac_env_${ac_var}_value
2939 case $ac_old_set,$ac_new_set in
2940 set,)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2942 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2944 ,set)
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2946 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2947 ac_cache_corrupted=: ;;
2948 ,);;
2950 if test "x$ac_old_val" != "x$ac_new_val"; then
2951 # differences in whitespace do not lead to failure.
2952 ac_old_val_w=`echo x $ac_old_val`
2953 ac_new_val_w=`echo x $ac_new_val`
2954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2957 ac_cache_corrupted=:
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 eval $ac_var=\$ac_old_val
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2964 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2967 fi;;
2968 esac
2969 # Pass precious variables to config.status.
2970 if test "$ac_new_set" = set; then
2971 case $ac_new_val in
2972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2973 *) ac_arg=$ac_var=$ac_new_val ;;
2974 esac
2975 case " $ac_configure_args " in
2976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2978 esac
2980 done
2981 if $ac_cache_corrupted; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3002 am__api_version='1.11'
3004 ac_aux_dir=
3005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3006 if test -f "$ac_dir/install-sh"; then
3007 ac_aux_dir=$ac_dir
3008 ac_install_sh="$ac_aux_dir/install-sh -c"
3009 break
3010 elif test -f "$ac_dir/install.sh"; then
3011 ac_aux_dir=$ac_dir
3012 ac_install_sh="$ac_aux_dir/install.sh -c"
3013 break
3014 elif test -f "$ac_dir/shtool"; then
3015 ac_aux_dir=$ac_dir
3016 ac_install_sh="$ac_aux_dir/shtool install -c"
3017 break
3019 done
3020 if test -z "$ac_aux_dir"; then
3021 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3033 # Find a good install program. We prefer a C program (faster),
3034 # so one script is as good as another. But avoid the broken or
3035 # incompatible versions:
3036 # SysV /etc/install, /usr/sbin/install
3037 # SunOS /usr/etc/install
3038 # IRIX /sbin/install
3039 # AIX /bin/install
3040 # AmigaOS /C/install, which installs bootblocks on floppy discs
3041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # OS/2's system install, which has a completely different semantic
3045 # ./install, which can be erroneously created by make from ./install.sh.
3046 # Reject install programs that cannot install multiple files.
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3048 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3049 if test -z "$INSTALL"; then
3050 if ${ac_cv_path_install+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 # Account for people who put trailing slashes in PATH elements.
3059 case $as_dir/ in #((
3060 ./ | .// | /[cC]/* | \
3061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3062 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3063 /usr/ucb/* ) ;;
3065 # OSF1 and SCO ODT 3.0 have their own names for install.
3066 # Don't use installbsd from OSF since it installs stuff as root
3067 # by default.
3068 for ac_prog in ginstall scoinst install; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3071 if test $ac_prog = install &&
3072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073 # AIX install. It has an incompatible calling convention.
3075 elif test $ac_prog = install &&
3076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077 # program-specific install script used by HP pwplus--don't use.
3079 else
3080 rm -rf conftest.one conftest.two conftest.dir
3081 echo one > conftest.one
3082 echo two > conftest.two
3083 mkdir conftest.dir
3084 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3085 test -s conftest.one && test -s conftest.two &&
3086 test -s conftest.dir/conftest.one &&
3087 test -s conftest.dir/conftest.two
3088 then
3089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3090 break 3
3094 done
3095 done
3097 esac
3099 done
3100 IFS=$as_save_IFS
3102 rm -rf conftest.one conftest.two conftest.dir
3105 if test "${ac_cv_path_install+set}" = set; then
3106 INSTALL=$ac_cv_path_install
3107 else
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for INSTALL within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 INSTALL=$ac_install_sh
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3116 $as_echo "$INSTALL" >&6; }
3118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3119 # It thinks the first close brace ends the variable substitution.
3120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3122 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3124 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3127 $as_echo_n "checking whether build environment is sane... " >&6; }
3128 # Just in case
3129 sleep 1
3130 echo timestamp > conftest.file
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3133 am_lf='
3135 case `pwd` in
3136 *[\\\"\#\$\&\'\`$am_lf]*)
3137 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3138 esac
3139 case $srcdir in
3140 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3142 esac
3144 # Do `set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3148 # directory).
3149 if (
3150 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3151 if test "$*" = "X"; then
3152 # -L didn't work.
3153 set X `ls -t "$srcdir/configure" conftest.file`
3155 rm -f conftest.file
3156 if test "$*" != "X $srcdir/configure conftest.file" \
3157 && test "$*" != "X conftest.file $srcdir/configure"; then
3159 # If neither matched, then we have a broken ls. This can happen
3160 # if, for instance, CONFIG_SHELL is bash and it inherits a
3161 # broken ls alias from the environment. This has actually
3162 # happened. Such a system could not be considered "sane".
3163 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3164 alias in your environment" "$LINENO" 5
3167 test "$2" = conftest.file
3169 then
3170 # Ok.
3172 else
3173 as_fn_error $? "newly created file is older than distributed files!
3174 Check your system clock" "$LINENO" 5
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3178 test "$program_prefix" != NONE &&
3179 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3180 # Use a double $ so make ignores it.
3181 test "$program_suffix" != NONE &&
3182 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3183 # Double any \ or $.
3184 # By default was `s,x,x', remove it if useless.
3185 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3186 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3188 # expand $ac_aux_dir to an absolute path
3189 am_aux_dir=`cd $ac_aux_dir && pwd`
3191 if test x"${MISSING+set}" != xset; then
3192 case $am_aux_dir in
3193 *\ * | *\ *)
3194 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3196 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3197 esac
3199 # Use eval to expand $SHELL
3200 if eval "$MISSING --run true"; then
3201 am_missing_run="$MISSING --run "
3202 else
3203 am_missing_run=
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3205 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3208 if test x"${install_sh}" != xset; then
3209 case $am_aux_dir in
3210 *\ * | *\ *)
3211 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3213 install_sh="\${SHELL} $am_aux_dir/install-sh"
3214 esac
3217 # Installed binaries are usually stripped using `strip' when the user
3218 # run `make install-strip'. However `strip' might not be the right
3219 # tool to use in cross-compilation environments, therefore Automake
3220 # will honor the `STRIP' environment variable to overrule this program.
3221 if test "$cross_compiling" != no; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}strip; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_STRIP+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$STRIP"; then
3231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3244 done
3245 done
3246 IFS=$as_save_IFS
3250 STRIP=$ac_cv_prog_STRIP
3251 if test -n "$STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3253 $as_echo "$STRIP" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 if test -z "$ac_cv_prog_STRIP"; then
3262 ac_ct_STRIP=$STRIP
3263 # Extract the first word of "strip", so it can be a program name with args.
3264 set dummy strip; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_STRIP"; then
3271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_STRIP="strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3291 if test -n "$ac_ct_STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3293 $as_echo "$ac_ct_STRIP" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3299 if test "x$ac_ct_STRIP" = x; then
3300 STRIP=":"
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303 yes:)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3307 esac
3308 STRIP=$ac_ct_STRIP
3310 else
3311 STRIP="$ac_cv_prog_STRIP"
3315 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3318 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3319 if test -z "$MKDIR_P"; then
3320 if ${ac_cv_path_mkdir+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_prog in mkdir gmkdir; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3331 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3332 'mkdir (GNU coreutils) '* | \
3333 'mkdir (coreutils) '* | \
3334 'mkdir (fileutils) '4.1*)
3335 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3336 break 3;;
3337 esac
3338 done
3339 done
3340 done
3341 IFS=$as_save_IFS
3345 test -d ./--version && rmdir ./--version
3346 if test "${ac_cv_path_mkdir+set}" = set; then
3347 MKDIR_P="$ac_cv_path_mkdir -p"
3348 else
3349 # As a last resort, use the slow shell script. Don't cache a
3350 # value for MKDIR_P within a source directory, because that will
3351 # break other packages using the cache if that directory is
3352 # removed, or if the value is a relative name.
3353 MKDIR_P="$ac_install_sh -d"
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3357 $as_echo "$MKDIR_P" >&6; }
3360 mkdir_p="$MKDIR_P"
3361 case $mkdir_p in
3362 [\\/$]* | ?:[\\/]*) ;;
3363 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3364 esac
3366 for ac_prog in gawk mawk nawk awk
3368 # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy $ac_prog; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_AWK+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$AWK"; then
3376 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_AWK="$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3389 done
3390 done
3391 IFS=$as_save_IFS
3395 AWK=$ac_cv_prog_AWK
3396 if test -n "$AWK"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3398 $as_echo "$AWK" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3405 test -n "$AWK" && break
3406 done
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3409 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3410 set x ${MAKE-make}
3411 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3412 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 cat >conftest.make <<\_ACEOF
3416 SHELL = /bin/sh
3417 all:
3418 @echo '@@@%%%=$(MAKE)=@@@%%%'
3419 _ACEOF
3420 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3421 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3422 *@@@%%%=?*=@@@%%%*)
3423 eval ac_cv_prog_make_${ac_make}_set=yes;;
3425 eval ac_cv_prog_make_${ac_make}_set=no;;
3426 esac
3427 rm -f conftest.make
3429 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 $as_echo "yes" >&6; }
3432 SET_MAKE=
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 SET_MAKE="MAKE=${MAKE-make}"
3439 rm -rf .tst 2>/dev/null
3440 mkdir .tst 2>/dev/null
3441 if test -d .tst; then
3442 am__leading_dot=.
3443 else
3444 am__leading_dot=_
3446 rmdir .tst 2>/dev/null
3448 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3449 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3450 # is not polluted with repeated "-I."
3451 am__isrc=' -I$(srcdir)'
3452 # test to see if srcdir already configured
3453 if test -f $srcdir/config.status; then
3454 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3458 # test whether we have cygpath
3459 if test -z "$CYGPATH_W"; then
3460 if (cygpath --version) >/dev/null 2>/dev/null; then
3461 CYGPATH_W='cygpath -w'
3462 else
3463 CYGPATH_W=echo
3468 # Define the identity of the package.
3469 PACKAGE='emacs'
3470 VERSION='24.0.50'
3473 cat >>confdefs.h <<_ACEOF
3474 #define PACKAGE "$PACKAGE"
3475 _ACEOF
3478 cat >>confdefs.h <<_ACEOF
3479 #define VERSION "$VERSION"
3480 _ACEOF
3482 # Some tools Automake needs.
3484 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3487 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3490 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3493 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3496 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3498 # We need awk for the "check" target. The system "awk" is bad on
3499 # some platforms.
3500 # Always define AMTAR for backward compatibility.
3502 AMTAR=${AMTAR-"${am_missing_run}tar"}
3504 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3513 lispdir='${datadir}/emacs/${version}/lisp'
3514 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3515 '${datadir}/emacs/site-lisp'
3516 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3517 etcdir='${datadir}/emacs/${version}/etc'
3518 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3519 docdir='${datadir}/emacs/${version}/etc'
3520 gamedir='${localstatedir}/games/emacs'
3525 # Check whether --with-pop was given.
3526 if test "${with_pop+set}" = set; then :
3527 withval=$with_pop;
3528 else
3529 with_pop=yes
3532 if test "$with_pop" = yes; then
3533 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3538 # Check whether --with-kerberos was given.
3539 if test "${with_kerberos+set}" = set; then :
3540 withval=$with_kerberos;
3541 else
3542 with_kerberos=no
3545 if test "$with_kerberos" != no; then
3546 $as_echo "#define KERBEROS 1" >>confdefs.h
3551 # Check whether --with-kerberos5 was given.
3552 if test "${with_kerberos5+set}" = set; then :
3553 withval=$with_kerberos5;
3554 else
3555 with_kerberos5=no
3558 if test "${with_kerberos5}" != no; then
3559 if test "${with_kerberos}" = no; then
3560 with_kerberos=yes
3561 $as_echo "#define KERBEROS 1" >>confdefs.h
3565 $as_echo "#define KERBEROS5 1" >>confdefs.h
3570 # Check whether --with-hesiod was given.
3571 if test "${with_hesiod+set}" = set; then :
3572 withval=$with_hesiod;
3573 else
3574 with_hesiod=no
3577 if test "$with_hesiod" != no; then
3579 $as_echo "#define HESIOD 1" >>confdefs.h
3584 # Check whether --with-mmdf was given.
3585 if test "${with_mmdf+set}" = set; then :
3586 withval=$with_mmdf;
3587 else
3588 with_mmdf=no
3591 if test "$with_mmdf" != no; then
3593 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3598 # Check whether --with-mail-unlink was given.
3599 if test "${with_mail_unlink+set}" = set; then :
3600 withval=$with_mail_unlink;
3601 else
3602 with_mail_unlink=no
3605 if test "$with_mail_unlink" != no; then
3607 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3612 # Check whether --with-mailhost was given.
3613 if test "${with_mailhost+set}" = set; then :
3614 withval=$with_mailhost;
3615 cat >>confdefs.h <<_ACEOF
3616 #define MAILHOST "$withval"
3617 _ACEOF
3623 # Check whether --with-sound was given.
3624 if test "${with_sound+set}" = set; then :
3625 withval=$with_sound;
3626 else
3627 with_sound=yes
3632 # Check whether --with-sync-input was given.
3633 if test "${with_sync_input+set}" = set; then :
3634 withval=$with_sync_input;
3635 else
3636 with_sync_input=yes
3639 if test "$with_sync_input" = yes; then
3641 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3646 # Check whether --with-x-toolkit was given.
3647 if test "${with_x_toolkit+set}" = set; then :
3648 withval=$with_x_toolkit; case "${withval}" in
3649 y | ye | yes ) val=gtk ;;
3650 n | no ) val=no ;;
3651 l | lu | luc | luci | lucid ) val=lucid ;;
3652 a | at | ath | athe | athen | athena ) val=athena ;;
3653 m | mo | mot | moti | motif ) val=motif ;;
3654 g | gt | gtk ) val=gtk ;;
3655 gtk3 ) val=gtk3 ;;
3657 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3658 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3659 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3661 esac
3662 with_x_toolkit=$val
3668 # Check whether --with-xpm was given.
3669 if test "${with_xpm+set}" = set; then :
3670 withval=$with_xpm;
3671 else
3672 with_xpm=yes
3676 # Check whether --with-jpeg was given.
3677 if test "${with_jpeg+set}" = set; then :
3678 withval=$with_jpeg;
3679 else
3680 with_jpeg=yes
3684 # Check whether --with-tiff was given.
3685 if test "${with_tiff+set}" = set; then :
3686 withval=$with_tiff;
3687 else
3688 with_tiff=yes
3692 # Check whether --with-gif was given.
3693 if test "${with_gif+set}" = set; then :
3694 withval=$with_gif;
3695 else
3696 with_gif=yes
3700 # Check whether --with-png was given.
3701 if test "${with_png+set}" = set; then :
3702 withval=$with_png;
3703 else
3704 with_png=yes
3708 # Check whether --with-rsvg was given.
3709 if test "${with_rsvg+set}" = set; then :
3710 withval=$with_rsvg;
3711 else
3712 with_rsvg=yes
3716 # Check whether --with-xml2 was given.
3717 if test "${with_xml2+set}" = set; then :
3718 withval=$with_xml2;
3719 else
3720 with_xml2=yes
3724 # Check whether --with-imagemagick was given.
3725 if test "${with_imagemagick+set}" = set; then :
3726 withval=$with_imagemagick;
3727 else
3728 with_imagemagick=yes
3733 # Check whether --with-xft was given.
3734 if test "${with_xft+set}" = set; then :
3735 withval=$with_xft;
3736 else
3737 with_xft=yes
3741 # Check whether --with-libotf was given.
3742 if test "${with_libotf+set}" = set; then :
3743 withval=$with_libotf;
3744 else
3745 with_libotf=yes
3749 # Check whether --with-m17n-flt was given.
3750 if test "${with_m17n_flt+set}" = set; then :
3751 withval=$with_m17n_flt;
3752 else
3753 with_m17n_flt=yes
3758 # Check whether --with-toolkit-scroll-bars was given.
3759 if test "${with_toolkit_scroll_bars+set}" = set; then :
3760 withval=$with_toolkit_scroll_bars;
3761 else
3762 with_toolkit_scroll_bars=yes
3766 # Check whether --with-xaw3d was given.
3767 if test "${with_xaw3d+set}" = set; then :
3768 withval=$with_xaw3d;
3769 else
3770 with_xaw3d=yes
3774 # Check whether --with-xim was given.
3775 if test "${with_xim+set}" = set; then :
3776 withval=$with_xim;
3777 else
3778 with_xim=yes
3782 # Check whether --with-ns was given.
3783 if test "${with_ns+set}" = set; then :
3784 withval=$with_ns;
3785 else
3786 with_ns=no
3791 # Check whether --with-gpm was given.
3792 if test "${with_gpm+set}" = set; then :
3793 withval=$with_gpm;
3794 else
3795 with_gpm=yes
3799 # Check whether --with-dbus was given.
3800 if test "${with_dbus+set}" = set; then :
3801 withval=$with_dbus;
3802 else
3803 with_dbus=yes
3807 # Check whether --with-gconf was given.
3808 if test "${with_gconf+set}" = set; then :
3809 withval=$with_gconf;
3810 else
3811 with_gconf=yes
3815 # Check whether --with-selinux was given.
3816 if test "${with_selinux+set}" = set; then :
3817 withval=$with_selinux;
3818 else
3819 with_selinux=yes
3823 # Check whether --with-gnutls was given.
3824 if test "${with_gnutls+set}" = set; then :
3825 withval=$with_gnutls;
3826 else
3827 with_gnutls=yes
3831 ## For the times when you want to build Emacs but don't have
3832 ## a suitable makeinfo, and can live without the manuals.
3834 # Check whether --with-makeinfo was given.
3835 if test "${with_makeinfo+set}" = set; then :
3836 withval=$with_makeinfo;
3837 else
3838 with_makeinfo=yes
3842 ## This is an option because I do not know if all info/man support
3843 ## compressed files, nor how to test if they do so.
3845 # Check whether --with-compress-info was given.
3846 if test "${with_compress_info+set}" = set; then :
3847 withval=$with_compress_info;
3848 else
3849 with_compress_info=yes
3852 if test $with_compress_info = yes; then
3853 GZIP_INFO=yes
3854 else
3855 GZIP_INFO=
3860 # Check whether --with-pkg-config-prog was given.
3861 if test "${with_pkg_config_prog+set}" = set; then :
3862 withval=$with_pkg_config_prog;
3865 if test "X${with_pkg_config_prog}" != X; then
3866 if test "${with_pkg_config_prog}" != yes; then
3867 PKG_CONFIG="${with_pkg_config_prog}"
3871 CRT_DIR=
3873 # Check whether --with-crt-dir was given.
3874 if test "${with_crt_dir+set}" = set; then :
3875 withval=$with_crt_dir;
3878 CRT_DIR="${with_crt_dir}"
3881 # Check whether --with-gameuser was given.
3882 if test "${with_gameuser+set}" = set; then :
3883 withval=$with_gameuser;
3886 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3887 && gameuser="${with_gameuser}"
3888 test "X$gameuser" = X && gameuser=games
3891 # Check whether --with-gnustep-conf was given.
3892 if test "${with_gnustep_conf+set}" = set; then :
3893 withval=$with_gnustep_conf;
3896 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3897 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3898 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3899 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3901 # Check whether --enable-ns-self-contained was given.
3902 if test "${enable_ns_self_contained+set}" = set; then :
3903 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3904 else
3905 EN_NS_SELF_CONTAINED=yes
3909 # Check whether --enable-asserts was given.
3910 if test "${enable_asserts+set}" = set; then :
3911 enableval=$enable_asserts; USE_XASSERTS=$enableval
3912 else
3913 USE_XASSERTS=no
3917 # Check whether --enable-maintainer-mode was given.
3918 if test "${enable_maintainer_mode+set}" = set; then :
3919 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3920 else
3921 USE_MAINTAINER_MODE=no
3924 if test $USE_MAINTAINER_MODE = yes; then
3925 MAINT=
3926 else
3927 MAINT=#
3931 # Check whether --enable-locallisppath was given.
3932 if test "${enable_locallisppath+set}" = set; then :
3933 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3934 locallisppath=
3935 elif test "${enableval}" != "yes"; then
3936 locallisppath=${enableval}
3941 # Check whether --enable-checking was given.
3942 if test "${enable_checking+set}" = set; then :
3943 enableval=$enable_checking; ac_checking_flags="${enableval}"
3946 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3947 for check in $ac_checking_flags
3949 case $check in
3950 # these set all the flags to specific states
3951 yes) ac_enable_checking=1 ;;
3952 no) ac_enable_checking= ;
3953 ac_gc_check_stringbytes= ;
3954 ac_gc_check_string_overrun= ;
3955 ac_gc_check_string_free_list= ;
3956 ac_xmalloc_overrun= ;
3957 ac_gc_check_cons_list= ;;
3958 all) ac_enable_checking=1 ;
3959 ac_gc_check_stringbytes=1 ;
3960 ac_gc_check_string_overrun=1 ;
3961 ac_gc_check_string_free_list=1 ;
3962 ac_xmalloc_overrun=1 ;
3963 ac_gc_check_cons_list=1 ;;
3964 # these enable particular checks
3965 stringbytes) ac_gc_check_stringbytes=1 ;;
3966 stringoverrun) ac_gc_check_string_overrun=1 ;;
3967 stringfreelist) ac_gc_check_string_free_list=1 ;;
3968 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3969 conslist) ac_gc_check_cons_list=1 ;;
3970 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3971 esac
3972 done
3973 IFS="$ac_save_IFS"
3975 if test x$ac_enable_checking != x ; then
3977 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3980 if test x$ac_gc_check_stringbytes != x ; then
3982 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3985 if test x$ac_gc_check_stringoverrun != x ; then
3987 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3990 if test x$ac_gc_check_string_free_list != x ; then
3992 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3995 if test x$ac_xmalloc_overrun != x ; then
3997 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4000 if test x$ac_gc_check_cons_list != x ; then
4002 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4006 # Check whether --enable-use-lisp-union-type was given.
4007 if test "${enable_use_lisp_union_type+set}" = set; then :
4008 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4010 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4017 # Check whether --enable-profiling was given.
4018 if test "${enable_profiling+set}" = set; then :
4019 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4022 if test x$ac_enable_profiling != x ; then
4023 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4024 else
4025 PROFILING_CFLAGS=
4029 # Check whether --enable-autodepend was given.
4030 if test "${enable_autodepend+set}" = set; then :
4031 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4032 else
4033 ac_enable_autodepend=yes
4037 #### Make srcdir absolute, if it isn't already. It's important to
4038 #### avoid running the path through pwd unnecessarily, since pwd can
4039 #### give you automounter prefixes, which can go away. We do all this
4040 #### so Emacs can find its files when run uninstalled.
4041 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4042 unset CDPATH
4043 case "${srcdir}" in
4044 /* ) ;;
4046 ## We may be able to use the $PWD environment variable to make this
4047 ## absolute. But sometimes PWD is inaccurate.
4048 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4049 ## but that tested only for a well-formed and valid PWD,
4050 ## it did not object when PWD was well-formed and valid but just wrong.
4051 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4052 then
4053 srcdir="$PWD"
4054 else
4055 srcdir="`(cd ${srcdir}; pwd)`"
4058 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4059 esac
4061 #### Check if the source directory already has a configured system in it.
4062 if test `pwd` != `(cd ${srcdir} && pwd)` \
4063 && test -f "${srcdir}/src/config.h" ; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4065 as a build directory right now; it has been configured in its own
4066 right. To configure in another directory as well, you MUST
4067 use GNU make. If you do not have GNU make, then you must
4068 now do \`make distclean' in ${srcdir},
4069 and then run $0 again." >&5
4070 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4071 as a build directory right now; it has been configured in its own
4072 right. To configure in another directory as well, you MUST
4073 use GNU make. If you do not have GNU make, then you must
4074 now do \`make distclean' in ${srcdir},
4075 and then run $0 again." >&2;}
4078 #### Given the configuration name, set machfile and opsysfile to the
4079 #### names of the m/*.h and s/*.h files we should use.
4081 ### Canonicalize the configuration name.
4083 # Make sure we can run config.sub.
4084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4085 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4088 $as_echo_n "checking build system type... " >&6; }
4089 if ${ac_cv_build+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_build_alias=$build_alias
4093 test "x$ac_build_alias" = x &&
4094 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4095 test "x$ac_build_alias" = x &&
4096 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4097 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4098 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4102 $as_echo "$ac_cv_build" >&6; }
4103 case $ac_cv_build in
4104 *-*-*) ;;
4105 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4106 esac
4107 build=$ac_cv_build
4108 ac_save_IFS=$IFS; IFS='-'
4109 set x $ac_cv_build
4110 shift
4111 build_cpu=$1
4112 build_vendor=$2
4113 shift; shift
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4116 build_os=$*
4117 IFS=$ac_save_IFS
4118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4122 $as_echo_n "checking host system type... " >&6; }
4123 if ${ac_cv_host+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test "x$host_alias" = x; then
4127 ac_cv_host=$ac_cv_build
4128 else
4129 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4130 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4135 $as_echo "$ac_cv_host" >&6; }
4136 case $ac_cv_host in
4137 *-*-*) ;;
4138 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4139 esac
4140 host=$ac_cv_host
4141 ac_save_IFS=$IFS; IFS='-'
4142 set x $ac_cv_host
4143 shift
4144 host_cpu=$1
4145 host_vendor=$2
4146 shift; shift
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4149 host_os=$*
4150 IFS=$ac_save_IFS
4151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4154 canonical=$host
4155 configuration=${host_alias-${build_alias-$host}}
4159 ### If you add support for a new configuration, add code to this
4160 ### switch statement to recognize your configuration name and select
4161 ### the appropriate operating system and machine description files.
4163 ### You would hope that you could choose an m/*.h file pretty much
4164 ### based on the machine portion of the configuration name, and an s/*.h
4165 ### file based on the operating system portion. However, it turns out
4166 ### that each m/*.h file is pretty manufacturer-specific - for
4167 ### example mips.h is MIPS
4168 ### So we basically have to have a special case for each
4169 ### configuration name.
4171 ### As far as handling version numbers on operating systems is
4172 ### concerned, make sure things will fail in a fixable way. If
4173 ### /etc/MACHINES doesn't say anything about version numbers, be
4174 ### prepared to handle anything reasonably. If version numbers
4175 ### matter, be sure /etc/MACHINES says something about it.
4177 machine='' opsys='' unported=no
4178 case "${canonical}" in
4180 ## GNU/Linux ports
4181 *-*-linux-gnu*)
4182 opsys=gnu-linux
4183 case ${canonical} in
4184 alpha*) machine=alpha ;;
4185 s390-*) machine=ibms390 ;;
4186 s390x-*) machine=ibms390x ;;
4187 powerpc*) machine=macppc ;;
4188 sparc*) machine=sparc ;;
4189 ia64*) machine=ia64 ;;
4190 m68k*) machine=m68k ;;
4191 x86_64*) machine=amdx86-64 ;;
4192 esac
4195 ## FreeBSD ports
4196 *-*-freebsd* )
4197 opsys=freebsd
4198 case "${canonical}" in
4199 alpha*) machine=alpha ;;
4200 amd64-*|x86_64-*) machine=amdx86-64 ;;
4201 ia64-*) machine=ia64 ;;
4202 i[3456]86-*) machine=intel386 ;;
4203 powerpc-*) machine=macppc ;;
4204 sparc-*) machine=sparc ;;
4205 sparc64-*) machine=sparc ;;
4206 esac
4209 ## FreeBSD kernel + glibc based userland
4210 *-*-kfreebsd*gnu* )
4211 opsys=gnu-kfreebsd
4212 case "${canonical}" in
4213 alpha*) machine=alpha ;;
4214 amd64-*|x86_64-*) machine=amdx86-64 ;;
4215 ia64-*) machine=ia64 ;;
4216 i[3456]86-*) machine=intel386 ;;
4217 powerpc-*) machine=macppc ;;
4218 sparc-*) machine=sparc ;;
4219 sparc64-*) machine=sparc ;;
4220 esac
4223 ## NetBSD ports
4224 *-*-netbsd* )
4225 opsys=netbsd
4226 case "${canonical}" in
4227 alpha*) machine=alpha ;;
4228 x86_64-*) machine=amdx86-64 ;;
4229 i[3456]86-*) machine=intel386 ;;
4230 m68k-*) machine=m68k ;;
4231 powerpc-*) machine=macppc ;;
4232 sparc*-) machine=sparc ;;
4233 vax-*) machine=vax ;;
4234 esac
4237 ## OpenBSD ports
4238 *-*-openbsd* )
4239 opsys=openbsd
4240 case "${canonical}" in
4241 alpha*) machine=alpha ;;
4242 x86_64-*) machine=amdx86-64 ;;
4243 i386-*) machine=intel386 ;;
4244 powerpc-*) machine=macppc ;;
4245 sparc*) machine=sparc ;;
4246 vax-*) machine=vax ;;
4247 esac
4250 ## Apple Darwin / Mac OS X
4251 *-apple-darwin* )
4252 case "${canonical}" in
4253 i[3456]86-* ) machine=intel386 ;;
4254 powerpc-* ) machine=macppc ;;
4255 x86_64-* ) machine=amdx86-64 ;;
4256 * ) unported=yes ;;
4257 esac
4258 opsys=darwin
4259 # Define CPP as follows to make autoconf work correctly.
4260 CPP="${CC-cc} -E -no-cpp-precomp"
4261 # Use fink packages if available.
4262 if test -d /sw/include && test -d /sw/lib; then
4263 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4264 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4265 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4269 ## HP 9000 series 700 and 800, running HP/UX
4270 hppa*-hp-hpux10.2* )
4271 opsys=hpux10-20
4273 hppa*-hp-hpux1[1-9]* )
4274 opsys=hpux11
4275 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4278 ia64*-hp-hpux1[1-9]* )
4279 machine=hp800 opsys=hpux11
4280 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4281 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4282 CANNOT_DUMP=yes
4285 hppa*-*-linux-gnu* )
4286 machine=hp800 opsys=gnu-linux
4289 ## IBM machines
4290 rs6000-ibm-aix4.[23]* )
4291 machine=ibmrs6000 opsys=aix4-2
4293 powerpc-ibm-aix4.[23]* )
4294 machine=ibmrs6000 opsys=aix4-2
4296 rs6000-ibm-aix[56]* )
4297 machine=ibmrs6000 opsys=aix4-2
4299 powerpc-ibm-aix[56]* )
4300 machine=ibmrs6000 opsys=aix4-2
4303 ## Silicon Graphics machines
4304 ## Iris 4D
4305 mips-sgi-irix6.5 )
4306 machine=iris4d opsys=irix6-5
4307 # Without defining _LANGUAGE_C, things get masked out in the headers
4308 # so that, for instance, grepping for `free' in stdlib.h fails and
4309 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4310 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4311 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4314 ## Suns
4315 *-sun-solaris* \
4316 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4317 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4318 case "${canonical}" in
4319 i[3456]86-*-* ) machine=intel386 ;;
4320 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4321 sparc* ) machine=sparc ;;
4322 * ) unported=yes ;;
4323 esac
4324 case "${canonical}" in
4325 *-sunos5.6* | *-solaris2.6* )
4326 opsys=sol2-6
4327 NON_GNU_CPP=/usr/ccs/lib/cpp
4328 RANLIB="ar -ts"
4330 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4331 opsys=sol2-6
4332 emacs_check_sunpro_c=yes
4333 NON_GNU_CPP=/usr/ccs/lib/cpp
4335 *-sunos5* | *-solaris* )
4336 opsys=sol2-10
4337 emacs_check_sunpro_c=yes
4338 NON_GNU_CPP=/usr/ccs/lib/cpp
4340 esac
4341 ## Watch out for a compiler that we know will not work.
4342 case "${canonical}" in
4343 *-solaris* | *-sunos5* )
4344 if [ "x$CC" = x/usr/ucb/cc ]; then
4345 ## /usr/ucb/cc doesn't work;
4346 ## we should find some other compiler that does work.
4347 unset CC
4350 *) ;;
4351 esac
4354 ## Intel 386 machines where we don't care about the manufacturer.
4355 i[3456]86-*-* )
4356 machine=intel386
4357 case "${canonical}" in
4358 *-cygwin ) opsys=cygwin ;;
4359 *-darwin* ) opsys=darwin
4360 CPP="${CC-cc} -E -no-cpp-precomp"
4362 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4363 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4364 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4365 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4366 esac
4370 unported=yes
4372 esac
4374 ### If the code above didn't choose an operating system, just choose
4375 ### an operating system based on the configuration name. You really
4376 ### only want to use this when you have no idea what the right
4377 ### operating system is; if you know what operating systems a machine
4378 ### runs, it's cleaner to make it explicit in the case statement
4379 ### above.
4380 if test x"${opsys}" = x; then
4381 case "${canonical}" in
4382 *-gnu* ) opsys=gnu ;;
4384 unported=yes
4386 esac
4391 if test $unported = yes; then
4392 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4393 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4396 if test -n "$machine"; then
4397 machfile="m/${machine}.h"
4398 else
4399 machfile=
4401 opsysfile="s/${opsys}.h"
4404 #### Choose a compiler.
4405 test -n "$CC" && cc_specified=yes
4407 # Save the value of CFLAGS that the user specified.
4408 SPECIFIED_CFLAGS="$CFLAGS"
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_CC+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 if test -z "$ac_cv_prog_CC"; then
4455 ac_ct_CC=$CC
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$ac_ct_CC"; then
4464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_ac_ct_CC="gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4477 done
4478 done
4479 IFS=$as_save_IFS
4483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4484 if test -n "$ac_ct_CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4486 $as_echo "$ac_ct_CC" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4492 if test "x$ac_ct_CC" = x; then
4493 CC=""
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496 yes:)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501 CC=$ac_ct_CC
4503 else
4504 CC="$ac_cv_prog_CC"
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}cc; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_CC+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_CC="${ac_tool_prefix}cc"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 CC=$ac_cv_prog_CC
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4548 if test -z "$CC"; then
4549 # Extract the first word of "cc", so it can be a program name with args.
4550 set dummy cc; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC="$CC" # Let the user override the test.
4558 else
4559 ac_prog_rejected=no
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4568 ac_prog_rejected=yes
4569 continue
4571 ac_cv_prog_CC="cc"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4579 if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy $ac_cv_prog_CC
4582 shift
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4587 shift
4588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4593 CC=$ac_cv_prog_CC
4594 if test -n "$CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 $as_echo "$CC" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4604 if test -z "$CC"; then
4605 if test -n "$ac_tool_prefix"; then
4606 for ac_prog in cl.exe
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_CC+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC="$CC" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 CC=$ac_cv_prog_CC
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$CC" && break
4646 done
4648 if test -z "$CC"; then
4649 ac_ct_CC=$CC
4650 for ac_prog in cl.exe
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy $ac_prog; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC="$ac_prog"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4689 test -n "$ac_ct_CC" && break
4690 done
4692 if test "x$ac_ct_CC" = x; then
4693 CC=""
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 CC=$ac_ct_CC
4708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error $? "no acceptable C compiler found in \$PATH
4711 See \`config.log' for more details" "$LINENO" 5; }
4713 # Provide some information about the compiler.
4714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4715 set X $ac_compile
4716 ac_compiler=$2
4717 for ac_option in --version -v -V -qversion; do
4718 { { ac_try="$ac_compiler $ac_option >&5"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4726 ac_status=$?
4727 if test -s conftest.err; then
4728 sed '10a\
4729 ... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
4733 rm -f conftest.er1 conftest.err
4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4736 done
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4742 main ()
4746 return 0;
4748 _ACEOF
4749 ac_clean_files_save=$ac_clean_files
4750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4751 # Try to create an executable without -o first, disregard a.out.
4752 # It will help us diagnose broken compilers, and finding out an intuition
4753 # of exeext.
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4755 $as_echo_n "checking whether the C compiler works... " >&6; }
4756 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4758 # The possible output files:
4759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4761 ac_rmfiles=
4762 for ac_file in $ac_files
4764 case $ac_file in
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4767 esac
4768 done
4769 rm -f $ac_rmfiles
4771 if { { ac_try="$ac_link_default"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4777 $as_echo "$ac_try_echo"; } >&5
4778 (eval "$ac_link_default") 2>&5
4779 ac_status=$?
4780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4781 test $ac_status = 0; }; then :
4782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4785 # so that the user can short-circuit this test for compilers unknown to
4786 # Autoconf.
4787 for ac_file in $ac_files ''
4789 test -f "$ac_file" || continue
4790 case $ac_file in
4791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4793 [ab].out )
4794 # We found the default executable, but exeext='' is most
4795 # certainly right.
4796 break;;
4797 *.* )
4798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4799 then :; else
4800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4802 # We set ac_cv_exeext here because the later test for it is not
4803 # safe: cross compilers may not add the suffix if given an `-o'
4804 # argument, so we may need to know it at that point already.
4805 # Even if this section looks crufty: it has the advantage of
4806 # actually working.
4807 break;;
4809 break;;
4810 esac
4811 done
4812 test "$ac_cv_exeext" = no && ac_cv_exeext=
4814 else
4815 ac_file=''
4817 if test -z "$ac_file"; then :
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 $as_echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4825 as_fn_error 77 "C compiler cannot create executables
4826 See \`config.log' for more details" "$LINENO" 5; }
4827 else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829 $as_echo "yes" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4832 $as_echo_n "checking for C compiler default output file name... " >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4834 $as_echo "$ac_file" >&6; }
4835 ac_exeext=$ac_cv_exeext
4837 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4838 ac_clean_files=$ac_clean_files_save
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4840 $as_echo_n "checking for suffix of executables... " >&6; }
4841 if { { ac_try="$ac_link"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_link") 2>&5
4849 ac_status=$?
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; then :
4852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4854 # work properly (i.e., refer to `conftest.exe'), while it won't with
4855 # `rm'.
4856 for ac_file in conftest.exe conftest conftest.*; do
4857 test -f "$ac_file" || continue
4858 case $ac_file in
4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4861 break;;
4862 * ) break;;
4863 esac
4864 done
4865 else
4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4869 See \`config.log' for more details" "$LINENO" 5; }
4871 rm -f conftest conftest$ac_cv_exeext
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4873 $as_echo "$ac_cv_exeext" >&6; }
4875 rm -f conftest.$ac_ext
4876 EXEEXT=$ac_cv_exeext
4877 ac_exeext=$EXEEXT
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <stdio.h>
4882 main ()
4884 FILE *f = fopen ("conftest.out", "w");
4885 return ferror (f) || fclose (f) != 0;
4888 return 0;
4890 _ACEOF
4891 ac_clean_files="$ac_clean_files conftest.out"
4892 # Check that the compiler produces executables we can run. If not, either
4893 # the compiler is broken, or we cross compile.
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4895 $as_echo_n "checking whether we are cross compiling... " >&6; }
4896 if test "$cross_compiling" != yes; then
4897 { { ac_try="$ac_link"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_link") 2>&5
4905 ac_status=$?
4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }
4908 if { ac_try='./conftest$ac_cv_exeext'
4909 { { case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912 esac
4913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914 $as_echo "$ac_try_echo"; } >&5
4915 (eval "$ac_try") 2>&5
4916 ac_status=$?
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; }; then
4919 cross_compiling=no
4920 else
4921 if test "$cross_compiling" = maybe; then
4922 cross_compiling=yes
4923 else
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error $? "cannot run C compiled programs.
4927 If you meant to cross compile, use \`--host'.
4928 See \`config.log' for more details" "$LINENO" 5; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4933 $as_echo "$cross_compiling" >&6; }
4935 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4936 ac_clean_files=$ac_clean_files_save
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4938 $as_echo_n "checking for suffix of object files... " >&6; }
4939 if ${ac_cv_objext+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4946 main ()
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.o conftest.obj
4954 if { { ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960 $as_echo "$ac_try_echo"; } >&5
4961 (eval "$ac_compile") 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; then :
4965 for ac_file in conftest.o conftest.obj conftest.*; do
4966 test -f "$ac_file" || continue;
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4970 break;;
4971 esac
4972 done
4973 else
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4979 as_fn_error $? "cannot compute suffix of object files: cannot compile
4980 See \`config.log' for more details" "$LINENO" 5; }
4982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4985 $as_echo "$ac_cv_objext" >&6; }
4986 OBJEXT=$ac_cv_objext
4987 ac_objext=$OBJEXT
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4990 if ${ac_cv_c_compiler_gnu+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 main ()
4999 #ifndef __GNUC__
5000 choke me
5001 #endif
5004 return 0;
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_compiler_gnu=yes
5009 else
5010 ac_compiler_gnu=no
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5018 if test $ac_compiler_gnu = yes; then
5019 GCC=yes
5020 else
5021 GCC=
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5027 if ${ac_cv_prog_cc_g+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5038 main ()
5042 return 0;
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 ac_cv_prog_cc_g=yes
5047 else
5048 CFLAGS=""
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5053 main ()
5057 return 0;
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5062 else
5063 ac_c_werror_flag=$ac_save_c_werror_flag
5064 CFLAGS="-g"
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5069 main ()
5073 return 0;
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_prog_cc_g=yes
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_c_werror_flag=$ac_save_c_werror_flag
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5087 $as_echo "$ac_cv_prog_cc_g" >&6; }
5088 if test "$ac_test_CFLAGS" = set; then
5089 CFLAGS=$ac_save_CFLAGS
5090 elif test $ac_cv_prog_cc_g = yes; then
5091 if test "$GCC" = yes; then
5092 CFLAGS="-g -O2"
5093 else
5094 CFLAGS="-g"
5096 else
5097 if test "$GCC" = yes; then
5098 CFLAGS="-O2"
5099 else
5100 CFLAGS=
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5105 if ${ac_cv_prog_cc_c89+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 ac_cv_prog_cc_c89=no
5109 ac_save_CC=$CC
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <stdarg.h>
5113 #include <stdio.h>
5114 #include <sys/types.h>
5115 #include <sys/stat.h>
5116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5117 struct buf { int x; };
5118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5119 static char *e (p, i)
5120 char **p;
5121 int i;
5123 return p[i];
5125 static char *f (char * (*g) (char **, int), char **p, ...)
5127 char *s;
5128 va_list v;
5129 va_start (v,p);
5130 s = g (p, va_arg (v,int));
5131 va_end (v);
5132 return s;
5135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5136 function prototypes and stuff, but not '\xHH' hex character constants.
5137 These don't provoke an error unfortunately, instead are silently treated
5138 as 'x'. The following induces an error, until -std is added to get
5139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5140 array size at least. It's necessary to write '\x00'==0 to get something
5141 that's true only with -std. */
5142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5145 inside strings and character constants. */
5146 #define FOO(x) 'x'
5147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5149 int test (int i, double x);
5150 struct s1 {int (*f) (int a);};
5151 struct s2 {int (*f) (double a);};
5152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5153 int argc;
5154 char **argv;
5156 main ()
5158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5160 return 0;
5162 _ACEOF
5163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5166 CC="$ac_save_CC $ac_arg"
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_prog_cc_c89=$ac_arg
5170 rm -f core conftest.err conftest.$ac_objext
5171 test "x$ac_cv_prog_cc_c89" != "xno" && break
5172 done
5173 rm -f conftest.$ac_ext
5174 CC=$ac_save_CC
5177 # AC_CACHE_VAL
5178 case "x$ac_cv_prog_cc_c89" in
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5181 $as_echo "none needed" >&6; } ;;
5182 xno)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5184 $as_echo "unsupported" >&6; } ;;
5186 CC="$CC $ac_cv_prog_cc_c89"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5189 esac
5190 if test "x$ac_cv_prog_cc_c89" != xno; then :
5194 ac_ext=c
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 DEPDIR="${am__leading_dot}deps"
5201 ac_config_commands="$ac_config_commands depfiles"
5204 am_make=${MAKE-make}
5205 cat > confinc << 'END'
5206 am__doit:
5207 @echo this is the am__doit target
5208 .PHONY: am__doit
5210 # If we don't find an include directive, just comment out the code.
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5212 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5213 am__include="#"
5214 am__quote=
5215 _am_result=none
5216 # First try GNU make style include.
5217 echo "include confinc" > confmf
5218 # Ignore all kinds of additional output from `make'.
5219 case `$am_make -s -f confmf 2> /dev/null` in #(
5220 *the\ am__doit\ target*)
5221 am__include=include
5222 am__quote=
5223 _am_result=GNU
5225 esac
5226 # Now try BSD make style include.
5227 if test "$am__include" = "#"; then
5228 echo '.include "confinc"' > confmf
5229 case `$am_make -s -f confmf 2> /dev/null` in #(
5230 *the\ am__doit\ target*)
5231 am__include=.include
5232 am__quote="\""
5233 _am_result=BSD
5235 esac
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5240 $as_echo "$_am_result" >&6; }
5241 rm -f confinc confmf
5243 # Check whether --enable-dependency-tracking was given.
5244 if test "${enable_dependency_tracking+set}" = set; then :
5245 enableval=$enable_dependency_tracking;
5248 if test "x$enable_dependency_tracking" != xno; then
5249 am_depcomp="$ac_aux_dir/depcomp"
5250 AMDEPBACKSLASH='\'
5252 if test "x$enable_dependency_tracking" != xno; then
5253 AMDEP_TRUE=
5254 AMDEP_FALSE='#'
5255 else
5256 AMDEP_TRUE='#'
5257 AMDEP_FALSE=
5262 depcc="$CC" am_compiler_list=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5274 # in D'.
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5288 am_cv_CC_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5292 am__universal=false
5293 case " $depcc " in #(
5294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5295 esac
5297 for depmode in $am_compiler_list; do
5298 # Setup a source with many dependencies, because some compilers
5299 # like to wrap large dependency lists on column 80 (with \), and
5300 # we should not choose a depcomp mode which is confused by this.
5302 # We need to recreate these files for each test, as the compiler may
5303 # overwrite some of them when testing with obscure command lines.
5304 # This happens at least with the AIX C compiler.
5305 : > sub/conftest.c
5306 for i in 1 2 3 4 5 6; do
5307 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5308 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5309 # Solaris 8's {/usr,}/bin/sh.
5310 touch sub/conftst$i.h
5311 done
5312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5314 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5315 # mode. It turns out that the SunPro C++ compiler does not properly
5316 # handle `-M -o', and we need to detect this. Also, some Intel
5317 # versions had trouble with output in subdirs
5318 am__obj=sub/conftest.${OBJEXT-o}
5319 am__minus_obj="-o $am__obj"
5320 case $depmode in
5321 gcc)
5322 # This depmode causes a compiler race in universal mode.
5323 test "$am__universal" = false || continue
5325 nosideeffect)
5326 # after this tag, mechanisms are not by side-effect, so they'll
5327 # only be used when explicitly requested
5328 if test "x$enable_dependency_tracking" = xyes; then
5329 continue
5330 else
5331 break
5334 msvisualcpp | msvcmsys)
5335 # This compiler won't grok `-c -o', but also, the minuso test has
5336 # not run yet. These depmodes are late enough in the game, and
5337 # so weak that their functioning should not be impacted.
5338 am__obj=conftest.${OBJEXT-o}
5339 am__minus_obj=
5341 none) break ;;
5342 esac
5343 if depmode=$depmode \
5344 source=sub/conftest.c object=$am__obj \
5345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5347 >/dev/null 2>conftest.err &&
5348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5352 # icc doesn't choke on unknown options, it will just issue warnings
5353 # or remarks (even with -Werror). So we grep stderr for any message
5354 # that says an option was ignored or not supported.
5355 # When given -MP, icc 7.0 and 7.1 complain thusly:
5356 # icc: Command line warning: ignoring option '-M'; no argument required
5357 # The diagnosis changed in icc 8.0:
5358 # icc: Command line remark: option '-MP' not supported
5359 if (grep 'ignoring option' conftest.err ||
5360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5361 am_cv_CC_dependencies_compiler_type=$depmode
5362 break
5365 done
5367 cd ..
5368 rm -rf conftest.dir
5369 else
5370 am_cv_CC_dependencies_compiler_type=none
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5381 am__fastdepCC_TRUE=
5382 am__fastdepCC_FALSE='#'
5383 else
5384 am__fastdepCC_TRUE='#'
5385 am__fastdepCC_FALSE=
5389 if test "x$CC" != xcc; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5391 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5394 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5396 set dummy $CC; ac_cc=`$as_echo "$2" |
5397 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5398 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5405 main ()
5409 return 0;
5411 _ACEOF
5412 # Make sure it works both with $CC and with simple cc.
5413 # We do the test twice because some compilers refuse to overwrite an
5414 # existing .o file with -o, though they will create one.
5415 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5416 rm -f conftest2.*
5417 if { { case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5422 $as_echo "$ac_try_echo"; } >&5
5423 (eval "$ac_try") 2>&5
5424 ac_status=$?
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; } &&
5427 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432 $as_echo "$ac_try_echo"; } >&5
5433 (eval "$ac_try") 2>&5
5434 ac_status=$?
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; };
5437 then
5438 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5439 if test "x$CC" != xcc; then
5440 # Test first that cc exists at all.
5441 if { ac_try='cc -c conftest.$ac_ext >&5'
5442 { { case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_try") 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; }; then
5452 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5453 rm -f conftest2.*
5454 if { { case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5459 $as_echo "$ac_try_echo"; } >&5
5460 (eval "$ac_try") 2>&5
5461 ac_status=$?
5462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; } &&
5464 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 $as_echo "$ac_try_echo"; } >&5
5470 (eval "$ac_try") 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; };
5474 then
5475 # cc works too.
5477 else
5478 # cc exists but doesn't like -o.
5479 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5483 else
5484 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5486 rm -f core conftest*
5489 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5496 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5500 # FIXME: we rely on the cache variable name because
5501 # there is no other way.
5502 set dummy $CC
5503 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5504 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5505 if test "$am_t" != yes; then
5506 # Losing compiler, so override with the script.
5507 # FIXME: It is wrong to rewrite CC.
5508 # But if we don't then we get into trouble of one sort or another.
5509 # A longer-term fix would be to have automake use am__CC in this case,
5510 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5511 CC="$am_aux_dir/compile $CC"
5516 # Initialize gnulib right after verifying that the C compiler works.
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_RANLIB+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$RANLIB"; then
5526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5545 RANLIB=$ac_cv_prog_RANLIB
5546 if test -n "$RANLIB"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5548 $as_echo "$RANLIB" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5556 if test -z "$ac_cv_prog_RANLIB"; then
5557 ac_ct_RANLIB=$RANLIB
5558 # Extract the first word of "ranlib", so it can be a program name with args.
5559 set dummy ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$ac_ct_RANLIB"; then
5566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_RANLIB="ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5581 IFS=$as_save_IFS
5585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5586 if test -n "$ac_ct_RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5588 $as_echo "$ac_ct_RANLIB" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5594 if test "x$ac_ct_RANLIB" = x; then
5595 RANLIB=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598 yes:)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5602 esac
5603 RANLIB=$ac_ct_RANLIB
5605 else
5606 RANLIB="$ac_cv_prog_RANLIB"
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5617 # On Suns, sometimes $CPP names a directory.
5618 if test -n "$CPP" && test -d "$CPP"; then
5619 CPP=
5621 if test -z "$CPP"; then
5622 if ${ac_cv_prog_CPP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 # Double quotes because CPP needs to be expanded
5626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5628 ac_preproc_ok=false
5629 for ac_c_preproc_warn_flag in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #ifdef __STDC__
5640 # include <limits.h>
5641 #else
5642 # include <assert.h>
5643 #endif
5644 Syntax error
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5648 else
5649 # Broken: fails on valid input.
5650 continue
5652 rm -f conftest.err conftest.i conftest.$ac_ext
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5659 _ACEOF
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5661 # Broken: success on invalid input.
5662 continue
5663 else
5664 # Passes both tests.
5665 ac_preproc_ok=:
5666 break
5668 rm -f conftest.err conftest.i conftest.$ac_ext
5670 done
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.i conftest.err conftest.$ac_ext
5673 if $ac_preproc_ok; then :
5674 break
5677 done
5678 ac_cv_prog_CPP=$CPP
5681 CPP=$ac_cv_prog_CPP
5682 else
5683 ac_cv_prog_CPP=$CPP
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5686 $as_echo "$CPP" >&6; }
5687 ac_preproc_ok=false
5688 for ac_c_preproc_warn_flag in '' yes
5690 # Use a header file that comes with gcc, so configuring glibc
5691 # with a fresh cross-compiler works.
5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693 # <limits.h> exists even on freestanding compilers.
5694 # On the NeXT, cc -E runs the code through the compiler's parser,
5695 # not just through cpp. "Syntax error" is here to catch this case.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #ifdef __STDC__
5699 # include <limits.h>
5700 #else
5701 # include <assert.h>
5702 #endif
5703 Syntax error
5704 _ACEOF
5705 if ac_fn_c_try_cpp "$LINENO"; then :
5707 else
5708 # Broken: fails on valid input.
5709 continue
5711 rm -f conftest.err conftest.i conftest.$ac_ext
5713 # OK, works on sane cases. Now check whether nonexistent headers
5714 # can be detected and how.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5718 _ACEOF
5719 if ac_fn_c_try_cpp "$LINENO"; then :
5720 # Broken: success on invalid input.
5721 continue
5722 else
5723 # Passes both tests.
5724 ac_preproc_ok=:
5725 break
5727 rm -f conftest.err conftest.i conftest.$ac_ext
5729 done
5730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731 rm -f conftest.i conftest.err conftest.$ac_ext
5732 if $ac_preproc_ok; then :
5734 else
5735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5737 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5738 See \`config.log' for more details" "$LINENO" 5; }
5741 ac_ext=c
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5749 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5750 if ${ac_cv_path_GREP+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -z "$GREP"; then
5754 ac_path_GREP_found=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_prog in grep ggrep; do
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5765 # Check for GNU ac_path_GREP and select it if it is found.
5766 # Check for GNU $ac_path_GREP
5767 case `"$ac_path_GREP" --version 2>&1` in
5768 *GNU*)
5769 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5771 ac_count=0
5772 $as_echo_n 0123456789 >"conftest.in"
5773 while :
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'GREP' >> "conftest.nl"
5779 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_GREP="$ac_path_GREP"
5785 ac_path_GREP_max=$ac_count
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 esac
5793 $ac_path_GREP_found && break 3
5794 done
5795 done
5796 done
5797 IFS=$as_save_IFS
5798 if test -z "$ac_cv_path_GREP"; then
5799 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5801 else
5802 ac_cv_path_GREP=$GREP
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5807 $as_echo "$ac_cv_path_GREP" >&6; }
5808 GREP="$ac_cv_path_GREP"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5812 $as_echo_n "checking for egrep... " >&6; }
5813 if ${ac_cv_path_EGREP+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5817 then ac_cv_path_EGREP="$GREP -E"
5818 else
5819 if test -z "$EGREP"; then
5820 ac_path_EGREP_found=false
5821 # Loop through the user's path and test for each of PROGNAME-LIST
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_prog in egrep; do
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5831 # Check for GNU ac_path_EGREP and select it if it is found.
5832 # Check for GNU $ac_path_EGREP
5833 case `"$ac_path_EGREP" --version 2>&1` in
5834 *GNU*)
5835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5837 ac_count=0
5838 $as_echo_n 0123456789 >"conftest.in"
5839 while :
5841 cat "conftest.in" "conftest.in" >"conftest.tmp"
5842 mv "conftest.tmp" "conftest.in"
5843 cp "conftest.in" "conftest.nl"
5844 $as_echo 'EGREP' >> "conftest.nl"
5845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5847 as_fn_arith $ac_count + 1 && ac_count=$as_val
5848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5849 # Best one so far, save it but keep looking for a better one
5850 ac_cv_path_EGREP="$ac_path_EGREP"
5851 ac_path_EGREP_max=$ac_count
5853 # 10*(2^10) chars as input seems more than enough
5854 test $ac_count -gt 10 && break
5855 done
5856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5857 esac
5859 $ac_path_EGREP_found && break 3
5860 done
5861 done
5862 done
5863 IFS=$as_save_IFS
5864 if test -z "$ac_cv_path_EGREP"; then
5865 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5867 else
5868 ac_cv_path_EGREP=$EGREP
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5874 $as_echo "$ac_cv_path_EGREP" >&6; }
5875 EGREP="$ac_cv_path_EGREP"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5879 $as_echo_n "checking for ANSI C header files... " >&6; }
5880 if ${ac_cv_header_stdc+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <stdlib.h>
5886 #include <stdarg.h>
5887 #include <string.h>
5888 #include <float.h>
5891 main ()
5895 return 0;
5897 _ACEOF
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 ac_cv_header_stdc=yes
5900 else
5901 ac_cv_header_stdc=no
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 if test $ac_cv_header_stdc = yes; then
5906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <string.h>
5911 _ACEOF
5912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913 $EGREP "memchr" >/dev/null 2>&1; then :
5915 else
5916 ac_cv_header_stdc=no
5918 rm -f conftest*
5922 if test $ac_cv_header_stdc = yes; then
5923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <stdlib.h>
5928 _ACEOF
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "free" >/dev/null 2>&1; then :
5932 else
5933 ac_cv_header_stdc=no
5935 rm -f conftest*
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then :
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <ctype.h>
5947 #include <stdlib.h>
5948 #if ((' ' & 0x0FF) == 0x020)
5949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 #else
5952 # define ISLOWER(c) \
5953 (('a' <= (c) && (c) <= 'i') \
5954 || ('j' <= (c) && (c) <= 'r') \
5955 || ('s' <= (c) && (c) <= 'z'))
5956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5957 #endif
5959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5961 main ()
5963 int i;
5964 for (i = 0; i < 256; i++)
5965 if (XOR (islower (i), ISLOWER (i))
5966 || toupper (i) != TOUPPER (i))
5967 return 2;
5968 return 0;
5970 _ACEOF
5971 if ac_fn_c_try_run "$LINENO"; then :
5973 else
5974 ac_cv_header_stdc=no
5976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5977 conftest.$ac_objext conftest.beam conftest.$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5983 $as_echo "$ac_cv_header_stdc" >&6; }
5984 if test $ac_cv_header_stdc = yes; then
5986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5992 inttypes.h stdint.h unistd.h
5993 do :
5994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5998 cat >>confdefs.h <<_ACEOF
5999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000 _ACEOF
6004 done
6010 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6011 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6012 MINIX=yes
6013 else
6014 MINIX=
6018 if test "$MINIX" = yes; then
6020 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6023 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6026 $as_echo "#define _MINIX 1" >>confdefs.h
6030 case "$host_os" in
6031 hpux*)
6033 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6036 esac
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6040 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6041 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 # define __EXTENSIONS__ 1
6048 $ac_includes_default
6050 main ()
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058 ac_cv_safe_to_define___extensions__=yes
6059 else
6060 ac_cv_safe_to_define___extensions__=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6065 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6066 test $ac_cv_safe_to_define___extensions__ = yes &&
6067 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6069 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6071 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6073 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6075 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6086 # Code from module arg-nonnull:
6087 # Code from module c++defs:
6088 # Code from module crypto/md5:
6089 # Code from module dtoastr:
6090 # Code from module extensions:
6092 # Code from module getloadavg:
6093 # Code from module getopt-gnu:
6094 # Code from module getopt-posix:
6095 # Code from module gettext-h:
6096 # Code from module ignore-value:
6097 # Code from module include_next:
6098 # Code from module intprops:
6099 # Code from module mktime:
6100 # Code from module multiarch:
6101 # Code from module stdbool:
6102 # Code from module stddef:
6103 # Code from module stdint:
6104 # Code from module stdlib:
6105 # Code from module strftime:
6106 # Code from module time:
6107 # Code from module time_r:
6108 # Code from module unistd:
6109 # Code from module warn-on-use:
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6114 CPP=
6117 ## If not using gcc, and on Solaris, and no CPP specified, see if
6118 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6119 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6120 test x"$CPP" = x; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6122 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6123 if ${emacs_cv_sunpro_c+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6130 main ()
6132 #ifndef __SUNPRO_C
6133 fail;
6134 #endif
6137 return 0;
6139 _ACEOF
6140 if ac_fn_c_try_link "$LINENO"; then :
6141 emacs_cv_sunpro_c=yes
6142 else
6143 emacs_cv_sunpro_c=no
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6150 $as_echo "$emacs_cv_sunpro_c" >&6; }
6152 if test x"$emacs_cv_sunpro_c" = xyes; then
6153 NON_GNU_CPP="$CC -E -Xs"
6157 #### Some systems specify a CPP to use unless we are using GCC.
6158 #### Now that we know whether we are using GCC, we can decide whether
6159 #### to use that one.
6160 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6161 then
6162 CPP="$NON_GNU_CPP"
6165 #### Some systems specify a CC to use unless we are using GCC.
6166 #### Now that we know whether we are using GCC, we can decide whether
6167 #### to use that one.
6168 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6169 test x$cc_specified != xyes
6170 then
6171 CC="$NON_GNU_CC"
6174 if test x$GCC = xyes; then
6175 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6176 else
6177 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6180 ### Use -Wdeclaration-after-statement if the compiler supports it
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6182 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6183 SAVE_CFLAGS="$CFLAGS"
6184 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6189 main ()
6193 return 0;
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197 has_option=yes
6198 else
6199 has_option=no
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 if test $has_option = yes; then
6203 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6206 $as_echo "$has_option" >&6; }
6207 CFLAGS="$SAVE_CFLAGS"
6208 unset has_option
6209 unset SAVE_CFLAGS
6211 ### Use -Wold-style-definition if the compiler supports it
6212 # This can be removed when conversion to standard C is finished.
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6214 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6215 SAVE_CFLAGS="$CFLAGS"
6216 CFLAGS="$CFLAGS -Wold-style-definition"
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6221 main ()
6225 return 0;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"; then :
6229 has_option=yes
6230 else
6231 has_option=no
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 if test $has_option = yes; then
6235 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6238 $as_echo "$has_option" >&6; }
6239 CFLAGS="$SAVE_CFLAGS"
6240 unset has_option
6241 unset SAVE_CFLAGS
6243 ### Use -Wimplicit-function-declaration if the compiler supports it
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6245 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6246 SAVE_CFLAGS="$CFLAGS"
6247 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6252 main ()
6256 return 0;
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 has_option=yes
6261 else
6262 has_option=no
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $has_option = yes; then
6266 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6269 $as_echo "$has_option" >&6; }
6270 CFLAGS="$SAVE_CFLAGS"
6271 unset has_option
6272 unset SAVE_CFLAGS
6277 #### Some other nice autoconf tests.
6279 ac_ext=c
6280 ac_cpp='$CPP $CPPFLAGS'
6281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6285 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6286 # On Suns, sometimes $CPP names a directory.
6287 if test -n "$CPP" && test -d "$CPP"; then
6288 CPP=
6290 if test -z "$CPP"; then
6291 if ${ac_cv_prog_CPP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 # Double quotes because CPP needs to be expanded
6295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6297 ac_preproc_ok=false
6298 for ac_c_preproc_warn_flag in '' yes
6300 # Use a header file that comes with gcc, so configuring glibc
6301 # with a fresh cross-compiler works.
6302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303 # <limits.h> exists even on freestanding compilers.
6304 # On the NeXT, cc -E runs the code through the compiler's parser,
6305 # not just through cpp. "Syntax error" is here to catch this case.
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #ifdef __STDC__
6309 # include <limits.h>
6310 #else
6311 # include <assert.h>
6312 #endif
6313 Syntax error
6314 _ACEOF
6315 if ac_fn_c_try_cpp "$LINENO"; then :
6317 else
6318 # Broken: fails on valid input.
6319 continue
6321 rm -f conftest.err conftest.i conftest.$ac_ext
6323 # OK, works on sane cases. Now check whether nonexistent headers
6324 # can be detected and how.
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <ac_nonexistent.h>
6328 _ACEOF
6329 if ac_fn_c_try_cpp "$LINENO"; then :
6330 # Broken: success on invalid input.
6331 continue
6332 else
6333 # Passes both tests.
6334 ac_preproc_ok=:
6335 break
6337 rm -f conftest.err conftest.i conftest.$ac_ext
6339 done
6340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6341 rm -f conftest.i conftest.err conftest.$ac_ext
6342 if $ac_preproc_ok; then :
6343 break
6346 done
6347 ac_cv_prog_CPP=$CPP
6350 CPP=$ac_cv_prog_CPP
6351 else
6352 ac_cv_prog_CPP=$CPP
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6355 $as_echo "$CPP" >&6; }
6356 ac_preproc_ok=false
6357 for ac_c_preproc_warn_flag in '' yes
6359 # Use a header file that comes with gcc, so configuring glibc
6360 # with a fresh cross-compiler works.
6361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362 # <limits.h> exists even on freestanding compilers.
6363 # On the NeXT, cc -E runs the code through the compiler's parser,
6364 # not just through cpp. "Syntax error" is here to catch this case.
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 #ifdef __STDC__
6368 # include <limits.h>
6369 #else
6370 # include <assert.h>
6371 #endif
6372 Syntax error
6373 _ACEOF
6374 if ac_fn_c_try_cpp "$LINENO"; then :
6376 else
6377 # Broken: fails on valid input.
6378 continue
6380 rm -f conftest.err conftest.i conftest.$ac_ext
6382 # OK, works on sane cases. Now check whether nonexistent headers
6383 # can be detected and how.
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 #include <ac_nonexistent.h>
6387 _ACEOF
6388 if ac_fn_c_try_cpp "$LINENO"; then :
6389 # Broken: success on invalid input.
6390 continue
6391 else
6392 # Passes both tests.
6393 ac_preproc_ok=:
6394 break
6396 rm -f conftest.err conftest.i conftest.$ac_ext
6398 done
6399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6400 rm -f conftest.i conftest.err conftest.$ac_ext
6401 if $ac_preproc_ok; then :
6403 else
6404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6406 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6407 See \`config.log' for more details" "$LINENO" 5; }
6410 ac_ext=c
6411 ac_cpp='$CPP $CPPFLAGS'
6412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417 if test "x$RANLIB" = x; then
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_RANLIB+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$RANLIB"; then
6427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 RANLIB=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6449 $as_echo "$RANLIB" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458 ac_ct_RANLIB=$RANLIB
6459 # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$ac_ct_RANLIB"; then
6467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_RANLIB="ranlib"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6480 done
6481 done
6482 IFS=$as_save_IFS
6486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6489 $as_echo "$ac_ct_RANLIB" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6495 if test "x$ac_ct_RANLIB" = x; then
6496 RANLIB=":"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 RANLIB=$ac_ct_RANLIB
6506 else
6507 RANLIB="$ac_cv_prog_RANLIB"
6512 ## Although we're running on an amd64 kernel, we're actually compiling for
6513 ## the x86 architecture. The user should probably have provided an
6514 ## explicit --build to `configure', but if everything else than the kernel
6515 ## is running in i386 mode, we can help them out.
6516 if test "$machine" = "amdx86-64"; then
6517 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6518 if test "x$ac_cv_have_decl_i386" = xyes; then :
6522 if test "$ac_cv_have_decl_i386" = "yes"; then
6523 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6524 machine=intel386
6525 machfile="m/${machine}.h"
6529 # Extract the first word of "install-info", so it can be a program name with args.
6530 set dummy install-info; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 case $INSTALL_INFO in
6537 [\\/]* | ?:[\\/]*)
6538 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6557 esac
6559 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6560 if test -n "$INSTALL_INFO"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6562 $as_echo "$INSTALL_INFO" >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6569 # Extract the first word of "install-info", so it can be a program name with args.
6570 set dummy install-info; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 case $INSTALL_INFO in
6577 [\\/]* | ?:[\\/]*)
6578 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in /usr/sbin
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6597 esac
6599 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6600 if test -n "$INSTALL_INFO"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6602 $as_echo "$INSTALL_INFO" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6609 # Extract the first word of "install-info", so it can be a program name with args.
6610 set dummy install-info; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 case $INSTALL_INFO in
6617 [\\/]* | ?:[\\/]*)
6618 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in /sbin
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6632 done
6633 done
6634 IFS=$as_save_IFS
6636 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6638 esac
6640 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6641 if test -n "$INSTALL_INFO"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6643 $as_echo "$INSTALL_INFO" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6650 # Extract the first word of "gzip", so it can be a program name with args.
6651 set dummy gzip; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_path_GZIP_PROG+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 case $GZIP_PROG in
6658 [\\/]* | ?:[\\/]*)
6659 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6673 done
6674 done
6675 IFS=$as_save_IFS
6678 esac
6680 GZIP_PROG=$ac_cv_path_GZIP_PROG
6681 if test -n "$GZIP_PROG"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6683 $as_echo "$GZIP_PROG" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6692 ## Need makeinfo >= 4.6 (?) to build the manuals.
6693 # Extract the first word of "makeinfo", so it can be a program name with args.
6694 set dummy makeinfo; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_path_MAKEINFO+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 case $MAKEINFO in
6701 [\\/]* | ?:[\\/]*)
6702 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6720 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6722 esac
6724 MAKEINFO=$ac_cv_path_MAKEINFO
6725 if test -n "$MAKEINFO"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6727 $as_echo "$MAKEINFO" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6734 if test "$MAKEINFO" != "no" && \
6735 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
6736 MAKEINFO=no
6739 ## Makeinfo is unusual. For a released Emacs, the manuals are
6740 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6741 ## therefore in the category of "special tools" not normally required, which
6742 ## configure does not have to check for (eg autoconf itself).
6743 ## In a Bazaar checkout on the other hand, the manuals are not included.
6744 ## So makeinfo is a requirement to build from Bazaar, and configure
6745 ## should test for it as it does for any other build requirement.
6746 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6747 ## with pre-built manuals, from a Bazaar checkout.
6748 HAVE_MAKEINFO=yes
6750 if test "$MAKEINFO" = "no"; then
6751 MAKEINFO=makeinfo
6752 if test "x${with_makeinfo}" = "xno"; then
6753 HAVE_MAKEINFO=no
6754 elif test ! -e $srcdir/info/emacs; then
6755 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6756 source tree does not seem to have pre-built manuals in the \`info' directory.
6757 Either install a suitable version of makeinfo, or re-run configure
6758 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6764 if test x$GCC = xyes; then
6765 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6766 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6767 else
6768 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6769 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6773 late_LDFLAGS=$LDFLAGS
6774 if test x$GCC = xyes; then
6775 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6776 else
6777 LDFLAGS="$LDFLAGS -znocombreloc"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6781 $as_echo_n "checking for -znocombreloc... " >&6; }
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6786 main ()
6790 return 0;
6792 _ACEOF
6793 if ac_fn_c_try_link "$LINENO"; then :
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6795 $as_echo "yes" >&6; }
6796 else
6797 LDFLAGS=$late_LDFLAGS
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6801 rm -f core conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6805 # The value of CPP is a quoted variable reference, so we need to do this
6806 # to get its actual value...
6807 CPP=`eval "echo $CPP"`
6810 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6811 case "$opsys" in
6812 your-opsys-here) CANNOT_DUMP=yes ;;
6813 esac
6815 test "$CANNOT_DUMP" = "yes" && \
6817 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6823 UNEXEC_OBJ=unexelf.o
6824 case "$opsys" in
6825 # MSDOS uses unexcoff.o
6826 # MSWindows uses unexw32.o
6827 aix4-2)
6828 UNEXEC_OBJ=unexaix.o
6830 cygwin)
6831 UNEXEC_OBJ=unexcw.o
6833 darwin)
6834 UNEXEC_OBJ=unexmacosx.o
6836 hpux10-20 | hpux11)
6837 UNEXEC_OBJ=unexhp9k800.o
6839 sol2-10)
6840 # Use the Solaris dldump() function, called from unexsol.c, to dump
6841 # emacs, instead of the generic ELF dump code found in unexelf.c.
6842 # The resulting binary has a complete symbol table, and is better
6843 # for debugging and other observability tools (debuggers, pstack, etc).
6845 # If you encounter a problem using dldump(), please consider sending
6846 # a message to the OpenSolaris tools-linking mailing list:
6847 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6849 # It is likely that dldump() works with older Solaris too, but this has
6850 # not been tested, so for now this change is for Solaris 10 or newer.
6851 UNEXEC_OBJ=unexsol.o
6853 esac
6855 LD_SWITCH_SYSTEM=
6856 case "$opsys" in
6857 freebsd)
6858 ## Let `ld' find image libs and similar things in /usr/local/lib.
6859 ## The system compiler, GCC, has apparently been modified to not
6860 ## look there, contrary to what a stock GCC would do.
6861 LD_SWITCH_SYSTEM=-L/usr/local/lib
6864 gnu-linux)
6865 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6866 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6869 netbsd)
6870 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6873 openbsd)
6874 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6875 ## otherwise Emacs dumps core on elf systems.
6876 LD_SWITCH_SYSTEM="-Z"
6878 esac
6881 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6883 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6884 ## which has not been defined yet. When this was handled with cpp,
6885 ## it was expanded to null when configure sourced the s/*.h file.
6886 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6887 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6888 ## (or somesuch), but because it is supposed to go at the _front_
6889 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6890 ## Compare with the gnu-linux case below, which added to the end
6891 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6892 ## LD_SWITCH_SYSTEM_TEMACS.
6893 case "$opsys" in
6894 netbsd|openbsd)
6895 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6896 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6897 esac
6900 C_SWITCH_MACHINE=
6901 if test "$machine" = "alpha"; then
6902 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6903 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6907 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6908 ## With ELF, make sure that all common symbols get allocated to in the
6909 ## data section. Otherwise, the dump of temacs may miss variables in
6910 ## the shared library that have been initialized. For example, with
6911 ## GNU libc, __malloc_initialized would normally be resolved to the
6912 ## shared library's .bss section, which is fatal.
6913 if test "x$GCC" = "xyes"; then
6914 C_SWITCH_MACHINE="-fno-common"
6915 else
6916 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6918 else
6919 UNEXEC_OBJ=unexalpha.o
6926 C_SWITCH_SYSTEM=
6927 ## Some programs in src produce warnings saying certain subprograms
6928 ## are too complex and need a MAXMEM value greater than 2000 for
6929 ## additional optimization. --nils@exp-math.uni-essen.de
6930 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6931 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6932 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6933 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6937 LIBS_SYSTEM=
6938 case "$opsys" in
6939 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6940 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6942 freebsd) LIBS_SYSTEM="-lutil" ;;
6944 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6946 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6948 ## Motif needs -lgen.
6949 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6950 esac
6954 ### Make sure subsequent tests use flags consistent with the build flags.
6956 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6957 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6958 else
6959 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6962 # Check whether --enable-largefile was given.
6963 if test "${enable_largefile+set}" = set; then :
6964 enableval=$enable_largefile;
6967 if test "$enable_largefile" != no; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6970 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6971 if ${ac_cv_sys_largefile_CC+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 ac_cv_sys_largefile_CC=no
6975 if test "$GCC" != yes; then
6976 ac_save_CC=$CC
6977 while :; do
6978 # IRIX 6.2 and later do not support large files by default,
6979 # so use the C compiler's -n32 option if that helps.
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 #include <sys/types.h>
6983 /* Check that off_t can represent 2**63 - 1 correctly.
6984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6985 since some C++ compilers masquerading as C compilers
6986 incorrectly reject 9223372036854775807. */
6987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6989 && LARGE_OFF_T % 2147483647 == 1)
6990 ? 1 : -1];
6992 main ()
6996 return 0;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"; then :
7000 break
7002 rm -f core conftest.err conftest.$ac_objext
7003 CC="$CC -n32"
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 ac_cv_sys_largefile_CC=' -n32'; break
7007 rm -f core conftest.err conftest.$ac_objext
7008 break
7009 done
7010 CC=$ac_save_CC
7011 rm -f conftest.$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7015 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7016 if test "$ac_cv_sys_largefile_CC" != no; then
7017 CC=$CC$ac_cv_sys_largefile_CC
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7021 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7022 if ${ac_cv_sys_file_offset_bits+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 while :; do
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 #include <sys/types.h>
7029 /* Check that off_t can represent 2**63 - 1 correctly.
7030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7031 since some C++ compilers masquerading as C compilers
7032 incorrectly reject 9223372036854775807. */
7033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7035 && LARGE_OFF_T % 2147483647 == 1)
7036 ? 1 : -1];
7038 main ()
7042 return 0;
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"; then :
7046 ac_cv_sys_file_offset_bits=no; break
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 #define _FILE_OFFSET_BITS 64
7052 #include <sys/types.h>
7053 /* Check that off_t can represent 2**63 - 1 correctly.
7054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7055 since some C++ compilers masquerading as C compilers
7056 incorrectly reject 9223372036854775807. */
7057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7059 && LARGE_OFF_T % 2147483647 == 1)
7060 ? 1 : -1];
7062 main ()
7066 return 0;
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 ac_cv_sys_file_offset_bits=64; break
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 ac_cv_sys_file_offset_bits=unknown
7074 break
7075 done
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7078 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7079 case $ac_cv_sys_file_offset_bits in #(
7080 no | unknown) ;;
7082 cat >>confdefs.h <<_ACEOF
7083 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7084 _ACEOF
7086 esac
7087 rm -rf conftest*
7088 if test $ac_cv_sys_file_offset_bits = unknown; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7090 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7091 if ${ac_cv_sys_large_files+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 while :; do
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 /* Check that off_t can represent 2**63 - 1 correctly.
7099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100 since some C++ compilers masquerading as C compilers
7101 incorrectly reject 9223372036854775807. */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104 && LARGE_OFF_T % 2147483647 == 1)
7105 ? 1 : -1];
7107 main ()
7111 return 0;
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 ac_cv_sys_large_files=no; break
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #define _LARGE_FILES 1
7121 #include <sys/types.h>
7122 /* Check that off_t can represent 2**63 - 1 correctly.
7123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7124 since some C++ compilers masquerading as C compilers
7125 incorrectly reject 9223372036854775807. */
7126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7128 && LARGE_OFF_T % 2147483647 == 1)
7129 ? 1 : -1];
7131 main ()
7135 return 0;
7137 _ACEOF
7138 if ac_fn_c_try_compile "$LINENO"; then :
7139 ac_cv_sys_large_files=1; break
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 ac_cv_sys_large_files=unknown
7143 break
7144 done
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7147 $as_echo "$ac_cv_sys_large_files" >&6; }
7148 case $ac_cv_sys_large_files in #(
7149 no | unknown) ;;
7151 cat >>confdefs.h <<_ACEOF
7152 #define _LARGE_FILES $ac_cv_sys_large_files
7153 _ACEOF
7155 esac
7156 rm -rf conftest*
7162 ## If user specified a crt-dir, use that unconditionally.
7163 if test "X$CRT_DIR" = "X"; then
7165 case "$canonical" in
7166 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7167 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7168 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7169 ## For anything else (eg /usr/lib32), it is up the user to specify
7170 ## the location (bug#5655).
7171 ## Test for crtn.o, not just the directory, because sometimes the
7172 ## directory exists but does not have the relevant files (bug#1287).
7173 ## FIXME better to test for binary compatibility somehow.
7174 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7177 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7178 esac
7180 case "$opsys" in
7181 hpux10-20) CRT_DIR=/lib ;;
7182 esac
7184 ## Default is /usr/lib.
7185 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7187 else
7189 ## Some platforms don't use any of these files, so it is not
7190 ## appropriate to put this test outside the if block.
7191 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7192 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7198 LIB_MATH=-lm
7199 LIB_STANDARD=
7200 START_FILES=
7202 case $opsys in
7203 cygwin )
7204 LIB_MATH=
7205 START_FILES='pre-crt0.o'
7207 darwin )
7208 ## Adding -lm confuses the dynamic linker, so omit it.
7209 LIB_MATH=
7210 START_FILES='pre-crt0.o'
7212 freebsd )
7213 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7214 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7216 gnu-linux | gnu-kfreebsd )
7217 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7218 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7220 hpux10-20 | hpux11 )
7221 LIB_STANDARD=-lc
7222 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7224 netbsd | openbsd )
7225 if test -f $CRT_DIR/crti.o; then
7226 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7227 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7228 else
7229 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7230 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7233 esac
7241 if test "${with_sound}" != "no"; then
7242 # Sound support for GNU/Linux and the free BSDs.
7243 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7244 do :
7245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7246 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7248 cat >>confdefs.h <<_ACEOF
7249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7250 _ACEOF
7251 have_sound_header=yes
7254 done
7256 # Emulation library used on NetBSD.
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7258 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7259 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lossaudio $LIBS"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7270 #ifdef __cplusplus
7271 extern "C"
7272 #endif
7273 char _oss_ioctl ();
7275 main ()
7277 return _oss_ioctl ();
7279 return 0;
7281 _ACEOF
7282 if ac_fn_c_try_link "$LINENO"; then :
7283 ac_cv_lib_ossaudio__oss_ioctl=yes
7284 else
7285 ac_cv_lib_ossaudio__oss_ioctl=no
7287 rm -f core conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289 LIBS=$ac_check_lib_save_LIBS
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7292 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7293 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7294 LIBSOUND=-lossaudio
7295 else
7296 LIBSOUND=
7301 ALSA_REQUIRED=1.0.0
7302 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7304 succeeded=no
7306 # Extract the first word of "pkg-config", so it can be a program name with args.
7307 set dummy pkg-config; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 case $PKG_CONFIG in
7314 [\\/]* | ?:[\\/]*)
7315 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7329 done
7330 done
7331 IFS=$as_save_IFS
7333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7335 esac
7337 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7338 if test -n "$PKG_CONFIG"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7340 $as_echo "$PKG_CONFIG" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7348 if test "$PKG_CONFIG" = "no" ; then
7349 HAVE_ALSA=no
7350 else
7351 PKG_CONFIG_MIN_VERSION=0.9.0
7352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7354 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7356 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 $as_echo "yes" >&6; }
7359 succeeded=yes
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7362 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7363 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7365 $as_echo "$ALSA_CFLAGS" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7368 $as_echo_n "checking ALSA_LIBS... " >&6; }
7369 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7371 $as_echo "$ALSA_LIBS" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 ALSA_CFLAGS=""
7376 ALSA_LIBS=""
7377 ## If we have a custom action on failure, don't print errors, but
7378 ## do set a variable so people can do so.
7379 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7385 else
7386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7391 if test $succeeded = yes; then
7392 HAVE_ALSA=yes
7393 else
7394 HAVE_ALSA=no
7397 if test $HAVE_ALSA = yes; then
7398 SAVE_CFLAGS="$CFLAGS"
7399 SAVE_LDFLAGS="$LDFLAGS"
7400 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7401 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <asoundlib.h>
7406 main ()
7408 snd_lib_error_set_handler (0);
7410 return 0;
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 emacs_alsa_normal=yes
7415 else
7416 emacs_alsa_normal=no
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 if test "$emacs_alsa_normal" != yes; then
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <alsa/asoundlib.h>
7424 main ()
7426 snd_lib_error_set_handler (0);
7428 return 0;
7430 _ACEOF
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432 emacs_alsa_subdir=yes
7433 else
7434 emacs_alsa_subdir=no
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 if test "$emacs_alsa_subdir" != yes; then
7438 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7440 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7443 CFLAGS="$SAVE_CFLAGS"
7444 LDFLAGS="$SAVE_LDFLAGS"
7445 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7446 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7448 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7452 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7453 case "$opsys" in
7454 gnu-linux|freebsd|netbsd)
7456 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7459 esac
7465 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7466 linux/version.h sys/systeminfo.h limits.h \
7467 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7468 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7469 sys/utsname.h pwd.h utmp.h dirent.h util.h
7470 do :
7471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7474 cat >>confdefs.h <<_ACEOF
7475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7476 _ACEOF
7480 done
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7484 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <sys/personality.h>
7489 main ()
7491 personality (PER_LINUX32)
7493 return 0;
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 emacs_cv_personality_linux32=yes
7498 else
7499 emacs_cv_personality_linux32=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7503 $as_echo "$emacs_cv_personality_linux32" >&6; }
7505 if test $emacs_cv_personality_linux32 = yes; then
7507 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7511 for ac_header in term.h
7512 do :
7513 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7514 if test "x$ac_cv_header_term_h" = xyes; then :
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_TERM_H 1
7517 _ACEOF
7521 done
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7524 $as_echo_n "checking for ANSI C header files... " >&6; }
7525 if ${ac_cv_header_stdc+:} false; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 #include <stdlib.h>
7531 #include <stdarg.h>
7532 #include <string.h>
7533 #include <float.h>
7536 main ()
7540 return 0;
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 ac_cv_header_stdc=yes
7545 else
7546 ac_cv_header_stdc=no
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 if test $ac_cv_header_stdc = yes; then
7551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 #include <string.h>
7556 _ACEOF
7557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7558 $EGREP "memchr" >/dev/null 2>&1; then :
7560 else
7561 ac_cv_header_stdc=no
7563 rm -f conftest*
7567 if test $ac_cv_header_stdc = yes; then
7568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 #include <stdlib.h>
7573 _ACEOF
7574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7575 $EGREP "free" >/dev/null 2>&1; then :
7577 else
7578 ac_cv_header_stdc=no
7580 rm -f conftest*
7584 if test $ac_cv_header_stdc = yes; then
7585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7586 if test "$cross_compiling" = yes; then :
7588 else
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <ctype.h>
7592 #include <stdlib.h>
7593 #if ((' ' & 0x0FF) == 0x020)
7594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7596 #else
7597 # define ISLOWER(c) \
7598 (('a' <= (c) && (c) <= 'i') \
7599 || ('j' <= (c) && (c) <= 'r') \
7600 || ('s' <= (c) && (c) <= 'z'))
7601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7602 #endif
7604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7606 main ()
7608 int i;
7609 for (i = 0; i < 256; i++)
7610 if (XOR (islower (i), ISLOWER (i))
7611 || toupper (i) != TOUPPER (i))
7612 return 2;
7613 return 0;
7615 _ACEOF
7616 if ac_fn_c_try_run "$LINENO"; then :
7618 else
7619 ac_cv_header_stdc=no
7621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7622 conftest.$ac_objext conftest.beam conftest.$ac_ext
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7628 $as_echo "$ac_cv_header_stdc" >&6; }
7629 if test $ac_cv_header_stdc = yes; then
7631 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7636 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7637 if ${ac_cv_header_time+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <sys/time.h>
7644 #include <time.h>
7647 main ()
7649 if ((struct tm *) 0)
7650 return 0;
7652 return 0;
7654 _ACEOF
7655 if ac_fn_c_try_compile "$LINENO"; then :
7656 ac_cv_header_time=yes
7657 else
7658 ac_cv_header_time=no
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7663 $as_echo "$ac_cv_header_time" >&6; }
7664 if test $ac_cv_header_time = yes; then
7666 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7670 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7671 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7672 ac_have_decl=1
7673 else
7674 ac_have_decl=0
7677 cat >>confdefs.h <<_ACEOF
7678 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7679 _ACEOF
7681 if test $ac_cv_have_decl_sys_siglist != yes; then
7682 # For Tru64, at least:
7683 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7684 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7685 ac_have_decl=1
7686 else
7687 ac_have_decl=0
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7692 _ACEOF
7694 if test $ac_cv_have_decl___sys_siglist = yes; then
7696 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7701 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7702 if ${ac_cv_header_sys_wait_h+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 #include <sys/types.h>
7708 #include <sys/wait.h>
7709 #ifndef WEXITSTATUS
7710 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7711 #endif
7712 #ifndef WIFEXITED
7713 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7714 #endif
7717 main ()
7719 int s;
7720 wait (&s);
7721 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7723 return 0;
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 ac_cv_header_sys_wait_h=yes
7728 else
7729 ac_cv_header_sys_wait_h=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7734 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7735 if test $ac_cv_header_sys_wait_h = yes; then
7737 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7743 $as_echo_n "checking for struct utimbuf... " >&6; }
7744 if ${emacs_cv_struct_utimbuf+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 #ifdef TIME_WITH_SYS_TIME
7750 #include <sys/time.h>
7751 #include <time.h>
7752 #else
7753 #ifdef HAVE_SYS_TIME_H
7754 #include <sys/time.h>
7755 #else
7756 #include <time.h>
7757 #endif
7758 #endif
7759 #ifdef HAVE_UTIME_H
7760 #include <utime.h>
7761 #endif
7763 main ()
7765 static struct utimbuf x; x.actime = x.modtime;
7767 return 0;
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771 emacs_cv_struct_utimbuf=yes
7772 else
7773 emacs_cv_struct_utimbuf=no
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7778 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7779 if test $emacs_cv_struct_utimbuf = yes; then
7781 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7786 $as_echo_n "checking return type of signal handlers... " >&6; }
7787 if ${ac_cv_type_signal+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 #include <sys/types.h>
7793 #include <signal.h>
7796 main ()
7798 return *(signal (0, 0)) (0) == 1;
7800 return 0;
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804 ac_cv_type_signal=int
7805 else
7806 ac_cv_type_signal=void
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7811 $as_echo "$ac_cv_type_signal" >&6; }
7813 cat >>confdefs.h <<_ACEOF
7814 #define RETSIGTYPE $ac_cv_type_signal
7815 _ACEOF
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7820 $as_echo_n "checking for speed_t... " >&6; }
7821 if ${emacs_cv_speed_t+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <termios.h>
7828 main ()
7830 speed_t x = 1;
7832 return 0;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"; then :
7836 emacs_cv_speed_t=yes
7837 else
7838 emacs_cv_speed_t=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7843 $as_echo "$emacs_cv_speed_t" >&6; }
7844 if test $emacs_cv_speed_t = yes; then
7846 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7851 $as_echo_n "checking for struct timeval... " >&6; }
7852 if ${emacs_cv_struct_timeval+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #ifdef TIME_WITH_SYS_TIME
7858 #include <sys/time.h>
7859 #include <time.h>
7860 #else
7861 #ifdef HAVE_SYS_TIME_H
7862 #include <sys/time.h>
7863 #else
7864 #include <time.h>
7865 #endif
7866 #endif
7868 main ()
7870 static struct timeval x; x.tv_sec = x.tv_usec;
7872 return 0;
7874 _ACEOF
7875 if ac_fn_c_try_compile "$LINENO"; then :
7876 emacs_cv_struct_timeval=yes
7877 else
7878 emacs_cv_struct_timeval=no
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7883 $as_echo "$emacs_cv_struct_timeval" >&6; }
7884 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7885 if test $emacs_cv_struct_timeval = yes; then
7887 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7892 $as_echo_n "checking for struct exception... " >&6; }
7893 if ${emacs_cv_struct_exception+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <math.h>
7900 main ()
7902 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7904 return 0;
7906 _ACEOF
7907 if ac_fn_c_try_compile "$LINENO"; then :
7908 emacs_cv_struct_exception=yes
7909 else
7910 emacs_cv_struct_exception=no
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7915 $as_echo "$emacs_cv_struct_exception" >&6; }
7916 HAVE_EXCEPTION=$emacs_cv_struct_exception
7917 if test $emacs_cv_struct_exception != yes; then
7919 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7923 for ac_header in sys/socket.h
7924 do :
7925 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7926 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7927 cat >>confdefs.h <<_ACEOF
7928 #define HAVE_SYS_SOCKET_H 1
7929 _ACEOF
7933 done
7935 for ac_header in net/if.h
7936 do :
7937 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7938 #if HAVE_SYS_SOCKET_H
7939 #include <sys/socket.h>
7940 #endif
7942 if test "x$ac_cv_header_net_if_h" = xyes; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_NET_IF_H 1
7945 _ACEOF
7949 done
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7953 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7954 if ${ac_cv_struct_tm+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 #include <sys/types.h>
7960 #include <time.h>
7963 main ()
7965 struct tm tm;
7966 int *p = &tm.tm_sec;
7967 return !p;
7969 return 0;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"; then :
7973 ac_cv_struct_tm=time.h
7974 else
7975 ac_cv_struct_tm=sys/time.h
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7980 $as_echo "$ac_cv_struct_tm" >&6; }
7981 if test $ac_cv_struct_tm = sys/time.h; then
7983 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7987 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7988 #include <$ac_cv_struct_tm>
7991 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7993 cat >>confdefs.h <<_ACEOF
7994 #define HAVE_STRUCT_TM_TM_ZONE 1
7995 _ACEOF
8000 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8002 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8004 else
8005 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8007 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8008 ac_have_decl=1
8009 else
8010 ac_have_decl=0
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_DECL_TZNAME $ac_have_decl
8015 _ACEOF
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8018 $as_echo_n "checking for tzname... " >&6; }
8019 if ${ac_cv_var_tzname+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 #include <time.h>
8025 #if !HAVE_DECL_TZNAME
8026 extern char *tzname[];
8027 #endif
8030 main ()
8032 return tzname[0][0];
8034 return 0;
8036 _ACEOF
8037 if ac_fn_c_try_link "$LINENO"; then :
8038 ac_cv_var_tzname=yes
8039 else
8040 ac_cv_var_tzname=no
8042 rm -f core conftest.err conftest.$ac_objext \
8043 conftest$ac_exeext conftest.$ac_ext
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8046 $as_echo "$ac_cv_var_tzname" >&6; }
8047 if test $ac_cv_var_tzname = yes; then
8049 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8054 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8056 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
8058 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8062 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8063 #if HAVE_SYS_SOCKET_H
8064 #include <sys/socket.h>
8065 #endif
8066 #if HAVE_NET_IF_H
8067 #include <net/if.h>
8068 #endif
8070 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
8072 cat >>confdefs.h <<_ACEOF
8073 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8074 _ACEOF
8078 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8079 #if HAVE_SYS_SOCKET_H
8080 #include <sys/socket.h>
8081 #endif
8082 #if HAVE_NET_IF_H
8083 #include <net/if.h>
8084 #endif
8086 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
8088 cat >>confdefs.h <<_ACEOF
8089 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8090 _ACEOF
8094 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8095 #if HAVE_SYS_SOCKET_H
8096 #include <sys/socket.h>
8097 #endif
8098 #if HAVE_NET_IF_H
8099 #include <net/if.h>
8100 #endif
8102 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
8104 cat >>confdefs.h <<_ACEOF
8105 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8106 _ACEOF
8110 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8111 #if HAVE_SYS_SOCKET_H
8112 #include <sys/socket.h>
8113 #endif
8114 #if HAVE_NET_IF_H
8115 #include <net/if.h>
8116 #endif
8118 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
8120 cat >>confdefs.h <<_ACEOF
8121 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8122 _ACEOF
8126 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8127 #if HAVE_SYS_SOCKET_H
8128 #include <sys/socket.h>
8129 #endif
8130 #if HAVE_NET_IF_H
8131 #include <net/if.h>
8132 #endif
8134 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
8136 cat >>confdefs.h <<_ACEOF
8137 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8138 _ACEOF
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8146 $as_echo_n "checking for function prototypes... " >&6; }
8147 if test "$ac_cv_prog_cc_c89" != no; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149 $as_echo "yes" >&6; }
8151 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8154 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8162 $as_echo_n "checking for working volatile... " >&6; }
8163 if ${ac_cv_c_volatile+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8170 main ()
8173 volatile int x;
8174 int * volatile y = (int *) 0;
8175 return !x && !y;
8177 return 0;
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 ac_cv_c_volatile=yes
8182 else
8183 ac_cv_c_volatile=no
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8188 $as_echo "$ac_cv_c_volatile" >&6; }
8189 if test $ac_cv_c_volatile = no; then
8191 $as_echo "#define volatile /**/" >>confdefs.h
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8196 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8197 if ${ac_cv_c_const+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8204 main ()
8206 /* FIXME: Include the comments suggested by Paul. */
8207 #ifndef __cplusplus
8208 /* Ultrix mips cc rejects this. */
8209 typedef int charset[2];
8210 const charset cs;
8211 /* SunOS 4.1.1 cc rejects this. */
8212 char const *const *pcpcc;
8213 char **ppc;
8214 /* NEC SVR4.0.2 mips cc rejects this. */
8215 struct point {int x, y;};
8216 static struct point const zero = {0,0};
8217 /* AIX XL C 1.02.0.0 rejects this.
8218 It does not let you subtract one const X* pointer from another in
8219 an arm of an if-expression whose if-part is not a constant
8220 expression */
8221 const char *g = "string";
8222 pcpcc = &g + (g ? g-g : 0);
8223 /* HPUX 7.0 cc rejects these. */
8224 ++pcpcc;
8225 ppc = (char**) pcpcc;
8226 pcpcc = (char const *const *) ppc;
8227 { /* SCO 3.2v4 cc rejects this. */
8228 char *t;
8229 char const *s = 0 ? (char *) 0 : (char const *) 0;
8231 *t++ = 0;
8232 if (s) return 0;
8234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8235 int x[] = {25, 17};
8236 const int *foo = &x[0];
8237 ++foo;
8239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8240 typedef const int *iptr;
8241 iptr p = 0;
8242 ++p;
8244 { /* AIX XL C 1.02.0.0 rejects this saying
8245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8246 struct s { int j; const int *ap[3]; };
8247 struct s *b; b->j = 5;
8249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8250 const int foo = 10;
8251 if (!foo) return 0;
8253 return !cs[0] && !zero.x;
8254 #endif
8257 return 0;
8259 _ACEOF
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261 ac_cv_c_const=yes
8262 else
8263 ac_cv_c_const=no
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8268 $as_echo "$ac_cv_c_const" >&6; }
8269 if test $ac_cv_c_const = no; then
8271 $as_echo "#define const /**/" >>confdefs.h
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8276 $as_echo_n "checking for void * support... " >&6; }
8277 if ${emacs_cv_void_star+:} false; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8284 main ()
8286 void * foo;
8288 return 0;
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 emacs_cv_void_star=yes
8293 else
8294 emacs_cv_void_star=no
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8299 $as_echo "$emacs_cv_void_star" >&6; }
8300 if test $emacs_cv_void_star = yes; then
8301 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8303 else
8304 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8309 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8310 if ${ac_cv_c_bigendian+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 ac_cv_c_bigendian=unknown
8314 # See if we're dealing with a universal compiler.
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 #ifndef __APPLE_CC__
8318 not a universal capable compiler
8319 #endif
8320 typedef int dummy;
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8325 # Check for potential -arch flags. It is not universal unless
8326 # there are at least two -arch flags with different values.
8327 ac_arch=
8328 ac_prev=
8329 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8330 if test -n "$ac_prev"; then
8331 case $ac_word in
8332 i?86 | x86_64 | ppc | ppc64)
8333 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8334 ac_arch=$ac_word
8335 else
8336 ac_cv_c_bigendian=universal
8337 break
8340 esac
8341 ac_prev=
8342 elif test "x$ac_word" = "x-arch"; then
8343 ac_prev=arch
8345 done
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 if test $ac_cv_c_bigendian = unknown; then
8349 # See if sys/param.h defines the BYTE_ORDER macro.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352 #include <sys/types.h>
8353 #include <sys/param.h>
8356 main ()
8358 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8359 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8360 && LITTLE_ENDIAN)
8361 bogus endian macros
8362 #endif
8365 return 0;
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 # It does; now see whether it defined to BIG_ENDIAN or not.
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <sys/types.h>
8373 #include <sys/param.h>
8376 main ()
8378 #if BYTE_ORDER != BIG_ENDIAN
8379 not big endian
8380 #endif
8383 return 0;
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 ac_cv_c_bigendian=yes
8388 else
8389 ac_cv_c_bigendian=no
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 if test $ac_cv_c_bigendian = unknown; then
8396 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <limits.h>
8402 main ()
8404 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8405 bogus endian macros
8406 #endif
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413 # It does; now see whether it defined to _BIG_ENDIAN or not.
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 #include <limits.h>
8419 main ()
8421 #ifndef _BIG_ENDIAN
8422 not big endian
8423 #endif
8426 return 0;
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430 ac_cv_c_bigendian=yes
8431 else
8432 ac_cv_c_bigendian=no
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 if test $ac_cv_c_bigendian = unknown; then
8439 # Compile a test program.
8440 if test "$cross_compiling" = yes; then :
8441 # Try to guess by grepping values from an object file.
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 short int ascii_mm[] =
8445 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8446 short int ascii_ii[] =
8447 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8448 int use_ascii (int i) {
8449 return ascii_mm[i] + ascii_ii[i];
8451 short int ebcdic_ii[] =
8452 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8453 short int ebcdic_mm[] =
8454 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8455 int use_ebcdic (int i) {
8456 return ebcdic_mm[i] + ebcdic_ii[i];
8458 extern int foo;
8461 main ()
8463 return use_ascii (foo) == use_ebcdic (foo);
8465 return 0;
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"; then :
8469 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8470 ac_cv_c_bigendian=yes
8472 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8473 if test "$ac_cv_c_bigendian" = unknown; then
8474 ac_cv_c_bigendian=no
8475 else
8476 # finding both strings is unlikely to happen, but who knows?
8477 ac_cv_c_bigendian=unknown
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 else
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 $ac_includes_default
8487 main ()
8490 /* Are we little or big endian? From Harbison&Steele. */
8491 union
8493 long int l;
8494 char c[sizeof (long int)];
8495 } u;
8496 u.l = 1;
8497 return u.c[sizeof (long int) - 1] == 1;
8500 return 0;
8502 _ACEOF
8503 if ac_fn_c_try_run "$LINENO"; then :
8504 ac_cv_c_bigendian=no
8505 else
8506 ac_cv_c_bigendian=yes
8508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8509 conftest.$ac_objext conftest.beam conftest.$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8515 $as_echo "$ac_cv_c_bigendian" >&6; }
8516 case $ac_cv_c_bigendian in #(
8517 yes)
8518 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8519 ;; #(
8521 ;; #(
8522 universal)
8524 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8526 ;; #(
8528 as_fn_error $? "unknown endianness
8529 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8530 esac
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8534 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8535 if ${emacs_cv_attribute_aligned+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 char __attribute__ ((__aligned__ (1 << 3))) c;
8542 main ()
8546 return 0;
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 emacs_cv_attribute_aligned=yes
8551 else
8552 emacs_cv_attribute_aligned=no
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8557 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8558 if test $emacs_cv_attribute_aligned = yes; then
8560 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8565 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8566 set x ${MAKE-make}
8567 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8568 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 cat >conftest.make <<\_ACEOF
8572 SHELL = /bin/sh
8573 all:
8574 @echo '@@@%%%=$(MAKE)=@@@%%%'
8575 _ACEOF
8576 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8577 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8578 *@@@%%%=?*=@@@%%%*)
8579 eval ac_cv_prog_make_${ac_make}_set=yes;;
8581 eval ac_cv_prog_make_${ac_make}_set=no;;
8582 esac
8583 rm -f conftest.make
8585 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8587 $as_echo "yes" >&6; }
8588 SET_MAKE=
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 SET_MAKE="MAKE=${MAKE-make}"
8596 DEPFLAGS=
8597 MKDEPDIR=":"
8598 deps_frag=deps.mk
8599 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8601 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8602 HAVE_GNU_MAKE=no
8603 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8604 if test "x$testval" != x; then
8605 HAVE_GNU_MAKE=yes
8606 else
8607 ac_enable_autodepend=no
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8610 $as_echo "$HAVE_GNU_MAKE" >&6; }
8611 if test $HAVE_GNU_MAKE = yes; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8613 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8614 SAVE_CFLAGS="$CFLAGS"
8615 CFLAGS="$CFLAGS -MMD -MF deps.d"
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8620 main ()
8624 return 0;
8626 _ACEOF
8627 if ac_fn_c_try_compile "$LINENO"; then :
8629 else
8630 ac_enable_autodepend=no
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 CFLAGS="$SAVE_CFLAGS"
8634 test -f deps.d || ac_enable_autodepend=no
8635 rm -rf deps.d
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8637 $as_echo "$ac_enable_autodepend" >&6; }
8639 if test $ac_enable_autodepend = yes; then
8640 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8641 ## In parallel builds, another make might create depdir between
8642 ## the first test and mkdir, so stick another test on the end.
8643 ## Or use mkinstalldirs? mkdir -p is not portable.
8644 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8645 deps_frag=autodeps.mk
8648 deps_frag=$srcdir/src/$deps_frag
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8655 $as_echo_n "checking for long file names... " >&6; }
8656 if ${ac_cv_sys_long_file_names+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 ac_cv_sys_long_file_names=yes
8660 # Test for long file names in all the places we know might matter:
8661 # . the current directory, where building will happen
8662 # $prefix/lib where we will be installing things
8663 # $exec_prefix/lib likewise
8664 # $TMPDIR if set, where it might want to write temporary files
8665 # /tmp where it might want to write temporary files
8666 # /var/tmp likewise
8667 # /usr/tmp likewise
8668 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8669 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8670 # in the usual case where exec_prefix is '${prefix}'.
8671 case $ac_dir in #(
8672 . | /* | ?:[\\/]*) ;; #(
8673 *) continue;;
8674 esac
8675 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8676 ac_xdir=$ac_dir/cf$$
8677 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8678 ac_tf1=$ac_xdir/conftest9012345
8679 ac_tf2=$ac_xdir/conftest9012346
8680 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8681 ac_cv_sys_long_file_names=no
8682 rm -f -r "$ac_xdir" 2>/dev/null
8683 test $ac_cv_sys_long_file_names = no && break
8684 done
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8687 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8688 if test $ac_cv_sys_long_file_names = yes; then
8690 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8695 #### Choose a window system.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8698 $as_echo_n "checking for X... " >&6; }
8701 # Check whether --with-x was given.
8702 if test "${with_x+set}" = set; then :
8703 withval=$with_x;
8706 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8707 if test "x$with_x" = xno; then
8708 # The user explicitly disabled X.
8709 have_x=disabled
8710 else
8711 case $x_includes,$x_libraries in #(
8712 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8713 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 # One or both of the vars are not set, and there is no cached value.
8717 ac_x_includes=no ac_x_libraries=no
8718 rm -f -r conftest.dir
8719 if mkdir conftest.dir; then
8720 cd conftest.dir
8721 cat >Imakefile <<'_ACEOF'
8722 incroot:
8723 @echo incroot='${INCROOT}'
8724 usrlibdir:
8725 @echo usrlibdir='${USRLIBDIR}'
8726 libdir:
8727 @echo libdir='${LIBDIR}'
8728 _ACEOF
8729 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8730 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8731 for ac_var in incroot usrlibdir libdir; do
8732 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8733 done
8734 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8735 for ac_extension in a so sl dylib la dll; do
8736 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8737 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8738 ac_im_usrlibdir=$ac_im_libdir; break
8740 done
8741 # Screen out bogus values from the imake configuration. They are
8742 # bogus both because they are the default anyway, and because
8743 # using them would break gcc on systems where it needs fixed includes.
8744 case $ac_im_incroot in
8745 /usr/include) ac_x_includes= ;;
8746 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8747 esac
8748 case $ac_im_usrlibdir in
8749 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8750 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8751 esac
8753 cd ..
8754 rm -f -r conftest.dir
8757 # Standard set of common directories for X headers.
8758 # Check X11 before X11Rn because it is often a symlink to the current release.
8759 ac_x_header_dirs='
8760 /usr/X11/include
8761 /usr/X11R7/include
8762 /usr/X11R6/include
8763 /usr/X11R5/include
8764 /usr/X11R4/include
8766 /usr/include/X11
8767 /usr/include/X11R7
8768 /usr/include/X11R6
8769 /usr/include/X11R5
8770 /usr/include/X11R4
8772 /usr/local/X11/include
8773 /usr/local/X11R7/include
8774 /usr/local/X11R6/include
8775 /usr/local/X11R5/include
8776 /usr/local/X11R4/include
8778 /usr/local/include/X11
8779 /usr/local/include/X11R7
8780 /usr/local/include/X11R6
8781 /usr/local/include/X11R5
8782 /usr/local/include/X11R4
8784 /usr/X386/include
8785 /usr/x386/include
8786 /usr/XFree86/include/X11
8788 /usr/include
8789 /usr/local/include
8790 /usr/unsupported/include
8791 /usr/athena/include
8792 /usr/local/x11r5/include
8793 /usr/lpp/Xamples/include
8795 /usr/openwin/include
8796 /usr/openwin/share/include'
8798 if test "$ac_x_includes" = no; then
8799 # Guess where to find include files, by looking for Xlib.h.
8800 # First, try using that file with no special directory specified.
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <X11/Xlib.h>
8804 _ACEOF
8805 if ac_fn_c_try_cpp "$LINENO"; then :
8806 # We can compile using X headers with no special include directory.
8807 ac_x_includes=
8808 else
8809 for ac_dir in $ac_x_header_dirs; do
8810 if test -r "$ac_dir/X11/Xlib.h"; then
8811 ac_x_includes=$ac_dir
8812 break
8814 done
8816 rm -f conftest.err conftest.i conftest.$ac_ext
8817 fi # $ac_x_includes = no
8819 if test "$ac_x_libraries" = no; then
8820 # Check for the libraries.
8821 # See if we find them without any special options.
8822 # Don't add to $LIBS permanently.
8823 ac_save_LIBS=$LIBS
8824 LIBS="-lX11 $LIBS"
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <X11/Xlib.h>
8829 main ()
8831 XrmInitialize ()
8833 return 0;
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837 LIBS=$ac_save_LIBS
8838 # We can link X programs with no special library path.
8839 ac_x_libraries=
8840 else
8841 LIBS=$ac_save_LIBS
8842 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8844 # Don't even attempt the hair of trying to link an X program!
8845 for ac_extension in a so sl dylib la dll; do
8846 if test -r "$ac_dir/libX11.$ac_extension"; then
8847 ac_x_libraries=$ac_dir
8848 break 2
8850 done
8851 done
8853 rm -f core conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext conftest.$ac_ext
8855 fi # $ac_x_libraries = no
8857 case $ac_x_includes,$ac_x_libraries in #(
8858 no,* | *,no | *\'*)
8859 # Didn't find X, or a directory has "'" in its name.
8860 ac_cv_have_x="have_x=no";; #(
8862 # Record where we found X for the cache.
8863 ac_cv_have_x="have_x=yes\
8864 ac_x_includes='$ac_x_includes'\
8865 ac_x_libraries='$ac_x_libraries'"
8866 esac
8868 ;; #(
8869 *) have_x=yes;;
8870 esac
8871 eval "$ac_cv_have_x"
8872 fi # $with_x != no
8874 if test "$have_x" != yes; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8876 $as_echo "$have_x" >&6; }
8877 no_x=yes
8878 else
8879 # If each of the values was on the command line, it overrides each guess.
8880 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8881 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8882 # Update the cache value to reflect the command line values.
8883 ac_cv_have_x="have_x=yes\
8884 ac_x_includes='$x_includes'\
8885 ac_x_libraries='$x_libraries'"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8887 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8890 if test "$no_x" = yes; then
8891 window_system=none
8892 else
8893 window_system=x11
8896 ## Workaround for bug in autoconf <= 2.62.
8897 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8898 ## No need to do anything special for these standard directories.
8899 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8901 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8905 LD_SWITCH_X_SITE_AUX=
8906 LD_SWITCH_X_SITE_AUX_RPATH=
8907 if test "${x_libraries}" != NONE; then
8908 if test -n "${x_libraries}"; then
8909 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8910 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8911 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8913 x_default_search_path=""
8914 x_search_path=${x_libraries}
8915 if test -z "${x_search_path}"; then
8916 x_search_path=/usr/lib
8918 for x_library in `echo ${x_search_path}: | \
8919 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8920 x_search_path="\
8921 ${x_library}/X11/%L/%T/%N%C%S:\
8922 ${x_library}/X11/%l/%T/%N%C%S:\
8923 ${x_library}/X11/%T/%N%C%S:\
8924 ${x_library}/X11/%L/%T/%N%S:\
8925 ${x_library}/X11/%l/%T/%N%S:\
8926 ${x_library}/X11/%T/%N%S"
8927 if test x"${x_default_search_path}" = x; then
8928 x_default_search_path=${x_search_path}
8929 else
8930 x_default_search_path="${x_search_path}:${x_default_search_path}"
8932 done
8937 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8938 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8941 if test x"${x_includes}" = x; then
8942 bitmapdir=/usr/include/X11/bitmaps
8943 else
8944 # accumulate include directories that have X11 bitmap subdirectories
8945 bmd_acc="dummyval"
8946 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8947 if test -d "${bmd}/X11/bitmaps"; then
8948 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8950 if test -d "${bmd}/bitmaps"; then
8951 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8953 done
8954 if test ${bmd_acc} != "dummyval"; then
8955 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8959 HAVE_NS=no
8960 NS_IMPL_COCOA=no
8961 NS_IMPL_GNUSTEP=no
8962 tmp_CPPFLAGS="$CPPFLAGS"
8963 tmp_CFLAGS="$CFLAGS"
8964 CPPFLAGS="$CPPFLAGS -x objective-c"
8965 CFLAGS="$CFLAGS -x objective-c"
8966 TEMACS_LDFLAGS2="\${LDFLAGS}"
8967 if test "${with_ns}" != no; then
8968 if test "${opsys}" = darwin; then
8969 NS_IMPL_COCOA=yes
8970 ns_appdir=`pwd`/nextstep/Emacs.app
8971 ns_appbindir=${ns_appdir}/Contents/MacOS/
8972 ns_appresdir=${ns_appdir}/Contents/Resources
8973 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8974 elif test -f $GNUSTEP_CONFIG_FILE; then
8975 NS_IMPL_GNUSTEP=yes
8976 ns_appdir=`pwd`/nextstep/Emacs.app
8977 ns_appbindir=${ns_appdir}/
8978 ns_appresdir=${ns_appdir}/Resources
8979 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8980 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8981 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8982 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8983 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8984 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8985 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8986 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8987 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8988 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8989 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8990 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8991 LIB_STANDARD=
8992 START_FILES=
8993 TEMACS_LDFLAGS2=
8995 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8996 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8997 HAVE_NS=yes
8998 else
8999 as_fn_error $? "\`--with-ns' was specified, but the include
9000 files are missing or cannot be compiled." "$LINENO" 5
9004 NS_HAVE_NSINTEGER=yes
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 #include <Foundation/NSObjCRuntime.h>
9009 main ()
9011 NSInteger i;
9013 return 0;
9015 _ACEOF
9016 if ac_fn_c_try_compile "$LINENO"; then :
9017 ns_have_nsinteger=yes
9018 else
9019 ns_have_nsinteger=no
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 if test $ns_have_nsinteger = no; then
9023 NS_HAVE_NSINTEGER=no
9028 ns_frag=/dev/null
9029 NS_OBJ=
9030 NS_OBJC_OBJ=
9031 NS_SUPPORT=
9032 if test "${HAVE_NS}" = yes; then
9033 window_system=nextstep
9034 with_xft=no
9035 # set up packaging dirs
9036 exec_prefix=${ns_appbindir}
9037 libexecdir=${ns_appbindir}/libexec
9038 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9039 prefix=${ns_appresdir}
9041 ns_frag=$srcdir/src/ns.mk
9042 NS_OBJ="fontset.o fringe.o image.o"
9043 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9044 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9046 CFLAGS="$tmp_CFLAGS"
9047 CPPFLAGS="$tmp_CPPFLAGS"
9054 case "${window_system}" in
9055 x11 )
9056 HAVE_X_WINDOWS=yes
9057 HAVE_X11=yes
9058 case "${with_x_toolkit}" in
9059 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9060 motif ) USE_X_TOOLKIT=MOTIF ;;
9061 gtk ) with_gtk=yes
9062 USE_X_TOOLKIT=none ;;
9063 gtk3 ) with_gtk3=yes
9064 USE_X_TOOLKIT=none ;;
9065 no ) USE_X_TOOLKIT=none ;;
9066 * ) USE_X_TOOLKIT=maybe ;;
9067 esac
9069 nextstep | none )
9070 HAVE_X_WINDOWS=no
9071 HAVE_X11=no
9072 USE_X_TOOLKIT=none
9074 esac
9076 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9077 # Extract the first word of "X", so it can be a program name with args.
9078 set dummy X; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 if test -n "$HAVE_XSERVER"; then
9085 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9086 else
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9094 ac_cv_prog_HAVE_XSERVER="true"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9098 done
9099 done
9100 IFS=$as_save_IFS
9102 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9105 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9106 if test -n "$HAVE_XSERVER"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9108 $as_echo "$HAVE_XSERVER" >&6; }
9109 else
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9115 if test "$HAVE_XSERVER" = true ||
9116 test -n "$DISPLAY" ||
9117 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9118 as_fn_error $? "You seem to be running X, but no X development libraries
9119 were found. You should install the relevant development files for X
9120 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9121 sure you have development files for image handling, i.e.
9122 tiff, gif, jpeg, png and xpm.
9123 If you are sure you want Emacs compiled without X window support, pass
9124 --without-x
9125 to configure." "$LINENO" 5
9129 ### If we're using X11, we should use the X menu package.
9130 HAVE_MENUS=no
9131 case ${HAVE_X11} in
9132 yes ) HAVE_MENUS=yes ;;
9133 esac
9135 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9136 # Assume not, until told otherwise.
9137 GNU_MALLOC=yes
9138 doug_lea_malloc=yes
9139 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9140 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
9142 else
9143 doug_lea_malloc=no
9146 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9147 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
9149 else
9150 doug_lea_malloc=no
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9154 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9155 if ${emacs_cv_var___after_morecore_hook+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 extern void (* __after_morecore_hook)();
9162 main ()
9164 __after_morecore_hook = 0
9166 return 0;
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9170 emacs_cv_var___after_morecore_hook=yes
9171 else
9172 emacs_cv_var___after_morecore_hook=no
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9178 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9179 if test $emacs_cv_var___after_morecore_hook = no; then
9180 doug_lea_malloc=no
9184 system_malloc=no
9185 case "$opsys" in
9186 ## darwin ld insists on the use of malloc routines in the System framework.
9187 darwin|sol2-10) system_malloc=yes ;;
9188 esac
9190 if test "${system_malloc}" = "yes"; then
9192 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9194 GNU_MALLOC=no
9195 GNU_MALLOC_reason="
9196 (The GNU allocators don't work with this system configuration.)"
9197 GMALLOC_OBJ=
9198 VMLIMIT_OBJ=
9199 else
9200 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9201 VMLIMIT_OBJ=vm-limit.o
9206 if test "$doug_lea_malloc" = "yes" ; then
9207 if test "$GNU_MALLOC" = yes ; then
9208 GNU_MALLOC_reason="
9209 (Using Doug Lea's new malloc from the GNU C Library.)"
9212 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9215 ## Use mmap directly for allocating larger buffers.
9216 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9217 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9218 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9219 case "$opsys" in
9220 gnu*) REL_ALLOC=no ;;
9221 esac
9224 if test x"${REL_ALLOC}" = x; then
9225 REL_ALLOC=${GNU_MALLOC}
9228 use_mmap_for_buffers=no
9229 case "$opsys" in
9230 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9231 esac
9236 for ac_header in $ac_header_list
9237 do :
9238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9239 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9241 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9242 cat >>confdefs.h <<_ACEOF
9243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244 _ACEOF
9248 done
9257 for ac_func in getpagesize
9258 do :
9259 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9260 if test "x$ac_cv_func_getpagesize" = xyes; then :
9261 cat >>confdefs.h <<_ACEOF
9262 #define HAVE_GETPAGESIZE 1
9263 _ACEOF
9266 done
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9269 $as_echo_n "checking for working mmap... " >&6; }
9270 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 if test "$cross_compiling" = yes; then :
9274 ac_cv_func_mmap_fixed_mapped=no
9275 else
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 $ac_includes_default
9279 /* malloc might have been renamed as rpl_malloc. */
9280 #undef malloc
9282 /* Thanks to Mike Haertel and Jim Avera for this test.
9283 Here is a matrix of mmap possibilities:
9284 mmap private not fixed
9285 mmap private fixed at somewhere currently unmapped
9286 mmap private fixed at somewhere already mapped
9287 mmap shared not fixed
9288 mmap shared fixed at somewhere currently unmapped
9289 mmap shared fixed at somewhere already mapped
9290 For private mappings, we should verify that changes cannot be read()
9291 back from the file, nor mmap's back from the file at a different
9292 address. (There have been systems where private was not correctly
9293 implemented like the infamous i386 svr4.0, and systems where the
9294 VM page cache was not coherent with the file system buffer cache
9295 like early versions of FreeBSD and possibly contemporary NetBSD.)
9296 For shared mappings, we should conversely verify that changes get
9297 propagated back to all the places they're supposed to be.
9299 Grep wants private fixed already mapped.
9300 The main things grep needs to know about mmap are:
9301 * does it exist and is it safe to write into the mmap'd area
9302 * how to use it (BSD variants) */
9304 #include <fcntl.h>
9305 #include <sys/mman.h>
9307 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9308 char *malloc ();
9309 #endif
9311 /* This mess was copied from the GNU getpagesize.h. */
9312 #ifndef HAVE_GETPAGESIZE
9313 # ifdef _SC_PAGESIZE
9314 # define getpagesize() sysconf(_SC_PAGESIZE)
9315 # else /* no _SC_PAGESIZE */
9316 # ifdef HAVE_SYS_PARAM_H
9317 # include <sys/param.h>
9318 # ifdef EXEC_PAGESIZE
9319 # define getpagesize() EXEC_PAGESIZE
9320 # else /* no EXEC_PAGESIZE */
9321 # ifdef NBPG
9322 # define getpagesize() NBPG * CLSIZE
9323 # ifndef CLSIZE
9324 # define CLSIZE 1
9325 # endif /* no CLSIZE */
9326 # else /* no NBPG */
9327 # ifdef NBPC
9328 # define getpagesize() NBPC
9329 # else /* no NBPC */
9330 # ifdef PAGESIZE
9331 # define getpagesize() PAGESIZE
9332 # endif /* PAGESIZE */
9333 # endif /* no NBPC */
9334 # endif /* no NBPG */
9335 # endif /* no EXEC_PAGESIZE */
9336 # else /* no HAVE_SYS_PARAM_H */
9337 # define getpagesize() 8192 /* punt totally */
9338 # endif /* no HAVE_SYS_PARAM_H */
9339 # endif /* no _SC_PAGESIZE */
9341 #endif /* no HAVE_GETPAGESIZE */
9344 main ()
9346 char *data, *data2, *data3;
9347 const char *cdata2;
9348 int i, pagesize;
9349 int fd, fd2;
9351 pagesize = getpagesize ();
9353 /* First, make a file with some known garbage in it. */
9354 data = (char *) malloc (pagesize);
9355 if (!data)
9356 return 1;
9357 for (i = 0; i < pagesize; ++i)
9358 *(data + i) = rand ();
9359 umask (0);
9360 fd = creat ("conftest.mmap", 0600);
9361 if (fd < 0)
9362 return 2;
9363 if (write (fd, data, pagesize) != pagesize)
9364 return 3;
9365 close (fd);
9367 /* Next, check that the tail of a page is zero-filled. File must have
9368 non-zero length, otherwise we risk SIGBUS for entire page. */
9369 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9370 if (fd2 < 0)
9371 return 4;
9372 cdata2 = "";
9373 if (write (fd2, cdata2, 1) != 1)
9374 return 5;
9375 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9376 if (data2 == MAP_FAILED)
9377 return 6;
9378 for (i = 0; i < pagesize; ++i)
9379 if (*(data2 + i))
9380 return 7;
9381 close (fd2);
9382 if (munmap (data2, pagesize))
9383 return 8;
9385 /* Next, try to mmap the file at a fixed address which already has
9386 something else allocated at it. If we can, also make sure that
9387 we see the same garbage. */
9388 fd = open ("conftest.mmap", O_RDWR);
9389 if (fd < 0)
9390 return 9;
9391 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9392 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9393 return 10;
9394 for (i = 0; i < pagesize; ++i)
9395 if (*(data + i) != *(data2 + i))
9396 return 11;
9398 /* Finally, make sure that changes to the mapped area do not
9399 percolate back to the file as seen by read(). (This is a bug on
9400 some variants of i386 svr4.0.) */
9401 for (i = 0; i < pagesize; ++i)
9402 *(data2 + i) = *(data2 + i) + 1;
9403 data3 = (char *) malloc (pagesize);
9404 if (!data3)
9405 return 12;
9406 if (read (fd, data3, pagesize) != pagesize)
9407 return 13;
9408 for (i = 0; i < pagesize; ++i)
9409 if (*(data + i) != *(data3 + i))
9410 return 14;
9411 close (fd);
9412 return 0;
9414 _ACEOF
9415 if ac_fn_c_try_run "$LINENO"; then :
9416 ac_cv_func_mmap_fixed_mapped=yes
9417 else
9418 ac_cv_func_mmap_fixed_mapped=no
9420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9421 conftest.$ac_objext conftest.beam conftest.$ac_ext
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9426 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9427 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9429 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9432 rm -f conftest.mmap conftest.txt
9434 if test $use_mmap_for_buffers = yes; then
9436 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9438 REL_ALLOC=no
9441 LIBS="$LIBS_SYSTEM $LIBS"
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9444 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9445 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9446 $as_echo_n "(cached) " >&6
9447 else
9448 ac_check_lib_save_LIBS=$LIBS
9449 LIBS="-ldnet $LIBS"
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9453 /* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 char dnet_ntoa ();
9461 main ()
9463 return dnet_ntoa ();
9465 return 0;
9467 _ACEOF
9468 if ac_fn_c_try_link "$LINENO"; then :
9469 ac_cv_lib_dnet_dnet_ntoa=yes
9470 else
9471 ac_cv_lib_dnet_dnet_ntoa=no
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_lib_save_LIBS
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9478 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9479 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_LIBDNET 1
9482 _ACEOF
9484 LIBS="-ldnet $LIBS"
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9490 $as_echo_n "checking for main in -lXbsd... " >&6; }
9491 if ${ac_cv_lib_Xbsd_main+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 ac_check_lib_save_LIBS=$LIBS
9495 LIBS="-lXbsd $LIBS"
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9501 main ()
9503 return main ();
9505 return 0;
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509 ac_cv_lib_Xbsd_main=yes
9510 else
9511 ac_cv_lib_Xbsd_main=no
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 LIBS=$ac_check_lib_save_LIBS
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9518 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9519 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9520 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9525 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9526 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-lpthreads $LIBS"
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char cma_open ();
9542 main ()
9544 return cma_open ();
9546 return 0;
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 ac_cv_lib_pthreads_cma_open=yes
9551 else
9552 ac_cv_lib_pthreads_cma_open=no
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9559 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9560 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9561 cat >>confdefs.h <<_ACEOF
9562 #define HAVE_LIBPTHREADS 1
9563 _ACEOF
9565 LIBS="-lpthreads $LIBS"
9570 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9571 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9572 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9573 ## added to LIBS in configure would never contain the pthreads part,
9574 ## but the value used in Makefiles might. FIXME?
9576 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9577 ## be harmless on older versions of X where it happens to exist.
9578 test "$opsys" = "aix4-2" && \
9579 test $ac_cv_lib_pthreads_cma_open = yes && \
9580 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9583 case ${host_os} in
9584 aix*)
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9586 $as_echo_n "checking for -bbigtoc option... " >&6; }
9587 if ${gdb_cv_bigtoc+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9591 case $GCC in
9592 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9593 *) gdb_cv_bigtoc=-bbigtoc ;;
9594 esac
9596 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9601 main ()
9603 int i;
9605 return 0;
9607 _ACEOF
9608 if ac_fn_c_try_link "$LINENO"; then :
9610 else
9611 gdb_cv_bigtoc=
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9618 $as_echo "$gdb_cv_bigtoc" >&6; }
9620 esac
9622 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9623 # used for the tests that follow. We set them back to REAL_CFLAGS and
9624 # REAL_CPPFLAGS later on.
9626 REAL_CFLAGS="$CFLAGS"
9627 REAL_CPPFLAGS="$CPPFLAGS"
9629 if test "${HAVE_X11}" = "yes"; then
9630 DEFS="$C_SWITCH_X_SITE $DEFS"
9631 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9632 LIBS="-lX11 $LIBS"
9633 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9634 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9636 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9637 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9638 # but it's more convenient here to set LD_RUN_PATH
9639 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9640 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9641 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9642 export LD_RUN_PATH
9645 if test "${opsys}" = "gnu-linux"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9647 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9652 main ()
9654 XOpenDisplay ("foo");
9656 return 0;
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 xlinux_first_failure=no
9661 else
9662 xlinux_first_failure=yes
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 if test "${xlinux_first_failure}" = "yes"; then
9667 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9668 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9669 OLD_CPPFLAGS="$CPPFLAGS"
9670 OLD_LIBS="$LIBS"
9671 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9672 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9673 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9674 LIBS="$LIBS -b i486-linuxaout"
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9679 main ()
9681 XOpenDisplay ("foo");
9683 return 0;
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687 xlinux_second_failure=no
9688 else
9689 xlinux_second_failure=yes
9691 rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693 if test "${xlinux_second_failure}" = "yes"; then
9694 # If we get the same failure with -b, there is no use adding -b.
9695 # So take it out. This plays safe.
9696 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9697 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9698 CPPFLAGS="$OLD_CPPFLAGS"
9699 LIBS="$OLD_LIBS"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9704 $as_echo "yes" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9712 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9713 # header files included from there.
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9715 $as_echo_n "checking for Xkb... " >&6; }
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 #include <X11/Xlib.h>
9719 #include <X11/XKBlib.h>
9721 main ()
9723 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9725 return 0;
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 emacs_xkb=yes
9730 else
9731 emacs_xkb=no
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9736 $as_echo "$emacs_xkb" >&6; }
9737 if test $emacs_xkb = yes; then
9739 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9743 for ac_func in XrmSetDatabase XScreenResourceString \
9744 XScreenNumberOfScreen XSetWMProtocols
9745 do :
9746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9748 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9749 cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9751 _ACEOF
9754 done
9758 if test "${window_system}" = "x11"; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9760 $as_echo_n "checking X11 version 6... " >&6; }
9761 if ${emacs_cv_x11_version_6+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 #include <X11/Xlib.h>
9768 main ()
9770 #if XlibSpecificationRelease < 6
9771 fail;
9772 #endif
9775 return 0;
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779 emacs_cv_x11_version_6=yes
9780 else
9781 emacs_cv_x11_version_6=no
9783 rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9787 if test $emacs_cv_x11_version_6 = yes; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9789 $as_echo "6 or newer" >&6; }
9791 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9794 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9796 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9797 ## XIM support.
9798 case "$opsys" in
9799 sol2-*) : ;;
9801 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9804 esac
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9807 $as_echo "before 6" >&6; }
9812 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9813 HAVE_RSVG=no
9814 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9815 if test "${with_rsvg}" != "no"; then
9816 RSVG_REQUIRED=2.11.0
9817 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9820 succeeded=no
9822 # Extract the first word of "pkg-config", so it can be a program name with args.
9823 set dummy pkg-config; ac_word=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 case $PKG_CONFIG in
9830 [\\/]* | ?:[\\/]*)
9831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $PATH
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9845 done
9846 done
9847 IFS=$as_save_IFS
9849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9851 esac
9853 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9854 if test -n "$PKG_CONFIG"; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9856 $as_echo "$PKG_CONFIG" >&6; }
9857 else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9864 if test "$PKG_CONFIG" = "no" ; then
9866 else
9867 PKG_CONFIG_MIN_VERSION=0.9.0
9868 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9870 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9872 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9874 $as_echo "yes" >&6; }
9875 succeeded=yes
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9878 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9879 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9881 $as_echo "$RSVG_CFLAGS" >&6; }
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9884 $as_echo_n "checking RSVG_LIBS... " >&6; }
9885 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9887 $as_echo "$RSVG_LIBS" >&6; }
9888 else
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 RSVG_CFLAGS=""
9892 RSVG_LIBS=""
9893 ## If we have a custom action on failure, don't print errors, but
9894 ## do set a variable so people can do so.
9895 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9901 else
9902 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9903 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9907 if test $succeeded = yes; then
9908 HAVE_RSVG=yes
9909 else
9916 if test $HAVE_RSVG = yes; then
9918 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9920 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9921 LIBS="$RSVG_LIBS $LIBS"
9926 HAVE_IMAGEMAGICK=no
9927 if test "${HAVE_X11}" = "yes"; then
9928 if test "${with_imagemagick}" != "no"; then
9929 IMAGEMAGICK_MODULE="Wand"
9931 succeeded=no
9933 # Extract the first word of "pkg-config", so it can be a program name with args.
9934 set dummy pkg-config; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 case $PKG_CONFIG in
9941 [\\/]* | ?:[\\/]*)
9942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9962 esac
9964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9965 if test -n "$PKG_CONFIG"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9967 $as_echo "$PKG_CONFIG" >&6; }
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9975 if test "$PKG_CONFIG" = "no" ; then
9977 else
9978 PKG_CONFIG_MIN_VERSION=0.9.0
9979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9981 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9983 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; }
9986 succeeded=yes
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9989 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9990 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9992 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9995 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9996 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9998 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 IMAGEMAGICK_CFLAGS=""
10003 IMAGEMAGICK_LIBS=""
10004 ## If we have a custom action on failure, don't print errors, but
10005 ## do set a variable so people can do so.
10006 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10012 else
10013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10018 if test $succeeded = yes; then
10019 HAVE_IMAGEMAGICK=yes
10020 else
10027 if test $HAVE_IMAGEMAGICK = yes; then
10029 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10031 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10032 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10033 for ac_func in MagickExportImagePixels
10034 do :
10035 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10036 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
10037 cat >>confdefs.h <<_ACEOF
10038 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10039 _ACEOF
10042 done
10049 HAVE_GTK=no
10050 if test "${with_gtk3}" = "yes"; then
10051 GLIB_REQUIRED=2.6
10052 GTK_REQUIRED=2.90
10053 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10056 succeeded=no
10058 # Extract the first word of "pkg-config", so it can be a program name with args.
10059 set dummy pkg-config; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 case $PKG_CONFIG in
10066 [\\/]* | ?:[\\/]*)
10067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10081 done
10082 done
10083 IFS=$as_save_IFS
10085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10087 esac
10089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10090 if test -n "$PKG_CONFIG"; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10092 $as_echo "$PKG_CONFIG" >&6; }
10093 else
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10100 if test "$PKG_CONFIG" = "no" ; then
10101 pkg_check_gtk=no
10102 else
10103 PKG_CONFIG_MIN_VERSION=0.9.0
10104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10106 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10108 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10110 $as_echo "yes" >&6; }
10111 succeeded=yes
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10114 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10115 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10117 $as_echo "$GTK_CFLAGS" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10120 $as_echo_n "checking GTK_LIBS... " >&6; }
10121 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10123 $as_echo "$GTK_LIBS" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 GTK_CFLAGS=""
10128 GTK_LIBS=""
10129 ## If we have a custom action on failure, don't print errors, but
10130 ## do set a variable so people can do so.
10131 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10137 else
10138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10143 if test $succeeded = yes; then
10144 pkg_check_gtk=yes
10145 else
10146 pkg_check_gtk=no
10149 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10150 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10154 if test "$pkg_check_gtk" != "yes"; then
10155 HAVE_GTK=no
10156 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10157 GLIB_REQUIRED=2.6
10158 GTK_REQUIRED=2.6
10159 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10162 succeeded=no
10164 # Extract the first word of "pkg-config", so it can be a program name with args.
10165 set dummy pkg-config; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 case $PKG_CONFIG in
10172 [\\/]* | ?:[\\/]*)
10173 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10183 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10185 break 2
10187 done
10188 done
10189 IFS=$as_save_IFS
10191 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10193 esac
10195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10196 if test -n "$PKG_CONFIG"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10198 $as_echo "$PKG_CONFIG" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10206 if test "$PKG_CONFIG" = "no" ; then
10207 pkg_check_gtk=no
10208 else
10209 PKG_CONFIG_MIN_VERSION=0.9.0
10210 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10212 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10214 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10216 $as_echo "yes" >&6; }
10217 succeeded=yes
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10220 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10221 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10223 $as_echo "$GTK_CFLAGS" >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10226 $as_echo_n "checking GTK_LIBS... " >&6; }
10227 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10229 $as_echo "$GTK_LIBS" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 GTK_CFLAGS=""
10234 GTK_LIBS=""
10235 ## If we have a custom action on failure, don't print errors, but
10236 ## do set a variable so people can do so.
10237 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10243 else
10244 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10245 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10249 if test $succeeded = yes; then
10250 pkg_check_gtk=yes
10251 else
10252 pkg_check_gtk=no
10255 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10256 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10261 GTK_OBJ=
10262 if test x"$pkg_check_gtk" = xyes; then
10266 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10267 CFLAGS="$CFLAGS $GTK_CFLAGS"
10268 LIBS="$GTK_LIBS $LIBS"
10269 GTK_COMPILES=no
10270 for ac_func in gtk_main
10271 do :
10272 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10273 if test "x$ac_cv_func_gtk_main" = xyes; then :
10274 cat >>confdefs.h <<_ACEOF
10275 #define HAVE_GTK_MAIN 1
10276 _ACEOF
10277 GTK_COMPILES=yes
10279 done
10281 if test "${GTK_COMPILES}" != "yes"; then
10282 if test "$USE_X_TOOLKIT" != "maybe"; then
10283 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10285 else
10286 HAVE_GTK=yes
10288 $as_echo "#define USE_GTK 1" >>confdefs.h
10290 GTK_OBJ=gtkutil.o
10291 USE_X_TOOLKIT=none
10292 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10296 closing open displays. This is no problem if you just use
10297 one display, but if you use more than one and close one of them
10298 Emacs may crash." >&5
10299 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10300 closing open displays. This is no problem if you just use
10301 one display, but if you use more than one and close one of them
10302 Emacs may crash." >&2;}
10303 sleep 3
10311 if test "${HAVE_GTK}" = "yes"; then
10313 if test "$with_toolkit_scroll_bars" != no; then
10314 with_toolkit_scroll_bars=yes
10317 HAVE_GTK_FILE_SELECTION=no
10318 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10319 #include <gtk/gtk.h>
10321 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10322 HAVE_GTK_FILE_SELECTION=yes
10323 else
10324 HAVE_GTK_FILE_SELECTION=no
10327 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10328 for ac_func in gtk_file_selection_new
10329 do :
10330 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10331 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10332 cat >>confdefs.h <<_ACEOF
10333 #define HAVE_GTK_FILE_SELECTION_NEW 1
10334 _ACEOF
10337 done
10341 HAVE_GTK_AND_PTHREAD=no
10342 for ac_header in pthread.h
10343 do :
10344 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10345 if test "x$ac_cv_header_pthread_h" = xyes; then :
10346 cat >>confdefs.h <<_ACEOF
10347 #define HAVE_PTHREAD_H 1
10348 _ACEOF
10352 done
10354 if test "$ac_cv_header_pthread_h"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10356 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10357 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 ac_check_lib_save_LIBS=$LIBS
10361 LIBS="-lpthread $LIBS"
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char pthread_self ();
10373 main ()
10375 return pthread_self ();
10377 return 0;
10379 _ACEOF
10380 if ac_fn_c_try_link "$LINENO"; then :
10381 ac_cv_lib_pthread_pthread_self=yes
10382 else
10383 ac_cv_lib_pthread_pthread_self=no
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10390 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10391 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10392 HAVE_GTK_AND_PTHREAD=yes
10396 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10397 case "${canonical}" in
10398 *-hpux*) ;;
10399 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10400 esac
10402 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10406 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10407 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10408 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10409 gtk_orientable_set_orientation
10410 do :
10411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10414 cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10416 _ACEOF
10419 done
10424 HAVE_DBUS=no
10425 DBUS_OBJ=
10426 if test "${with_dbus}" = "yes"; then
10428 succeeded=no
10430 # Extract the first word of "pkg-config", so it can be a program name with args.
10431 set dummy pkg-config; ac_word=$2
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10433 $as_echo_n "checking for $ac_word... " >&6; }
10434 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 case $PKG_CONFIG in
10438 [\\/]* | ?:[\\/]*)
10439 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10449 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 break 2
10453 done
10454 done
10455 IFS=$as_save_IFS
10457 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10459 esac
10461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10462 if test -n "$PKG_CONFIG"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10464 $as_echo "$PKG_CONFIG" >&6; }
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10472 if test "$PKG_CONFIG" = "no" ; then
10473 HAVE_DBUS=no
10474 else
10475 PKG_CONFIG_MIN_VERSION=0.9.0
10476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10478 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10480 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10482 $as_echo "yes" >&6; }
10483 succeeded=yes
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10486 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10487 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10489 $as_echo "$DBUS_CFLAGS" >&6; }
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10492 $as_echo_n "checking DBUS_LIBS... " >&6; }
10493 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10495 $as_echo "$DBUS_LIBS" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 DBUS_CFLAGS=""
10500 DBUS_LIBS=""
10501 ## If we have a custom action on failure, don't print errors, but
10502 ## do set a variable so people can do so.
10503 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10509 else
10510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10515 if test $succeeded = yes; then
10516 HAVE_DBUS=yes
10517 else
10518 HAVE_DBUS=no
10521 if test "$HAVE_DBUS" = yes; then
10522 LIBS="$LIBS $DBUS_LIBS"
10524 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10526 for ac_func in dbus_watch_get_unix_fd
10527 do :
10528 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10529 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10530 cat >>confdefs.h <<_ACEOF
10531 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10532 _ACEOF
10535 done
10537 DBUS_OBJ=dbusbind.o
10542 HAVE_GCONF=no
10543 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10545 succeeded=no
10547 # Extract the first word of "pkg-config", so it can be a program name with args.
10548 set dummy pkg-config; ac_word=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 case $PKG_CONFIG in
10555 [\\/]* | ?:[\\/]*)
10556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10570 done
10571 done
10572 IFS=$as_save_IFS
10574 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10576 esac
10578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10579 if test -n "$PKG_CONFIG"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10581 $as_echo "$PKG_CONFIG" >&6; }
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10589 if test "$PKG_CONFIG" = "no" ; then
10590 HAVE_GCONF=no
10591 else
10592 PKG_CONFIG_MIN_VERSION=0.9.0
10593 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10595 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10597 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599 $as_echo "yes" >&6; }
10600 succeeded=yes
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10603 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10604 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10606 $as_echo "$GCONF_CFLAGS" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10609 $as_echo_n "checking GCONF_LIBS... " >&6; }
10610 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10612 $as_echo "$GCONF_LIBS" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 GCONF_CFLAGS=""
10617 GCONF_LIBS=""
10618 ## If we have a custom action on failure, don't print errors, but
10619 ## do set a variable so people can do so.
10620 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10626 else
10627 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10628 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10632 if test $succeeded = yes; then
10633 HAVE_GCONF=yes
10634 else
10635 HAVE_GCONF=no
10638 if test "$HAVE_GCONF" = yes; then
10640 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10642 for ac_func in g_type_init
10643 do :
10644 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10645 if test "x$ac_cv_func_g_type_init" = xyes; then :
10646 cat >>confdefs.h <<_ACEOF
10647 #define HAVE_G_TYPE_INIT 1
10648 _ACEOF
10651 done
10656 HAVE_LIBSELINUX=no
10657 LIBSELINUX_LIBS=
10658 if test "${with_selinux}" = "yes"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10660 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10661 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-lselinux $LIBS"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char lgetfilecon ();
10677 main ()
10679 return lgetfilecon ();
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_selinux_lgetfilecon=yes
10686 else
10687 ac_cv_lib_selinux_lgetfilecon=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10694 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10695 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10696 HAVE_LIBSELINUX=yes
10697 else
10698 HAVE_LIBSELINUX=no
10701 if test "$HAVE_LIBSELINUX" = yes; then
10703 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10705 LIBSELINUX_LIBS=-lselinux
10710 HAVE_GNUTLS=no
10711 if test "${with_gnutls}" = "yes" ; then
10713 succeeded=no
10715 # Extract the first word of "pkg-config", so it can be a program name with args.
10716 set dummy pkg-config; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 case $PKG_CONFIG in
10723 [\\/]* | ?:[\\/]*)
10724 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10740 IFS=$as_save_IFS
10742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10744 esac
10746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10747 if test -n "$PKG_CONFIG"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10749 $as_echo "$PKG_CONFIG" >&6; }
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10757 if test "$PKG_CONFIG" = "no" ; then
10758 HAVE_GNUTLS=no
10759 else
10760 PKG_CONFIG_MIN_VERSION=0.9.0
10761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10763 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10765 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10767 $as_echo "yes" >&6; }
10768 succeeded=yes
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10771 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10772 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10774 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10777 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10778 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10780 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 LIBGNUTLS_CFLAGS=""
10785 LIBGNUTLS_LIBS=""
10786 ## If we have a custom action on failure, don't print errors, but
10787 ## do set a variable so people can do so.
10788 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10794 else
10795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10800 if test $succeeded = yes; then
10801 HAVE_GNUTLS=yes
10802 else
10803 HAVE_GNUTLS=no
10806 if test "${HAVE_GNUTLS}" = "yes"; then
10808 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10815 HAVE_XAW3D=no
10816 LUCID_LIBW=
10817 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10818 if test "$with_xaw3d" != no; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10820 $as_echo_n "checking for xaw3d... " >&6; }
10821 if ${emacs_cv_xaw3d+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 #include <X11/Intrinsic.h>
10828 #include <X11/Xaw3d/Simple.h>
10830 main ()
10834 return 0;
10836 _ACEOF
10837 if ac_fn_c_try_link "$LINENO"; then :
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10839 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10840 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 ac_check_lib_save_LIBS=$LIBS
10844 LIBS="-lXaw3d $LIBS"
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char XawScrollbarSetThumb ();
10856 main ()
10858 return XawScrollbarSetThumb ();
10860 return 0;
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10865 else
10866 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10873 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10874 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10875 emacs_cv_xaw3d=yes
10876 else
10877 emacs_cv_xaw3d=no
10880 else
10881 emacs_cv_xaw3d=no
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10887 else
10888 emacs_cv_xaw3d=no
10890 if test $emacs_cv_xaw3d = yes; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10892 $as_echo "yes; using Lucid toolkit" >&6; }
10893 USE_X_TOOLKIT=LUCID
10894 HAVE_XAW3D=yes
10895 LUCID_LIBW=-lXaw3d
10897 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10903 $as_echo_n "checking for libXaw... " >&6; }
10904 if ${emacs_cv_xaw+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 #include <X11/Intrinsic.h>
10911 #include <X11/Xaw/Simple.h>
10913 main ()
10917 return 0;
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 emacs_cv_xaw=yes
10922 else
10923 emacs_cv_xaw=no
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10929 if test $emacs_cv_xaw = yes; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10931 $as_echo "yes; using Lucid toolkit" >&6; }
10932 USE_X_TOOLKIT=LUCID
10933 LUCID_LIBW=-lXaw
10934 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10935 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10938 $as_echo "no; do not use toolkit by default" >&6; }
10939 USE_X_TOOLKIT=none
10944 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10946 LIBXTR6=
10947 if test "${USE_X_TOOLKIT}" != "none"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10949 $as_echo_n "checking X11 toolkit version... " >&6; }
10950 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10951 $as_echo_n "(cached) " >&6
10952 else
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 #include <X11/Intrinsic.h>
10957 main ()
10959 #if XtSpecificationRelease < 6
10960 fail;
10961 #endif
10964 return 0;
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 emacs_cv_x11_toolkit_version_6=yes
10969 else
10970 emacs_cv_x11_toolkit_version_6=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10976 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10977 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10979 $as_echo "6 or newer" >&6; }
10981 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10983 LIBXTR6="-lSM -lICE"
10984 case "$opsys" in
10985 ## Use libw.a along with X11R6 Xt.
10986 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10987 esac
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10990 $as_echo "before 6" >&6; }
10993 OLDLIBS="$LIBS"
10994 if test x$HAVE_X11XTR6 = xyes; then
10995 LIBS="-lXt -lSM -lICE $LIBS"
10996 else
10997 LIBS="-lXt $LIBS"
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11000 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11001 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 ac_check_lib_save_LIBS=$LIBS
11005 LIBS="-lXmu $LIBS"
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char XmuConvertStandardSelection ();
11017 main ()
11019 return XmuConvertStandardSelection ();
11021 return 0;
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11026 else
11027 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11034 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11035 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
11036 cat >>confdefs.h <<_ACEOF
11037 #define HAVE_LIBXMU 1
11038 _ACEOF
11040 LIBS="-lXmu $LIBS"
11044 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11048 LIBXMU=-lXmu
11049 case $opsys in
11050 ## These systems don't supply Xmu.
11051 hpux* | aix4-2 )
11052 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11054 esac
11057 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11058 if test "${HAVE_X11}" = "yes"; then
11059 if test "${USE_X_TOOLKIT}" != "none"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11061 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11062 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_check_lib_save_LIBS=$LIBS
11066 LIBS="-lXext $LIBS"
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char XShapeQueryExtension ();
11078 main ()
11080 return XShapeQueryExtension ();
11082 return 0;
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 ac_cv_lib_Xext_XShapeQueryExtension=yes
11087 else
11088 ac_cv_lib_Xext_XShapeQueryExtension=no
11090 rm -f core conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11095 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11096 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_LIBXEXT 1
11099 _ACEOF
11101 LIBS="-lXext $LIBS"
11108 LIBXP=
11109 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11111 $as_echo_n "checking for Motif version 2.1... " >&6; }
11112 if ${emacs_cv_motif_version_2_1+:} false; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include <Xm/Xm.h>
11119 main ()
11121 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11122 int x = 5;
11123 #else
11124 Motif version prior to 2.1.
11125 #endif
11127 return 0;
11129 _ACEOF
11130 if ac_fn_c_try_compile "$LINENO"; then :
11131 emacs_cv_motif_version_2_1=yes
11132 else
11133 emacs_cv_motif_version_2_1=no
11135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11138 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11139 if test $emacs_cv_motif_version_2_1 = yes; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11141 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11142 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lXp $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char XpCreateContext ();
11158 main ()
11160 return XpCreateContext ();
11162 return 0;
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 ac_cv_lib_Xp_XpCreateContext=yes
11167 else
11168 ac_cv_lib_Xp_XpCreateContext=no
11170 rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11175 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11176 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11177 LIBXP=-lXp
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11182 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11183 if ${emacs_cv_lesstif+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 # We put this in CFLAGS temporarily to precede other -I options
11187 # that might be in CFLAGS temporarily.
11188 # We put this in CPPFLAGS where it precedes the other -I options.
11189 OLD_CPPFLAGS=$CPPFLAGS
11190 OLD_CFLAGS=$CFLAGS
11191 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11192 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11197 main ()
11199 int x = 5;
11201 return 0;
11203 _ACEOF
11204 if ac_fn_c_try_compile "$LINENO"; then :
11205 emacs_cv_lesstif=yes
11206 else
11207 emacs_cv_lesstif=no
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11212 $as_echo "$emacs_cv_lesstif" >&6; }
11213 if test $emacs_cv_lesstif = yes; then
11214 # Make sure this -I option remains in CPPFLAGS after it is set
11215 # back to REAL_CPPFLAGS.
11216 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11217 # have those other -I options anyway. Ultimately, having this
11218 # directory ultimately in CPPFLAGS will be enough.
11219 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11220 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11221 else
11222 CFLAGS=$OLD_CFLAGS
11223 CPPFLAGS=$OLD_CPPFLAGS
11229 USE_TOOLKIT_SCROLL_BARS=no
11230 if test "${with_toolkit_scroll_bars}" != "no"; then
11231 if test "${USE_X_TOOLKIT}" != "none"; then
11232 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11233 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11235 HAVE_XAW3D=no
11236 USE_TOOLKIT_SCROLL_BARS=yes
11237 elif test "${HAVE_XAW3D}" = "yes"; then
11238 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11240 USE_TOOLKIT_SCROLL_BARS=yes
11242 elif test "${HAVE_GTK}" = "yes"; then
11243 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11245 USE_TOOLKIT_SCROLL_BARS=yes
11246 elif test "${HAVE_NS}" = "yes"; then
11247 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11249 USE_TOOLKIT_SCROLL_BARS=yes
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 #include <X11/Xlib.h>
11257 #include <X11/Xresource.h>
11259 main ()
11261 XIMProc callback;
11263 return 0;
11265 _ACEOF
11266 if ac_fn_c_try_compile "$LINENO"; then :
11267 HAVE_XIM=yes
11269 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11271 else
11272 HAVE_XIM=no
11274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 if test "${with_xim}" != "no"; then
11279 $as_echo "#define USE_XIM 1" >>confdefs.h
11284 if test "${HAVE_XIM}" != "no"; then
11285 late_CFLAGS=$CFLAGS
11286 if test "$GCC" = yes; then
11287 CFLAGS="$CFLAGS --pedantic-errors"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 #include <X11/Xlib.h>
11293 #include <X11/Xresource.h>
11295 main ()
11297 Display *display;
11298 XrmDatabase db;
11299 char *res_name;
11300 char *res_class;
11301 XIMProc callback;
11302 XPointer *client_data;
11303 #ifndef __GNUC__
11304 /* If we're not using GCC, it's probably not XFree86, and this is
11305 probably right, but we can't use something like --pedantic-errors. */
11306 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11307 char*, XIMProc, XPointer*);
11308 #endif
11309 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11310 client_data);
11312 return 0;
11314 _ACEOF
11315 if ac_fn_c_try_compile "$LINENO"; then :
11316 emacs_cv_arg6_star=yes
11318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 if test "$emacs_cv_arg6_star" = yes; then
11320 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11322 else
11323 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11326 CFLAGS=$late_CFLAGS
11329 ### Start of font-backend (under any platform) section.
11330 # (nothing here yet -- this is a placeholder)
11331 ### End of font-backend (under any platform) section.
11333 ### Start of font-backend (under X11) section.
11334 if test "${HAVE_X11}" = "yes"; then
11336 succeeded=no
11338 # Extract the first word of "pkg-config", so it can be a program name with args.
11339 set dummy pkg-config; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 case $PKG_CONFIG in
11346 [\\/]* | ?:[\\/]*)
11347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11361 done
11362 done
11363 IFS=$as_save_IFS
11365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11367 esac
11369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11370 if test -n "$PKG_CONFIG"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11372 $as_echo "$PKG_CONFIG" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test "$PKG_CONFIG" = "no" ; then
11381 HAVE_FC=no
11382 else
11383 PKG_CONFIG_MIN_VERSION=0.9.0
11384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11386 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11388 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391 succeeded=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11394 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11395 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11397 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11400 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11401 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11403 $as_echo "$FONTCONFIG_LIBS" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 FONTCONFIG_CFLAGS=""
11408 FONTCONFIG_LIBS=""
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so.
11411 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11417 else
11418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11423 if test $succeeded = yes; then
11424 HAVE_FC=yes
11425 else
11426 HAVE_FC=no
11430 ## Use -lXft if available, unless `--with-xft=no'.
11431 HAVE_XFT=maybe
11432 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11433 with_xft="no";
11435 if test "x${with_xft}" != "xno"; then
11438 succeeded=no
11440 # Extract the first word of "pkg-config", so it can be a program name with args.
11441 set dummy pkg-config; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 case $PKG_CONFIG in
11448 [\\/]* | ?:[\\/]*)
11449 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11463 done
11464 done
11465 IFS=$as_save_IFS
11467 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11469 esac
11471 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11472 if test -n "$PKG_CONFIG"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11474 $as_echo "$PKG_CONFIG" >&6; }
11475 else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11482 if test "$PKG_CONFIG" = "no" ; then
11483 HAVE_XFT=no
11484 else
11485 PKG_CONFIG_MIN_VERSION=0.9.0
11486 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11488 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11490 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 succeeded=yes
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11496 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11497 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11499 $as_echo "$XFT_CFLAGS" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11502 $as_echo_n "checking XFT_LIBS... " >&6; }
11503 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11505 $as_echo "$XFT_LIBS" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 XFT_CFLAGS=""
11510 XFT_LIBS=""
11511 ## If we have a custom action on failure, don't print errors, but
11512 ## do set a variable so people can do so.
11513 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11519 else
11520 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11521 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11525 if test $succeeded = yes; then
11527 else
11528 HAVE_XFT=no
11531 ## Because xftfont.c uses XRenderQueryExtension, we also
11532 ## need to link to -lXrender.
11533 HAVE_XRENDER=no
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11535 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11536 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-lXrender $LIBS"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char XRenderQueryExtension ();
11552 main ()
11554 return XRenderQueryExtension ();
11556 return 0;
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11561 else
11562 ac_cv_lib_Xrender_XRenderQueryExtension=no
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566 LIBS=$ac_check_lib_save_LIBS
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11569 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11570 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11571 HAVE_XRENDER=yes
11574 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11575 OLD_CPPFLAGS="$CPPFLAGS"
11576 OLD_CFLAGS="$CFLAGS"
11577 OLD_LIBS="$LIBS"
11578 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11579 CFLAGS="$CFLAGS $XFT_CFLAGS"
11580 XFT_LIBS="-lXrender $XFT_LIBS"
11581 LIBS="$XFT_LIBS $LIBS"
11582 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11583 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11585 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11586 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-lXft $XFT_LIBS $LIBS"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char XftFontOpen ();
11602 main ()
11604 return XftFontOpen ();
11606 return 0;
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 ac_cv_lib_Xft_XftFontOpen=yes
11611 else
11612 ac_cv_lib_Xft_XftFontOpen=no
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11619 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11620 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11621 HAVE_XFT=yes
11628 if test "${HAVE_XFT}" = "yes"; then
11630 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11633 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11634 else
11635 CPPFLAGS="$OLD_CPPFLAGS"
11636 CFLAGS="$OLD_CFLAGS"
11637 LIBS="$OLD_LIBS"
11638 fi # "${HAVE_XFT}" = "yes"
11639 fi # "$HAVE_XFT" != no
11640 fi # "x${with_xft}" != "xno"
11642 if test "$HAVE_XFT" != "yes"; then
11643 HAVE_XFT=no
11646 ## We used to allow building with FreeType and without Xft.
11647 ## However, the ftx font backend driver is not in good shape.
11648 HAVE_FREETYPE=$HAVE_XFT
11650 HAVE_LIBOTF=no
11651 if test "${HAVE_FREETYPE}" = "yes"; then
11653 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11655 if test "${with_libotf}" != "no"; then
11657 succeeded=no
11659 # Extract the first word of "pkg-config", so it can be a program name with args.
11660 set dummy pkg-config; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $PKG_CONFIG in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11682 done
11683 done
11684 IFS=$as_save_IFS
11686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11688 esac
11690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11693 $as_echo "$PKG_CONFIG" >&6; }
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696 $as_echo "no" >&6; }
11701 if test "$PKG_CONFIG" = "no" ; then
11702 HAVE_LIBOTF=no
11703 else
11704 PKG_CONFIG_MIN_VERSION=0.9.0
11705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11707 $as_echo_n "checking for libotf... " >&6; }
11709 if $PKG_CONFIG --exists "libotf" 2>&5; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712 succeeded=yes
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11715 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11716 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11718 $as_echo "$LIBOTF_CFLAGS" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11721 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11722 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11724 $as_echo "$LIBOTF_LIBS" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 LIBOTF_CFLAGS=""
11729 LIBOTF_LIBS=""
11730 ## If we have a custom action on failure, don't print errors, but
11731 ## do set a variable so people can do so.
11732 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11738 else
11739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11744 if test $succeeded = yes; then
11745 HAVE_LIBOTF=yes
11746 else
11747 HAVE_LIBOTF=no
11750 if test "$HAVE_LIBOTF" = "yes"; then
11752 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11755 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11756 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lotf $LIBS"
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11764 /* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 char OTF_get_variation_glyphs ();
11772 main ()
11774 return OTF_get_variation_glyphs ();
11776 return 0;
11778 _ACEOF
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11781 else
11782 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11784 rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
11786 LIBS=$ac_check_lib_save_LIBS
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11789 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11790 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11791 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11792 else
11793 HAVE_OTF_GET_VARIATION_GLYPHS=no
11796 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11798 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11805 HAVE_M17N_FLT=no
11806 if test "${HAVE_LIBOTF}" = yes; then
11807 if test "${with_m17n_flt}" != "no"; then
11809 succeeded=no
11811 # Extract the first word of "pkg-config", so it can be a program name with args.
11812 set dummy pkg-config; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 case $PKG_CONFIG in
11819 [\\/]* | ?:[\\/]*)
11820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11834 done
11835 done
11836 IFS=$as_save_IFS
11838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11840 esac
11842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11843 if test -n "$PKG_CONFIG"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11845 $as_echo "$PKG_CONFIG" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11853 if test "$PKG_CONFIG" = "no" ; then
11854 HAVE_M17N_FLT=no
11855 else
11856 PKG_CONFIG_MIN_VERSION=0.9.0
11857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11859 $as_echo_n "checking for m17n-flt... " >&6; }
11861 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11864 succeeded=yes
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11867 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11868 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11870 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11873 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11874 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11876 $as_echo "$M17N_FLT_LIBS" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11880 M17N_FLT_CFLAGS=""
11881 M17N_FLT_LIBS=""
11882 ## If we have a custom action on failure, don't print errors, but
11883 ## do set a variable so people can do so.
11884 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11890 else
11891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11896 if test $succeeded = yes; then
11897 HAVE_M17N_FLT=yes
11898 else
11899 HAVE_M17N_FLT=no
11902 if test "$HAVE_M17N_FLT" = "yes"; then
11904 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11909 else
11910 HAVE_XFT=no
11911 HAVE_FREETYPE=no
11912 HAVE_LIBOTF=no
11913 HAVE_M17N_FLT=no
11916 ### End of font-backend (under X11) section.
11927 ### Use -lXpm if available, unless `--with-xpm=no'.
11928 HAVE_XPM=no
11929 LIBXPM=
11930 if test "${HAVE_X11}" = "yes"; then
11931 if test "${with_xpm}" != "no"; then
11932 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11935 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11936 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lXpm -lX11 $LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char XpmReadFileToPixmap ();
11952 main ()
11954 return XpmReadFileToPixmap ();
11956 return 0;
11958 _ACEOF
11959 if ac_fn_c_try_link "$LINENO"; then :
11960 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11961 else
11962 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11964 rm -f core conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11969 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11970 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11971 HAVE_XPM=yes
11977 if test "${HAVE_XPM}" = "yes"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11979 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include "X11/xpm.h"
11983 #ifndef XpmReturnAllocPixels
11984 no_return_alloc_pixels
11985 #endif
11987 _ACEOF
11988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11989 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11990 HAVE_XPM=no
11991 else
11992 HAVE_XPM=yes
11994 rm -f conftest*
11997 if test "${HAVE_XPM}" = "yes"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12007 if test "${HAVE_XPM}" = "yes"; then
12009 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12011 LIBXPM=-lXpm
12016 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12017 HAVE_JPEG=no
12018 LIBJPEG=
12019 if test "${HAVE_X11}" = "yes"; then
12020 if test "${with_jpeg}" != "no"; then
12021 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12022 if test "x$ac_cv_header_jerror_h" = xyes; then :
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12024 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12025 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-ljpeg $LIBS"
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char jpeg_destroy_compress ();
12041 main ()
12043 return jpeg_destroy_compress ();
12045 return 0;
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12050 else
12051 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12058 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12059 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
12060 HAVE_JPEG=yes
12068 if test "${HAVE_JPEG}" = "yes"; then
12069 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 #include <jpeglib.h>
12074 version=JPEG_LIB_VERSION
12076 _ACEOF
12077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12078 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12079 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12081 else
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12083 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12084 HAVE_JPEG=no
12086 rm -f conftest*
12089 if test "${HAVE_JPEG}" = "yes"; then
12090 LIBJPEG=-ljpeg
12095 ### Use -lpng if available, unless `--with-png=no'.
12096 HAVE_PNG=no
12097 LIBPNG=
12098 if test "${HAVE_X11}" = "yes"; then
12099 if test "${with_png}" != "no"; then
12100 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12101 # in /usr/include/libpng.
12102 for ac_header in png.h libpng/png.h
12103 do :
12104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12105 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12107 cat >>confdefs.h <<_ACEOF
12108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12109 _ACEOF
12113 done
12115 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12117 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12118 if ${ac_cv_lib_png_png_get_channels+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lpng -lz -lm $LIBS"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char png_get_channels ();
12134 main ()
12136 return png_get_channels ();
12138 return 0;
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"; then :
12142 ac_cv_lib_png_png_get_channels=yes
12143 else
12144 ac_cv_lib_png_png_get_channels=no
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12151 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12152 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
12153 HAVE_PNG=yes
12159 if test "${HAVE_PNG}" = "yes"; then
12161 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12163 LIBPNG="-lpng -lz -lm"
12168 ### Use -ltiff if available, unless `--with-tiff=no'.
12169 HAVE_TIFF=no
12170 LIBTIFF=
12171 if test "${HAVE_X11}" = "yes"; then
12172 if test "${with_tiff}" != "no"; then
12173 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12174 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12175 tifflibs="-lz -lm"
12176 # At least one tiff package requires the jpeg library.
12177 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12179 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12180 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-ltiff $tifflibs $LIBS"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char TIFFGetVersion ();
12196 main ()
12198 return TIFFGetVersion ();
12200 return 0;
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_tiff_TIFFGetVersion=yes
12205 else
12206 ac_cv_lib_tiff_TIFFGetVersion=no
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12213 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12214 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12215 HAVE_TIFF=yes
12223 if test "${HAVE_TIFF}" = "yes"; then
12225 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12227 LIBTIFF=-ltiff
12232 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12233 HAVE_GIF=no
12234 LIBGIF=
12235 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12236 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12237 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12238 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12239 # Earlier versions can crash Emacs.
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12241 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12242 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-lgif $LIBS"
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char EGifPutExtensionLast ();
12258 main ()
12260 return EGifPutExtensionLast ();
12262 return 0;
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12266 ac_cv_lib_gif_EGifPutExtensionLast=yes
12267 else
12268 ac_cv_lib_gif_EGifPutExtensionLast=no
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12275 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12276 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12277 HAVE_GIF=yes
12278 else
12279 HAVE_GIF=maybe
12286 if test "$HAVE_GIF" = yes; then
12287 LIBGIF=-lgif
12288 elif test "$HAVE_GIF" = maybe; then
12289 # If gif_lib.h but no libgif, try libungif.
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12291 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12292 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-lungif $LIBS"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char EGifPutExtensionLast ();
12308 main ()
12310 return EGifPutExtensionLast ();
12312 return 0;
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"; then :
12316 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12317 else
12318 ac_cv_lib_ungif_EGifPutExtensionLast=no
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12325 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12326 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12327 HAVE_GIF=yes
12328 else
12329 HAVE_GIF=no
12332 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12335 if test "${HAVE_GIF}" = "yes"; then
12337 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12343 if test "${HAVE_X11}" = "yes"; then
12344 MISSING=""
12345 WITH_NO=""
12346 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12347 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12348 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12349 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12350 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12351 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12352 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12353 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12354 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12355 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12357 if test "X${MISSING}" != X; then
12358 as_fn_error $? "The following required libraries were not found:
12359 $MISSING
12360 Maybe some development libraries/packages are missing?
12361 If you don't want to link with them give
12362 $WITH_NO
12363 as options to configure" "$LINENO" 5
12367 ### Use -lgpm if available, unless `--with-gpm=no'.
12368 HAVE_GPM=no
12369 LIBGPM=
12370 MOUSE_SUPPORT=
12371 if test "${with_gpm}" != "no"; then
12372 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12373 if test "x$ac_cv_header_gpm_h" = xyes; then :
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12375 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12376 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-lgpm $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 char Gpm_Open ();
12392 main ()
12394 return Gpm_Open ();
12396 return 0;
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400 ac_cv_lib_gpm_Gpm_Open=yes
12401 else
12402 ac_cv_lib_gpm_Gpm_Open=no
12404 rm -f core conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12409 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12410 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12411 HAVE_GPM=yes
12418 if test "${HAVE_GPM}" = "yes"; then
12420 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12422 LIBGPM=-lgpm
12423 ## May be reset below.
12424 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12429 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12430 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12432 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12438 C_SWITCH_X_SYSTEM=
12439 ### Use NeXTstep API to implement GUI.
12440 if test "${HAVE_NS}" = "yes"; then
12442 $as_echo "#define HAVE_NS 1" >>confdefs.h
12444 if test "${NS_IMPL_COCOA}" = "yes"; then
12446 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12448 GNU_OBJC_CFLAGS=
12450 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12452 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12454 # See also .m.o rule in Makefile.in */
12455 # FIXME: are all these flags really needed? Document here why. */
12456 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12457 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12459 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12461 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12464 # We also have mouse menus.
12465 HAVE_MENUS=yes
12466 OTHER_FILES=ns-app
12470 ### Use session management (-lSM -lICE) if available
12471 HAVE_X_SM=no
12472 LIBXSM=
12473 if test "${HAVE_X11}" = "yes"; then
12474 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12475 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12477 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12478 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-lSM -lICE $LIBS"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char SmcOpenConnection ();
12494 main ()
12496 return SmcOpenConnection ();
12498 return 0;
12500 _ACEOF
12501 if ac_fn_c_try_link "$LINENO"; then :
12502 ac_cv_lib_SM_SmcOpenConnection=yes
12503 else
12504 ac_cv_lib_SM_SmcOpenConnection=no
12506 rm -f core conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12508 LIBS=$ac_check_lib_save_LIBS
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12511 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12512 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12513 HAVE_X_SM=yes
12520 if test "${HAVE_X_SM}" = "yes"; then
12522 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12524 LIBXSM="-lSM -lICE"
12525 case "$LIBS" in
12526 *-lSM*) ;;
12527 *) LIBS="$LIBXSM $LIBS" ;;
12528 esac
12533 ### Use libxml (-lxml2) if available
12534 if test "${with_xml2}" != "no"; then
12535 ### I'm not sure what the version number should be, so I just guessed.
12537 succeeded=no
12539 # Extract the first word of "pkg-config", so it can be a program name with args.
12540 set dummy pkg-config; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 case $PKG_CONFIG in
12547 [\\/]* | ?:[\\/]*)
12548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12568 esac
12570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12571 if test -n "$PKG_CONFIG"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12573 $as_echo "$PKG_CONFIG" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12581 if test "$PKG_CONFIG" = "no" ; then
12582 HAVE_LIBXML2=no
12583 else
12584 PKG_CONFIG_MIN_VERSION=0.9.0
12585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12587 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12589 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592 succeeded=yes
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12595 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12596 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12598 $as_echo "$LIBXML2_CFLAGS" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12601 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12602 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12604 $as_echo "$LIBXML2_LIBS" >&6; }
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12608 LIBXML2_CFLAGS=""
12609 LIBXML2_LIBS=""
12610 ## If we have a custom action on failure, don't print errors, but
12611 ## do set a variable so people can do so.
12612 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12618 else
12619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12624 if test $succeeded = yes; then
12625 HAVE_LIBXML2=yes
12626 else
12627 HAVE_LIBXML2=no
12630 if test "${HAVE_LIBXML2}" = "yes"; then
12631 LIBS="$LIBXML2_LIBS $LIBS"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12633 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12634 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-lxml2 $LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char htmlReadMemory ();
12650 main ()
12652 return htmlReadMemory ();
12654 return 0;
12656 _ACEOF
12657 if ac_fn_c_try_link "$LINENO"; then :
12658 ac_cv_lib_xml2_htmlReadMemory=yes
12659 else
12660 ac_cv_lib_xml2_htmlReadMemory=no
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12667 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12668 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12669 HAVE_LIBXML2=yes
12670 else
12671 HAVE_LIBXML2=no
12674 if test "${HAVE_LIBXML2}" = "yes"; then
12676 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12678 else
12679 LIBXML2_LIBS=""
12680 LIBXML2_CFLAGS=""
12687 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12689 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12690 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 #include <netdb.h>
12697 main ()
12699 return h_errno;
12701 return 0;
12703 _ACEOF
12704 if ac_fn_c_try_link "$LINENO"; then :
12705 emacs_cv_netdb_declares_h_errno=yes
12706 else
12707 emacs_cv_netdb_declares_h_errno=no
12709 rm -f core conftest.err conftest.$ac_objext \
12710 conftest$ac_exeext conftest.$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12713 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12714 if test $emacs_cv_netdb_declares_h_errno = yes; then
12716 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12720 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12721 if test "x$ac_cv_type_size_t" = xyes; then :
12723 else
12725 cat >>confdefs.h <<_ACEOF
12726 #define size_t unsigned int
12727 _ACEOF
12731 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12732 # for constant arguments. Useless!
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12734 $as_echo_n "checking for working alloca.h... " >&6; }
12735 if ${ac_cv_working_alloca_h+:} false; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <alloca.h>
12742 main ()
12744 char *p = (char *) alloca (2 * sizeof (int));
12745 if (p) return 0;
12747 return 0;
12749 _ACEOF
12750 if ac_fn_c_try_link "$LINENO"; then :
12751 ac_cv_working_alloca_h=yes
12752 else
12753 ac_cv_working_alloca_h=no
12755 rm -f core conftest.err conftest.$ac_objext \
12756 conftest$ac_exeext conftest.$ac_ext
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12759 $as_echo "$ac_cv_working_alloca_h" >&6; }
12760 if test $ac_cv_working_alloca_h = yes; then
12762 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12767 $as_echo_n "checking for alloca... " >&6; }
12768 if ${ac_cv_func_alloca_works+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12773 #ifdef __GNUC__
12774 # define alloca __builtin_alloca
12775 #else
12776 # ifdef _MSC_VER
12777 # include <malloc.h>
12778 # define alloca _alloca
12779 # else
12780 # ifdef HAVE_ALLOCA_H
12781 # include <alloca.h>
12782 # else
12783 # ifdef _AIX
12784 #pragma alloca
12785 # else
12786 # ifndef alloca /* predefined by HP cc +Olibcalls */
12787 void *alloca (size_t);
12788 # endif
12789 # endif
12790 # endif
12791 # endif
12792 #endif
12795 main ()
12797 char *p = (char *) alloca (1);
12798 if (p) return 0;
12800 return 0;
12802 _ACEOF
12803 if ac_fn_c_try_link "$LINENO"; then :
12804 ac_cv_func_alloca_works=yes
12805 else
12806 ac_cv_func_alloca_works=no
12808 rm -f core conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12812 $as_echo "$ac_cv_func_alloca_works" >&6; }
12814 if test $ac_cv_func_alloca_works = yes; then
12816 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12818 else
12819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12820 # that cause trouble. Some versions do not even contain alloca or
12821 # contain a buggy version. If you still want to use their alloca,
12822 # use ar to extract alloca.o from them instead of compiling alloca.c.
12824 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12826 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12830 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12831 if ${ac_cv_os_cray+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 #if defined CRAY && ! defined CRAY2
12837 webecray
12838 #else
12839 wenotbecray
12840 #endif
12842 _ACEOF
12843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12844 $EGREP "webecray" >/dev/null 2>&1; then :
12845 ac_cv_os_cray=yes
12846 else
12847 ac_cv_os_cray=no
12849 rm -f conftest*
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12853 $as_echo "$ac_cv_os_cray" >&6; }
12854 if test $ac_cv_os_cray = yes; then
12855 for ac_func in _getb67 GETB67 getb67; do
12856 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12857 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12858 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12860 cat >>confdefs.h <<_ACEOF
12861 #define CRAY_STACKSEG_END $ac_func
12862 _ACEOF
12864 break
12867 done
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12871 $as_echo_n "checking stack direction for C alloca... " >&6; }
12872 if ${ac_cv_c_stack_direction+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 if test "$cross_compiling" = yes; then :
12876 ac_cv_c_stack_direction=0
12877 else
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 $ac_includes_default
12882 find_stack_direction ()
12884 static char *addr = 0;
12885 auto char dummy;
12886 if (addr == 0)
12888 addr = &dummy;
12889 return find_stack_direction ();
12891 else
12892 return (&dummy > addr) ? 1 : -1;
12896 main ()
12898 return find_stack_direction () < 0;
12900 _ACEOF
12901 if ac_fn_c_try_run "$LINENO"; then :
12902 ac_cv_c_stack_direction=1
12903 else
12904 ac_cv_c_stack_direction=-1
12906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12907 conftest.$ac_objext conftest.beam conftest.$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12912 $as_echo "$ac_cv_c_stack_direction" >&6; }
12913 cat >>confdefs.h <<_ACEOF
12914 #define STACK_DIRECTION $ac_cv_c_stack_direction
12915 _ACEOF
12921 if test x"$ac_cv_func_alloca_works" != xyes; then
12922 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12925 # fmod, logb, and frexp are found in -lm on most systems.
12926 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12928 $as_echo_n "checking for sqrt in -lm... " >&6; }
12929 if ${ac_cv_lib_m_sqrt+:} false; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 ac_check_lib_save_LIBS=$LIBS
12933 LIBS="-lm $LIBS"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char sqrt ();
12945 main ()
12947 return sqrt ();
12949 return 0;
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 ac_cv_lib_m_sqrt=yes
12954 else
12955 ac_cv_lib_m_sqrt=no
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12962 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12963 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_LIBM 1
12966 _ACEOF
12968 LIBS="-lm $LIBS"
12973 # Check for mail-locking functions in a "mail" library. Probably this should
12974 # have the same check as for liblockfile below.
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12976 $as_echo_n "checking for maillock in -lmail... " >&6; }
12977 if ${ac_cv_lib_mail_maillock+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 ac_check_lib_save_LIBS=$LIBS
12981 LIBS="-lmail $LIBS"
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12988 #ifdef __cplusplus
12989 extern "C"
12990 #endif
12991 char maillock ();
12993 main ()
12995 return maillock ();
12997 return 0;
12999 _ACEOF
13000 if ac_fn_c_try_link "$LINENO"; then :
13001 ac_cv_lib_mail_maillock=yes
13002 else
13003 ac_cv_lib_mail_maillock=no
13005 rm -f core conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13007 LIBS=$ac_check_lib_save_LIBS
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13010 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13011 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
13012 have_mail=yes
13013 else
13014 have_mail=no
13017 if test $have_mail = yes; then
13018 LIBS_MAIL=-lmail
13019 LIBS="$LIBS_MAIL $LIBS"
13021 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13023 else
13024 LIBS_MAIL=
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13027 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13028 if ${ac_cv_lib_lockfile_maillock+:} false; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 ac_check_lib_save_LIBS=$LIBS
13032 LIBS="-llockfile $LIBS"
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13039 #ifdef __cplusplus
13040 extern "C"
13041 #endif
13042 char maillock ();
13044 main ()
13046 return maillock ();
13048 return 0;
13050 _ACEOF
13051 if ac_fn_c_try_link "$LINENO"; then :
13052 ac_cv_lib_lockfile_maillock=yes
13053 else
13054 ac_cv_lib_lockfile_maillock=no
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13061 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13062 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
13063 have_lockfile=yes
13064 else
13065 have_lockfile=no
13068 if test $have_lockfile = yes; then
13069 LIBS_MAIL=-llockfile
13070 LIBS="$LIBS_MAIL $LIBS"
13072 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13074 else
13075 # If we have the shared liblockfile, assume we must use it for mail
13076 # locking (e.g. Debian). If we couldn't link against liblockfile
13077 # (no liblockfile.a installed), ensure that we don't need to.
13078 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13079 set dummy liblockfile.so; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if ${ac_cv_prog_liblockfile+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 if test -n "$liblockfile"; then
13086 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13087 else
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13090 for as_dir in $as_dummy
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096 ac_cv_prog_liblockfile="yes"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13100 done
13101 done
13102 IFS=$as_save_IFS
13104 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13107 liblockfile=$ac_cv_prog_liblockfile
13108 if test -n "$liblockfile"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13110 $as_echo "$liblockfile" >&6; }
13111 else
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13117 if test $ac_cv_prog_liblockfile = yes; then
13118 as_fn_error $? "Shared liblockfile found but can't link against it.
13119 This probably means that movemail could lose mail.
13120 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13123 for ac_func in touchlock
13124 do :
13125 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13126 if test "x$ac_cv_func_touchlock" = xyes; then :
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_TOUCHLOCK 1
13129 _ACEOF
13132 done
13134 for ac_header in maillock.h
13135 do :
13136 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13137 if test "x$ac_cv_header_maillock_h" = xyes; then :
13138 cat >>confdefs.h <<_ACEOF
13139 #define HAVE_MAILLOCK_H 1
13140 _ACEOF
13144 done
13148 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13149 ## interlock access to the mail spool. The alternative is a lock file named
13150 ## /usr/spool/mail/$USER.lock.
13151 mail_lock=no
13152 case "$opsys" in
13153 aix4-2) mail_lock="lockf" ;;
13155 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13157 ## On GNU/Linux systems, both methods are used by various mail programs.
13158 ## I assume most people are using newer mailers that have heard of flock.
13159 ## Change this if you need to.
13160 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13161 ## configure gets the right answers, and that means *NOT* using flock.
13162 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13163 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13164 ## Debian maintainer hasn't provided a clean fix for Emacs.
13165 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13166 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13167 ## correct logic. -- fx
13168 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13169 ## liblockfile is a Free Software replacement for libmail, used on
13170 ## Debian systems and elsewhere. -rfr.
13171 gnu-*)
13172 mail_lock="flock"
13173 if test $have_mail = yes || test $have_lockfile = yes; then
13174 test $ac_cv_header_maillock_h = yes && mail_lock=no
13177 esac
13179 BLESSMAIL_TARGET=
13180 case "$mail_lock" in
13181 flock)
13182 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13185 lockf)
13186 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13189 *) BLESSMAIL_TARGET="need-blessmail" ;;
13190 esac
13194 for ac_func in gethostname getdomainname dup2 \
13195 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13196 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13197 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13198 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13199 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13200 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13201 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13202 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13203 cfmakeraw cfsetspeed isnan copysign __executable_start
13204 do :
13205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13206 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13208 cat >>confdefs.h <<_ACEOF
13209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13210 _ACEOF
13213 done
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13217 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13218 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13225 main ()
13227 __builtin_unwind_init ();
13229 return 0;
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 emacs_cv_func___builtin_unwind_init=yes
13234 else
13235 emacs_cv_func___builtin_unwind_init=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13241 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13242 if test $emacs_cv_func___builtin_unwind_init = yes; then
13244 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13248 for ac_header in sys/un.h
13249 do :
13250 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13251 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_SYS_UN_H 1
13254 _ACEOF
13258 done
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13262 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13263 if ${ac_cv_sys_largefile_source+:} false; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 while :; do
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 #include <sys/types.h> /* for off_t */
13270 #include <stdio.h>
13272 main ()
13274 int (*fp) (FILE *, off_t, int) = fseeko;
13275 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13277 return 0;
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_sys_largefile_source=no; break
13283 rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext conftest.$ac_ext
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 #define _LARGEFILE_SOURCE 1
13288 #include <sys/types.h> /* for off_t */
13289 #include <stdio.h>
13291 main ()
13293 int (*fp) (FILE *, off_t, int) = fseeko;
13294 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13296 return 0;
13298 _ACEOF
13299 if ac_fn_c_try_link "$LINENO"; then :
13300 ac_cv_sys_largefile_source=1; break
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 ac_cv_sys_largefile_source=unknown
13305 break
13306 done
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13309 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13310 case $ac_cv_sys_largefile_source in #(
13311 no | unknown) ;;
13313 cat >>confdefs.h <<_ACEOF
13314 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13315 _ACEOF
13317 esac
13318 rm -rf conftest*
13320 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13321 # in glibc 2.1.3, but that breaks too many other things.
13322 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13323 if test $ac_cv_sys_largefile_source != unknown; then
13325 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13331 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13332 if ${ac_cv_func_getpgrp_void+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 # Use it with a single arg.
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 $ac_includes_default
13340 main ()
13342 getpgrp (0);
13344 return 0;
13346 _ACEOF
13347 if ac_fn_c_try_compile "$LINENO"; then :
13348 ac_cv_func_getpgrp_void=no
13349 else
13350 ac_cv_func_getpgrp_void=yes
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13356 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13357 if test $ac_cv_func_getpgrp_void = yes; then
13359 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13364 # Configure gnulib.
13375 LIBC_FATAL_STDERR_=1
13376 export LIBC_FATAL_STDERR_
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13380 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13381 if ${ac_cv_c_bigendian+:} false; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 ac_cv_c_bigendian=unknown
13385 # See if we're dealing with a universal compiler.
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 #ifndef __APPLE_CC__
13389 not a universal capable compiler
13390 #endif
13391 typedef int dummy;
13393 _ACEOF
13394 if ac_fn_c_try_compile "$LINENO"; then :
13396 # Check for potential -arch flags. It is not universal unless
13397 # there are at least two -arch flags with different values.
13398 ac_arch=
13399 ac_prev=
13400 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13401 if test -n "$ac_prev"; then
13402 case $ac_word in
13403 i?86 | x86_64 | ppc | ppc64)
13404 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13405 ac_arch=$ac_word
13406 else
13407 ac_cv_c_bigendian=universal
13408 break
13411 esac
13412 ac_prev=
13413 elif test "x$ac_word" = "x-arch"; then
13414 ac_prev=arch
13416 done
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 if test $ac_cv_c_bigendian = unknown; then
13420 # See if sys/param.h defines the BYTE_ORDER macro.
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 #include <sys/types.h>
13424 #include <sys/param.h>
13427 main ()
13429 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13430 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13431 && LITTLE_ENDIAN)
13432 bogus endian macros
13433 #endif
13436 return 0;
13438 _ACEOF
13439 if ac_fn_c_try_compile "$LINENO"; then :
13440 # It does; now see whether it defined to BIG_ENDIAN or not.
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include <sys/types.h>
13444 #include <sys/param.h>
13447 main ()
13449 #if BYTE_ORDER != BIG_ENDIAN
13450 not big endian
13451 #endif
13454 return 0;
13456 _ACEOF
13457 if ac_fn_c_try_compile "$LINENO"; then :
13458 ac_cv_c_bigendian=yes
13459 else
13460 ac_cv_c_bigendian=no
13462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466 if test $ac_cv_c_bigendian = unknown; then
13467 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 #include <limits.h>
13473 main ()
13475 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13476 bogus endian macros
13477 #endif
13480 return 0;
13482 _ACEOF
13483 if ac_fn_c_try_compile "$LINENO"; then :
13484 # It does; now see whether it defined to _BIG_ENDIAN or not.
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13487 #include <limits.h>
13490 main ()
13492 #ifndef _BIG_ENDIAN
13493 not big endian
13494 #endif
13497 return 0;
13499 _ACEOF
13500 if ac_fn_c_try_compile "$LINENO"; then :
13501 ac_cv_c_bigendian=yes
13502 else
13503 ac_cv_c_bigendian=no
13505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 if test $ac_cv_c_bigendian = unknown; then
13510 # Compile a test program.
13511 if test "$cross_compiling" = yes; then :
13512 # Try to guess by grepping values from an object file.
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 short int ascii_mm[] =
13516 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13517 short int ascii_ii[] =
13518 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13519 int use_ascii (int i) {
13520 return ascii_mm[i] + ascii_ii[i];
13522 short int ebcdic_ii[] =
13523 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13524 short int ebcdic_mm[] =
13525 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13526 int use_ebcdic (int i) {
13527 return ebcdic_mm[i] + ebcdic_ii[i];
13529 extern int foo;
13532 main ()
13534 return use_ascii (foo) == use_ebcdic (foo);
13536 return 0;
13538 _ACEOF
13539 if ac_fn_c_try_compile "$LINENO"; then :
13540 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13541 ac_cv_c_bigendian=yes
13543 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13544 if test "$ac_cv_c_bigendian" = unknown; then
13545 ac_cv_c_bigendian=no
13546 else
13547 # finding both strings is unlikely to happen, but who knows?
13548 ac_cv_c_bigendian=unknown
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 else
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 $ac_includes_default
13558 main ()
13561 /* Are we little or big endian? From Harbison&Steele. */
13562 union
13564 long int l;
13565 char c[sizeof (long int)];
13566 } u;
13567 u.l = 1;
13568 return u.c[sizeof (long int) - 1] == 1;
13571 return 0;
13573 _ACEOF
13574 if ac_fn_c_try_run "$LINENO"; then :
13575 ac_cv_c_bigendian=no
13576 else
13577 ac_cv_c_bigendian=yes
13579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13580 conftest.$ac_objext conftest.beam conftest.$ac_ext
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13586 $as_echo "$ac_cv_c_bigendian" >&6; }
13587 case $ac_cv_c_bigendian in #(
13588 yes)
13589 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13590 ;; #(
13592 ;; #(
13593 universal)
13595 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13597 ;; #(
13599 as_fn_error $? "unknown endianness
13600 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13601 esac
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13605 $as_echo_n "checking for inline... " >&6; }
13606 if ${ac_cv_c_inline+:} false; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 ac_cv_c_inline=no
13610 for ac_kw in inline __inline__ __inline; do
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #ifndef __cplusplus
13614 typedef int foo_t;
13615 static $ac_kw foo_t static_foo () {return 0; }
13616 $ac_kw foo_t foo () {return 0; }
13617 #endif
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621 ac_cv_c_inline=$ac_kw
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 test "$ac_cv_c_inline" != no && break
13625 done
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13629 $as_echo "$ac_cv_c_inline" >&6; }
13631 case $ac_cv_c_inline in
13632 inline | yes) ;;
13634 case $ac_cv_c_inline in
13635 no) ac_val=;;
13636 *) ac_val=$ac_cv_c_inline;;
13637 esac
13638 cat >>confdefs.h <<_ACEOF
13639 #ifndef __cplusplus
13640 #define inline $ac_val
13641 #endif
13642 _ACEOF
13644 esac
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13648 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13649 if ${gl_cv_func_c99_strtold+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 /* On HP-UX before 11.23, strtold returns a struct instead of
13655 long double. Reject implementations like that, by requiring
13656 compatibility with the C99 prototype. */
13657 #include <stdlib.h>
13658 static long double (*p) (char const *, char **) = strtold;
13659 static long double
13660 test (char const *nptr, char **endptr)
13662 long double r;
13663 r = strtold (nptr, endptr);
13664 return r;
13667 main ()
13669 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13671 return 0;
13673 _ACEOF
13674 if ac_fn_c_try_link "$LINENO"; then :
13675 gl_cv_func_c99_strtold=yes
13676 else
13677 gl_cv_func_c99_strtold=no
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13683 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13684 if test $gl_cv_func_c99_strtold = yes; then
13686 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13691 GNULIB__EXIT=0;
13692 GNULIB_ATOLL=0;
13693 GNULIB_CALLOC_POSIX=0;
13694 GNULIB_CANONICALIZE_FILE_NAME=0;
13695 GNULIB_GETLOADAVG=0;
13696 GNULIB_GETSUBOPT=0;
13697 GNULIB_GRANTPT=0;
13698 GNULIB_MALLOC_POSIX=0;
13699 GNULIB_MKDTEMP=0;
13700 GNULIB_MKOSTEMP=0;
13701 GNULIB_MKOSTEMPS=0;
13702 GNULIB_MKSTEMP=0;
13703 GNULIB_MKSTEMPS=0;
13704 GNULIB_PTSNAME=0;
13705 GNULIB_PUTENV=0;
13706 GNULIB_RANDOM_R=0;
13707 GNULIB_REALLOC_POSIX=0;
13708 GNULIB_REALPATH=0;
13709 GNULIB_RPMATCH=0;
13710 GNULIB_SETENV=0;
13711 GNULIB_STRTOD=0;
13712 GNULIB_STRTOLL=0;
13713 GNULIB_STRTOULL=0;
13714 GNULIB_SYSTEM_POSIX=0;
13715 GNULIB_UNLOCKPT=0;
13716 GNULIB_UNSETENV=0;
13717 HAVE__EXIT=1;
13718 HAVE_ATOLL=1;
13719 HAVE_CANONICALIZE_FILE_NAME=1;
13720 HAVE_DECL_GETLOADAVG=1;
13721 HAVE_GETSUBOPT=1;
13722 HAVE_GRANTPT=1;
13723 HAVE_MKDTEMP=1;
13724 HAVE_MKOSTEMP=1;
13725 HAVE_MKOSTEMPS=1;
13726 HAVE_MKSTEMP=1;
13727 HAVE_MKSTEMPS=1;
13728 HAVE_PTSNAME=1;
13729 HAVE_RANDOM_H=1;
13730 HAVE_RANDOM_R=1;
13731 HAVE_REALPATH=1;
13732 HAVE_RPMATCH=1;
13733 HAVE_SETENV=1;
13734 HAVE_DECL_SETENV=1;
13735 HAVE_STRTOD=1;
13736 HAVE_STRTOLL=1;
13737 HAVE_STRTOULL=1;
13738 HAVE_STRUCT_RANDOM_DATA=1;
13739 HAVE_SYS_LOADAVG_H=0;
13740 HAVE_UNLOCKPT=1;
13741 HAVE_DECL_UNSETENV=1;
13742 REPLACE_CALLOC=0;
13743 REPLACE_CANONICALIZE_FILE_NAME=0;
13744 REPLACE_MALLOC=0;
13745 REPLACE_MKSTEMP=0;
13746 REPLACE_PUTENV=0;
13747 REPLACE_REALLOC=0;
13748 REPLACE_REALPATH=0;
13749 REPLACE_SETENV=0;
13750 REPLACE_STRTOD=0;
13751 REPLACE_UNSETENV=0;
13754 GNULIB_CHOWN=0;
13755 GNULIB_CLOSE=0;
13756 GNULIB_DUP2=0;
13757 GNULIB_DUP3=0;
13758 GNULIB_ENVIRON=0;
13759 GNULIB_EUIDACCESS=0;
13760 GNULIB_FACCESSAT=0;
13761 GNULIB_FCHDIR=0;
13762 GNULIB_FCHOWNAT=0;
13763 GNULIB_FSYNC=0;
13764 GNULIB_FTRUNCATE=0;
13765 GNULIB_GETCWD=0;
13766 GNULIB_GETDOMAINNAME=0;
13767 GNULIB_GETDTABLESIZE=0;
13768 GNULIB_GETGROUPS=0;
13769 GNULIB_GETHOSTNAME=0;
13770 GNULIB_GETLOGIN=0;
13771 GNULIB_GETLOGIN_R=0;
13772 GNULIB_GETPAGESIZE=0;
13773 GNULIB_GETUSERSHELL=0;
13774 GNULIB_LCHOWN=0;
13775 GNULIB_LINK=0;
13776 GNULIB_LINKAT=0;
13777 GNULIB_LSEEK=0;
13778 GNULIB_PIPE=0;
13779 GNULIB_PIPE2=0;
13780 GNULIB_PREAD=0;
13781 GNULIB_PWRITE=0;
13782 GNULIB_READLINK=0;
13783 GNULIB_READLINKAT=0;
13784 GNULIB_RMDIR=0;
13785 GNULIB_SLEEP=0;
13786 GNULIB_SYMLINK=0;
13787 GNULIB_SYMLINKAT=0;
13788 GNULIB_TTYNAME_R=0;
13789 GNULIB_UNISTD_H_GETOPT=0;
13790 GNULIB_UNISTD_H_SIGPIPE=0;
13791 GNULIB_UNLINK=0;
13792 GNULIB_UNLINKAT=0;
13793 GNULIB_USLEEP=0;
13794 GNULIB_WRITE=0;
13795 HAVE_CHOWN=1;
13796 HAVE_DUP2=1;
13797 HAVE_DUP3=1;
13798 HAVE_EUIDACCESS=1;
13799 HAVE_FACCESSAT=1;
13800 HAVE_FCHDIR=1;
13801 HAVE_FCHOWNAT=1;
13802 HAVE_FSYNC=1;
13803 HAVE_FTRUNCATE=1;
13804 HAVE_GETDTABLESIZE=1;
13805 HAVE_GETGROUPS=1;
13806 HAVE_GETHOSTNAME=1;
13807 HAVE_GETLOGIN=1;
13808 HAVE_GETPAGESIZE=1;
13809 HAVE_LCHOWN=1;
13810 HAVE_LINK=1;
13811 HAVE_LINKAT=1;
13812 HAVE_PIPE=1;
13813 HAVE_PIPE2=1;
13814 HAVE_PREAD=1;
13815 HAVE_PWRITE=1;
13816 HAVE_READLINK=1;
13817 HAVE_READLINKAT=1;
13818 HAVE_SLEEP=1;
13819 HAVE_SYMLINK=1;
13820 HAVE_SYMLINKAT=1;
13821 HAVE_UNLINKAT=1;
13822 HAVE_USLEEP=1;
13823 HAVE_DECL_ENVIRON=1;
13824 HAVE_DECL_FCHDIR=1;
13825 HAVE_DECL_GETDOMAINNAME=1;
13826 HAVE_DECL_GETLOGIN_R=1;
13827 HAVE_DECL_GETPAGESIZE=1;
13828 HAVE_DECL_GETUSERSHELL=1;
13829 HAVE_DECL_TTYNAME_R=1;
13830 HAVE_OS_H=0;
13831 HAVE_SYS_PARAM_H=0;
13832 REPLACE_CHOWN=0;
13833 REPLACE_CLOSE=0;
13834 REPLACE_DUP=0;
13835 REPLACE_DUP2=0;
13836 REPLACE_FCHOWNAT=0;
13837 REPLACE_GETCWD=0;
13838 REPLACE_GETDOMAINNAME=0;
13839 REPLACE_GETLOGIN_R=0;
13840 REPLACE_GETGROUPS=0;
13841 REPLACE_GETPAGESIZE=0;
13842 REPLACE_LCHOWN=0;
13843 REPLACE_LINK=0;
13844 REPLACE_LINKAT=0;
13845 REPLACE_LSEEK=0;
13846 REPLACE_PREAD=0;
13847 REPLACE_PWRITE=0;
13848 REPLACE_READLINK=0;
13849 REPLACE_RMDIR=0;
13850 REPLACE_SLEEP=0;
13851 REPLACE_SYMLINK=0;
13852 REPLACE_TTYNAME_R=0;
13853 REPLACE_UNLINK=0;
13854 REPLACE_UNLINKAT=0;
13855 REPLACE_USLEEP=0;
13856 REPLACE_WRITE=0;
13857 UNISTD_H_HAVE_WINSOCK2_H=0;
13858 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13864 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13865 if ${gl_cv_have_include_next+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 rm -rf conftestd1a conftestd1b conftestd2
13869 mkdir conftestd1a conftestd1b conftestd2
13870 cat <<EOF > conftestd1a/conftest.h
13871 #define DEFINED_IN_CONFTESTD1
13872 #include_next <conftest.h>
13873 #ifdef DEFINED_IN_CONFTESTD2
13874 int foo;
13875 #else
13876 #error "include_next doesn't work"
13877 #endif
13879 cat <<EOF > conftestd1b/conftest.h
13880 #define DEFINED_IN_CONFTESTD1
13881 #include <stdio.h>
13882 #include_next <conftest.h>
13883 #ifdef DEFINED_IN_CONFTESTD2
13884 int foo;
13885 #else
13886 #error "include_next doesn't work"
13887 #endif
13889 cat <<EOF > conftestd2/conftest.h
13890 #ifndef DEFINED_IN_CONFTESTD1
13891 #error "include_next test doesn't work"
13892 #endif
13893 #define DEFINED_IN_CONFTESTD2
13895 gl_save_CPPFLAGS="$CPPFLAGS"
13896 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <conftest.h>
13900 _ACEOF
13901 if ac_fn_c_try_compile "$LINENO"; then :
13902 gl_cv_have_include_next=yes
13903 else
13904 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 #include <conftest.h>
13908 _ACEOF
13909 if ac_fn_c_try_compile "$LINENO"; then :
13910 gl_cv_have_include_next=buggy
13911 else
13912 gl_cv_have_include_next=no
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 CPPFLAGS="$gl_save_CPPFLAGS"
13919 rm -rf conftestd1a conftestd1b conftestd2
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13923 $as_echo "$gl_cv_have_include_next" >&6; }
13924 PRAGMA_SYSTEM_HEADER=
13925 if test $gl_cv_have_include_next = yes; then
13926 INCLUDE_NEXT=include_next
13927 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13928 if test -n "$GCC"; then
13929 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13931 else
13932 if test $gl_cv_have_include_next = buggy; then
13933 INCLUDE_NEXT=include
13934 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13935 else
13936 INCLUDE_NEXT=include
13937 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13944 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13945 if ${gl_cv_pragma_columns+:} false; then :
13946 $as_echo_n "(cached) " >&6
13947 else
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13951 #ifdef __TANDEM
13952 choke me
13953 #endif
13955 _ACEOF
13956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13957 $EGREP "choke me" >/dev/null 2>&1; then :
13958 gl_cv_pragma_columns=yes
13959 else
13960 gl_cv_pragma_columns=no
13962 rm -f conftest*
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13967 $as_echo "$gl_cv_pragma_columns" >&6; }
13968 if test $gl_cv_pragma_columns = yes; then
13969 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13970 else
13971 PRAGMA_COLUMNS=
13990 if test $gl_cv_have_include_next = yes; then
13991 gl_cv_next_getopt_h='<'getopt.h'>'
13992 else
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13994 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13995 if ${gl_cv_next_getopt_h+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13999 if test $ac_cv_header_getopt_h = yes; then
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004 #include <getopt.h>
14006 _ACEOF
14007 case "$host_os" in
14008 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14009 *) gl_absname_cpp="$ac_cpp" ;;
14010 esac
14011 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14012 sed -n '\#/getopt.h#{
14013 s#.*"\(.*/getopt.h\)".*#\1#
14014 s#^/[^/]#//&#
14017 }'`'"'
14018 else
14019 gl_cv_next_getopt_h='<'getopt.h'>'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14025 $as_echo "$gl_cv_next_getopt_h" >&6; }
14027 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14029 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14031 gl_next_as_first_directive='<'getopt.h'>'
14032 else
14033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14034 gl_next_as_first_directive=$gl_cv_next_getopt_h
14036 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14041 if test $ac_cv_header_getopt_h = yes; then
14042 HAVE_GETOPT_H=1
14043 else
14044 HAVE_GETOPT_H=0
14048 gl_replace_getopt=
14050 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14051 for ac_header in getopt.h
14052 do :
14053 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14054 if test "x$ac_cv_header_getopt_h" = xyes; then :
14055 cat >>confdefs.h <<_ACEOF
14056 #define HAVE_GETOPT_H 1
14057 _ACEOF
14059 else
14060 gl_replace_getopt=yes
14063 done
14067 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14068 for ac_func in getopt_long_only
14069 do :
14070 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14071 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14072 cat >>confdefs.h <<_ACEOF
14073 #define HAVE_GETOPT_LONG_ONLY 1
14074 _ACEOF
14076 else
14077 gl_replace_getopt=yes
14079 done
14083 if test -z "$gl_replace_getopt"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14085 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14086 if ${gl_cv_func_getopt_posix+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <unistd.h>
14094 main ()
14096 int *p = &optreset; return optreset;
14098 return 0;
14100 _ACEOF
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 gl_optind_min=1
14103 else
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 #include <getopt.h>
14108 main ()
14110 return !getopt_clip;
14112 return 0;
14114 _ACEOF
14115 if ac_fn_c_try_compile "$LINENO"; then :
14116 gl_optind_min=1
14117 else
14118 gl_optind_min=0
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 gl_save_CPPFLAGS=$CPPFLAGS
14125 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14126 if test "$cross_compiling" = yes; then :
14127 case "$host_os" in
14128 mingw*) gl_cv_func_getopt_posix="guessing no";;
14129 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14130 *) gl_cv_func_getopt_posix="guessing yes";;
14131 esac
14133 else
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14137 #include <unistd.h>
14138 #include <stdlib.h>
14139 #include <string.h>
14142 main ()
14145 int argc = 0;
14146 char *argv[10];
14147 int c;
14149 argv[argc++] = "program";
14150 argv[argc++] = "-a";
14151 argv[argc++] = "foo";
14152 argv[argc++] = "bar";
14153 argv[argc] = NULL;
14154 optind = OPTIND_MIN;
14155 opterr = 0;
14157 c = getopt (argc, argv, "ab");
14158 if (!(c == 'a'))
14159 return 1;
14160 c = getopt (argc, argv, "ab");
14161 if (!(c == -1))
14162 return 2;
14163 if (!(optind == 2))
14164 return 3;
14166 /* Some internal state exists at this point. */
14168 int argc = 0;
14169 char *argv[10];
14170 int c;
14172 argv[argc++] = "program";
14173 argv[argc++] = "donald";
14174 argv[argc++] = "-p";
14175 argv[argc++] = "billy";
14176 argv[argc++] = "duck";
14177 argv[argc++] = "-a";
14178 argv[argc++] = "bar";
14179 argv[argc] = NULL;
14180 optind = OPTIND_MIN;
14181 opterr = 0;
14183 c = getopt (argc, argv, "+abp:q:");
14184 if (!(c == -1))
14185 return 4;
14186 if (!(strcmp (argv[0], "program") == 0))
14187 return 5;
14188 if (!(strcmp (argv[1], "donald") == 0))
14189 return 6;
14190 if (!(strcmp (argv[2], "-p") == 0))
14191 return 7;
14192 if (!(strcmp (argv[3], "billy") == 0))
14193 return 8;
14194 if (!(strcmp (argv[4], "duck") == 0))
14195 return 9;
14196 if (!(strcmp (argv[5], "-a") == 0))
14197 return 10;
14198 if (!(strcmp (argv[6], "bar") == 0))
14199 return 11;
14200 if (!(optind == 1))
14201 return 12;
14203 /* Detect MacOS 10.5, AIX 7.1 bug. */
14205 char *argv[3] = { "program", "-ab", NULL };
14206 optind = OPTIND_MIN;
14207 opterr = 0;
14208 if (getopt (2, argv, "ab:") != 'a')
14209 return 13;
14210 if (getopt (2, argv, "ab:") != '?')
14211 return 14;
14212 if (optopt != 'b')
14213 return 15;
14214 if (optind != 2)
14215 return 16;
14218 return 0;
14221 _ACEOF
14222 if ac_fn_c_try_run "$LINENO"; then :
14223 gl_cv_func_getopt_posix=yes
14224 else
14225 gl_cv_func_getopt_posix=no
14227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14228 conftest.$ac_objext conftest.beam conftest.$ac_ext
14231 CPPFLAGS=$gl_save_CPPFLAGS
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14235 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14236 case "$gl_cv_func_getopt_posix" in
14237 *no) gl_replace_getopt=yes ;;
14238 esac
14241 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14243 $as_echo_n "checking for working GNU getopt function... " >&6; }
14244 if ${gl_cv_func_getopt_gnu+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14248 # optstring is necessary for programs like m4 that have POSIX-mandated
14249 # semantics for supporting options interspersed with files.
14250 # Also, since getopt_long is a GNU extension, we require optind=0.
14251 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14252 # so take care to revert to the correct (non-)export state.
14253 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14254 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14255 xx) gl_had_POSIXLY_CORRECT=exported ;;
14256 x) gl_had_POSIXLY_CORRECT=yes ;;
14257 *) gl_had_POSIXLY_CORRECT= ;;
14258 esac
14259 POSIXLY_CORRECT=1
14260 export POSIXLY_CORRECT
14261 if test "$cross_compiling" = yes; then :
14262 case $host_os:$ac_cv_have_decl_optreset in
14263 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14264 *:yes) gl_cv_func_getopt_gnu=no;;
14265 *) gl_cv_func_getopt_gnu=yes;;
14266 esac
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 #include <getopt.h>
14272 #include <stddef.h>
14273 #include <string.h>
14276 main ()
14279 int result = 0;
14280 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14281 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14282 OSF/1 5.1, Solaris 10. */
14284 char *myargv[3];
14285 myargv[0] = "conftest";
14286 myargv[1] = "-+";
14287 myargv[2] = 0;
14288 opterr = 0;
14289 if (getopt (2, myargv, "+a") != '?')
14290 result |= 1;
14292 /* This code succeeds on glibc 2.8, mingw,
14293 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14294 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14296 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14298 optind = 1;
14299 if (getopt (4, argv, "p::") != 'p')
14300 result |= 2;
14301 else if (optarg != NULL)
14302 result |= 4;
14303 else if (getopt (4, argv, "p::") != -1)
14304 result |= 6;
14305 else if (optind != 2)
14306 result |= 8;
14308 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14310 char *argv[] = { "program", "foo", "-p", NULL };
14311 optind = 0;
14312 if (getopt (3, argv, "-p") != 1)
14313 result |= 16;
14314 else if (getopt (3, argv, "-p") != 'p')
14315 result |= 32;
14317 /* This code fails on glibc 2.11. */
14319 char *argv[] = { "program", "-b", "-a", NULL };
14320 optind = opterr = 0;
14321 if (getopt (3, argv, "+:a:b") != 'b')
14322 result |= 64;
14323 else if (getopt (3, argv, "+:a:b") != ':')
14324 result |= 64;
14326 return result;
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_run "$LINENO"; then :
14333 gl_cv_func_getopt_gnu=yes
14334 else
14335 gl_cv_func_getopt_gnu=no
14337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14338 conftest.$ac_objext conftest.beam conftest.$ac_ext
14341 case $gl_had_POSIXLY_CORRECT in
14342 exported) ;;
14343 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14344 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14345 esac
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14349 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14350 if test "$gl_cv_func_getopt_gnu" = "no"; then
14351 gl_replace_getopt=yes
14355 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14356 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14357 ac_have_decl=1
14358 else
14359 ac_have_decl=0
14362 cat >>confdefs.h <<_ACEOF
14363 #define HAVE_DECL_GETENV $ac_have_decl
14364 _ACEOF
14371 if test -n "$gl_replace_getopt"; then :
14375 GETOPT_H=getopt.h
14377 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14381 GNULIB_UNISTD_H_GETOPT=1
14390 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14400 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14411 GNULIB_MKTIME=0;
14412 GNULIB_NANOSLEEP=0;
14413 GNULIB_STRPTIME=0;
14414 GNULIB_TIMEGM=0;
14415 GNULIB_TIME_R=0;
14416 HAVE_DECL_LOCALTIME_R=1;
14417 HAVE_NANOSLEEP=1;
14418 HAVE_STRPTIME=1;
14419 HAVE_TIMEGM=1;
14420 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14421 REPLACE_MKTIME=GNULIB_PORTCHECK;
14422 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14423 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14428 for ac_func in $ac_func_list
14429 do :
14430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14433 cat >>confdefs.h <<_ACEOF
14434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14435 _ACEOF
14438 done
14443 gl_cv_c_multiarch=no
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #ifndef __APPLE_CC__
14447 not a universal capable compiler
14448 #endif
14449 typedef int dummy;
14451 _ACEOF
14452 if ac_fn_c_try_compile "$LINENO"; then :
14454 arch=
14455 prev=
14456 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14457 if test -n "$prev"; then
14458 case $word in
14459 i?86 | x86_64 | ppc | ppc64)
14460 if test -z "$arch" || test "$arch" = "$word"; then
14461 arch="$word"
14462 else
14463 gl_cv_c_multiarch=yes
14466 esac
14467 prev=
14468 else
14469 if test "x$word" = "x-arch"; then
14470 prev=arch
14473 done
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14477 if test $gl_cv_c_multiarch = yes; then
14478 APPLE_UNIVERSAL_BUILD=1
14479 else
14480 APPLE_UNIVERSAL_BUILD=0
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14485 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14486 if ${ac_cv_header_stdbool_h+:} false; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14492 #include <stdbool.h>
14493 #ifndef bool
14494 "error: bool is not defined"
14495 #endif
14496 #ifndef false
14497 "error: false is not defined"
14498 #endif
14499 #if false
14500 "error: false is not 0"
14501 #endif
14502 #ifndef true
14503 "error: true is not defined"
14504 #endif
14505 #if true != 1
14506 "error: true is not 1"
14507 #endif
14508 #ifndef __bool_true_false_are_defined
14509 "error: __bool_true_false_are_defined is not defined"
14510 #endif
14512 struct s { _Bool s: 1; _Bool t; } s;
14514 char a[true == 1 ? 1 : -1];
14515 char b[false == 0 ? 1 : -1];
14516 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14517 char d[(bool) 0.5 == true ? 1 : -1];
14518 /* See body of main program for 'e'. */
14519 char f[(_Bool) 0.0 == false ? 1 : -1];
14520 char g[true];
14521 char h[sizeof (_Bool)];
14522 char i[sizeof s.t];
14523 enum { j = false, k = true, l = false * true, m = true * 256 };
14524 /* The following fails for
14525 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14526 _Bool n[m];
14527 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14528 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14529 /* Catch a bug in an HP-UX C compiler. See
14530 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14531 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14533 _Bool q = true;
14534 _Bool *pq = &q;
14537 main ()
14540 bool e = &s;
14541 *pq |= q;
14542 *pq |= ! q;
14543 /* Refer to every declared value, to avoid compiler optimizations. */
14544 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14545 + !m + !n + !o + !p + !q + !pq);
14548 return 0;
14550 _ACEOF
14551 if ac_fn_c_try_compile "$LINENO"; then :
14552 ac_cv_header_stdbool_h=yes
14553 else
14554 ac_cv_header_stdbool_h=no
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14559 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14560 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14561 if test "x$ac_cv_type__Bool" = xyes; then :
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE__BOOL 1
14565 _ACEOF
14572 REPLACE_NULL=0;
14573 HAVE_WCHAR_T=1;
14574 STDDEF_H='';
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14578 $as_echo_n "checking for wchar_t... " >&6; }
14579 if ${gt_cv_c_wchar_t+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <stddef.h>
14585 wchar_t foo = (wchar_t)'\0';
14587 main ()
14591 return 0;
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 gt_cv_c_wchar_t=yes
14596 else
14597 gt_cv_c_wchar_t=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14602 $as_echo "$gt_cv_c_wchar_t" >&6; }
14603 if test $gt_cv_c_wchar_t = yes; then
14605 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14611 $as_echo_n "checking for unsigned long long int... " >&6; }
14612 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 ac_cv_type_unsigned_long_long_int=yes
14616 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14620 /* For now, do not test the preprocessor; as of 2007 there are too many
14621 implementations with broken preprocessors. Perhaps this can
14622 be revisited in 2012. In the meantime, code should not expect
14623 #if to work with literals wider than 32 bits. */
14624 /* Test literals. */
14625 long long int ll = 9223372036854775807ll;
14626 long long int nll = -9223372036854775807LL;
14627 unsigned long long int ull = 18446744073709551615ULL;
14628 /* Test constant expressions. */
14629 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14630 ? 1 : -1)];
14631 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14632 ? 1 : -1)];
14633 int i = 63;
14635 main ()
14637 /* Test availability of runtime routines for shift and division. */
14638 long long int llmax = 9223372036854775807ll;
14639 unsigned long long int ullmax = 18446744073709551615ull;
14640 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14641 | (llmax / ll) | (llmax % ll)
14642 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14643 | (ullmax / ull) | (ullmax % ull));
14645 return 0;
14648 _ACEOF
14649 if ac_fn_c_try_link "$LINENO"; then :
14651 else
14652 ac_cv_type_unsigned_long_long_int=no
14654 rm -f core conftest.err conftest.$ac_objext \
14655 conftest$ac_exeext conftest.$ac_ext
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14659 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14660 if test $ac_cv_type_unsigned_long_long_int = yes; then
14662 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14669 $as_echo_n "checking for long long int... " >&6; }
14670 if ${ac_cv_type_long_long_int+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 ac_cv_type_long_long_int=yes
14674 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14675 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14676 if test $ac_cv_type_long_long_int = yes; then
14677 if test "$cross_compiling" = yes; then :
14679 else
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <limits.h>
14683 #ifndef LLONG_MAX
14684 # define HALF \
14685 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14686 # define LLONG_MAX (HALF - 1 + HALF)
14687 #endif
14689 main ()
14691 long long int n = 1;
14692 int i;
14693 for (i = 0; ; i++)
14695 long long int m = n << i;
14696 if (m >> i != n)
14697 return 1;
14698 if (LLONG_MAX / 2 < m)
14699 break;
14701 return 0;
14703 return 0;
14705 _ACEOF
14706 if ac_fn_c_try_run "$LINENO"; then :
14708 else
14709 ac_cv_type_long_long_int=no
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14712 conftest.$ac_objext conftest.beam conftest.$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14719 $as_echo "$ac_cv_type_long_long_int" >&6; }
14720 if test $ac_cv_type_long_long_int = yes; then
14722 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14731 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14733 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14735 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14743 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14744 if ${ac_cv_c_restrict+:} false; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 ac_cv_c_restrict=no
14748 # The order here caters to the fact that C++ does not require restrict.
14749 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 typedef int * int_ptr;
14753 int foo (int_ptr $ac_kw ip) {
14754 return ip[0];
14757 main ()
14759 int s[1];
14760 int * $ac_kw t = s;
14761 t[0] = 0;
14762 return foo(t)
14764 return 0;
14766 _ACEOF
14767 if ac_fn_c_try_compile "$LINENO"; then :
14768 ac_cv_c_restrict=$ac_kw
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 test "$ac_cv_c_restrict" != no && break
14772 done
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14776 $as_echo "$ac_cv_c_restrict" >&6; }
14778 case $ac_cv_c_restrict in
14779 restrict) ;;
14780 no) $as_echo "#define restrict /**/" >>confdefs.h
14782 *) cat >>confdefs.h <<_ACEOF
14783 #define restrict $ac_cv_c_restrict
14784 _ACEOF
14786 esac
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14793 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14794 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799 #include <time.h>
14802 main ()
14804 static struct timespec x; x.tv_sec = x.tv_nsec;
14806 return 0;
14808 _ACEOF
14809 if ac_fn_c_try_compile "$LINENO"; then :
14810 gl_cv_sys_struct_timespec_in_time_h=yes
14811 else
14812 gl_cv_sys_struct_timespec_in_time_h=no
14814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14817 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14819 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14820 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14821 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14822 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14823 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14824 else
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14826 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14827 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 #include <sys/time.h>
14835 main ()
14837 static struct timespec x; x.tv_sec = x.tv_nsec;
14839 return 0;
14841 _ACEOF
14842 if ac_fn_c_try_compile "$LINENO"; then :
14843 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14844 else
14845 gl_cv_sys_struct_timespec_in_sys_time_h=no
14847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14850 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14851 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14852 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14853 else
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14855 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14856 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <pthread.h>
14864 main ()
14866 static struct timespec x; x.tv_sec = x.tv_nsec;
14868 return 0;
14870 _ACEOF
14871 if ac_fn_c_try_compile "$LINENO"; then :
14872 gl_cv_sys_struct_timespec_in_pthread_h=yes
14873 else
14874 gl_cv_sys_struct_timespec_in_pthread_h=no
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14879 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14880 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14881 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14900 if test $gl_cv_have_include_next = yes; then
14901 gl_cv_next_time_h='<'time.h'>'
14902 else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14904 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14905 if ${gl_cv_next_time_h+:} false; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 #include <time.h>
14913 _ACEOF
14914 case "$host_os" in
14915 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14916 *) gl_absname_cpp="$ac_cpp" ;;
14917 esac
14918 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14919 sed -n '\#/time.h#{
14920 s#.*"\(.*/time.h\)".*#\1#
14921 s#^/[^/]#//&#
14924 }'`'"'
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14929 $as_echo "$gl_cv_next_time_h" >&6; }
14931 NEXT_TIME_H=$gl_cv_next_time_h
14933 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14935 gl_next_as_first_directive='<'time.h'>'
14936 else
14937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14938 gl_next_as_first_directive=$gl_cv_next_time_h
14940 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14947 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14948 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14949 ac_have_decl=1
14950 else
14951 ac_have_decl=0
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14956 _ACEOF
14961 if false; then
14962 GL_COND_LIBTOOL_TRUE=
14963 GL_COND_LIBTOOL_FALSE='#'
14964 else
14965 GL_COND_LIBTOOL_TRUE='#'
14966 GL_COND_LIBTOOL_FALSE=
14969 gl_cond_libtool=false
14970 gl_libdeps=
14971 gl_ltlibdeps=
14972 gl_m4_base='m4'
14982 gl_source_base='lib'
14983 # Code from module arg-nonnull:
14984 # Code from module c++defs:
14985 # Code from module crypto/md5:
14995 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15002 # Code from module dtoastr:
15004 # Code from module extensions:
15005 # Code from module getloadavg:
15008 # Persuade glibc <stdlib.h> to declare getloadavg().
15011 # Make sure getloadavg.c is where it belongs, at configure-time.
15012 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15013 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15015 gl_save_LIBS=$LIBS
15017 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15018 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15019 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15020 if test "x$ac_cv_func_getloadavg" = xyes; then :
15022 else
15023 gl_have_func=no
15025 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15026 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15027 # to get the right answer into the cache.
15028 # For kstat on solaris, we need to test for libelf and libkvm to force the
15029 # definition of SVR4 below.
15030 if test $gl_have_func = no; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15032 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15033 if ${ac_cv_lib_elf_elf_begin+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 ac_check_lib_save_LIBS=$LIBS
15037 LIBS="-lelf $LIBS"
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15041 /* Override any GCC internal prototype to avoid an error.
15042 Use char because int might match the return type of a GCC
15043 builtin and then its argument prototype would still apply. */
15044 #ifdef __cplusplus
15045 extern "C"
15046 #endif
15047 char elf_begin ();
15049 main ()
15051 return elf_begin ();
15053 return 0;
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15057 ac_cv_lib_elf_elf_begin=yes
15058 else
15059 ac_cv_lib_elf_elf_begin=no
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15063 LIBS=$ac_check_lib_save_LIBS
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15066 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15067 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15068 LIBS="-lelf $LIBS"
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15072 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15073 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 ac_check_lib_save_LIBS=$LIBS
15077 LIBS="-lkvm $LIBS"
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15081 /* Override any GCC internal prototype to avoid an error.
15082 Use char because int might match the return type of a GCC
15083 builtin and then its argument prototype would still apply. */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 char kvm_open ();
15089 main ()
15091 return kvm_open ();
15093 return 0;
15095 _ACEOF
15096 if ac_fn_c_try_link "$LINENO"; then :
15097 ac_cv_lib_kvm_kvm_open=yes
15098 else
15099 ac_cv_lib_kvm_kvm_open=no
15101 rm -f core conftest.err conftest.$ac_objext \
15102 conftest$ac_exeext conftest.$ac_ext
15103 LIBS=$ac_check_lib_save_LIBS
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15106 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15107 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15108 LIBS="-lkvm $LIBS"
15111 # Check for the 4.4BSD definition of getloadavg.
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15113 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15114 if ${ac_cv_lib_util_getloadavg+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 ac_check_lib_save_LIBS=$LIBS
15118 LIBS="-lutil $LIBS"
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15122 /* Override any GCC internal prototype to avoid an error.
15123 Use char because int might match the return type of a GCC
15124 builtin and then its argument prototype would still apply. */
15125 #ifdef __cplusplus
15126 extern "C"
15127 #endif
15128 char getloadavg ();
15130 main ()
15132 return getloadavg ();
15134 return 0;
15136 _ACEOF
15137 if ac_fn_c_try_link "$LINENO"; then :
15138 ac_cv_lib_util_getloadavg=yes
15139 else
15140 ac_cv_lib_util_getloadavg=no
15142 rm -f core conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15144 LIBS=$ac_check_lib_save_LIBS
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15147 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15148 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15149 LIBS="-lutil $LIBS" gl_have_func=yes
15154 if test $gl_have_func = no; then
15155 # There is a commonly available library for RS/6000 AIX.
15156 # Since it is not a standard part of AIX, it might be installed locally.
15157 gl_getloadavg_LIBS=$LIBS
15158 LIBS="-L/usr/local/lib $LIBS"
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15160 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15161 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 ac_check_lib_save_LIBS=$LIBS
15165 LIBS="-lgetloadavg $LIBS"
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15169 /* Override any GCC internal prototype to avoid an error.
15170 Use char because int might match the return type of a GCC
15171 builtin and then its argument prototype would still apply. */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 char getloadavg ();
15177 main ()
15179 return getloadavg ();
15181 return 0;
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"; then :
15185 ac_cv_lib_getloadavg_getloadavg=yes
15186 else
15187 ac_cv_lib_getloadavg_getloadavg=no
15189 rm -f core conftest.err conftest.$ac_objext \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15194 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15195 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15196 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15197 else
15198 LIBS=$gl_getloadavg_LIBS
15203 # Set up the replacement function if necessary.
15204 if test $gl_have_func = no; then
15213 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15216 # Figure out what our getloadavg.c needs.
15218 # Solaris has libkstat which does not require root.
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15220 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15221 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
15222 $as_echo_n "(cached) " >&6
15223 else
15224 ac_check_lib_save_LIBS=$LIBS
15225 LIBS="-lkstat $LIBS"
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15229 /* Override any GCC internal prototype to avoid an error.
15230 Use char because int might match the return type of a GCC
15231 builtin and then its argument prototype would still apply. */
15232 #ifdef __cplusplus
15233 extern "C"
15234 #endif
15235 char kstat_open ();
15237 main ()
15239 return kstat_open ();
15241 return 0;
15243 _ACEOF
15244 if ac_fn_c_try_link "$LINENO"; then :
15245 ac_cv_lib_kstat_kstat_open=yes
15246 else
15247 ac_cv_lib_kstat_kstat_open=no
15249 rm -f core conftest.err conftest.$ac_objext \
15250 conftest$ac_exeext conftest.$ac_ext
15251 LIBS=$ac_check_lib_save_LIBS
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15254 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15255 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15256 cat >>confdefs.h <<_ACEOF
15257 #define HAVE_LIBKSTAT 1
15258 _ACEOF
15260 LIBS="-lkstat $LIBS"
15264 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15266 # On HPUX9, an unprivileged user can get load averages this way.
15267 if test $gl_have_func = no; then
15268 for ac_func in pstat_getdynamic
15269 do :
15270 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15271 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_PSTAT_GETDYNAMIC 1
15274 _ACEOF
15275 gl_have_func=yes
15277 done
15281 # AIX has libperfstat which does not require root
15282 if test $gl_have_func = no; then
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15284 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15285 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 ac_check_lib_save_LIBS=$LIBS
15289 LIBS="-lperfstat $LIBS"
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char perfstat_cpu_total ();
15301 main ()
15303 return perfstat_cpu_total ();
15305 return 0;
15307 _ACEOF
15308 if ac_fn_c_try_link "$LINENO"; then :
15309 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15310 else
15311 ac_cv_lib_perfstat_perfstat_cpu_total=no
15313 rm -f core conftest.err conftest.$ac_objext \
15314 conftest$ac_exeext conftest.$ac_ext
15315 LIBS=$ac_check_lib_save_LIBS
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15318 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15319 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15320 cat >>confdefs.h <<_ACEOF
15321 #define HAVE_LIBPERFSTAT 1
15322 _ACEOF
15324 LIBS="-lperfstat $LIBS"
15328 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15331 if test $gl_have_func = no; then
15332 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15333 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15334 gl_have_func=yes
15336 $as_echo "#define DGUX 1" >>confdefs.h
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15339 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15340 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15343 ac_check_lib_save_LIBS=$LIBS
15344 LIBS="-ldgc $LIBS"
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15348 /* Override any GCC internal prototype to avoid an error.
15349 Use char because int might match the return type of a GCC
15350 builtin and then its argument prototype would still apply. */
15351 #ifdef __cplusplus
15352 extern "C"
15353 #endif
15354 char dg_sys_info ();
15356 main ()
15358 return dg_sys_info ();
15360 return 0;
15362 _ACEOF
15363 if ac_fn_c_try_link "$LINENO"; then :
15364 ac_cv_lib_dgc_dg_sys_info=yes
15365 else
15366 ac_cv_lib_dgc_dg_sys_info=no
15368 rm -f core conftest.err conftest.$ac_objext \
15369 conftest$ac_exeext conftest.$ac_ext
15370 LIBS=$ac_check_lib_save_LIBS
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15373 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15374 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15375 cat >>confdefs.h <<_ACEOF
15376 #define HAVE_LIBDGC 1
15377 _ACEOF
15379 LIBS="-ldgc $LIBS"
15388 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15389 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15390 # Irix 4.0.5F has the header but not the library.
15391 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15392 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15393 gl_have_func=yes
15395 $as_echo "#define SVR4 1" >>confdefs.h
15399 if test $gl_have_func = no; then
15400 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15401 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15402 gl_have_func=yes
15404 $as_echo "#define UMAX 1" >>confdefs.h
15407 $as_echo "#define UMAX4_3 1" >>confdefs.h
15414 if test $gl_have_func = no; then
15415 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15416 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15417 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15424 if test $gl_have_func = no; then
15425 for ac_header in mach/mach.h
15426 do :
15427 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15428 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_MACH_MACH_H 1
15431 _ACEOF
15435 done
15439 for ac_header in nlist.h
15440 do :
15441 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15442 if test "x$ac_cv_header_nlist_h" = xyes; then :
15443 cat >>confdefs.h <<_ACEOF
15444 #define HAVE_NLIST_H 1
15445 _ACEOF
15446 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15448 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15450 cat >>confdefs.h <<_ACEOF
15451 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15452 _ACEOF
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15459 #include <nlist.h>
15461 main ()
15463 struct nlist x;
15464 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15465 x.n_un.n_name = "";
15466 #else
15467 x.n_name = "";
15468 #endif
15470 return 0;
15472 _ACEOF
15473 if ac_fn_c_try_link "$LINENO"; then :
15475 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15478 rm -f core conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15483 done
15489 if test "x$gl_save_LIBS" = x; then
15490 GETLOADAVG_LIBS=$LIBS
15491 else
15492 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15494 LIBS=$gl_save_LIBS
15497 # Test whether the system declares getloadavg. Solaris has the function
15498 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15499 for ac_header in sys/loadavg.h
15500 do :
15501 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15502 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15503 cat >>confdefs.h <<_ACEOF
15504 #define HAVE_SYS_LOADAVG_H 1
15505 _ACEOF
15509 done
15511 if test $ac_cv_header_sys_loadavg_h = yes; then
15512 HAVE_SYS_LOADAVG_H=1
15513 else
15514 HAVE_SYS_LOADAVG_H=0
15516 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15517 # include <sys/loadavg.h>
15518 #endif
15519 #include <stdlib.h>
15521 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15523 else
15524 HAVE_DECL_GETLOADAVG=0
15531 GNULIB_GETLOADAVG=1
15535 # Code from module getopt-gnu:
15542 # Code from module getopt-posix:
15548 if test -n "$gl_replace_getopt"; then :
15552 GETOPT_H=getopt.h
15554 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15558 GNULIB_UNISTD_H_GETOPT=1
15567 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15577 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15587 # Code from module gettext-h:
15590 # Code from module ignore-value:
15592 # Code from module include_next:
15593 # Code from module intprops:
15594 # Code from module mktime:
15600 if test $APPLE_UNIVERSAL_BUILD = 1; then
15601 # A universal build on Apple MacOS X platforms.
15602 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15603 # But we need a configuration result that is valid in both modes.
15604 ac_cv_func_working_mktime=no
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15607 $as_echo_n "checking for working mktime... " >&6; }
15608 if ${ac_cv_func_working_mktime+:} false; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15611 if test "$cross_compiling" = yes; then :
15612 ac_cv_func_working_mktime=no
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 /* Test program from Paul Eggert and Tony Leneis. */
15617 #include <limits.h>
15618 #include <stdlib.h>
15619 #include <time.h>
15621 #ifdef HAVE_UNISTD_H
15622 # include <unistd.h>
15623 #endif
15625 #ifndef HAVE_ALARM
15626 # define alarm(X) /* empty */
15627 #endif
15629 /* Work around redefinition to rpl_putenv by other config tests. */
15630 #undef putenv
15632 static time_t time_t_max;
15633 static time_t time_t_min;
15635 /* Values we'll use to set the TZ environment variable. */
15636 static char *tz_strings[] = {
15637 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15638 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15640 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15642 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15643 Based on a problem report from Andreas Jaeger. */
15644 static int
15645 spring_forward_gap ()
15647 /* glibc (up to about 1998-10-07) failed this test. */
15648 struct tm tm;
15650 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15651 instead of "TZ=America/Vancouver" in order to detect the bug even
15652 on systems that don't support the Olson extension, or don't have the
15653 full zoneinfo tables installed. */
15654 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15656 tm.tm_year = 98;
15657 tm.tm_mon = 3;
15658 tm.tm_mday = 5;
15659 tm.tm_hour = 2;
15660 tm.tm_min = 0;
15661 tm.tm_sec = 0;
15662 tm.tm_isdst = -1;
15663 return mktime (&tm) != (time_t) -1;
15666 static int
15667 mktime_test1 (time_t now)
15669 struct tm *lt;
15670 return ! (lt = localtime (&now)) || mktime (lt) == now;
15673 static int
15674 mktime_test (time_t now)
15676 return (mktime_test1 (now)
15677 && mktime_test1 ((time_t) (time_t_max - now))
15678 && mktime_test1 ((time_t) (time_t_min + now)));
15681 static int
15682 irix_6_4_bug ()
15684 /* Based on code from Ariel Faigon. */
15685 struct tm tm;
15686 tm.tm_year = 96;
15687 tm.tm_mon = 3;
15688 tm.tm_mday = 0;
15689 tm.tm_hour = 0;
15690 tm.tm_min = 0;
15691 tm.tm_sec = 0;
15692 tm.tm_isdst = -1;
15693 mktime (&tm);
15694 return tm.tm_mon == 2 && tm.tm_mday == 31;
15697 static int
15698 bigtime_test (int j)
15700 struct tm tm;
15701 time_t now;
15702 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15703 now = mktime (&tm);
15704 if (now != (time_t) -1)
15706 struct tm *lt = localtime (&now);
15707 if (! (lt
15708 && lt->tm_year == tm.tm_year
15709 && lt->tm_mon == tm.tm_mon
15710 && lt->tm_mday == tm.tm_mday
15711 && lt->tm_hour == tm.tm_hour
15712 && lt->tm_min == tm.tm_min
15713 && lt->tm_sec == tm.tm_sec
15714 && lt->tm_yday == tm.tm_yday
15715 && lt->tm_wday == tm.tm_wday
15716 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15717 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15718 return 0;
15720 return 1;
15723 static int
15724 year_2050_test ()
15726 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15727 ignoring leap seconds. */
15728 unsigned long int answer = 2527315200UL;
15730 struct tm tm;
15731 time_t t;
15732 tm.tm_year = 2050 - 1900;
15733 tm.tm_mon = 2 - 1;
15734 tm.tm_mday = 1;
15735 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15736 tm.tm_isdst = -1;
15738 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15739 instead of "TZ=America/Vancouver" in order to detect the bug even
15740 on systems that don't support the Olson extension, or don't have the
15741 full zoneinfo tables installed. */
15742 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15744 t = mktime (&tm);
15746 /* Check that the result is either a failure, or close enough
15747 to the correct answer that we can assume the discrepancy is
15748 due to leap seconds. */
15749 return (t == (time_t) -1
15750 || (0 < t && answer - 120 <= t && t <= answer + 120));
15754 main ()
15756 int result = 0;
15757 time_t t, delta;
15758 int i, j;
15759 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15760 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15762 /* This test makes some buggy mktime implementations loop.
15763 Give up after 60 seconds; a mktime slower than that
15764 isn't worth using anyway. */
15765 alarm (60);
15767 time_t_max = (! time_t_signed
15768 ? (time_t) -1
15769 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15770 * 2 + 1));
15771 time_t_min = (! time_t_signed
15772 ? (time_t) 0
15773 : time_t_signed_magnitude
15774 ? ~ (time_t) 0
15775 : ~ time_t_max);
15777 delta = time_t_max / 997; /* a suitable prime number */
15778 for (i = 0; i < N_STRINGS; i++)
15780 if (tz_strings[i])
15781 putenv (tz_strings[i]);
15783 for (t = 0; t <= time_t_max - delta; t += delta)
15784 if (! mktime_test (t))
15785 result |= 1;
15786 if (! (mktime_test ((time_t) 1)
15787 && mktime_test ((time_t) (60 * 60))
15788 && mktime_test ((time_t) (60 * 60 * 24))))
15789 result |= 2;
15791 for (j = 1; ; j <<= 1)
15792 if (! bigtime_test (j))
15793 result |= 4;
15794 else if (INT_MAX / 2 < j)
15795 break;
15796 if (! bigtime_test (INT_MAX))
15797 result |= 8;
15799 if (! irix_6_4_bug ())
15800 result |= 16;
15801 if (! spring_forward_gap ())
15802 result |= 32;
15803 if (! year_2050_test ())
15804 result |= 64;
15805 return result;
15807 _ACEOF
15808 if ac_fn_c_try_run "$LINENO"; then :
15809 ac_cv_func_working_mktime=yes
15810 else
15811 ac_cv_func_working_mktime=no
15813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15814 conftest.$ac_objext conftest.beam conftest.$ac_ext
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15819 $as_echo "$ac_cv_func_working_mktime" >&6; }
15820 if test $ac_cv_func_working_mktime = no; then
15829 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15833 if test $ac_cv_func_working_mktime = no; then
15834 REPLACE_MKTIME=1
15838 else
15839 REPLACE_MKTIME=0
15845 GNULIB_MKTIME=1
15849 # Code from module multiarch:
15851 # Code from module stdbool:
15855 # Define two additional variables used in the Makefile substitution.
15857 if test "$ac_cv_header_stdbool_h" = yes; then
15858 STDBOOL_H=''
15859 else
15860 STDBOOL_H='stdbool.h'
15864 if test "$ac_cv_type__Bool" = yes; then
15865 HAVE__BOOL=1
15866 else
15867 HAVE__BOOL=0
15871 # Code from module stddef:
15875 if test $gt_cv_c_wchar_t = no; then
15876 HAVE_WCHAR_T=0
15877 STDDEF_H=stddef.h
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15880 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15881 if ${gl_cv_decl_null_works+:} false; then :
15882 $as_echo_n "(cached) " >&6
15883 else
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 #include <stddef.h>
15887 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15890 main ()
15894 return 0;
15896 _ACEOF
15897 if ac_fn_c_try_compile "$LINENO"; then :
15898 gl_cv_decl_null_works=yes
15899 else
15900 gl_cv_decl_null_works=no
15902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15905 $as_echo "$gl_cv_decl_null_works" >&6; }
15906 if test $gl_cv_decl_null_works = no; then
15907 REPLACE_NULL=1
15908 STDDEF_H=stddef.h
15910 if test -n "$STDDEF_H"; then
15919 if test $gl_cv_have_include_next = yes; then
15920 gl_cv_next_stddef_h='<'stddef.h'>'
15921 else
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15923 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15924 if ${gl_cv_next_stddef_h+:} false; then :
15925 $as_echo_n "(cached) " >&6
15926 else
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 #include <stddef.h>
15932 _ACEOF
15933 case "$host_os" in
15934 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15935 *) gl_absname_cpp="$ac_cpp" ;;
15936 esac
15937 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15938 sed -n '\#/stddef.h#{
15939 s#.*"\(.*/stddef.h\)".*#\1#
15940 s#^/[^/]#//&#
15943 }'`'"'
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15948 $as_echo "$gl_cv_next_stddef_h" >&6; }
15950 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15952 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15953 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15954 gl_next_as_first_directive='<'stddef.h'>'
15955 else
15956 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15957 gl_next_as_first_directive=$gl_cv_next_stddef_h
15959 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15966 # Code from module stdint:
15970 if test $ac_cv_type_long_long_int = yes; then
15971 HAVE_LONG_LONG_INT=1
15972 else
15973 HAVE_LONG_LONG_INT=0
15977 if test $ac_cv_type_unsigned_long_long_int = yes; then
15978 HAVE_UNSIGNED_LONG_LONG_INT=1
15979 else
15980 HAVE_UNSIGNED_LONG_LONG_INT=0
15985 if test $ac_cv_header_wchar_h = yes; then
15986 HAVE_WCHAR_H=1
15987 else
15988 HAVE_WCHAR_H=0
15992 if test $ac_cv_header_inttypes_h = yes; then
15993 HAVE_INTTYPES_H=1
15994 else
15995 HAVE_INTTYPES_H=0
15999 if test $ac_cv_header_sys_types_h = yes; then
16000 HAVE_SYS_TYPES_H=1
16001 else
16002 HAVE_SYS_TYPES_H=0
16015 if test $gl_cv_have_include_next = yes; then
16016 gl_cv_next_stdint_h='<'stdint.h'>'
16017 else
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16019 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16020 if ${gl_cv_next_stdint_h+:} false; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16024 if test $ac_cv_header_stdint_h = yes; then
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16029 #include <stdint.h>
16031 _ACEOF
16032 case "$host_os" in
16033 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16034 *) gl_absname_cpp="$ac_cpp" ;;
16035 esac
16036 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16037 sed -n '\#/stdint.h#{
16038 s#.*"\(.*/stdint.h\)".*#\1#
16039 s#^/[^/]#//&#
16042 }'`'"'
16043 else
16044 gl_cv_next_stdint_h='<'stdint.h'>'
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16050 $as_echo "$gl_cv_next_stdint_h" >&6; }
16052 NEXT_STDINT_H=$gl_cv_next_stdint_h
16054 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16055 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16056 gl_next_as_first_directive='<'stdint.h'>'
16057 else
16058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16059 gl_next_as_first_directive=$gl_cv_next_stdint_h
16061 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16066 if test $ac_cv_header_stdint_h = yes; then
16067 HAVE_STDINT_H=1
16068 else
16069 HAVE_STDINT_H=0
16073 if test $ac_cv_header_stdint_h = yes; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16075 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16076 if ${gl_cv_header_working_stdint_h+:} false; then :
16077 $as_echo_n "(cached) " >&6
16078 else
16079 gl_cv_header_working_stdint_h=no
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16084 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16085 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16086 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16087 #include <stdint.h>
16088 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16089 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16090 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16091 #endif
16094 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16095 included before <wchar.h>. */
16096 #include <stddef.h>
16097 #include <signal.h>
16098 #if HAVE_WCHAR_H
16099 # include <stdio.h>
16100 # include <time.h>
16101 # include <wchar.h>
16102 #endif
16105 #ifdef INT8_MAX
16106 int8_t a1 = INT8_MAX;
16107 int8_t a1min = INT8_MIN;
16108 #endif
16109 #ifdef INT16_MAX
16110 int16_t a2 = INT16_MAX;
16111 int16_t a2min = INT16_MIN;
16112 #endif
16113 #ifdef INT32_MAX
16114 int32_t a3 = INT32_MAX;
16115 int32_t a3min = INT32_MIN;
16116 #endif
16117 #ifdef INT64_MAX
16118 int64_t a4 = INT64_MAX;
16119 int64_t a4min = INT64_MIN;
16120 #endif
16121 #ifdef UINT8_MAX
16122 uint8_t b1 = UINT8_MAX;
16123 #else
16124 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16125 #endif
16126 #ifdef UINT16_MAX
16127 uint16_t b2 = UINT16_MAX;
16128 #endif
16129 #ifdef UINT32_MAX
16130 uint32_t b3 = UINT32_MAX;
16131 #endif
16132 #ifdef UINT64_MAX
16133 uint64_t b4 = UINT64_MAX;
16134 #endif
16135 int_least8_t c1 = INT8_C (0x7f);
16136 int_least8_t c1max = INT_LEAST8_MAX;
16137 int_least8_t c1min = INT_LEAST8_MIN;
16138 int_least16_t c2 = INT16_C (0x7fff);
16139 int_least16_t c2max = INT_LEAST16_MAX;
16140 int_least16_t c2min = INT_LEAST16_MIN;
16141 int_least32_t c3 = INT32_C (0x7fffffff);
16142 int_least32_t c3max = INT_LEAST32_MAX;
16143 int_least32_t c3min = INT_LEAST32_MIN;
16144 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16145 int_least64_t c4max = INT_LEAST64_MAX;
16146 int_least64_t c4min = INT_LEAST64_MIN;
16147 uint_least8_t d1 = UINT8_C (0xff);
16148 uint_least8_t d1max = UINT_LEAST8_MAX;
16149 uint_least16_t d2 = UINT16_C (0xffff);
16150 uint_least16_t d2max = UINT_LEAST16_MAX;
16151 uint_least32_t d3 = UINT32_C (0xffffffff);
16152 uint_least32_t d3max = UINT_LEAST32_MAX;
16153 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16154 uint_least64_t d4max = UINT_LEAST64_MAX;
16155 int_fast8_t e1 = INT_FAST8_MAX;
16156 int_fast8_t e1min = INT_FAST8_MIN;
16157 int_fast16_t e2 = INT_FAST16_MAX;
16158 int_fast16_t e2min = INT_FAST16_MIN;
16159 int_fast32_t e3 = INT_FAST32_MAX;
16160 int_fast32_t e3min = INT_FAST32_MIN;
16161 int_fast64_t e4 = INT_FAST64_MAX;
16162 int_fast64_t e4min = INT_FAST64_MIN;
16163 uint_fast8_t f1 = UINT_FAST8_MAX;
16164 uint_fast16_t f2 = UINT_FAST16_MAX;
16165 uint_fast32_t f3 = UINT_FAST32_MAX;
16166 uint_fast64_t f4 = UINT_FAST64_MAX;
16167 #ifdef INTPTR_MAX
16168 intptr_t g = INTPTR_MAX;
16169 intptr_t gmin = INTPTR_MIN;
16170 #endif
16171 #ifdef UINTPTR_MAX
16172 uintptr_t h = UINTPTR_MAX;
16173 #endif
16174 intmax_t i = INTMAX_MAX;
16175 uintmax_t j = UINTMAX_MAX;
16177 #include <limits.h> /* for CHAR_BIT */
16178 #define TYPE_MINIMUM(t) \
16179 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16180 #define TYPE_MAXIMUM(t) \
16181 ((t) ((t) 0 < (t) -1 \
16182 ? (t) -1 \
16183 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16184 struct s {
16185 int check_PTRDIFF:
16186 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16187 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16188 ? 1 : -1;
16189 /* Detect bug in FreeBSD 6.0 / ia64. */
16190 int check_SIG_ATOMIC:
16191 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16192 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16193 ? 1 : -1;
16194 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16195 int check_WCHAR:
16196 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16197 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16198 ? 1 : -1;
16199 /* Detect bug in mingw. */
16200 int check_WINT:
16201 WINT_MIN == TYPE_MINIMUM (wint_t)
16202 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16203 ? 1 : -1;
16205 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16206 int check_UINT8_C:
16207 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16208 int check_UINT16_C:
16209 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16211 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16212 #ifdef UINT8_MAX
16213 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16214 #endif
16215 #ifdef UINT16_MAX
16216 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16217 #endif
16218 #ifdef UINT32_MAX
16219 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16220 #endif
16221 #ifdef UINT64_MAX
16222 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16223 #endif
16224 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16225 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16226 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16227 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16228 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16229 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16230 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16231 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16232 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16233 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16234 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16238 main ()
16242 return 0;
16244 _ACEOF
16245 if ac_fn_c_try_compile "$LINENO"; then :
16246 if test "$cross_compiling" = yes; then :
16247 gl_cv_header_working_stdint_h=yes
16249 else
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16254 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16255 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16256 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16257 #include <stdint.h>
16260 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16261 included before <wchar.h>. */
16262 #include <stddef.h>
16263 #include <signal.h>
16264 #if HAVE_WCHAR_H
16265 # include <stdio.h>
16266 # include <time.h>
16267 # include <wchar.h>
16268 #endif
16271 #include <stdio.h>
16272 #include <string.h>
16273 #define MVAL(macro) MVAL1(macro)
16274 #define MVAL1(expression) #expression
16275 static const char *macro_values[] =
16277 #ifdef INT8_MAX
16278 MVAL (INT8_MAX),
16279 #endif
16280 #ifdef INT16_MAX
16281 MVAL (INT16_MAX),
16282 #endif
16283 #ifdef INT32_MAX
16284 MVAL (INT32_MAX),
16285 #endif
16286 #ifdef INT64_MAX
16287 MVAL (INT64_MAX),
16288 #endif
16289 #ifdef UINT8_MAX
16290 MVAL (UINT8_MAX),
16291 #endif
16292 #ifdef UINT16_MAX
16293 MVAL (UINT16_MAX),
16294 #endif
16295 #ifdef UINT32_MAX
16296 MVAL (UINT32_MAX),
16297 #endif
16298 #ifdef UINT64_MAX
16299 MVAL (UINT64_MAX),
16300 #endif
16301 NULL
16305 main ()
16308 const char **mv;
16309 for (mv = macro_values; *mv != NULL; mv++)
16311 const char *value = *mv;
16312 /* Test whether it looks like a cast expression. */
16313 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16314 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16315 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16316 || strncmp (value, "((int)"/*)*/, 6) == 0
16317 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16318 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16319 return mv - macro_values + 1;
16321 return 0;
16324 return 0;
16326 _ACEOF
16327 if ac_fn_c_try_run "$LINENO"; then :
16328 gl_cv_header_working_stdint_h=yes
16330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16331 conftest.$ac_objext conftest.beam conftest.$ac_ext
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16340 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16342 if test "$gl_cv_header_working_stdint_h" = yes; then
16343 STDINT_H=
16344 else
16345 for ac_header in sys/inttypes.h sys/bitypes.h
16346 do :
16347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16350 cat >>confdefs.h <<_ACEOF
16351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16352 _ACEOF
16356 done
16358 if test $ac_cv_header_sys_inttypes_h = yes; then
16359 HAVE_SYS_INTTYPES_H=1
16360 else
16361 HAVE_SYS_INTTYPES_H=0
16364 if test $ac_cv_header_sys_bitypes_h = yes; then
16365 HAVE_SYS_BITYPES_H=1
16366 else
16367 HAVE_SYS_BITYPES_H=0
16373 if test $APPLE_UNIVERSAL_BUILD = 0; then
16376 for gltype in ptrdiff_t size_t ; do
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16378 $as_echo_n "checking for bit size of $gltype... " >&6; }
16379 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16380 $as_echo_n "(cached) " >&6
16381 else
16382 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16383 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16384 included before <wchar.h>. */
16385 #include <stddef.h>
16386 #include <signal.h>
16387 #if HAVE_WCHAR_H
16388 # include <stdio.h>
16389 # include <time.h>
16390 # include <wchar.h>
16391 #endif
16393 #include <limits.h>"; then :
16395 else
16396 result=unknown
16399 eval gl_cv_bitsizeof_${gltype}=\$result
16402 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16404 $as_echo "$ac_res" >&6; }
16405 eval result=\$gl_cv_bitsizeof_${gltype}
16406 if test $result = unknown; then
16407 result=0
16409 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16410 cat >>confdefs.h <<_ACEOF
16411 #define BITSIZEOF_${GLTYPE} $result
16412 _ACEOF
16414 eval BITSIZEOF_${GLTYPE}=\$result
16415 done
16421 for gltype in sig_atomic_t wchar_t wint_t ; do
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16423 $as_echo_n "checking for bit size of $gltype... " >&6; }
16424 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16425 $as_echo_n "(cached) " >&6
16426 else
16427 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16428 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16429 included before <wchar.h>. */
16430 #include <stddef.h>
16431 #include <signal.h>
16432 #if HAVE_WCHAR_H
16433 # include <stdio.h>
16434 # include <time.h>
16435 # include <wchar.h>
16436 #endif
16438 #include <limits.h>"; then :
16440 else
16441 result=unknown
16444 eval gl_cv_bitsizeof_${gltype}=\$result
16447 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16449 $as_echo "$ac_res" >&6; }
16450 eval result=\$gl_cv_bitsizeof_${gltype}
16451 if test $result = unknown; then
16452 result=0
16454 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16455 cat >>confdefs.h <<_ACEOF
16456 #define BITSIZEOF_${GLTYPE} $result
16457 _ACEOF
16459 eval BITSIZEOF_${GLTYPE}=\$result
16460 done
16465 for gltype in sig_atomic_t wchar_t wint_t ; do
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16467 $as_echo_n "checking whether $gltype is signed... " >&6; }
16468 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16475 included before <wchar.h>. */
16476 #include <stddef.h>
16477 #include <signal.h>
16478 #if HAVE_WCHAR_H
16479 # include <stdio.h>
16480 # include <time.h>
16481 # include <wchar.h>
16482 #endif
16484 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16486 main ()
16490 return 0;
16492 _ACEOF
16493 if ac_fn_c_try_compile "$LINENO"; then :
16494 result=yes
16495 else
16496 result=no
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 eval gl_cv_type_${gltype}_signed=\$result
16502 eval ac_res=\$gl_cv_type_${gltype}_signed
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16504 $as_echo "$ac_res" >&6; }
16505 eval result=\$gl_cv_type_${gltype}_signed
16506 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16507 if test "$result" = yes; then
16508 cat >>confdefs.h <<_ACEOF
16509 #define HAVE_SIGNED_${GLTYPE} 1
16510 _ACEOF
16512 eval HAVE_SIGNED_${GLTYPE}=1
16513 else
16514 eval HAVE_SIGNED_${GLTYPE}=0
16516 done
16519 gl_cv_type_ptrdiff_t_signed=yes
16520 gl_cv_type_size_t_signed=no
16521 if test $APPLE_UNIVERSAL_BUILD = 0; then
16524 for gltype in ptrdiff_t size_t ; do
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16526 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16527 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16530 eval gl_cv_type_${gltype}_suffix=no
16531 eval result=\$gl_cv_type_${gltype}_signed
16532 if test "$result" = yes; then
16533 glsufu=
16534 else
16535 glsufu=u
16537 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16538 case $glsuf in
16539 '') gltype1='int';;
16540 l) gltype1='long int';;
16541 ll) gltype1='long long int';;
16542 i64) gltype1='__int64';;
16543 u) gltype1='unsigned int';;
16544 ul) gltype1='unsigned long int';;
16545 ull) gltype1='unsigned long long int';;
16546 ui64)gltype1='unsigned __int64';;
16547 esac
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16552 included before <wchar.h>. */
16553 #include <stddef.h>
16554 #include <signal.h>
16555 #if HAVE_WCHAR_H
16556 # include <stdio.h>
16557 # include <time.h>
16558 # include <wchar.h>
16559 #endif
16561 extern $gltype foo;
16562 extern $gltype1 foo;
16564 main ()
16568 return 0;
16570 _ACEOF
16571 if ac_fn_c_try_compile "$LINENO"; then :
16572 eval gl_cv_type_${gltype}_suffix=\$glsuf
16574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16575 eval result=\$gl_cv_type_${gltype}_suffix
16576 test "$result" != no && break
16577 done
16579 eval ac_res=\$gl_cv_type_${gltype}_suffix
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16581 $as_echo "$ac_res" >&6; }
16582 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16583 eval result=\$gl_cv_type_${gltype}_suffix
16584 test "$result" = no && result=
16585 eval ${GLTYPE}_SUFFIX=\$result
16586 cat >>confdefs.h <<_ACEOF
16587 #define ${GLTYPE}_SUFFIX $result
16588 _ACEOF
16590 done
16596 for gltype in sig_atomic_t wchar_t wint_t ; do
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16598 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16599 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602 eval gl_cv_type_${gltype}_suffix=no
16603 eval result=\$gl_cv_type_${gltype}_signed
16604 if test "$result" = yes; then
16605 glsufu=
16606 else
16607 glsufu=u
16609 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16610 case $glsuf in
16611 '') gltype1='int';;
16612 l) gltype1='long int';;
16613 ll) gltype1='long long int';;
16614 i64) gltype1='__int64';;
16615 u) gltype1='unsigned int';;
16616 ul) gltype1='unsigned long int';;
16617 ull) gltype1='unsigned long long int';;
16618 ui64)gltype1='unsigned __int64';;
16619 esac
16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16624 included before <wchar.h>. */
16625 #include <stddef.h>
16626 #include <signal.h>
16627 #if HAVE_WCHAR_H
16628 # include <stdio.h>
16629 # include <time.h>
16630 # include <wchar.h>
16631 #endif
16633 extern $gltype foo;
16634 extern $gltype1 foo;
16636 main ()
16640 return 0;
16642 _ACEOF
16643 if ac_fn_c_try_compile "$LINENO"; then :
16644 eval gl_cv_type_${gltype}_suffix=\$glsuf
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 eval result=\$gl_cv_type_${gltype}_suffix
16648 test "$result" != no && break
16649 done
16651 eval ac_res=\$gl_cv_type_${gltype}_suffix
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16653 $as_echo "$ac_res" >&6; }
16654 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16655 eval result=\$gl_cv_type_${gltype}_suffix
16656 test "$result" = no && result=
16657 eval ${GLTYPE}_SUFFIX=\$result
16658 cat >>confdefs.h <<_ACEOF
16659 #define ${GLTYPE}_SUFFIX $result
16660 _ACEOF
16662 done
16666 STDINT_H=stdint.h
16670 # Code from module stdlib:
16681 if test $gl_cv_have_include_next = yes; then
16682 gl_cv_next_stdlib_h='<'stdlib.h'>'
16683 else
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16685 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16686 if ${gl_cv_next_stdlib_h+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16692 #include <stdlib.h>
16694 _ACEOF
16695 case "$host_os" in
16696 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16697 *) gl_absname_cpp="$ac_cpp" ;;
16698 esac
16699 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16700 sed -n '\#/stdlib.h#{
16701 s#.*"\(.*/stdlib.h\)".*#\1#
16702 s#^/[^/]#//&#
16705 }'`'"'
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16710 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16712 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16714 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16716 gl_next_as_first_directive='<'stdlib.h'>'
16717 else
16718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16719 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16721 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16729 # Code from module strftime:
16740 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
16743 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16751 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16755 # Code from module time:
16759 # Code from module time_r:
16767 if test $ac_cv_have_decl_localtime_r = no; then
16768 HAVE_DECL_LOCALTIME_R=0
16772 if test $ac_cv_func_localtime_r = yes; then
16773 HAVE_LOCALTIME_R=1
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
16775 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
16776 if ${gl_cv_time_r_posix+:} false; then :
16777 $as_echo_n "(cached) " >&6
16778 else
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <time.h>
16783 main ()
16785 /* We don't need to append 'restrict's to the argument types,
16786 even though the POSIX signature has the 'restrict's,
16787 since C99 says they can't affect type compatibility. */
16788 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
16789 if (ptr) return 0;
16790 /* Check the return type is a pointer.
16791 On HP-UX 10 it is 'int'. */
16792 *localtime_r (0, 0);
16794 return 0;
16797 _ACEOF
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799 gl_cv_time_r_posix=yes
16800 else
16801 gl_cv_time_r_posix=no
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
16807 $as_echo "$gl_cv_time_r_posix" >&6; }
16808 if test $gl_cv_time_r_posix = yes; then
16809 REPLACE_LOCALTIME_R=0
16810 else
16811 REPLACE_LOCALTIME_R=1
16813 else
16814 HAVE_LOCALTIME_R=0
16816 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
16825 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
16835 GNULIB_TIME_R=1
16839 # Code from module unistd:
16853 if test $gl_cv_have_include_next = yes; then
16854 gl_cv_next_unistd_h='<'unistd.h'>'
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16857 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16858 if ${gl_cv_next_unistd_h+:} false; then :
16859 $as_echo_n "(cached) " >&6
16860 else
16862 if test $ac_cv_header_unistd_h = yes; then
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 #include <unistd.h>
16869 _ACEOF
16870 case "$host_os" in
16871 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16872 *) gl_absname_cpp="$ac_cpp" ;;
16873 esac
16874 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16875 sed -n '\#/unistd.h#{
16876 s#.*"\(.*/unistd.h\)".*#\1#
16877 s#^/[^/]#//&#
16880 }'`'"'
16881 else
16882 gl_cv_next_unistd_h='<'unistd.h'>'
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
16888 $as_echo "$gl_cv_next_unistd_h" >&6; }
16890 NEXT_UNISTD_H=$gl_cv_next_unistd_h
16892 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16894 gl_next_as_first_directive='<'unistd.h'>'
16895 else
16896 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16897 gl_next_as_first_directive=$gl_cv_next_unistd_h
16899 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
16904 if test $ac_cv_header_unistd_h = yes; then
16905 HAVE_UNISTD_H=1
16906 else
16907 HAVE_UNISTD_H=0
16913 # Code from module warn-on-use:
16914 # End of code from modules
16924 gltests_libdeps=
16925 gltests_ltlibdeps=
16935 gl_source_base='tests'
16936 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
16938 gl_module_indicator_condition=$gltests_WITNESS
16948 LIBGNU_LIBDEPS="$gl_libdeps"
16950 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16954 # UNIX98 PTYs.
16955 for ac_func in grantpt
16956 do :
16957 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16958 if test "x$ac_cv_func_grantpt" = xyes; then :
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_GRANTPT 1
16961 _ACEOF
16964 done
16967 # PTY-related GNU extensions.
16968 for ac_func in getpt
16969 do :
16970 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
16971 if test "x$ac_cv_func_getpt" = xyes; then :
16972 cat >>confdefs.h <<_ACEOF
16973 #define HAVE_GETPT 1
16974 _ACEOF
16977 done
16980 # Check this now, so that we will NOT find the above functions in ncurses.
16981 # That is because we have not set up to link ncurses in lib-src.
16982 # It's better to believe a function is not available
16983 # than to expect to find it in ncurses.
16984 # Also we need tputs and friends to be able to build at all.
16985 have_tputs_et_al=true
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
16987 $as_echo_n "checking for library containing tputs... " >&6; }
16988 if ${ac_cv_search_tputs+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 ac_func_search_save_LIBS=$LIBS
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16995 /* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
16998 #ifdef __cplusplus
16999 extern "C"
17000 #endif
17001 char tputs ();
17003 main ()
17005 return tputs ();
17007 return 0;
17009 _ACEOF
17010 for ac_lib in '' ncurses terminfo termcap; do
17011 if test -z "$ac_lib"; then
17012 ac_res="none required"
17013 else
17014 ac_res=-l$ac_lib
17015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17017 if ac_fn_c_try_link "$LINENO"; then :
17018 ac_cv_search_tputs=$ac_res
17020 rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext
17022 if ${ac_cv_search_tputs+:} false; then :
17023 break
17025 done
17026 if ${ac_cv_search_tputs+:} false; then :
17028 else
17029 ac_cv_search_tputs=no
17031 rm conftest.$ac_ext
17032 LIBS=$ac_func_search_save_LIBS
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17035 $as_echo "$ac_cv_search_tputs" >&6; }
17036 ac_res=$ac_cv_search_tputs
17037 if test "$ac_res" != no; then :
17038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17040 else
17041 have_tputs_et_al=false
17044 if test "$have_tputs_et_al" != true; then
17045 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
17046 Maybe some development libraries/packages are missing? Try installing
17047 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17049 # Must define this when any termcap library is found.
17051 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17053 ## FIXME This was the cpp logic, but I am not sure it is right.
17054 ## The above test has not necessarily found libncurses.
17055 HAVE_LIBNCURSES=yes
17057 ## Use terminfo instead of termcap?
17058 ## Note only system files NOT using terminfo are:
17059 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17060 ## darwin|gnu without ncurses.
17061 TERMINFO=no
17062 LIBS_TERMCAP=
17063 case "$opsys" in
17064 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17065 ## hpux10-20: Use the system provided termcap(3) library.
17066 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17067 ## is necessary. Otherwise Emacs dumps core when run -nw.
17068 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17070 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17071 ## The ncurses library has been moved out of the System framework in
17072 ## Mac OS X 10.2. So if configure detects it, set the command-line
17073 ## option to use it.
17074 darwin|gnu*)
17075 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17076 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17077 TERMINFO=yes
17078 LIBS_TERMCAP="-lncurses"
17082 freebsd)
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17084 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17085 if ${emacs_cv_freebsd_terminfo+:} false; then :
17086 $as_echo_n "(cached) " >&6
17087 else
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 #include <osreldate.h>
17092 main ()
17094 #if __FreeBSD_version < 400000
17095 fail;
17096 #endif
17099 return 0;
17101 _ACEOF
17102 if ac_fn_c_try_link "$LINENO"; then :
17103 emacs_cv_freebsd_terminfo=yes
17104 else
17105 emacs_cv_freebsd_terminfo=no
17107 rm -f core conftest.err conftest.$ac_objext \
17108 conftest$ac_exeext conftest.$ac_ext
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17113 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17115 if test $emacs_cv_freebsd_terminfo = yes; then
17116 TERMINFO=yes
17117 LIBS_TERMCAP="-lncurses"
17118 else
17119 LIBS_TERMCAP="-ltermcap"
17123 netbsd)
17124 if test $ac_cv_search_tputs = -lterminfo; then
17125 TERMINFO=yes
17126 LIBS_TERMCAP="-lterminfo"
17127 else
17128 LIBS_TERMCAP="-ltermcap"
17132 esac
17134 case "$opsys" in
17135 ## hpux: Make sure we get select from libc rather than from libcurses
17136 ## because libcurses on HPUX 10.10 has a broken version of select.
17137 ## We used to use -lc -lcurses, but this may be cleaner.
17138 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17140 openbsd) LIBS_TERMCAP="-lncurses" ;;
17142 ## Must use system termcap, if we use any termcap. It does special things.
17143 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17144 esac
17146 TERMCAP_OBJ=tparam.o
17147 if test $TERMINFO = yes; then
17149 $as_echo "#define TERMINFO 1" >>confdefs.h
17152 ## Default used to be -ltermcap. Add a case above if need something else.
17153 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17155 TERMCAP_OBJ=terminfo.o
17161 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17162 resolv=no
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 #include <netinet/in.h>
17166 #include <arpa/nameser.h>
17167 #include <resolv.h>
17169 main ()
17171 return res_init();
17173 return 0;
17175 _ACEOF
17176 if ac_fn_c_try_link "$LINENO"; then :
17177 have_res_init=yes
17178 else
17179 have_res_init=no
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183 if test "$have_res_init" = no; then
17184 OLIBS="$LIBS"
17185 LIBS="$LIBS -lresolv"
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17187 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190 #include <netinet/in.h>
17191 #include <arpa/nameser.h>
17192 #include <resolv.h>
17194 main ()
17196 return res_init();
17198 return 0;
17200 _ACEOF
17201 if ac_fn_c_try_link "$LINENO"; then :
17202 have_res_init=yes
17203 else
17204 have_res_init=no
17206 rm -f core conftest.err conftest.$ac_objext \
17207 conftest$ac_exeext conftest.$ac_ext
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17209 $as_echo "$have_res_init" >&6; }
17210 if test "$have_res_init" = yes ; then
17211 resolv=yes
17213 LIBS="$OLIBS"
17216 if test "$have_res_init" = yes; then
17218 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17222 # Do we need the Hesiod library to provide the support routines?
17223 LIBHESIOD=
17224 if test "$with_hesiod" != no ; then
17225 # Don't set $LIBS here -- see comments above. FIXME which comments?
17226 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
17227 if test "x$ac_cv_func_res_send" = xyes; then :
17229 else
17230 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
17231 if test "x$ac_cv_func___res_send" = xyes; then :
17233 else
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17235 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17236 if ${ac_cv_lib_resolv_res_send+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-lresolv $LIBS"
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char res_send ();
17252 main ()
17254 return res_send ();
17256 return 0;
17258 _ACEOF
17259 if ac_fn_c_try_link "$LINENO"; then :
17260 ac_cv_lib_resolv_res_send=yes
17261 else
17262 ac_cv_lib_resolv_res_send=no
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 LIBS=$ac_check_lib_save_LIBS
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17269 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17270 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
17271 resolv=yes
17272 else
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17274 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17275 if ${ac_cv_lib_resolv___res_send+:} false; then :
17276 $as_echo_n "(cached) " >&6
17277 else
17278 ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-lresolv $LIBS"
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17286 #ifdef __cplusplus
17287 extern "C"
17288 #endif
17289 char __res_send ();
17291 main ()
17293 return __res_send ();
17295 return 0;
17297 _ACEOF
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 ac_cv_lib_resolv___res_send=yes
17300 else
17301 ac_cv_lib_resolv___res_send=no
17303 rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
17305 LIBS=$ac_check_lib_save_LIBS
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17308 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17309 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
17310 resolv=yes
17319 if test "$resolv" = yes ; then
17320 RESOLVLIB=-lresolv
17321 else
17322 RESOLVLIB=
17324 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17325 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
17327 else
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17329 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17330 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
17331 $as_echo_n "(cached) " >&6
17332 else
17333 ac_check_lib_save_LIBS=$LIBS
17334 LIBS="-lhesiod $RESOLVLIB $LIBS"
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17338 /* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17341 #ifdef __cplusplus
17342 extern "C"
17343 #endif
17344 char hes_getmailhost ();
17346 main ()
17348 return hes_getmailhost ();
17350 return 0;
17352 _ACEOF
17353 if ac_fn_c_try_link "$LINENO"; then :
17354 ac_cv_lib_hesiod_hes_getmailhost=yes
17355 else
17356 ac_cv_lib_hesiod_hes_getmailhost=no
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17363 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17364 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
17365 hesiod=yes
17366 else
17373 if test x"$hesiod" = xyes; then
17375 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17377 LIBHESIOD=-lhesiod
17382 # Do we need libresolv (due to res_init or Hesiod)?
17383 if test "$resolv" = yes ; then
17385 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17387 LIBRESOLV=-lresolv
17388 else
17389 LIBRESOLV=
17393 # These tell us which Kerberos-related libraries to use.
17394 COM_ERRLIB=
17395 CRYPTOLIB=
17396 KRB5LIB=
17397 DESLIB=
17398 KRB4LIB=
17400 if test "${with_kerberos}" != no; then
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17402 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17403 if ${ac_cv_lib_com_err_com_err+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406 ac_check_lib_save_LIBS=$LIBS
17407 LIBS="-lcom_err $LIBS"
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17411 /* Override any GCC internal prototype to avoid an error.
17412 Use char because int might match the return type of a GCC
17413 builtin and then its argument prototype would still apply. */
17414 #ifdef __cplusplus
17415 extern "C"
17416 #endif
17417 char com_err ();
17419 main ()
17421 return com_err ();
17423 return 0;
17425 _ACEOF
17426 if ac_fn_c_try_link "$LINENO"; then :
17427 ac_cv_lib_com_err_com_err=yes
17428 else
17429 ac_cv_lib_com_err_com_err=no
17431 rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433 LIBS=$ac_check_lib_save_LIBS
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17436 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17437 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
17438 have_com_err=yes
17439 else
17440 have_com_err=no
17443 if test $have_com_err = yes; then
17444 COM_ERRLIB=-lcom_err
17445 LIBS="$COM_ERRLIB $LIBS"
17447 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17451 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17452 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 ac_check_lib_save_LIBS=$LIBS
17456 LIBS="-lcrypto $LIBS"
17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17458 /* end confdefs.h. */
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17463 #ifdef __cplusplus
17464 extern "C"
17465 #endif
17466 char mit_des_cbc_encrypt ();
17468 main ()
17470 return mit_des_cbc_encrypt ();
17472 return 0;
17474 _ACEOF
17475 if ac_fn_c_try_link "$LINENO"; then :
17476 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17477 else
17478 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17480 rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17485 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17486 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
17487 have_crypto=yes
17488 else
17489 have_crypto=no
17492 if test $have_crypto = yes; then
17493 CRYPTOLIB=-lcrypto
17494 LIBS="$CRYPTOLIB $LIBS"
17496 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17500 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17501 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
17502 $as_echo_n "(cached) " >&6
17503 else
17504 ac_check_lib_save_LIBS=$LIBS
17505 LIBS="-lk5crypto $LIBS"
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 char mit_des_cbc_encrypt ();
17517 main ()
17519 return mit_des_cbc_encrypt ();
17521 return 0;
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17526 else
17527 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 LIBS=$ac_check_lib_save_LIBS
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17534 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17535 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
17536 have_k5crypto=yes
17537 else
17538 have_k5crypto=no
17541 if test $have_k5crypto = yes; then
17542 CRYPTOLIB=-lk5crypto
17543 LIBS="$CRYPTOLIB $LIBS"
17545 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17549 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17550 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
17551 $as_echo_n "(cached) " >&6
17552 else
17553 ac_check_lib_save_LIBS=$LIBS
17554 LIBS="-lkrb5 $LIBS"
17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17556 /* end confdefs.h. */
17558 /* Override any GCC internal prototype to avoid an error.
17559 Use char because int might match the return type of a GCC
17560 builtin and then its argument prototype would still apply. */
17561 #ifdef __cplusplus
17562 extern "C"
17563 #endif
17564 char krb5_init_context ();
17566 main ()
17568 return krb5_init_context ();
17570 return 0;
17572 _ACEOF
17573 if ac_fn_c_try_link "$LINENO"; then :
17574 ac_cv_lib_krb5_krb5_init_context=yes
17575 else
17576 ac_cv_lib_krb5_krb5_init_context=no
17578 rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17583 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17584 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
17585 have_krb5=yes
17586 else
17587 have_krb5=no
17590 if test $have_krb5=yes; then
17591 KRB5LIB=-lkrb5
17592 LIBS="$KRB5LIB $LIBS"
17594 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17597 if test "${with_kerberos5}" = no; then
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17599 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17600 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
17601 $as_echo_n "(cached) " >&6
17602 else
17603 ac_check_lib_save_LIBS=$LIBS
17604 LIBS="-ldes425 $LIBS"
17605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17608 /* Override any GCC internal prototype to avoid an error.
17609 Use char because int might match the return type of a GCC
17610 builtin and then its argument prototype would still apply. */
17611 #ifdef __cplusplus
17612 extern "C"
17613 #endif
17614 char des_cbc_encrypt ();
17616 main ()
17618 return des_cbc_encrypt ();
17620 return 0;
17622 _ACEOF
17623 if ac_fn_c_try_link "$LINENO"; then :
17624 ac_cv_lib_des425_des_cbc_encrypt=yes
17625 else
17626 ac_cv_lib_des425_des_cbc_encrypt=no
17628 rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17633 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17634 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
17635 have_des425=yes
17636 else
17637 have_des425=no
17640 if test $have_des425 = yes; then
17641 DESLIB=-ldes425
17642 LIBS="$DESLIB $LIBS"
17644 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17646 else
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17648 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17649 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 ac_check_lib_save_LIBS=$LIBS
17653 LIBS="-ldes $LIBS"
17654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17655 /* end confdefs.h. */
17657 /* Override any GCC internal prototype to avoid an error.
17658 Use char because int might match the return type of a GCC
17659 builtin and then its argument prototype would still apply. */
17660 #ifdef __cplusplus
17661 extern "C"
17662 #endif
17663 char des_cbc_encrypt ();
17665 main ()
17667 return des_cbc_encrypt ();
17669 return 0;
17671 _ACEOF
17672 if ac_fn_c_try_link "$LINENO"; then :
17673 ac_cv_lib_des_des_cbc_encrypt=yes
17674 else
17675 ac_cv_lib_des_des_cbc_encrypt=no
17677 rm -f core conftest.err conftest.$ac_objext \
17678 conftest$ac_exeext conftest.$ac_ext
17679 LIBS=$ac_check_lib_save_LIBS
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17682 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17683 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
17684 have_des=yes
17685 else
17686 have_des=no
17689 if test $have_des = yes; then
17690 DESLIB=-ldes
17691 LIBS="$DESLIB $LIBS"
17693 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17698 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17699 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 ac_check_lib_save_LIBS=$LIBS
17703 LIBS="-lkrb4 $LIBS"
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17710 #ifdef __cplusplus
17711 extern "C"
17712 #endif
17713 char krb_get_cred ();
17715 main ()
17717 return krb_get_cred ();
17719 return 0;
17721 _ACEOF
17722 if ac_fn_c_try_link "$LINENO"; then :
17723 ac_cv_lib_krb4_krb_get_cred=yes
17724 else
17725 ac_cv_lib_krb4_krb_get_cred=no
17727 rm -f core conftest.err conftest.$ac_objext \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17732 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17733 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
17734 have_krb4=yes
17735 else
17736 have_krb4=no
17739 if test $have_krb4 = yes; then
17740 KRB4LIB=-lkrb4
17741 LIBS="$KRB4LIB $LIBS"
17743 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
17745 else
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
17747 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
17748 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
17749 $as_echo_n "(cached) " >&6
17750 else
17751 ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-lkrb $LIBS"
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 char krb_get_cred ();
17764 main ()
17766 return krb_get_cred ();
17768 return 0;
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 ac_cv_lib_krb_krb_get_cred=yes
17773 else
17774 ac_cv_lib_krb_krb_get_cred=no
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 LIBS=$ac_check_lib_save_LIBS
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
17781 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
17782 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
17783 have_krb=yes
17784 else
17785 have_krb=no
17788 if test $have_krb = yes; then
17789 KRB4LIB=-lkrb
17790 LIBS="$KRB4LIB $LIBS"
17792 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
17798 if test "${with_kerberos5}" != no; then
17799 for ac_header in krb5.h
17800 do :
17801 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
17802 if test "x$ac_cv_header_krb5_h" = xyes; then :
17803 cat >>confdefs.h <<_ACEOF
17804 #define HAVE_KRB5_H 1
17805 _ACEOF
17806 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
17808 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
17810 cat >>confdefs.h <<_ACEOF
17811 #define HAVE_KRB5_ERROR_TEXT 1
17812 _ACEOF
17816 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
17818 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
17820 cat >>confdefs.h <<_ACEOF
17821 #define HAVE_KRB5_ERROR_E_TEXT 1
17822 _ACEOF
17829 done
17831 else
17832 for ac_header in des.h
17833 do :
17834 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
17835 if test "x$ac_cv_header_des_h" = xyes; then :
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_DES_H 1
17838 _ACEOF
17840 else
17841 for ac_header in kerberosIV/des.h
17842 do :
17843 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
17844 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
17845 cat >>confdefs.h <<_ACEOF
17846 #define HAVE_KERBEROSIV_DES_H 1
17847 _ACEOF
17849 else
17850 for ac_header in kerberos/des.h
17851 do :
17852 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
17853 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
17854 cat >>confdefs.h <<_ACEOF
17855 #define HAVE_KERBEROS_DES_H 1
17856 _ACEOF
17860 done
17864 done
17868 done
17870 for ac_header in krb.h
17871 do :
17872 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
17873 if test "x$ac_cv_header_krb_h" = xyes; then :
17874 cat >>confdefs.h <<_ACEOF
17875 #define HAVE_KRB_H 1
17876 _ACEOF
17878 else
17879 for ac_header in kerberosIV/krb.h
17880 do :
17881 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
17882 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
17883 cat >>confdefs.h <<_ACEOF
17884 #define HAVE_KERBEROSIV_KRB_H 1
17885 _ACEOF
17887 else
17888 for ac_header in kerberos/krb.h
17889 do :
17890 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
17891 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
17892 cat >>confdefs.h <<_ACEOF
17893 #define HAVE_KERBEROS_KRB_H 1
17894 _ACEOF
17898 done
17902 done
17906 done
17909 for ac_header in com_err.h
17910 do :
17911 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
17912 if test "x$ac_cv_header_com_err_h" = xyes; then :
17913 cat >>confdefs.h <<_ACEOF
17914 #define HAVE_COM_ERR_H 1
17915 _ACEOF
17919 done
17929 # Solaris requires -lintl if you want strerror (which calls dgettext)
17930 # to return localized messages.
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
17932 $as_echo_n "checking for dgettext in -lintl... " >&6; }
17933 if ${ac_cv_lib_intl_dgettext+:} false; then :
17934 $as_echo_n "(cached) " >&6
17935 else
17936 ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-lintl $LIBS"
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char dgettext ();
17949 main ()
17951 return dgettext ();
17953 return 0;
17955 _ACEOF
17956 if ac_fn_c_try_link "$LINENO"; then :
17957 ac_cv_lib_intl_dgettext=yes
17958 else
17959 ac_cv_lib_intl_dgettext=no
17961 rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17966 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17967 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
17968 cat >>confdefs.h <<_ACEOF
17969 #define HAVE_LIBINTL 1
17970 _ACEOF
17972 LIBS="-lintl $LIBS"
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
17978 $as_echo_n "checking whether localtime caches TZ... " >&6; }
17979 if ${emacs_cv_localtime_cache+:} false; then :
17980 $as_echo_n "(cached) " >&6
17981 else
17982 if test x$ac_cv_func_tzset = xyes; then
17983 if test "$cross_compiling" = yes; then :
17984 # If we have tzset, assume the worst when cross-compiling.
17985 emacs_cv_localtime_cache=yes
17986 else
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17989 #include <time.h>
17990 char TZ_GMT0[] = "TZ=GMT0";
17991 char TZ_PST8[] = "TZ=PST8";
17992 main()
17994 time_t now = time ((time_t *) 0);
17995 int hour_GMT0, hour_unset;
17996 if (putenv (TZ_GMT0) != 0)
17997 exit (1);
17998 hour_GMT0 = localtime (&now)->tm_hour;
17999 unsetenv("TZ");
18000 hour_unset = localtime (&now)->tm_hour;
18001 if (putenv (TZ_PST8) != 0)
18002 exit (1);
18003 if (localtime (&now)->tm_hour == hour_GMT0)
18004 exit (1);
18005 unsetenv("TZ");
18006 if (localtime (&now)->tm_hour != hour_unset)
18007 exit (1);
18008 exit (0);
18010 _ACEOF
18011 if ac_fn_c_try_run "$LINENO"; then :
18012 emacs_cv_localtime_cache=no
18013 else
18014 emacs_cv_localtime_cache=yes
18016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18017 conftest.$ac_objext conftest.beam conftest.$ac_ext
18020 else
18021 # If we lack tzset, report that localtime does not cache TZ,
18022 # since we can't invalidate the cache if we don't have tzset.
18023 emacs_cv_localtime_cache=no
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18027 $as_echo "$emacs_cv_localtime_cache" >&6; }
18028 if test $emacs_cv_localtime_cache = yes; then
18030 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18034 if test "x$HAVE_TIMEVAL" = xyes; then
18035 for ac_func in gettimeofday
18036 do :
18037 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18038 if test "x$ac_cv_func_gettimeofday" = xyes; then :
18039 cat >>confdefs.h <<_ACEOF
18040 #define HAVE_GETTIMEOFDAY 1
18041 _ACEOF
18044 done
18046 if test $ac_cv_func_gettimeofday = yes; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18048 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18049 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18055 #ifdef TIME_WITH_SYS_TIME
18056 #include <sys/time.h>
18057 #include <time.h>
18058 #else
18059 #ifdef HAVE_SYS_TIME_H
18060 #include <sys/time.h>
18061 #else
18062 #include <time.h>
18063 #endif
18064 #endif
18066 main ()
18068 struct timeval time;
18069 gettimeofday (&time, 0);
18071 return 0;
18073 _ACEOF
18074 if ac_fn_c_try_compile "$LINENO"; then :
18075 emacs_cv_gettimeofday_two_arguments=yes
18076 else
18077 emacs_cv_gettimeofday_two_arguments=no
18079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18082 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18083 if test $emacs_cv_gettimeofday_two_arguments = no; then
18085 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18091 ok_so_far=yes
18092 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18093 if test "x$ac_cv_func_socket" = xyes; then :
18095 else
18096 ok_so_far=no
18099 if test $ok_so_far = yes; then
18100 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18101 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
18103 else
18104 ok_so_far=no
18109 if test $ok_so_far = yes; then
18110 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18111 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
18113 else
18114 ok_so_far=no
18119 if test $ok_so_far = yes; then
18121 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18125 if test -f /usr/lpp/X11/bin/smt.exp; then
18127 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18132 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18133 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18135 $as_echo "yes" >&6; }
18137 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18139 else
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18141 $as_echo "no" >&6; }
18144 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18145 if test "x$ac_cv_type_pid_t" = xyes; then :
18147 else
18149 cat >>confdefs.h <<_ACEOF
18150 #define pid_t int
18151 _ACEOF
18155 for ac_header in vfork.h
18156 do :
18157 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18158 if test "x$ac_cv_header_vfork_h" = xyes; then :
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_VFORK_H 1
18161 _ACEOF
18165 done
18167 for ac_func in fork vfork
18168 do :
18169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18171 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18172 cat >>confdefs.h <<_ACEOF
18173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18174 _ACEOF
18177 done
18179 if test "x$ac_cv_func_fork" = xyes; then
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18181 $as_echo_n "checking for working fork... " >&6; }
18182 if ${ac_cv_func_fork_works+:} false; then :
18183 $as_echo_n "(cached) " >&6
18184 else
18185 if test "$cross_compiling" = yes; then :
18186 ac_cv_func_fork_works=cross
18187 else
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190 $ac_includes_default
18192 main ()
18195 /* By Ruediger Kuhlmann. */
18196 return fork () < 0;
18199 return 0;
18201 _ACEOF
18202 if ac_fn_c_try_run "$LINENO"; then :
18203 ac_cv_func_fork_works=yes
18204 else
18205 ac_cv_func_fork_works=no
18207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18208 conftest.$ac_objext conftest.beam conftest.$ac_ext
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18213 $as_echo "$ac_cv_func_fork_works" >&6; }
18215 else
18216 ac_cv_func_fork_works=$ac_cv_func_fork
18218 if test "x$ac_cv_func_fork_works" = xcross; then
18219 case $host in
18220 *-*-amigaos* | *-*-msdosdjgpp*)
18221 # Override, as these systems have only a dummy fork() stub
18222 ac_cv_func_fork_works=no
18225 ac_cv_func_fork_works=yes
18227 esac
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18229 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18231 ac_cv_func_vfork_works=$ac_cv_func_vfork
18232 if test "x$ac_cv_func_vfork" = xyes; then
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18234 $as_echo_n "checking for working vfork... " >&6; }
18235 if ${ac_cv_func_vfork_works+:} false; then :
18236 $as_echo_n "(cached) " >&6
18237 else
18238 if test "$cross_compiling" = yes; then :
18239 ac_cv_func_vfork_works=cross
18240 else
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 /* Thanks to Paul Eggert for this test. */
18244 $ac_includes_default
18245 #include <sys/wait.h>
18246 #ifdef HAVE_VFORK_H
18247 # include <vfork.h>
18248 #endif
18249 /* On some sparc systems, changes by the child to local and incoming
18250 argument registers are propagated back to the parent. The compiler
18251 is told about this with #include <vfork.h>, but some compilers
18252 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18253 static variable whose address is put into a register that is
18254 clobbered by the vfork. */
18255 static void
18256 #ifdef __cplusplus
18257 sparc_address_test (int arg)
18258 # else
18259 sparc_address_test (arg) int arg;
18260 #endif
18262 static pid_t child;
18263 if (!child) {
18264 child = vfork ();
18265 if (child < 0) {
18266 perror ("vfork");
18267 _exit(2);
18269 if (!child) {
18270 arg = getpid();
18271 write(-1, "", 0);
18272 _exit (arg);
18278 main ()
18280 pid_t parent = getpid ();
18281 pid_t child;
18283 sparc_address_test (0);
18285 child = vfork ();
18287 if (child == 0) {
18288 /* Here is another test for sparc vfork register problems. This
18289 test uses lots of local variables, at least as many local
18290 variables as main has allocated so far including compiler
18291 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18292 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18293 reuse the register of parent for one of the local variables,
18294 since it will think that parent can't possibly be used any more
18295 in this routine. Assigning to the local variable will thus
18296 munge parent in the parent process. */
18297 pid_t
18298 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18299 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18300 /* Convince the compiler that p..p7 are live; otherwise, it might
18301 use the same hardware register for all 8 local variables. */
18302 if (p != p1 || p != p2 || p != p3 || p != p4
18303 || p != p5 || p != p6 || p != p7)
18304 _exit(1);
18306 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18307 from child file descriptors. If the child closes a descriptor
18308 before it execs or exits, this munges the parent's descriptor
18309 as well. Test for this by closing stdout in the child. */
18310 _exit(close(fileno(stdout)) != 0);
18311 } else {
18312 int status;
18313 struct stat st;
18315 while (wait(&status) != child)
18317 return (
18318 /* Was there some problem with vforking? */
18319 child < 0
18321 /* Did the child fail? (This shouldn't happen.) */
18322 || status
18324 /* Did the vfork/compiler bug occur? */
18325 || parent != getpid()
18327 /* Did the file descriptor bug occur? */
18328 || fstat(fileno(stdout), &st) != 0
18332 _ACEOF
18333 if ac_fn_c_try_run "$LINENO"; then :
18334 ac_cv_func_vfork_works=yes
18335 else
18336 ac_cv_func_vfork_works=no
18338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18339 conftest.$ac_objext conftest.beam conftest.$ac_ext
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18344 $as_echo "$ac_cv_func_vfork_works" >&6; }
18347 if test "x$ac_cv_func_fork_works" = xcross; then
18348 ac_cv_func_vfork_works=$ac_cv_func_vfork
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18350 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18353 if test "x$ac_cv_func_vfork_works" = xyes; then
18355 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18357 else
18359 $as_echo "#define vfork fork" >>confdefs.h
18362 if test "x$ac_cv_func_fork_works" = xyes; then
18364 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18370 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18371 if ${emacs_cv_langinfo_codeset+:} false; then :
18372 $as_echo_n "(cached) " >&6
18373 else
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376 #include <langinfo.h>
18378 main ()
18380 char* cs = nl_langinfo(CODESET);
18382 return 0;
18384 _ACEOF
18385 if ac_fn_c_try_link "$LINENO"; then :
18386 emacs_cv_langinfo_codeset=yes
18387 else
18388 emacs_cv_langinfo_codeset=no
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18395 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18396 if test $emacs_cv_langinfo_codeset = yes; then
18398 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18402 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18403 if test "x$ac_cv_type_size_t" = xyes; then :
18405 cat >>confdefs.h <<_ACEOF
18406 #define HAVE_SIZE_T 1
18407 _ACEOF
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18414 $as_echo_n "checking for mbstate_t... " >&6; }
18415 if ${ac_cv_type_mbstate_t+:} false; then :
18416 $as_echo_n "(cached) " >&6
18417 else
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420 $ac_includes_default
18421 # include <wchar.h>
18423 main ()
18425 mbstate_t x; return sizeof x;
18427 return 0;
18429 _ACEOF
18430 if ac_fn_c_try_compile "$LINENO"; then :
18431 ac_cv_type_mbstate_t=yes
18432 else
18433 ac_cv_type_mbstate_t=no
18435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18438 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18439 if test $ac_cv_type_mbstate_t = yes; then
18441 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18443 else
18445 $as_echo "#define mbstate_t int" >>confdefs.h
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18450 $as_echo_n "checking for C restricted array declarations... " >&6; }
18451 if ${emacs_cv_c_restrict_arr+:} false; then :
18452 $as_echo_n "(cached) " >&6
18453 else
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 void fred (int x[__restrict]);
18458 main ()
18462 return 0;
18464 _ACEOF
18465 if ac_fn_c_try_compile "$LINENO"; then :
18466 emacs_cv_c_restrict_arr=yes
18467 else
18468 emacs_cv_c_restrict_arr=no
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18473 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18474 if test "$emacs_cv_c_restrict_arr" = yes; then
18476 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18482 # Set up the CFLAGS for real compilation, so we can substitute it.
18483 CFLAGS="$REAL_CFLAGS"
18484 CPPFLAGS="$REAL_CPPFLAGS"
18486 ## Hack to detect a buggy GCC version.
18487 if test "x$GCC" = xyes \
18488 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18489 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
18490 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
18491 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18494 version=$PACKAGE_VERSION
18496 ### Specify what sort of things we'll be editing into Makefile and config.h.
18497 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18500 ## Unused?
18521 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18522 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18523 ## end of LIBX_BASE, but nothing ever set it.
18528 ## Used in lwlib/Makefile.in.
18530 if test -n "${machfile}"; then
18531 M_FILE="\$(srcdir)/${machfile}"
18532 else
18533 M_FILE=
18535 S_FILE="\$(srcdir)/${opsysfile}"
18546 cat >>confdefs.h <<_ACEOF
18547 #define EMACS_CONFIGURATION "${canonical}"
18548 _ACEOF
18551 cat >>confdefs.h <<_ACEOF
18552 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18553 _ACEOF
18555 if test -n "$machfile"; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define config_machfile "${machfile}"
18559 _ACEOF
18563 cat >>confdefs.h <<_ACEOF
18564 #define config_opsysfile "${opsysfile}"
18565 _ACEOF
18568 XMENU_OBJ=
18569 XOBJ=
18570 FONT_OBJ=
18571 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18573 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18575 XMENU_OBJ=xmenu.o
18576 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18577 FONT_OBJ=xfont.o
18578 if test "$HAVE_XFT" = "yes"; then
18579 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18580 elif test "$HAVE_FREETYPE" = "yes"; then
18581 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
18589 WIDGET_OBJ=
18590 MOTIF_LIBW=
18591 if test "${USE_X_TOOLKIT}" != "none" ; then
18592 WIDGET_OBJ=widget.o
18594 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18596 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18598 $as_echo "#define USE_LUCID 1" >>confdefs.h
18600 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18602 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18604 MOTIF_LIBW=-lXm
18605 case "$opsys" in
18606 gnu-linux)
18607 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18608 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
18611 unixware)
18612 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18613 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18614 MOTIF_LIBW="MOTIF_LIBW -lXimp"
18617 aix4-2)
18618 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18619 MOTIF_LIBW="$MOTIF_LIBW -li18n"
18621 esac
18622 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
18627 TOOLKIT_LIBW=
18628 case "$USE_X_TOOLKIT" in
18629 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
18630 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
18631 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
18632 esac
18635 if test "$USE_X_TOOLKIT" = "none"; then
18636 LIBXT_OTHER="\$(LIBXSM)"
18637 OLDXMENU_TARGET="really-oldXMenu"
18638 else
18639 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18640 OLDXMENU_TARGET="really-lwlib"
18644 ## The X Menu stuff is present in the X10 distribution, but missing
18645 ## from X11. If we have X10, just use the installed library;
18646 ## otherwise, use our own copy.
18647 if test "${HAVE_X11}" = "yes" ; then
18649 $as_echo "#define HAVE_X11 1" >>confdefs.h
18652 if test "$USE_X_TOOLKIT" = "none"; then
18653 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
18654 else
18655 OLDXMENU="\${lwlibdir}/liblw.a"
18657 LIBXMENU="\$(OLDXMENU)"
18658 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
18659 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
18660 else
18661 ## For a syntactically valid Makefile; not actually used for anything.
18662 ## See comments in src/Makefile.in.
18663 OLDXMENU=nothing
18664 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18665 if test "${HAVE_X_WINDOWS}" = "yes"; then
18666 LIBXMENU="-lXMenu"
18667 else
18668 LIBXMENU=
18670 LIBX_OTHER=
18671 OLDXMENU_DEPS=
18674 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
18675 OLDXMENU_TARGET=
18676 OLDXMENU=nothing
18677 LIBXMENU=
18678 OLDXMENU_DEPS=
18687 if test "${HAVE_MENUS}" = "yes" ; then
18689 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18693 if test "${GNU_MALLOC}" = "yes" ; then
18695 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18699 RALLOC_OBJ=
18700 if test "${REL_ALLOC}" = "yes" ; then
18702 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18705 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
18709 if test "$opsys" = "cygwin"; then
18710 CYGWIN_OBJ="sheap.o"
18711 ## Cygwin differs because of its unexec().
18712 PRE_ALLOC_OBJ=
18713 POST_ALLOC_OBJ=lastfile.o
18714 else
18715 CYGWIN_OBJ=
18716 PRE_ALLOC_OBJ=lastfile.o
18717 POST_ALLOC_OBJ=
18724 case "$opsys" in
18725 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
18727 darwin)
18728 ## The -headerpad option tells ld (see man page) to leave room at the
18729 ## end of the header for adding load commands. Needed for dumping.
18730 ## 0x690 is the total size of 30 segment load commands (at 56
18731 ## each); under Cocoa 31 commands are required.
18732 if test "$HAVE_NS" = "yes"; then
18733 libs_nsgui="-framework AppKit"
18734 headerpad_extra=6C8
18735 else
18736 libs_nsgui=
18737 headerpad_extra=690
18739 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
18741 ## This is here because src/Makefile.in did some extra fiddling around
18742 ## with LD_SWITCH_SYSTEM. The cpp logic was:
18743 ## #ifndef LD_SWITCH_SYSTEM
18744 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
18745 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
18746 ## not using gcc, darwin system not on an alpha (ie darwin, since
18747 ## darwin + alpha does not occur).
18748 ## Because this was done in src/Makefile.in, the resulting part of
18749 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
18750 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
18751 ## rather than LD_SWITCH_SYSTEM.
18752 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
18753 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
18756 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
18757 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
18758 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
18759 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
18760 ## had different values in configure (in ac_link) and src/Makefile.in.
18761 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
18762 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
18764 *) LD_SWITCH_SYSTEM_TEMACS= ;;
18765 esac
18767 if test "$NS_IMPL_GNUSTEP" = "yes"; then
18768 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
18774 LD_FIRSTFLAG=
18775 ORDINARY_LINK=
18776 case "$opsys" in
18777 ## gnu: GNU needs its own crt0.
18778 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
18780 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
18781 ## library search parth, i.e. it won't search /usr/lib for libc and
18782 ## friends. Using -nostartfiles instead avoids this problem, and
18783 ## will also work on earlier NetBSD releases.
18784 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
18786 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
18787 ## MkLinux/LinuxPPC needs this.
18788 ## ibms390x only supports opsys = gnu-linux so it can be added here.
18789 gnu-*)
18790 case "$machine" in
18791 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
18792 esac
18794 esac
18797 if test "x$ORDINARY_LINK" = "xyes"; then
18799 LD_FIRSTFLAG=""
18801 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
18804 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
18805 ## freebsd, gnu-* not on macppc|ibms390x.
18806 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
18808 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
18809 ## places that are difficult to figure out at make time. Fortunately,
18810 ## these same versions allow you to pass arbitrary flags on to the
18811 ## linker, so there is no reason not to use it as a linker.
18813 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
18814 ## searching for libraries in its internal directories, so we have to
18815 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
18816 LD_FIRSTFLAG="-nostdlib"
18819 ## FIXME? What setting of EDIT_LDFLAGS should this have?
18820 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
18825 ## FIXME? The logic here is not precisely the same as that above.
18826 ## There is no check here for a pre-defined LD_FIRSTFLAG.
18827 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
18828 LIB_GCC=
18829 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
18831 case "$opsys" in
18832 freebsd|netbsd|openbsd) LIB_GCC= ;;
18834 gnu-*)
18835 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
18836 ## build on ARM EABI under GNU/Linux. (Bug#5518)
18837 case $host_cpu in
18838 arm*)
18839 LIB_GCC="-lgcc_s"
18842 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
18843 ## immediately undefine it again and redefine it to empty.
18844 ## Was the C_SWITCH_X_SITE part really necessary?
18845 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
18846 LIB_GCC=
18848 esac
18851 ## Ask GCC where to find libgcc.a.
18852 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
18853 esac
18857 TOOLTIP_SUPPORT=
18858 WINDOW_SUPPORT=
18859 ## If we're using X11/GNUstep, define some consequences.
18860 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
18862 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
18865 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
18867 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
18868 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
18870 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
18871 test "$HAVE_X_WINDOWS" = "yes" && \
18872 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
18882 #### Report on what we decided to do.
18883 #### Report GTK as a toolkit, even if it doesn't use Xt.
18884 #### It makes printing result more understandable as using GTK sets
18885 #### toolkit_scroll_bars to yes by default.
18886 if test "${HAVE_GTK}" = "yes"; then
18887 USE_X_TOOLKIT=GTK
18890 and_machfile=
18891 if test -n "$machfile"; then
18892 and_machfile=" and \`${machfile}'"
18895 echo "
18896 Configured for \`${canonical}'.
18898 Where should the build process find the source code? ${srcdir}
18899 What operating system and machine description files should Emacs use?
18900 \`${opsysfile}'${and_machfile}
18901 What compiler should emacs be built with? ${CC} ${CFLAGS}
18902 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18903 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18904 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18905 What window system should Emacs use? ${window_system}
18906 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18908 if test -n "${x_includes}"; then
18909 echo " Where do we find X Windows header files? ${x_includes}"
18910 else
18911 echo " Where do we find X Windows header files? Standard dirs"
18913 if test -n "${x_libraries}"; then
18914 echo " Where do we find X Windows libraries? ${x_libraries}"
18915 else
18916 echo " Where do we find X Windows libraries? Standard dirs"
18919 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18920 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18921 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18922 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18923 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
18924 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18925 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
18926 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
18928 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
18929 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
18930 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
18931 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
18932 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
18933 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
18935 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
18936 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
18937 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
18938 echo " Does Emacs use -lxft? ${HAVE_XFT}"
18940 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18941 echo
18943 if test $USE_XASSERTS = yes; then
18944 echo " Compiling with asserts turned on."
18945 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
18948 echo
18950 if test "$HAVE_NS" = "yes"; then
18951 echo
18952 echo "You must run \"make install\" in order to test the built application.
18953 The installed application will go to nextstep/Emacs.app and can be
18954 run or moved from there."
18955 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
18956 echo "The application will be fully self-contained."
18957 else
18958 echo "The lisp resources for the application will be installed under ${prefix}.
18959 You may need to run \"make install\" with sudo. The application will fail
18960 to run if these resources are not installed."
18962 echo
18966 # Remove any trailing slashes in these variables.
18967 test "${prefix}" != NONE &&
18968 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18969 test "${exec_prefix}" != NONE &&
18970 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18972 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 test/automated/Makefile"
18974 ac_config_commands="$ac_config_commands default"
18976 cat >confcache <<\_ACEOF
18977 # This file is a shell script that caches the results of configure
18978 # tests run on this system so they can be shared between configure
18979 # scripts and configure runs, see configure's option --config-cache.
18980 # It is not useful on other systems. If it contains results you don't
18981 # want to keep, you may remove or edit it.
18983 # config.status only pays attention to the cache file if you give it
18984 # the --recheck option to rerun configure.
18986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18988 # following values.
18990 _ACEOF
18992 # The following way of writing the cache mishandles newlines in values,
18993 # but we know of no workaround that is simple, portable, and efficient.
18994 # So, we kill variables containing newlines.
18995 # Ultrix sh set writes to stderr and can't be redirected directly,
18996 # and sets the high bit in the cache file unless we assign to the vars.
18998 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18999 eval ac_val=\$$ac_var
19000 case $ac_val in #(
19001 *${as_nl}*)
19002 case $ac_var in #(
19003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19004 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19005 esac
19006 case $ac_var in #(
19007 _ | IFS | as_nl) ;; #(
19008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19009 *) { eval $ac_var=; unset $ac_var;} ;;
19010 esac ;;
19011 esac
19012 done
19014 (set) 2>&1 |
19015 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19016 *${as_nl}ac_space=\ *)
19017 # `set' does not quote correctly, so add quotes: double-quote
19018 # substitution turns \\\\ into \\, and sed turns \\ into \.
19019 sed -n \
19020 "s/'/'\\\\''/g;
19021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19022 ;; #(
19024 # `set' quotes correctly as required by POSIX, so do not add quotes.
19025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19027 esac |
19028 sort
19030 sed '
19031 /^ac_cv_env_/b end
19032 t clear
19033 :clear
19034 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19035 t end
19036 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19037 :end' >>confcache
19038 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19039 if test -w "$cache_file"; then
19040 if test "x$cache_file" != "x/dev/null"; then
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19042 $as_echo "$as_me: updating cache $cache_file" >&6;}
19043 if test ! -f "$cache_file" || test -h "$cache_file"; then
19044 cat confcache >"$cache_file"
19045 else
19046 case $cache_file in #(
19047 */* | ?:*)
19048 mv -f confcache "$cache_file"$$ &&
19049 mv -f "$cache_file"$$ "$cache_file" ;; #(
19051 mv -f confcache "$cache_file" ;;
19052 esac
19055 else
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19060 rm -f confcache
19062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19063 # Let make expand exec_prefix.
19064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19066 DEFS=-DHAVE_CONFIG_H
19068 ac_libobjs=
19069 ac_ltlibobjs=
19071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19072 # 1. Remove the extension, and $U if already installed.
19073 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19074 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19076 # will be set to the directory where LIBOBJS objects are built.
19077 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19078 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19079 done
19080 LIBOBJS=$ac_libobjs
19082 LTLIBOBJS=$ac_ltlibobjs
19085 if test -n "$EXEEXT"; then
19086 am__EXEEXT_TRUE=
19087 am__EXEEXT_FALSE='#'
19088 else
19089 am__EXEEXT_TRUE='#'
19090 am__EXEEXT_FALSE=
19093 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19094 as_fn_error $? "conditional \"AMDEP\" was never defined.
19095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19098 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19102 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19103 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19108 gl_libobjs=
19109 gl_ltlibobjs=
19110 if test -n "$gl_LIBOBJS"; then
19111 # Remove the extension.
19112 sed_drop_objext='s/\.o$//;s/\.obj$//'
19113 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19114 gl_libobjs="$gl_libobjs $i.$ac_objext"
19115 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19116 done
19118 gl_LIBOBJS=$gl_libobjs
19120 gl_LTLIBOBJS=$gl_ltlibobjs
19124 gltests_libobjs=
19125 gltests_ltlibobjs=
19126 if test -n "$gltests_LIBOBJS"; then
19127 # Remove the extension.
19128 sed_drop_objext='s/\.o$//;s/\.obj$//'
19129 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19130 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19131 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19132 done
19134 gltests_LIBOBJS=$gltests_libobjs
19136 gltests_LTLIBOBJS=$gltests_ltlibobjs
19140 : "${CONFIG_STATUS=./config.status}"
19141 ac_write_fail=0
19142 ac_clean_files_save=$ac_clean_files
19143 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19146 as_write_fail=0
19147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19148 #! $SHELL
19149 # Generated by $as_me.
19150 # Run this file to recreate the current configuration.
19151 # Compiler output produced by configure, useful for debugging
19152 # configure, is in config.log if it exists.
19154 debug=false
19155 ac_cs_recheck=false
19156 ac_cs_silent=false
19158 SHELL=\${CONFIG_SHELL-$SHELL}
19159 export SHELL
19160 _ASEOF
19161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19162 ## -------------------- ##
19163 ## M4sh Initialization. ##
19164 ## -------------------- ##
19166 # Be more Bourne compatible
19167 DUALCASE=1; export DUALCASE # for MKS sh
19168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19169 emulate sh
19170 NULLCMD=:
19171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19172 # is contrary to our usage. Disable this feature.
19173 alias -g '${1+"$@"}'='"$@"'
19174 setopt NO_GLOB_SUBST
19175 else
19176 case `(set -o) 2>/dev/null` in #(
19177 *posix*) :
19178 set -o posix ;; #(
19179 *) :
19181 esac
19185 as_nl='
19187 export as_nl
19188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19189 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19192 # Prefer a ksh shell builtin over an external printf program on Solaris,
19193 # but without wasting forks for bash or zsh.
19194 if test -z "$BASH_VERSION$ZSH_VERSION" \
19195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19196 as_echo='print -r --'
19197 as_echo_n='print -rn --'
19198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19199 as_echo='printf %s\n'
19200 as_echo_n='printf %s'
19201 else
19202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19204 as_echo_n='/usr/ucb/echo -n'
19205 else
19206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19207 as_echo_n_body='eval
19208 arg=$1;
19209 case $arg in #(
19210 *"$as_nl"*)
19211 expr "X$arg" : "X\\(.*\\)$as_nl";
19212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19213 esac;
19214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19216 export as_echo_n_body
19217 as_echo_n='sh -c $as_echo_n_body as_echo'
19219 export as_echo_body
19220 as_echo='sh -c $as_echo_body as_echo'
19223 # The user is always right.
19224 if test "${PATH_SEPARATOR+set}" != set; then
19225 PATH_SEPARATOR=:
19226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19228 PATH_SEPARATOR=';'
19233 # IFS
19234 # We need space, tab and new line, in precisely that order. Quoting is
19235 # there to prevent editors from complaining about space-tab.
19236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19237 # splitting by setting IFS to empty value.)
19238 IFS=" "" $as_nl"
19240 # Find who we are. Look in the path if we contain no directory separator.
19241 as_myself=
19242 case $0 in #((
19243 *[\\/]* ) as_myself=$0 ;;
19244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245 for as_dir in $PATH
19247 IFS=$as_save_IFS
19248 test -z "$as_dir" && as_dir=.
19249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19250 done
19251 IFS=$as_save_IFS
19254 esac
19255 # We did not find ourselves, most probably we were run as `sh COMMAND'
19256 # in which case we are not to be found in the path.
19257 if test "x$as_myself" = x; then
19258 as_myself=$0
19260 if test ! -f "$as_myself"; then
19261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19262 exit 1
19265 # Unset variables that we do not need and which cause bugs (e.g. in
19266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19267 # suppresses any "Segmentation fault" message there. '((' could
19268 # trigger a bug in pdksh 5.2.14.
19269 for as_var in BASH_ENV ENV MAIL MAILPATH
19270 do eval test x\${$as_var+set} = xset \
19271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19272 done
19273 PS1='$ '
19274 PS2='> '
19275 PS4='+ '
19277 # NLS nuisances.
19278 LC_ALL=C
19279 export LC_ALL
19280 LANGUAGE=C
19281 export LANGUAGE
19283 # CDPATH.
19284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19287 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19288 # ----------------------------------------
19289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19291 # script with STATUS, using 1 if that was 0.
19292 as_fn_error ()
19294 as_status=$1; test $as_status -eq 0 && as_status=1
19295 if test "$4"; then
19296 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19299 $as_echo "$as_me: error: $2" >&2
19300 as_fn_exit $as_status
19301 } # as_fn_error
19304 # as_fn_set_status STATUS
19305 # -----------------------
19306 # Set $? to STATUS, without forking.
19307 as_fn_set_status ()
19309 return $1
19310 } # as_fn_set_status
19312 # as_fn_exit STATUS
19313 # -----------------
19314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19315 as_fn_exit ()
19317 set +e
19318 as_fn_set_status $1
19319 exit $1
19320 } # as_fn_exit
19322 # as_fn_unset VAR
19323 # ---------------
19324 # Portably unset VAR.
19325 as_fn_unset ()
19327 { eval $1=; unset $1;}
19329 as_unset=as_fn_unset
19330 # as_fn_append VAR VALUE
19331 # ----------------------
19332 # Append the text in VALUE to the end of the definition contained in VAR. Take
19333 # advantage of any shell optimizations that allow amortized linear growth over
19334 # repeated appends, instead of the typical quadratic growth present in naive
19335 # implementations.
19336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19337 eval 'as_fn_append ()
19339 eval $1+=\$2
19341 else
19342 as_fn_append ()
19344 eval $1=\$$1\$2
19346 fi # as_fn_append
19348 # as_fn_arith ARG...
19349 # ------------------
19350 # Perform arithmetic evaluation on the ARGs, and store the result in the
19351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19352 # must be portable across $(()) and expr.
19353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19354 eval 'as_fn_arith ()
19356 as_val=$(( $* ))
19358 else
19359 as_fn_arith ()
19361 as_val=`expr "$@" || test $? -eq 1`
19363 fi # as_fn_arith
19366 if expr a : '\(a\)' >/dev/null 2>&1 &&
19367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19368 as_expr=expr
19369 else
19370 as_expr=false
19373 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19374 as_basename=basename
19375 else
19376 as_basename=false
19379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19380 as_dirname=dirname
19381 else
19382 as_dirname=false
19385 as_me=`$as_basename -- "$0" ||
19386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19387 X"$0" : 'X\(//\)$' \| \
19388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19389 $as_echo X/"$0" |
19390 sed '/^.*\/\([^/][^/]*\)\/*$/{
19391 s//\1/
19394 /^X\/\(\/\/\)$/{
19395 s//\1/
19398 /^X\/\(\/\).*/{
19399 s//\1/
19402 s/.*/./; q'`
19404 # Avoid depending upon Character Ranges.
19405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19408 as_cr_digits='0123456789'
19409 as_cr_alnum=$as_cr_Letters$as_cr_digits
19411 ECHO_C= ECHO_N= ECHO_T=
19412 case `echo -n x` in #(((((
19413 -n*)
19414 case `echo 'xy\c'` in
19415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19416 xy) ECHO_C='\c';;
19417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19418 ECHO_T=' ';;
19419 esac;;
19421 ECHO_N='-n';;
19422 esac
19424 rm -f conf$$ conf$$.exe conf$$.file
19425 if test -d conf$$.dir; then
19426 rm -f conf$$.dir/conf$$.file
19427 else
19428 rm -f conf$$.dir
19429 mkdir conf$$.dir 2>/dev/null
19431 if (echo >conf$$.file) 2>/dev/null; then
19432 if ln -s conf$$.file conf$$ 2>/dev/null; then
19433 as_ln_s='ln -s'
19434 # ... but there are two gotchas:
19435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19437 # In both cases, we have to default to `cp -p'.
19438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19439 as_ln_s='cp -p'
19440 elif ln conf$$.file conf$$ 2>/dev/null; then
19441 as_ln_s=ln
19442 else
19443 as_ln_s='cp -p'
19445 else
19446 as_ln_s='cp -p'
19448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19449 rmdir conf$$.dir 2>/dev/null
19452 # as_fn_mkdir_p
19453 # -------------
19454 # Create "$as_dir" as a directory, including parents if necessary.
19455 as_fn_mkdir_p ()
19458 case $as_dir in #(
19459 -*) as_dir=./$as_dir;;
19460 esac
19461 test -d "$as_dir" || eval $as_mkdir_p || {
19462 as_dirs=
19463 while :; do
19464 case $as_dir in #(
19465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19466 *) as_qdir=$as_dir;;
19467 esac
19468 as_dirs="'$as_qdir' $as_dirs"
19469 as_dir=`$as_dirname -- "$as_dir" ||
19470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19471 X"$as_dir" : 'X\(//\)[^/]' \| \
19472 X"$as_dir" : 'X\(//\)$' \| \
19473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19474 $as_echo X"$as_dir" |
19475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19476 s//\1/
19479 /^X\(\/\/\)[^/].*/{
19480 s//\1/
19483 /^X\(\/\/\)$/{
19484 s//\1/
19487 /^X\(\/\).*/{
19488 s//\1/
19491 s/.*/./; q'`
19492 test -d "$as_dir" && break
19493 done
19494 test -z "$as_dirs" || eval "mkdir $as_dirs"
19495 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19498 } # as_fn_mkdir_p
19499 if mkdir -p . 2>/dev/null; then
19500 as_mkdir_p='mkdir -p "$as_dir"'
19501 else
19502 test -d ./-p && rmdir ./-p
19503 as_mkdir_p=false
19506 if test -x / >/dev/null 2>&1; then
19507 as_test_x='test -x'
19508 else
19509 if ls -dL / >/dev/null 2>&1; then
19510 as_ls_L_option=L
19511 else
19512 as_ls_L_option=
19514 as_test_x='
19515 eval sh -c '\''
19516 if test -d "$1"; then
19517 test -d "$1/.";
19518 else
19519 case $1 in #(
19520 -*)set "./$1";;
19521 esac;
19522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19523 ???[sx]*):;;*)false;;esac;fi
19524 '\'' sh
19527 as_executable_p=$as_test_x
19529 # Sed expression to map a string onto a valid CPP name.
19530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19532 # Sed expression to map a string onto a valid variable name.
19533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19536 exec 6>&1
19537 ## ----------------------------------- ##
19538 ## Main body of $CONFIG_STATUS script. ##
19539 ## ----------------------------------- ##
19540 _ASEOF
19541 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19544 # Save the log message, to keep $0 and so on meaningful, and to
19545 # report actual input values of CONFIG_FILES etc. instead of their
19546 # values after options handling.
19547 ac_log="
19548 This file was extended by emacs $as_me 24.0.50, which was
19549 generated by GNU Autoconf 2.68. Invocation command line was
19551 CONFIG_FILES = $CONFIG_FILES
19552 CONFIG_HEADERS = $CONFIG_HEADERS
19553 CONFIG_LINKS = $CONFIG_LINKS
19554 CONFIG_COMMANDS = $CONFIG_COMMANDS
19555 $ $0 $@
19557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19560 _ACEOF
19562 case $ac_config_files in *"
19563 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19564 esac
19566 case $ac_config_headers in *"
19567 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19568 esac
19571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19572 # Files that config.status was made for.
19573 config_files="$ac_config_files"
19574 config_headers="$ac_config_headers"
19575 config_commands="$ac_config_commands"
19577 _ACEOF
19579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19580 ac_cs_usage="\
19581 \`$as_me' instantiates files and other configuration actions
19582 from templates according to the current configuration. Unless the files
19583 and actions are specified as TAGs, all are instantiated by default.
19585 Usage: $0 [OPTION]... [TAG]...
19587 -h, --help print this help, then exit
19588 -V, --version print version number and configuration settings, then exit
19589 --config print configuration, then exit
19590 -q, --quiet, --silent
19591 do not print progress messages
19592 -d, --debug don't remove temporary files
19593 --recheck update $as_me by reconfiguring in the same conditions
19594 --file=FILE[:TEMPLATE]
19595 instantiate the configuration file FILE
19596 --header=FILE[:TEMPLATE]
19597 instantiate the configuration header FILE
19599 Configuration files:
19600 $config_files
19602 Configuration headers:
19603 $config_headers
19605 Configuration commands:
19606 $config_commands
19608 Report bugs to the package provider."
19610 _ACEOF
19611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19613 ac_cs_version="\\
19614 emacs config.status 24.0.50
19615 configured by $0, generated by GNU Autoconf 2.68,
19616 with options \\"\$ac_cs_config\\"
19618 Copyright (C) 2010 Free Software Foundation, Inc.
19619 This config.status script is free software; the Free Software Foundation
19620 gives unlimited permission to copy, distribute and modify it."
19622 ac_pwd='$ac_pwd'
19623 srcdir='$srcdir'
19624 INSTALL='$INSTALL'
19625 MKDIR_P='$MKDIR_P'
19626 AWK='$AWK'
19627 test -n "\$AWK" || AWK=awk
19628 _ACEOF
19630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19631 # The default lists apply if the user does not specify any file.
19632 ac_need_defaults=:
19633 while test $# != 0
19635 case $1 in
19636 --*=?*)
19637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19639 ac_shift=:
19641 --*=)
19642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19643 ac_optarg=
19644 ac_shift=:
19647 ac_option=$1
19648 ac_optarg=$2
19649 ac_shift=shift
19651 esac
19653 case $ac_option in
19654 # Handling of the options.
19655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19656 ac_cs_recheck=: ;;
19657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19658 $as_echo "$ac_cs_version"; exit ;;
19659 --config | --confi | --conf | --con | --co | --c )
19660 $as_echo "$ac_cs_config"; exit ;;
19661 --debug | --debu | --deb | --de | --d | -d )
19662 debug=: ;;
19663 --file | --fil | --fi | --f )
19664 $ac_shift
19665 case $ac_optarg in
19666 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19667 '') as_fn_error $? "missing file argument" ;;
19668 esac
19669 as_fn_append CONFIG_FILES " '$ac_optarg'"
19670 ac_need_defaults=false;;
19671 --header | --heade | --head | --hea )
19672 $ac_shift
19673 case $ac_optarg in
19674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19675 esac
19676 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19677 ac_need_defaults=false;;
19678 --he | --h)
19679 # Conflict between --help and --header
19680 as_fn_error $? "ambiguous option: \`$1'
19681 Try \`$0 --help' for more information.";;
19682 --help | --hel | -h )
19683 $as_echo "$ac_cs_usage"; exit ;;
19684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19685 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19686 ac_cs_silent=: ;;
19688 # This is an error.
19689 -*) as_fn_error $? "unrecognized option: \`$1'
19690 Try \`$0 --help' for more information." ;;
19692 *) as_fn_append ac_config_targets " $1"
19693 ac_need_defaults=false ;;
19695 esac
19696 shift
19697 done
19699 ac_configure_extra_args=
19701 if $ac_cs_silent; then
19702 exec 6>/dev/null
19703 ac_configure_extra_args="$ac_configure_extra_args --silent"
19706 _ACEOF
19707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19708 if \$ac_cs_recheck; then
19709 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19710 shift
19711 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19712 CONFIG_SHELL='$SHELL'
19713 export CONFIG_SHELL
19714 exec "\$@"
19717 _ACEOF
19718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19719 exec 5>>config.log
19721 echo
19722 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19723 ## Running $as_me. ##
19724 _ASBOX
19725 $as_echo "$ac_log"
19726 } >&5
19728 _ACEOF
19729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19731 # INIT-COMMANDS
19733 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19734 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19736 _ACEOF
19738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19740 # Handling of arguments.
19741 for ac_config_target in $ac_config_targets
19743 case $ac_config_target in
19744 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19745 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19746 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19747 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19748 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
19749 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19750 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
19751 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
19752 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
19753 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
19754 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19755 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19756 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19757 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19758 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
19759 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19761 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19762 esac
19763 done
19766 # If the user did not use the arguments to specify the items to instantiate,
19767 # then the envvar interface is used. Set only those that are not.
19768 # We use the long form for the default assignment because of an extremely
19769 # bizarre bug on SunOS 4.1.3.
19770 if $ac_need_defaults; then
19771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19776 # Have a temporary directory for convenience. Make it in the build tree
19777 # simply because there is no reason against having it here, and in addition,
19778 # creating and moving files from /tmp can sometimes cause problems.
19779 # Hook for its removal unless debugging.
19780 # Note that there is a small window in which the directory will not be cleaned:
19781 # after its creation but before its name has been assigned to `$tmp'.
19782 $debug ||
19784 tmp= ac_tmp=
19785 trap 'exit_status=$?
19786 : "${ac_tmp:=$tmp}"
19787 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19789 trap 'as_fn_exit 1' 1 2 13 15
19791 # Create a (secure) tmp directory for tmp files.
19794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19795 test -d "$tmp"
19796 } ||
19798 tmp=./conf$$-$RANDOM
19799 (umask 077 && mkdir "$tmp")
19800 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19801 ac_tmp=$tmp
19803 # Set up the scripts for CONFIG_FILES section.
19804 # No need to generate them if there are no CONFIG_FILES.
19805 # This happens for instance with `./config.status config.h'.
19806 if test -n "$CONFIG_FILES"; then
19808 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19809 ac_cs_awk_getline=:
19810 ac_cs_awk_pipe_init=
19811 ac_cs_awk_read_file='
19812 while ((getline aline < (F[key])) > 0)
19813 print(aline)
19814 close(F[key])'
19815 ac_cs_awk_pipe_fini=
19816 else
19817 ac_cs_awk_getline=false
19818 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19819 ac_cs_awk_read_file='
19820 print "|#_!!_#|"
19821 print "cat " F[key] " &&"
19822 '$ac_cs_awk_pipe_init
19823 # The final `:' finishes the AND list.
19824 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19826 ac_cr=`echo X | tr X '\015'`
19827 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19828 # But we know of no other shell where ac_cr would be empty at this
19829 # point, so we can use a bashism as a fallback.
19830 if test "x$ac_cr" = x; then
19831 eval ac_cr=\$\'\\r\'
19833 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19834 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19835 ac_cs_awk_cr='\\r'
19836 else
19837 ac_cs_awk_cr=$ac_cr
19840 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19841 _ACEOF
19843 # Create commands to substitute file output variables.
19845 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19846 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19847 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19848 echo "_ACAWK" &&
19849 echo "_ACEOF"
19850 } >conf$$files.sh &&
19851 . ./conf$$files.sh ||
19852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19853 rm -f conf$$files.sh
19856 echo "cat >conf$$subs.awk <<_ACEOF" &&
19857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19858 echo "_ACEOF"
19859 } >conf$$subs.sh ||
19860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19861 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19862 ac_delim='%!_!# '
19863 for ac_last_try in false false false false false :; do
19864 . ./conf$$subs.sh ||
19865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19868 if test $ac_delim_n = $ac_delim_num; then
19869 break
19870 elif $ac_last_try; then
19871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19872 else
19873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19875 done
19876 rm -f conf$$subs.sh
19878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19879 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19880 _ACEOF
19881 sed -n '
19883 s/^/S["/; s/!.*/"]=/
19886 s/^[^!]*!//
19887 :repl
19888 t repl
19889 s/'"$ac_delim"'$//
19890 t delim
19893 s/\(.\{148\}\)..*/\1/
19894 t more1
19895 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19898 b repl
19899 :more1
19900 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19903 s/.\{148\}//
19904 t nl
19905 :delim
19907 s/\(.\{148\}\)..*/\1/
19908 t more2
19909 s/["\\]/\\&/g; s/^/"/; s/$/"/
19912 :more2
19913 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19916 s/.\{148\}//
19917 t delim
19918 ' <conf$$subs.awk | sed '
19919 /^[^""]/{
19921 s/\n//
19923 ' >>$CONFIG_STATUS || ac_write_fail=1
19924 rm -f conf$$subs.awk
19925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19926 _ACAWK
19927 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19928 for (key in S) S_is_set[key] = 1
19929 FS = "\a"
19930 \$ac_cs_awk_pipe_init
19933 line = $ 0
19934 nfields = split(line, field, "@")
19935 substed = 0
19936 len = length(field[1])
19937 for (i = 2; i < nfields; i++) {
19938 key = field[i]
19939 keylen = length(key)
19940 if (S_is_set[key]) {
19941 value = S[key]
19942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19943 len += length(value) + length(field[++i])
19944 substed = 1
19945 } else
19946 len += 1 + keylen
19948 if (nfields == 3 && !substed) {
19949 key = field[2]
19950 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19951 \$ac_cs_awk_read_file
19952 next
19955 print line
19957 \$ac_cs_awk_pipe_fini
19958 _ACAWK
19959 _ACEOF
19960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19961 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19963 else
19965 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19966 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19967 _ACEOF
19969 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19970 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19971 # trailing colons and then remove the whole line if VPATH becomes empty
19972 # (actually we leave an empty line to preserve line numbers).
19973 if test "x$srcdir" = x.; then
19974 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19976 s///
19977 s/^/:/
19978 s/[ ]*$/:/
19979 s/:\$(srcdir):/:/g
19980 s/:\${srcdir}:/:/g
19981 s/:@srcdir@:/:/g
19982 s/^:*//
19983 s/:*$//
19985 s/\(=[ ]*\).*/\1/
19987 s/\n//
19988 s/^[^=]*=[ ]*$//
19992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19993 fi # test -n "$CONFIG_FILES"
19995 # Set up the scripts for CONFIG_HEADERS section.
19996 # No need to generate them if there are no CONFIG_HEADERS.
19997 # This happens for instance with `./config.status Makefile'.
19998 if test -n "$CONFIG_HEADERS"; then
19999 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20000 BEGIN {
20001 _ACEOF
20003 # Transform confdefs.h into an awk script `defines.awk', embedded as
20004 # here-document in config.status, that substitutes the proper values into
20005 # config.h.in to produce config.h.
20007 # Create a delimiter string that does not exist in confdefs.h, to ease
20008 # handling of long lines.
20009 ac_delim='%!_!# '
20010 for ac_last_try in false false :; do
20011 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20012 if test -z "$ac_tt"; then
20013 break
20014 elif $ac_last_try; then
20015 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20016 else
20017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20019 done
20021 # For the awk script, D is an array of macro values keyed by name,
20022 # likewise P contains macro parameters if any. Preserve backslash
20023 # newline sequences.
20025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20026 sed -n '
20027 s/.\{148\}/&'"$ac_delim"'/g
20028 t rset
20029 :rset
20030 s/^[ ]*#[ ]*define[ ][ ]*/ /
20031 t def
20033 :def
20034 s/\\$//
20035 t bsnl
20036 s/["\\]/\\&/g
20037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20038 D["\1"]=" \3"/p
20039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20041 :bsnl
20042 s/["\\]/\\&/g
20043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20044 D["\1"]=" \3\\\\\\n"\\/p
20045 t cont
20046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20047 t cont
20049 :cont
20051 s/.\{148\}/&'"$ac_delim"'/g
20052 t clear
20053 :clear
20054 s/\\$//
20055 t bsnlc
20056 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20058 :bsnlc
20059 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20060 b cont
20061 ' <confdefs.h | sed '
20062 s/'"$ac_delim"'/"\\\
20063 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20066 for (key in D) D_is_set[key] = 1
20067 FS = "\a"
20069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20070 line = \$ 0
20071 split(line, arg, " ")
20072 if (arg[1] == "#") {
20073 defundef = arg[2]
20074 mac1 = arg[3]
20075 } else {
20076 defundef = substr(arg[1], 2)
20077 mac1 = arg[2]
20079 split(mac1, mac2, "(") #)
20080 macro = mac2[1]
20081 prefix = substr(line, 1, index(line, defundef) - 1)
20082 if (D_is_set[macro]) {
20083 # Preserve the white space surrounding the "#".
20084 print prefix "define", macro P[macro] D[macro]
20085 next
20086 } else {
20087 # Replace #undef with comments. This is necessary, for example,
20088 # in the case of _POSIX_SOURCE, which is predefined and required
20089 # on some systems where configure will not decide to define it.
20090 if (defundef == "undef") {
20091 print "/*", prefix defundef, macro, "*/"
20092 next
20096 { print }
20097 _ACAWK
20098 _ACEOF
20099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20100 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20101 fi # test -n "$CONFIG_HEADERS"
20104 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20105 shift
20106 for ac_tag
20108 case $ac_tag in
20109 :[FHLC]) ac_mode=$ac_tag; continue;;
20110 esac
20111 case $ac_mode$ac_tag in
20112 :[FHL]*:*);;
20113 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20114 :[FH]-) ac_tag=-:-;;
20115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20116 esac
20117 ac_save_IFS=$IFS
20118 IFS=:
20119 set x $ac_tag
20120 IFS=$ac_save_IFS
20121 shift
20122 ac_file=$1
20123 shift
20125 case $ac_mode in
20126 :L) ac_source=$1;;
20127 :[FH])
20128 ac_file_inputs=
20129 for ac_f
20131 case $ac_f in
20132 -) ac_f="$ac_tmp/stdin";;
20133 *) # Look for the file first in the build tree, then in the source tree
20134 # (if the path is not absolute). The absolute path cannot be DOS-style,
20135 # because $ac_f cannot contain `:'.
20136 test -f "$ac_f" ||
20137 case $ac_f in
20138 [\\/$]*) false;;
20139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20140 esac ||
20141 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20142 esac
20143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20144 as_fn_append ac_file_inputs " '$ac_f'"
20145 done
20147 # Let's still pretend it is `configure' which instantiates (i.e., don't
20148 # use $as_me), people would be surprised to read:
20149 # /* config.h. Generated by config.status. */
20150 configure_input='Generated from '`
20151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20152 `' by configure.'
20153 if test x"$ac_file" != x-; then
20154 configure_input="$ac_file. $configure_input"
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20156 $as_echo "$as_me: creating $ac_file" >&6;}
20158 # Neutralize special characters interpreted by sed in replacement strings.
20159 case $configure_input in #(
20160 *\&* | *\|* | *\\* )
20161 ac_sed_conf_input=`$as_echo "$configure_input" |
20162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20163 *) ac_sed_conf_input=$configure_input;;
20164 esac
20166 case $ac_tag in
20167 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20169 esac
20171 esac
20173 ac_dir=`$as_dirname -- "$ac_file" ||
20174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20175 X"$ac_file" : 'X\(//\)[^/]' \| \
20176 X"$ac_file" : 'X\(//\)$' \| \
20177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20178 $as_echo X"$ac_file" |
20179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20180 s//\1/
20183 /^X\(\/\/\)[^/].*/{
20184 s//\1/
20187 /^X\(\/\/\)$/{
20188 s//\1/
20191 /^X\(\/\).*/{
20192 s//\1/
20195 s/.*/./; q'`
20196 as_dir="$ac_dir"; as_fn_mkdir_p
20197 ac_builddir=.
20199 case "$ac_dir" in
20200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20203 # A ".." for each directory in $ac_dir_suffix.
20204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20205 case $ac_top_builddir_sub in
20206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20208 esac ;;
20209 esac
20210 ac_abs_top_builddir=$ac_pwd
20211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20212 # for backward compatibility:
20213 ac_top_builddir=$ac_top_build_prefix
20215 case $srcdir in
20216 .) # We are building in place.
20217 ac_srcdir=.
20218 ac_top_srcdir=$ac_top_builddir_sub
20219 ac_abs_top_srcdir=$ac_pwd ;;
20220 [\\/]* | ?:[\\/]* ) # Absolute name.
20221 ac_srcdir=$srcdir$ac_dir_suffix;
20222 ac_top_srcdir=$srcdir
20223 ac_abs_top_srcdir=$srcdir ;;
20224 *) # Relative name.
20225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20226 ac_top_srcdir=$ac_top_build_prefix$srcdir
20227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20228 esac
20229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20232 case $ac_mode in
20235 # CONFIG_FILE
20238 case $INSTALL in
20239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20241 esac
20242 ac_MKDIR_P=$MKDIR_P
20243 case $MKDIR_P in
20244 [\\/$]* | ?:[\\/]* ) ;;
20245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20246 esac
20247 _ACEOF
20249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20250 # If the template does not know about datarootdir, expand it.
20251 # FIXME: This hack should be removed a few years after 2.60.
20252 ac_datarootdir_hack=; ac_datarootdir_seen=
20253 ac_sed_dataroot='
20254 /datarootdir/ {
20258 /@datadir@/p
20259 /@docdir@/p
20260 /@infodir@/p
20261 /@localedir@/p
20262 /@mandir@/p'
20263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20264 *datarootdir*) ac_datarootdir_seen=yes;;
20265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20268 _ACEOF
20269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20270 ac_datarootdir_hack='
20271 s&@datadir@&$datadir&g
20272 s&@docdir@&$docdir&g
20273 s&@infodir@&$infodir&g
20274 s&@localedir@&$localedir&g
20275 s&@mandir@&$mandir&g
20276 s&\\\${datarootdir}&$datarootdir&g' ;;
20277 esac
20278 _ACEOF
20280 # Neutralize VPATH when `$srcdir' = `.'.
20281 # Shell code in configure.ac might set extrasub.
20282 # FIXME: do we really want to maintain this feature?
20283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284 ac_sed_extra="$ac_vpsub
20285 $extrasub
20286 _ACEOF
20287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20290 s|@configure_input@|$ac_sed_conf_input|;t t
20291 s&@top_builddir@&$ac_top_builddir_sub&;t t
20292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20293 s&@srcdir@&$ac_srcdir&;t t
20294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20295 s&@top_srcdir@&$ac_top_srcdir&;t t
20296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20297 s&@builddir@&$ac_builddir&;t t
20298 s&@abs_builddir@&$ac_abs_builddir&;t t
20299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20300 s&@INSTALL@&$ac_INSTALL&;t t
20301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20302 $ac_datarootdir_hack
20304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20305 if $ac_cs_awk_getline; then
20306 $AWK -f "$ac_tmp/subs.awk"
20307 else
20308 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20309 fi \
20310 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20312 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20313 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20314 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20315 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20317 which seems to be undefined. Please make sure it is defined" >&5
20318 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20319 which seems to be undefined. Please make sure it is defined" >&2;}
20321 rm -f "$ac_tmp/stdin"
20322 case $ac_file in
20323 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20324 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20325 esac \
20326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20330 # CONFIG_HEADER
20332 if test x"$ac_file" != x-; then
20334 $as_echo "/* $configure_input */" \
20335 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20336 } >"$ac_tmp/config.h" \
20337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20338 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20340 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20341 else
20342 rm -f "$ac_file"
20343 mv "$ac_tmp/config.h" "$ac_file" \
20344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20346 else
20347 $as_echo "/* $configure_input */" \
20348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20349 || as_fn_error $? "could not create -" "$LINENO" 5
20351 # Compute "$ac_file"'s index in $config_headers.
20352 _am_arg="$ac_file"
20353 _am_stamp_count=1
20354 for _am_header in $config_headers :; do
20355 case $_am_header in
20356 $_am_arg | $_am_arg:* )
20357 break ;;
20359 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20360 esac
20361 done
20362 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20363 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20364 X"$_am_arg" : 'X\(//\)[^/]' \| \
20365 X"$_am_arg" : 'X\(//\)$' \| \
20366 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20367 $as_echo X"$_am_arg" |
20368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20369 s//\1/
20372 /^X\(\/\/\)[^/].*/{
20373 s//\1/
20376 /^X\(\/\/\)$/{
20377 s//\1/
20380 /^X\(\/\).*/{
20381 s//\1/
20384 s/.*/./; q'`/stamp-h$_am_stamp_count
20387 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20388 $as_echo "$as_me: executing $ac_file commands" >&6;}
20390 esac
20393 case $ac_file$ac_mode in
20394 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20395 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20396 # are listed without --file. Let's play safe and only enable the eval
20397 # if we detect the quoting.
20398 case $CONFIG_FILES in
20399 *\'*) eval set x "$CONFIG_FILES" ;;
20400 *) set x $CONFIG_FILES ;;
20401 esac
20402 shift
20403 for mf
20405 # Strip MF so we end up with the name of the file.
20406 mf=`echo "$mf" | sed -e 's/:.*$//'`
20407 # Check whether this is an Automake generated Makefile or not.
20408 # We used to match only the files named `Makefile.in', but
20409 # some people rename them; so instead we look at the file content.
20410 # Grep'ing the first line is not enough: some people post-process
20411 # each Makefile.in and add a new line on top of each file to say so.
20412 # Grep'ing the whole file is not good either: AIX grep has a line
20413 # limit of 2048, but all sed's we know have understand at least 4000.
20414 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20415 dirpart=`$as_dirname -- "$mf" ||
20416 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20417 X"$mf" : 'X\(//\)[^/]' \| \
20418 X"$mf" : 'X\(//\)$' \| \
20419 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20420 $as_echo X"$mf" |
20421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20422 s//\1/
20425 /^X\(\/\/\)[^/].*/{
20426 s//\1/
20429 /^X\(\/\/\)$/{
20430 s//\1/
20433 /^X\(\/\).*/{
20434 s//\1/
20437 s/.*/./; q'`
20438 else
20439 continue
20441 # Extract the definition of DEPDIR, am__include, and am__quote
20442 # from the Makefile without running `make'.
20443 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20444 test -z "$DEPDIR" && continue
20445 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20446 test -z "am__include" && continue
20447 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20448 # When using ansi2knr, U may be empty or an underscore; expand it
20449 U=`sed -n 's/^U = //p' < "$mf"`
20450 # Find all dependency output files, they are included files with
20451 # $(DEPDIR) in their names. We invoke sed twice because it is the
20452 # simplest approach to changing $(DEPDIR) to its actual value in the
20453 # expansion.
20454 for file in `sed -n "
20455 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20456 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20457 # Make sure the directory exists.
20458 test -f "$dirpart/$file" && continue
20459 fdir=`$as_dirname -- "$file" ||
20460 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20461 X"$file" : 'X\(//\)[^/]' \| \
20462 X"$file" : 'X\(//\)$' \| \
20463 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20464 $as_echo X"$file" |
20465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20466 s//\1/
20469 /^X\(\/\/\)[^/].*/{
20470 s//\1/
20473 /^X\(\/\/\)$/{
20474 s//\1/
20477 /^X\(\/\).*/{
20478 s//\1/
20481 s/.*/./; q'`
20482 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20483 # echo "creating $dirpart/$file"
20484 echo '# dummy' > "$dirpart/$file"
20485 done
20486 done
20489 "default":C)
20491 ### Make the necessary directories, if they don't exist.
20492 for dir in etc lisp ; do
20493 test -d ${dir} || mkdir ${dir}
20494 done
20496 echo creating src/epaths.h
20497 ${MAKE-make} epaths-force
20499 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20500 echo creating src/.gdbinit
20501 echo source $srcdir/src/.gdbinit > src/.gdbinit
20506 esac
20507 done # for ac_tag
20510 as_fn_exit 0
20511 _ACEOF
20512 ac_clean_files=$ac_clean_files_save
20514 test $ac_write_fail = 0 ||
20515 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20518 # configure is writing to config.log, and then calls config.status.
20519 # config.status does its own redirection, appending to config.log.
20520 # Unfortunately, on DOS this fails, as config.log is still kept open
20521 # by configure, so config.status won't be able to write to it; its
20522 # output is simply discarded. So we exec the FD to /dev/null,
20523 # effectively closing config.log, so it can be properly (re)opened and
20524 # appended to by config.status. When coming back to configure, we
20525 # need to make the FD available again.
20526 if test "$no_create" != yes; then
20527 ac_cs_success=:
20528 ac_config_status_args=
20529 test "$silent" = yes &&
20530 ac_config_status_args="$ac_config_status_args --quiet"
20531 exec 5>/dev/null
20532 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20533 exec 5>>config.log
20534 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20535 # would make configure fail if this is the last instruction.
20536 $ac_cs_success || as_fn_exit 1
20538 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20540 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}