937e4649e508f92acf1b75c31238a1c1a5d01fc0
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.91.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.91'
553 PACKAGE_STRING='emacs 24.0.91'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 LIBGNU_LTLIBDEPS
611 LIBGNU_LIBDEPS
612 gltests_WITNESS
613 gl_GNULIB_ENABLED_verify_FALSE
614 gl_GNULIB_ENABLED_verify_TRUE
615 gl_GNULIB_ENABLED_strtoull_FALSE
616 gl_GNULIB_ENABLED_strtoull_TRUE
617 gl_GNULIB_ENABLED_strtoll_FALSE
618 gl_GNULIB_ENABLED_strtoll_TRUE
619 gl_GNULIB_ENABLED_stat_FALSE
620 gl_GNULIB_ENABLED_stat_TRUE
621 gl_GNULIB_ENABLED_sigprocmask_FALSE
622 gl_GNULIB_ENABLED_sigprocmask_TRUE
623 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
625 gl_GNULIB_ENABLED_dosname_FALSE
626 gl_GNULIB_ENABLED_dosname_TRUE
627 LTLIBINTL
628 LIBINTL
629 HAVE_UNISTD_H
630 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
631 NEXT_UNISTD_H
632 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
633 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
634 TIME_H_DEFINES_STRUCT_TIMESPEC
635 NEXT_AS_FIRST_DIRECTIVE_TIME_H
636 NEXT_TIME_H
637 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
638 NEXT_SYS_STAT_H
639 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
640 NEXT_STDLIB_H
641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
642 NEXT_STDIO_H
643 REPLACE_VSPRINTF
644 REPLACE_VSNPRINTF
645 REPLACE_VPRINTF
646 REPLACE_VFPRINTF
647 REPLACE_VDPRINTF
648 REPLACE_VASPRINTF
649 REPLACE_TMPFILE
650 REPLACE_STDIO_WRITE_FUNCS
651 REPLACE_STDIO_READ_FUNCS
652 REPLACE_SPRINTF
653 REPLACE_SNPRINTF
654 REPLACE_RENAMEAT
655 REPLACE_RENAME
656 REPLACE_REMOVE
657 REPLACE_PRINTF
658 REPLACE_POPEN
659 REPLACE_PERROR
660 REPLACE_OBSTACK_PRINTF
661 REPLACE_GETLINE
662 REPLACE_GETDELIM
663 REPLACE_FTELLO
664 REPLACE_FTELL
665 REPLACE_FSEEKO
666 REPLACE_FSEEK
667 REPLACE_FREOPEN
668 REPLACE_FPURGE
669 REPLACE_FPRINTF
670 REPLACE_FOPEN
671 REPLACE_FFLUSH
672 REPLACE_FDOPEN
673 REPLACE_FCLOSE
674 REPLACE_DPRINTF
675 HAVE_VDPRINTF
676 HAVE_VASPRINTF
677 HAVE_RENAMEAT
678 HAVE_POPEN
679 HAVE_PCLOSE
680 HAVE_FTELLO
681 HAVE_FSEEKO
682 HAVE_DPRINTF
683 HAVE_DECL_VSNPRINTF
684 HAVE_DECL_SNPRINTF
685 HAVE_DECL_OBSTACK_PRINTF
686 HAVE_DECL_GETLINE
687 HAVE_DECL_GETDELIM
688 HAVE_DECL_FTELLO
689 HAVE_DECL_FSEEKO
690 HAVE_DECL_FPURGE
691 GNULIB_VSPRINTF_POSIX
692 GNULIB_VSNPRINTF
693 GNULIB_VPRINTF_POSIX
694 GNULIB_VPRINTF
695 GNULIB_VFPRINTF_POSIX
696 GNULIB_VFPRINTF
697 GNULIB_VDPRINTF
698 GNULIB_VSCANF
699 GNULIB_VFSCANF
700 GNULIB_VASPRINTF
701 GNULIB_TMPFILE
702 GNULIB_STDIO_H_SIGPIPE
703 GNULIB_STDIO_H_NONBLOCKING
704 GNULIB_SPRINTF_POSIX
705 GNULIB_SNPRINTF
706 GNULIB_SCANF
707 GNULIB_RENAMEAT
708 GNULIB_RENAME
709 GNULIB_REMOVE
710 GNULIB_PUTS
711 GNULIB_PUTCHAR
712 GNULIB_PUTC
713 GNULIB_PRINTF_POSIX
714 GNULIB_PRINTF
715 GNULIB_POPEN
716 GNULIB_PERROR
717 GNULIB_PCLOSE
718 GNULIB_OBSTACK_PRINTF_POSIX
719 GNULIB_OBSTACK_PRINTF
720 GNULIB_GETS
721 GNULIB_GETLINE
722 GNULIB_GETDELIM
723 GNULIB_GETCHAR
724 GNULIB_GETC
725 GNULIB_FWRITE
726 GNULIB_FTELLO
727 GNULIB_FTELL
728 GNULIB_FSEEKO
729 GNULIB_FSEEK
730 GNULIB_FSCANF
731 GNULIB_FREOPEN
732 GNULIB_FREAD
733 GNULIB_FPUTS
734 GNULIB_FPUTC
735 GNULIB_FPURGE
736 GNULIB_FPRINTF_POSIX
737 GNULIB_FPRINTF
738 GNULIB_FOPEN
739 GNULIB_FGETS
740 GNULIB_FGETC
741 GNULIB_FFLUSH
742 GNULIB_FDOPEN
743 GNULIB_FCLOSE
744 GNULIB_DPRINTF
745 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
746 NEXT_STDDEF_H
747 GL_GENERATE_STDDEF_H_FALSE
748 GL_GENERATE_STDDEF_H_TRUE
749 STDDEF_H
750 HAVE_WCHAR_T
751 REPLACE_NULL
752 HAVE__BOOL
753 GL_GENERATE_STDBOOL_H_FALSE
754 GL_GENERATE_STDBOOL_H_TRUE
755 STDBOOL_H
756 GL_GENERATE_STDARG_H_FALSE
757 GL_GENERATE_STDARG_H_TRUE
758 STDARG_H
759 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
760 NEXT_STDARG_H
761 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
762 NEXT_SIGNAL_H
763 REPLACE_RAISE
764 REPLACE_PTHREAD_SIGMASK
765 HAVE_SIGHANDLER_T
766 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
767 HAVE_STRUCT_SIGACTION_SA_SIGACTION
768 HAVE_SIGACTION
769 HAVE_SIGINFO_T
770 HAVE_SIGSET_T
771 HAVE_RAISE
772 HAVE_PTHREAD_SIGMASK
773 HAVE_POSIX_SIGNALBLOCKING
774 GNULIB_SIGACTION
775 GNULIB_SIGPROCMASK
776 GNULIB_SIGNAL_H_SIGPIPE
777 GNULIB_RAISE
778 GNULIB_PTHREAD_SIGMASK
779 LIB_PTHREAD_SIGMASK
780 REPLACE_TIMEGM
781 REPLACE_NANOSLEEP
782 REPLACE_MKTIME
783 REPLACE_LOCALTIME_R
784 HAVE_TIMEGM
785 HAVE_STRPTIME
786 HAVE_NANOSLEEP
787 HAVE_DECL_LOCALTIME_R
788 GNULIB_TIME_R
789 GNULIB_TIMEGM
790 GNULIB_STRPTIME
791 GNULIB_NANOSLEEP
792 GNULIB_MKTIME
793 REPLACE_UTIMENSAT
794 REPLACE_STAT
795 REPLACE_MKNOD
796 REPLACE_MKFIFO
797 REPLACE_MKDIR
798 REPLACE_LSTAT
799 REPLACE_FUTIMENS
800 REPLACE_FSTATAT
801 REPLACE_FSTAT
802 HAVE_UTIMENSAT
803 HAVE_MKNODAT
804 HAVE_MKNOD
805 HAVE_MKFIFOAT
806 HAVE_MKFIFO
807 HAVE_MKDIRAT
808 HAVE_LSTAT
809 HAVE_LCHMOD
810 HAVE_FUTIMENS
811 HAVE_FSTATAT
812 HAVE_FCHMODAT
813 GNULIB_UTIMENSAT
814 GNULIB_STAT
815 GNULIB_MKNODAT
816 GNULIB_MKNOD
817 GNULIB_MKFIFOAT
818 GNULIB_MKFIFO
819 GNULIB_MKDIRAT
820 GNULIB_LSTAT
821 GNULIB_LCHMOD
822 GNULIB_FUTIMENS
823 GNULIB_FSTATAT
824 GNULIB_FSTAT
825 GNULIB_FCHMODAT
826 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
827 NEXT_INTTYPES_H
828 UINT64_MAX_EQ_ULONG_MAX
829 UINT32_MAX_LT_UINTMAX_MAX
830 PRIPTR_PREFIX
831 PRI_MACROS_BROKEN
832 INT64_MAX_EQ_LONG_MAX
833 INT32_MAX_LT_INTMAX_MAX
834 HAVE_DECL_STRTOUMAX
835 HAVE_DECL_STRTOIMAX
836 HAVE_DECL_IMAXDIV
837 HAVE_DECL_IMAXABS
838 GNULIB_STRTOUMAX
839 GNULIB_STRTOIMAX
840 GNULIB_IMAXDIV
841 GNULIB_IMAXABS
842 GL_GENERATE_STDINT_H_FALSE
843 GL_GENERATE_STDINT_H_TRUE
844 STDINT_H
845 WINT_T_SUFFIX
846 WCHAR_T_SUFFIX
847 SIG_ATOMIC_T_SUFFIX
848 SIZE_T_SUFFIX
849 PTRDIFF_T_SUFFIX
850 HAVE_SIGNED_WINT_T
851 HAVE_SIGNED_WCHAR_T
852 HAVE_SIGNED_SIG_ATOMIC_T
853 BITSIZEOF_WINT_T
854 BITSIZEOF_WCHAR_T
855 BITSIZEOF_SIG_ATOMIC_T
856 BITSIZEOF_SIZE_T
857 BITSIZEOF_PTRDIFF_T
858 APPLE_UNIVERSAL_BUILD
859 HAVE_SYS_BITYPES_H
860 HAVE_SYS_INTTYPES_H
861 HAVE_STDINT_H
862 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
863 NEXT_STDINT_H
864 HAVE_SYS_TYPES_H
865 HAVE_INTTYPES_H
866 HAVE_WCHAR_H
867 HAVE_UNSIGNED_LONG_LONG_INT
868 HAVE_LONG_LONG_INT
869 GETOPT_H
870 HAVE_GETOPT_H
871 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
872 NEXT_GETOPT_H
873 PRAGMA_COLUMNS
874 PRAGMA_SYSTEM_HEADER
875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
876 INCLUDE_NEXT
877 GETLOADAVG_LIBS
878 REPLACE_WCTOMB
879 REPLACE_UNSETENV
880 REPLACE_STRTOD
881 REPLACE_SETENV
882 REPLACE_REALPATH
883 REPLACE_REALLOC
884 REPLACE_PUTENV
885 REPLACE_MKSTEMP
886 REPLACE_MBTOWC
887 REPLACE_MALLOC
888 REPLACE_CANONICALIZE_FILE_NAME
889 REPLACE_CALLOC
890 HAVE_DECL_UNSETENV
891 HAVE_UNLOCKPT
892 HAVE_SYS_LOADAVG_H
893 HAVE_STRUCT_RANDOM_DATA
894 HAVE_STRTOULL
895 HAVE_STRTOLL
896 HAVE_STRTOD
897 HAVE_DECL_SETENV
898 HAVE_SETENV
899 HAVE_RPMATCH
900 HAVE_REALPATH
901 HAVE_RANDOM_R
902 HAVE_RANDOM_H
903 HAVE_PTSNAME
904 HAVE_MKSTEMPS
905 HAVE_MKSTEMP
906 HAVE_MKOSTEMPS
907 HAVE_MKOSTEMP
908 HAVE_MKDTEMP
909 HAVE_GRANTPT
910 HAVE_GETSUBOPT
911 HAVE_DECL_GETLOADAVG
912 HAVE_CANONICALIZE_FILE_NAME
913 HAVE_ATOLL
914 HAVE__EXIT
915 GNULIB_WCTOMB
916 GNULIB_UNSETENV
917 GNULIB_UNLOCKPT
918 GNULIB_SYSTEM_POSIX
919 GNULIB_STRTOULL
920 GNULIB_STRTOLL
921 GNULIB_STRTOD
922 GNULIB_SETENV
923 GNULIB_RPMATCH
924 GNULIB_REALPATH
925 GNULIB_REALLOC_POSIX
926 GNULIB_RANDOM_R
927 GNULIB_PUTENV
928 GNULIB_PTSNAME
929 GNULIB_MKSTEMPS
930 GNULIB_MKSTEMP
931 GNULIB_MKOSTEMPS
932 GNULIB_MKOSTEMP
933 GNULIB_MKDTEMP
934 GNULIB_MBTOWC
935 GNULIB_MALLOC_POSIX
936 GNULIB_GRANTPT
937 GNULIB_GETSUBOPT
938 GNULIB_GETLOADAVG
939 GNULIB_CANONICALIZE_FILE_NAME
940 GNULIB_CALLOC_POSIX
941 GNULIB_ATOLL
942 GNULIB__EXIT
943 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
944 UNISTD_H_HAVE_WINSOCK2_H
945 REPLACE_WRITE
946 REPLACE_USLEEP
947 REPLACE_UNLINKAT
948 REPLACE_UNLINK
949 REPLACE_TTYNAME_R
950 REPLACE_SYMLINK
951 REPLACE_SLEEP
952 REPLACE_RMDIR
953 REPLACE_READLINK
954 REPLACE_READ
955 REPLACE_PWRITE
956 REPLACE_PREAD
957 REPLACE_LSEEK
958 REPLACE_LINKAT
959 REPLACE_LINK
960 REPLACE_LCHOWN
961 REPLACE_GETPAGESIZE
962 REPLACE_GETGROUPS
963 REPLACE_GETLOGIN_R
964 REPLACE_GETDOMAINNAME
965 REPLACE_GETCWD
966 REPLACE_FCHOWNAT
967 REPLACE_DUP2
968 REPLACE_DUP
969 REPLACE_CLOSE
970 REPLACE_CHOWN
971 HAVE_SYS_PARAM_H
972 HAVE_OS_H
973 HAVE_DECL_TTYNAME_R
974 HAVE_DECL_GETUSERSHELL
975 HAVE_DECL_GETPAGESIZE
976 HAVE_DECL_GETLOGIN_R
977 HAVE_DECL_GETDOMAINNAME
978 HAVE_DECL_FDATASYNC
979 HAVE_DECL_FCHDIR
980 HAVE_DECL_ENVIRON
981 HAVE_USLEEP
982 HAVE_UNLINKAT
983 HAVE_SYMLINKAT
984 HAVE_SYMLINK
985 HAVE_SLEEP
986 HAVE_READLINKAT
987 HAVE_READLINK
988 HAVE_PWRITE
989 HAVE_PREAD
990 HAVE_PIPE2
991 HAVE_PIPE
992 HAVE_LINKAT
993 HAVE_LINK
994 HAVE_LCHOWN
995 HAVE_GROUP_MEMBER
996 HAVE_GETPAGESIZE
997 HAVE_GETLOGIN
998 HAVE_GETHOSTNAME
999 HAVE_GETGROUPS
1000 HAVE_GETDTABLESIZE
1001 HAVE_FTRUNCATE
1002 HAVE_FSYNC
1003 HAVE_FDATASYNC
1004 HAVE_FCHOWNAT
1005 HAVE_FCHDIR
1006 HAVE_FACCESSAT
1007 HAVE_EUIDACCESS
1008 HAVE_DUP3
1009 HAVE_DUP2
1010 HAVE_CHOWN
1011 GNULIB_WRITE
1012 GNULIB_USLEEP
1013 GNULIB_UNLINKAT
1014 GNULIB_UNLINK
1015 GNULIB_UNISTD_H_SIGPIPE
1016 GNULIB_UNISTD_H_NONBLOCKING
1017 GNULIB_UNISTD_H_GETOPT
1018 GNULIB_TTYNAME_R
1019 GNULIB_SYMLINKAT
1020 GNULIB_SYMLINK
1021 GNULIB_SLEEP
1022 GNULIB_RMDIR
1023 GNULIB_READLINKAT
1024 GNULIB_READLINK
1025 GNULIB_READ
1026 GNULIB_PWRITE
1027 GNULIB_PREAD
1028 GNULIB_PIPE2
1029 GNULIB_PIPE
1030 GNULIB_LSEEK
1031 GNULIB_LINKAT
1032 GNULIB_LINK
1033 GNULIB_LCHOWN
1034 GNULIB_GROUP_MEMBER
1035 GNULIB_GETUSERSHELL
1036 GNULIB_GETPAGESIZE
1037 GNULIB_GETLOGIN_R
1038 GNULIB_GETLOGIN
1039 GNULIB_GETHOSTNAME
1040 GNULIB_GETGROUPS
1041 GNULIB_GETDTABLESIZE
1042 GNULIB_GETDOMAINNAME
1043 GNULIB_GETCWD
1044 GNULIB_FTRUNCATE
1045 GNULIB_FSYNC
1046 GNULIB_FDATASYNC
1047 GNULIB_FCHOWNAT
1048 GNULIB_FCHDIR
1049 GNULIB_FACCESSAT
1050 GNULIB_EUIDACCESS
1051 GNULIB_ENVIRON
1052 GNULIB_DUP3
1053 GNULIB_DUP2
1054 GNULIB_DUP
1055 GNULIB_CLOSE
1056 GNULIB_CHOWN
1057 GNULIB_CHDIR
1058 GL_GENERATE_ALLOCA_H_FALSE
1059 GL_GENERATE_ALLOCA_H_TRUE
1060 ALLOCA_H
1061 ALLOCA
1062 GL_COND_LIBTOOL_FALSE
1063 GL_COND_LIBTOOL_TRUE
1064 POST_ALLOC_OBJ
1065 PRE_ALLOC_OBJ
1066 CYGWIN_OBJ
1067 RALLOC_OBJ
1068 OLDXMENU_DEPS
1069 LIBX_OTHER
1070 LIBXMENU
1071 OLDXMENU
1072 OLDXMENU_TARGET
1073 LIBXT_OTHER
1074 TOOLKIT_LIBW
1075 WIDGET_OBJ
1076 XOBJ
1077 XMENU_OBJ
1078 FONT_OBJ
1079 OTHER_FILES
1080 GNU_OBJC_CFLAGS
1081 ns_appsrc
1082 ns_appresdir
1083 ns_appbindir
1084 ns_appdir
1085 S_FILE
1086 M_FILE
1087 X_TOOLKIT_TYPE
1088 C_SWITCH_X_SYSTEM
1089 C_SWITCH_X_SITE
1090 LD_SWITCH_X_SITE
1091 gameuser
1092 gamedir
1093 bitmapdir
1094 archlibdir
1095 etcdir
1096 x_default_search_path
1097 lisppath
1098 locallisppath
1099 lispdir
1100 srcdir
1101 canonical
1102 configuration
1103 version
1104 KRB4LIB
1105 DESLIB
1106 KRB5LIB
1107 CRYPTOLIB
1108 COM_ERRLIB
1109 LIBRESOLV
1110 LIBHESIOD
1111 TERMCAP_OBJ
1112 LIBS_TERMCAP
1113 BLESSMAIL_TARGET
1114 LIBS_MAIL
1115 liblockfile
1116 LIBXML2_LIBS
1117 LIBXML2_CFLAGS
1118 LIBXSM
1119 LIBGPM
1120 LIBGIF
1121 LIBTIFF
1122 LIBPNG
1123 LIBJPEG
1124 LIBXPM
1125 M17N_FLT_LIBS
1126 M17N_FLT_CFLAGS
1127 LIBOTF_LIBS
1128 LIBOTF_CFLAGS
1129 FREETYPE_LIBS
1130 FREETYPE_CFLAGS
1131 XFT_LIBS
1132 XFT_CFLAGS
1133 FONTCONFIG_LIBS
1134 FONTCONFIG_CFLAGS
1135 LIBXMU
1136 LIBXTR6
1137 LIBGNUTLS_LIBS
1138 LIBGNUTLS_CFLAGS
1139 LIBSELINUX_LIBS
1140 SETTINGS_LIBS
1141 SETTINGS_CFLAGS
1142 GCONF_LIBS
1143 GCONF_CFLAGS
1144 GSETTINGS_LIBS
1145 GSETTINGS_CFLAGS
1146 DBUS_OBJ
1147 DBUS_LIBS
1148 DBUS_CFLAGS
1149 GTK_OBJ
1150 GTK_LIBS
1151 GTK_CFLAGS
1152 IMAGEMAGICK_LIBS
1153 IMAGEMAGICK_CFLAGS
1154 RSVG_LIBS
1155 RSVG_CFLAGS
1156 LIB_PTHREAD
1157 VMLIMIT_OBJ
1158 GMALLOC_OBJ
1159 HAVE_XSERVER
1160 LIB_STANDARD
1161 NS_OBJC_OBJ
1162 NS_OBJ
1163 TEMACS_LDFLAGS2
1164 LD_SWITCH_X_SITE_AUX_RPATH
1165 LD_SWITCH_X_SITE_AUX
1166 XMKMF
1167 DEPFLAGS
1168 MKDEPDIR
1169 CFLAGS_SOUND
1170 ALSA_LIBS
1171 ALSA_CFLAGS
1172 PKG_CONFIG
1173 LIBSOUND
1174 CRT_DIR
1175 START_FILES
1176 LIB_MATH
1177 LIBS_SYSTEM
1178 C_SWITCH_SYSTEM
1179 UNEXEC_OBJ
1180 C_SWITCH_MACHINE
1181 LD_SWITCH_SYSTEM
1182 CANNOT_DUMP
1183 HAVE_MAKEINFO
1184 GZIP_PROG
1185 INSTALL_INFO
1186 C_WARNINGS_SWITCH
1187 RANLIB
1188 ARFLAGS
1189 AR
1190 EGREP
1191 GREP
1192 CPP
1193 am__fastdepCC_FALSE
1194 am__fastdepCC_TRUE
1195 CCDEPMODE
1196 AMDEPBACKSLASH
1197 AMDEP_FALSE
1198 AMDEP_TRUE
1199 am__quote
1200 am__include
1201 DEPDIR
1202 OBJEXT
1203 EXEEXT
1204 ac_ct_CC
1205 CPPFLAGS
1206 LDFLAGS
1207 CFLAGS
1208 CC
1209 host_os
1210 host_vendor
1211 host_cpu
1212 host
1213 build_os
1214 build_vendor
1215 build_cpu
1216 build
1217 PROFILING_CFLAGS
1218 MAINT
1219 GZIP_INFO
1220 am__untar
1221 am__tar
1222 AMTAR
1223 am__leading_dot
1224 SET_MAKE
1225 AWK
1226 mkdir_p
1227 MKDIR_P
1228 INSTALL_STRIP_PROGRAM
1229 STRIP
1230 install_sh
1231 MAKEINFO
1232 AUTOHEADER
1233 AUTOMAKE
1234 AUTOCONF
1235 ACLOCAL
1236 VERSION
1237 PACKAGE
1238 CYGPATH_W
1239 am__isrc
1240 INSTALL_DATA
1241 INSTALL_SCRIPT
1242 INSTALL_PROGRAM
1243 target_alias
1244 host_alias
1245 build_alias
1246 LIBS
1247 ECHO_T
1248 ECHO_N
1249 ECHO_C
1250 DEFS
1251 mandir
1252 localedir
1253 libdir
1254 psdir
1255 pdfdir
1256 dvidir
1257 htmldir
1258 infodir
1259 docdir
1260 oldincludedir
1261 includedir
1262 localstatedir
1263 sharedstatedir
1264 sysconfdir
1265 datadir
1266 datarootdir
1267 libexecdir
1268 sbindir
1269 bindir
1270 program_transform_name
1271 prefix
1272 exec_prefix
1273 PACKAGE_URL
1274 PACKAGE_BUGREPORT
1275 PACKAGE_STRING
1276 PACKAGE_VERSION
1277 PACKAGE_TARNAME
1278 PACKAGE_NAME
1279 PATH_SEPARATOR
1280 SHELL'
1281 ac_subst_files='deps_frag
1282 lisp_frag
1283 ns_frag'
1284 ac_user_opts='
1285 enable_option_checking
1286 with_pop
1287 with_kerberos
1288 with_kerberos5
1289 with_hesiod
1290 with_mmdf
1291 with_mail_unlink
1292 with_mailhost
1293 with_sound
1294 with_sync_input
1295 with_x_toolkit
1296 with_wide_int
1297 with_xpm
1298 with_jpeg
1299 with_tiff
1300 with_gif
1301 with_png
1302 with_rsvg
1303 with_xml2
1304 with_imagemagick
1305 with_xft
1306 with_libotf
1307 with_m17n_flt
1308 with_toolkit_scroll_bars
1309 with_xaw3d
1310 with_xim
1311 with_ns
1312 with_gpm
1313 with_dbus
1314 with_gconf
1315 with_gsettings
1316 with_selinux
1317 with_gnutls
1318 with_makeinfo
1319 with_compress_info
1320 with_pkg_config_prog
1321 with_crt_dir
1322 with_gameuser
1323 with_gnustep_conf
1324 enable_ns_self_contained
1325 enable_asserts
1326 enable_maintainer_mode
1327 enable_locallisppath
1328 enable_checking
1329 enable_use_lisp_union_type
1330 enable_profiling
1331 enable_autodepend
1332 enable_dependency_tracking
1333 enable_largefile
1334 with_x
1335 '
1336 ac_precious_vars='build_alias
1337 host_alias
1338 target_alias
1339 CC
1340 CFLAGS
1341 LDFLAGS
1342 LIBS
1343 CPPFLAGS
1344 CPP
1345 XMKMF'
1346
1347
1348 # Initialize some variables set by options.
1349 ac_init_help=
1350 ac_init_version=false
1351 ac_unrecognized_opts=
1352 ac_unrecognized_sep=
1353 # The variables have the same names as the options, with
1354 # dashes changed to underlines.
1355 cache_file=/dev/null
1356 exec_prefix=NONE
1357 no_create=
1358 no_recursion=
1359 prefix=NONE
1360 program_prefix=NONE
1361 program_suffix=NONE
1362 program_transform_name=s,x,x,
1363 silent=
1364 site=
1365 srcdir=
1366 verbose=
1367 x_includes=NONE
1368 x_libraries=NONE
1369
1370 # Installation directory options.
1371 # These are left unexpanded so users can "make install exec_prefix=/foo"
1372 # and all the variables that are supposed to be based on exec_prefix
1373 # by default will actually change.
1374 # Use braces instead of parens because sh, perl, etc. also accept them.
1375 # (The list follows the same order as the GNU Coding Standards.)
1376 bindir='${exec_prefix}/bin'
1377 sbindir='${exec_prefix}/sbin'
1378 libexecdir='${exec_prefix}/libexec'
1379 datarootdir='${prefix}/share'
1380 datadir='${datarootdir}'
1381 sysconfdir='${prefix}/etc'
1382 sharedstatedir='${prefix}/com'
1383 localstatedir='${prefix}/var'
1384 includedir='${prefix}/include'
1385 oldincludedir='/usr/include'
1386 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1387 infodir='${datarootdir}/info'
1388 htmldir='${docdir}'
1389 dvidir='${docdir}'
1390 pdfdir='${docdir}'
1391 psdir='${docdir}'
1392 libdir='${exec_prefix}/lib'
1393 localedir='${datarootdir}/locale'
1394 mandir='${datarootdir}/man'
1395
1396 ac_prev=
1397 ac_dashdash=
1398 for ac_option
1399 do
1400 # If the previous option needs an argument, assign it.
1401 if test -n "$ac_prev"; then
1402 eval $ac_prev=\$ac_option
1403 ac_prev=
1404 continue
1405 fi
1406
1407 case $ac_option in
1408 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1409 *) ac_optarg=yes ;;
1410 esac
1411
1412 # Accept the important Cygnus configure options, so we can diagnose typos.
1413
1414 case $ac_dashdash$ac_option in
1415 --)
1416 ac_dashdash=yes ;;
1417
1418 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1419 ac_prev=bindir ;;
1420 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1421 bindir=$ac_optarg ;;
1422
1423 -build | --build | --buil | --bui | --bu)
1424 ac_prev=build_alias ;;
1425 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1426 build_alias=$ac_optarg ;;
1427
1428 -cache-file | --cache-file | --cache-fil | --cache-fi \
1429 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1430 ac_prev=cache_file ;;
1431 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1432 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1433 cache_file=$ac_optarg ;;
1434
1435 --config-cache | -C)
1436 cache_file=config.cache ;;
1437
1438 -datadir | --datadir | --datadi | --datad)
1439 ac_prev=datadir ;;
1440 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1441 datadir=$ac_optarg ;;
1442
1443 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1444 | --dataroo | --dataro | --datar)
1445 ac_prev=datarootdir ;;
1446 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1447 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1448 datarootdir=$ac_optarg ;;
1449
1450 -disable-* | --disable-*)
1451 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1452 # Reject names that are not valid shell variable names.
1453 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1454 as_fn_error "invalid feature name: $ac_useropt"
1455 ac_useropt_orig=$ac_useropt
1456 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1457 case $ac_user_opts in
1458 *"
1459 "enable_$ac_useropt"
1460 "*) ;;
1461 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1462 ac_unrecognized_sep=', ';;
1463 esac
1464 eval enable_$ac_useropt=no ;;
1465
1466 -docdir | --docdir | --docdi | --doc | --do)
1467 ac_prev=docdir ;;
1468 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1469 docdir=$ac_optarg ;;
1470
1471 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1472 ac_prev=dvidir ;;
1473 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1474 dvidir=$ac_optarg ;;
1475
1476 -enable-* | --enable-*)
1477 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1478 # Reject names that are not valid shell variable names.
1479 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480 as_fn_error "invalid feature name: $ac_useropt"
1481 ac_useropt_orig=$ac_useropt
1482 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483 case $ac_user_opts in
1484 *"
1485 "enable_$ac_useropt"
1486 "*) ;;
1487 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1488 ac_unrecognized_sep=', ';;
1489 esac
1490 eval enable_$ac_useropt=\$ac_optarg ;;
1491
1492 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1493 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1494 | --exec | --exe | --ex)
1495 ac_prev=exec_prefix ;;
1496 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1497 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1498 | --exec=* | --exe=* | --ex=*)
1499 exec_prefix=$ac_optarg ;;
1500
1501 -gas | --gas | --ga | --g)
1502 # Obsolete; use --with-gas.
1503 with_gas=yes ;;
1504
1505 -help | --help | --hel | --he | -h)
1506 ac_init_help=long ;;
1507 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1508 ac_init_help=recursive ;;
1509 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1510 ac_init_help=short ;;
1511
1512 -host | --host | --hos | --ho)
1513 ac_prev=host_alias ;;
1514 -host=* | --host=* | --hos=* | --ho=*)
1515 host_alias=$ac_optarg ;;
1516
1517 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1518 ac_prev=htmldir ;;
1519 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1520 | --ht=*)
1521 htmldir=$ac_optarg ;;
1522
1523 -includedir | --includedir | --includedi | --included | --include \
1524 | --includ | --inclu | --incl | --inc)
1525 ac_prev=includedir ;;
1526 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1527 | --includ=* | --inclu=* | --incl=* | --inc=*)
1528 includedir=$ac_optarg ;;
1529
1530 -infodir | --infodir | --infodi | --infod | --info | --inf)
1531 ac_prev=infodir ;;
1532 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1533 infodir=$ac_optarg ;;
1534
1535 -libdir | --libdir | --libdi | --libd)
1536 ac_prev=libdir ;;
1537 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1538 libdir=$ac_optarg ;;
1539
1540 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1541 | --libexe | --libex | --libe)
1542 ac_prev=libexecdir ;;
1543 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1544 | --libexe=* | --libex=* | --libe=*)
1545 libexecdir=$ac_optarg ;;
1546
1547 -localedir | --localedir | --localedi | --localed | --locale)
1548 ac_prev=localedir ;;
1549 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1550 localedir=$ac_optarg ;;
1551
1552 -localstatedir | --localstatedir | --localstatedi | --localstated \
1553 | --localstate | --localstat | --localsta | --localst | --locals)
1554 ac_prev=localstatedir ;;
1555 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1556 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1557 localstatedir=$ac_optarg ;;
1558
1559 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1560 ac_prev=mandir ;;
1561 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1562 mandir=$ac_optarg ;;
1563
1564 -nfp | --nfp | --nf)
1565 # Obsolete; use --without-fp.
1566 with_fp=no ;;
1567
1568 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1569 | --no-cr | --no-c | -n)
1570 no_create=yes ;;
1571
1572 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1573 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1574 no_recursion=yes ;;
1575
1576 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1577 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1578 | --oldin | --oldi | --old | --ol | --o)
1579 ac_prev=oldincludedir ;;
1580 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1581 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1582 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1583 oldincludedir=$ac_optarg ;;
1584
1585 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1586 ac_prev=prefix ;;
1587 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1588 prefix=$ac_optarg ;;
1589
1590 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1591 | --program-pre | --program-pr | --program-p)
1592 ac_prev=program_prefix ;;
1593 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1594 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1595 program_prefix=$ac_optarg ;;
1596
1597 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1598 | --program-suf | --program-su | --program-s)
1599 ac_prev=program_suffix ;;
1600 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1601 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1602 program_suffix=$ac_optarg ;;
1603
1604 -program-transform-name | --program-transform-name \
1605 | --program-transform-nam | --program-transform-na \
1606 | --program-transform-n | --program-transform- \
1607 | --program-transform | --program-transfor \
1608 | --program-transfo | --program-transf \
1609 | --program-trans | --program-tran \
1610 | --progr-tra | --program-tr | --program-t)
1611 ac_prev=program_transform_name ;;
1612 -program-transform-name=* | --program-transform-name=* \
1613 | --program-transform-nam=* | --program-transform-na=* \
1614 | --program-transform-n=* | --program-transform-=* \
1615 | --program-transform=* | --program-transfor=* \
1616 | --program-transfo=* | --program-transf=* \
1617 | --program-trans=* | --program-tran=* \
1618 | --progr-tra=* | --program-tr=* | --program-t=*)
1619 program_transform_name=$ac_optarg ;;
1620
1621 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1622 ac_prev=pdfdir ;;
1623 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1624 pdfdir=$ac_optarg ;;
1625
1626 -psdir | --psdir | --psdi | --psd | --ps)
1627 ac_prev=psdir ;;
1628 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1629 psdir=$ac_optarg ;;
1630
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1633 silent=yes ;;
1634
1635 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1636 ac_prev=sbindir ;;
1637 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1638 | --sbi=* | --sb=*)
1639 sbindir=$ac_optarg ;;
1640
1641 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1642 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1643 | --sharedst | --shareds | --shared | --share | --shar \
1644 | --sha | --sh)
1645 ac_prev=sharedstatedir ;;
1646 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1647 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1648 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1649 | --sha=* | --sh=*)
1650 sharedstatedir=$ac_optarg ;;
1651
1652 -site | --site | --sit)
1653 ac_prev=site ;;
1654 -site=* | --site=* | --sit=*)
1655 site=$ac_optarg ;;
1656
1657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1658 ac_prev=srcdir ;;
1659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1660 srcdir=$ac_optarg ;;
1661
1662 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1663 | --syscon | --sysco | --sysc | --sys | --sy)
1664 ac_prev=sysconfdir ;;
1665 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1666 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1667 sysconfdir=$ac_optarg ;;
1668
1669 -target | --target | --targe | --targ | --tar | --ta | --t)
1670 ac_prev=target_alias ;;
1671 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1672 target_alias=$ac_optarg ;;
1673
1674 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1675 verbose=yes ;;
1676
1677 -version | --version | --versio | --versi | --vers | -V)
1678 ac_init_version=: ;;
1679
1680 -with-* | --with-*)
1681 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684 as_fn_error "invalid package name: $ac_useropt"
1685 ac_useropt_orig=$ac_useropt
1686 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1688 *"
1689 "with_$ac_useropt"
1690 "*) ;;
1691 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1692 ac_unrecognized_sep=', ';;
1693 esac
1694 eval with_$ac_useropt=\$ac_optarg ;;
1695
1696 -without-* | --without-*)
1697 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1698 # Reject names that are not valid shell variable names.
1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1700 as_fn_error "invalid package name: $ac_useropt"
1701 ac_useropt_orig=$ac_useropt
1702 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703 case $ac_user_opts in
1704 *"
1705 "with_$ac_useropt"
1706 "*) ;;
1707 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1708 ac_unrecognized_sep=', ';;
1709 esac
1710 eval with_$ac_useropt=no ;;
1711
1712 --x)
1713 # Obsolete; use --with-x.
1714 with_x=yes ;;
1715
1716 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1717 | --x-incl | --x-inc | --x-in | --x-i)
1718 ac_prev=x_includes ;;
1719 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1720 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1721 x_includes=$ac_optarg ;;
1722
1723 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1724 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1725 ac_prev=x_libraries ;;
1726 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1727 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1728 x_libraries=$ac_optarg ;;
1729
1730 -*) as_fn_error "unrecognized option: \`$ac_option'
1731 Try \`$0 --help' for more information."
1732 ;;
1733
1734 *=*)
1735 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1736 # Reject names that are not valid shell variable names.
1737 case $ac_envvar in #(
1738 '' | [0-9]* | *[!_$as_cr_alnum]* )
1739 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1740 esac
1741 eval $ac_envvar=\$ac_optarg
1742 export $ac_envvar ;;
1743
1744 *)
1745 # FIXME: should be removed in autoconf 3.0.
1746 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1747 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1748 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1749 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1750 ;;
1751
1752 esac
1753 done
1754
1755 if test -n "$ac_prev"; then
1756 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1757 as_fn_error "missing argument to $ac_option"
1758 fi
1759
1760 if test -n "$ac_unrecognized_opts"; then
1761 case $enable_option_checking in
1762 no) ;;
1763 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1764 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1765 esac
1766 fi
1767
1768 # Check all directory arguments for consistency.
1769 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1770 datadir sysconfdir sharedstatedir localstatedir includedir \
1771 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1772 libdir localedir mandir
1773 do
1774 eval ac_val=\$$ac_var
1775 # Remove trailing slashes.
1776 case $ac_val in
1777 */ )
1778 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1779 eval $ac_var=\$ac_val;;
1780 esac
1781 # Be sure to have absolute directory names.
1782 case $ac_val in
1783 [\\/$]* | ?:[\\/]* ) continue;;
1784 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1785 esac
1786 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1787 done
1788
1789 # There might be people who depend on the old broken behavior: `$host'
1790 # used to hold the argument of --host etc.
1791 # FIXME: To remove some day.
1792 build=$build_alias
1793 host=$host_alias
1794 target=$target_alias
1795
1796 # FIXME: To remove some day.
1797 if test "x$host_alias" != x; then
1798 if test "x$build_alias" = x; then
1799 cross_compiling=maybe
1800 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1801 If a cross compiler is detected then cross compile mode will be used." >&2
1802 elif test "x$build_alias" != "x$host_alias"; then
1803 cross_compiling=yes
1804 fi
1805 fi
1806
1807 ac_tool_prefix=
1808 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1809
1810 test "$silent" = yes && exec 6>/dev/null
1811
1812
1813 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1814 ac_ls_di=`ls -di .` &&
1815 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1816 as_fn_error "working directory cannot be determined"
1817 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1818 as_fn_error "pwd does not report name of working directory"
1819
1820
1821 # Find the source files, if location was not specified.
1822 if test -z "$srcdir"; then
1823 ac_srcdir_defaulted=yes
1824 # Try the directory containing this script, then the parent directory.
1825 ac_confdir=`$as_dirname -- "$as_myself" ||
1826 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1827 X"$as_myself" : 'X\(//\)[^/]' \| \
1828 X"$as_myself" : 'X\(//\)$' \| \
1829 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1830 $as_echo X"$as_myself" |
1831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1832 s//\1/
1833 q
1834 }
1835 /^X\(\/\/\)[^/].*/{
1836 s//\1/
1837 q
1838 }
1839 /^X\(\/\/\)$/{
1840 s//\1/
1841 q
1842 }
1843 /^X\(\/\).*/{
1844 s//\1/
1845 q
1846 }
1847 s/.*/./; q'`
1848 srcdir=$ac_confdir
1849 if test ! -r "$srcdir/$ac_unique_file"; then
1850 srcdir=..
1851 fi
1852 else
1853 ac_srcdir_defaulted=no
1854 fi
1855 if test ! -r "$srcdir/$ac_unique_file"; then
1856 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1857 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1858 fi
1859 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1860 ac_abs_confdir=`(
1861 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1862 pwd)`
1863 # When building in place, set srcdir=.
1864 if test "$ac_abs_confdir" = "$ac_pwd"; then
1865 srcdir=.
1866 fi
1867 # Remove unnecessary trailing slashes from srcdir.
1868 # Double slashes in file names in object file debugging info
1869 # mess up M-x gdb in Emacs.
1870 case $srcdir in
1871 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1872 esac
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1875 eval ac_env_${ac_var}_value=\$${ac_var}
1876 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1877 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1878 done
1879
1880 #
1881 # Report the --help message.
1882 #
1883 if test "$ac_init_help" = "long"; then
1884 # Omit some internal or obsolete options to make the list less imposing.
1885 # This message is too long to be a string in the A/UX 3.1 sh.
1886 cat <<_ACEOF
1887 \`configure' configures emacs 24.0.91 to adapt to many kinds of systems.
1888
1889 Usage: $0 [OPTION]... [VAR=VALUE]...
1890
1891 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1892 VAR=VALUE. See below for descriptions of some of the useful variables.
1893
1894 Defaults for the options are specified in brackets.
1895
1896 Configuration:
1897 -h, --help display this help and exit
1898 --help=short display options specific to this package
1899 --help=recursive display the short help of all the included packages
1900 -V, --version display version information and exit
1901 -q, --quiet, --silent do not print \`checking...' messages
1902 --cache-file=FILE cache test results in FILE [disabled]
1903 -C, --config-cache alias for \`--cache-file=config.cache'
1904 -n, --no-create do not create output files
1905 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1906
1907 Installation directories:
1908 --prefix=PREFIX install architecture-independent files in PREFIX
1909 [$ac_default_prefix]
1910 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1911 [PREFIX]
1912
1913 By default, \`make install' will install all the files in
1914 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1915 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1916 for instance \`--prefix=\$HOME'.
1917
1918 For better control, use the options below.
1919
1920 Fine tuning of the installation directories:
1921 --bindir=DIR user executables [EPREFIX/bin]
1922 --sbindir=DIR system admin executables [EPREFIX/sbin]
1923 --libexecdir=DIR program executables [EPREFIX/libexec]
1924 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1925 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1926 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1927 --libdir=DIR object code libraries [EPREFIX/lib]
1928 --includedir=DIR C header files [PREFIX/include]
1929 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1930 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1931 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1932 --infodir=DIR info documentation [DATAROOTDIR/info]
1933 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1934 --mandir=DIR man documentation [DATAROOTDIR/man]
1935 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1936 --htmldir=DIR html documentation [DOCDIR]
1937 --dvidir=DIR dvi documentation [DOCDIR]
1938 --pdfdir=DIR pdf documentation [DOCDIR]
1939 --psdir=DIR ps documentation [DOCDIR]
1940 _ACEOF
1941
1942 cat <<\_ACEOF
1943
1944 Program names:
1945 --program-prefix=PREFIX prepend PREFIX to installed program names
1946 --program-suffix=SUFFIX append SUFFIX to installed program names
1947 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1948
1949 X features:
1950 --x-includes=DIR X include files are in DIR
1951 --x-libraries=DIR X library files are in DIR
1952
1953 System types:
1954 --build=BUILD configure for building on BUILD [guessed]
1955 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1956 _ACEOF
1957 fi
1958
1959 if test -n "$ac_init_help"; then
1960 case $ac_init_help in
1961 short | recursive ) echo "Configuration of emacs 24.0.91:";;
1962 esac
1963 cat <<\_ACEOF
1964
1965 Optional Features:
1966 --disable-option-checking ignore unrecognized --enable/--with options
1967 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1968 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1969 --disable-ns-self-contained
1970 disable self contained build under NeXTstep
1971 --enable-asserts compile code with asserts enabled
1972 --disable-maintainer-mode
1973 disable make rules and dependencies not useful (and
1974 sometimes confusing) to the casual installer
1975 --enable-locallisppath=PATH
1976 directories Emacs should search for lisp files
1977 specific to this site
1978 --enable-checking[=LIST]
1979 enable expensive run-time checks. With LIST, enable
1980 only specific categories of checks. Categories are:
1981 all,yes,no. Flags are: stringbytes, stringoverrun,
1982 stringfreelist, xmallocoverrun, conslist
1983 --enable-use-lisp-union-type
1984 use a union for the Lisp_Object data type. This is
1985 only useful for development for catching certain
1986 types of bugs.
1987 --enable-profiling build emacs with profiling support. This might not
1988 work on all platforms
1989 --enable-autodepend automatically generate dependencies to .h-files.
1990 Requires GNU Make and Gcc. Enabled if GNU Make and
1991 Gcc is found
1992 --disable-dependency-tracking speeds up one-time build
1993 --enable-dependency-tracking do not reject slow dependency extractors
1994 --disable-largefile omit support for large files
1995
1996 Optional Packages:
1997 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1998 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1999 --without-pop don't support POP mail retrieval with movemail
2000 --with-kerberos support Kerberos-authenticated POP
2001 --with-kerberos5 support Kerberos version 5 authenticated POP
2002 --with-hesiod support Hesiod to get the POP server host
2003 --with-mmdf support MMDF mailboxes
2004 --with-mail-unlink unlink, rather than empty, mail spool after reading
2005 --with-mailhost=HOSTNAME
2006 string giving default POP mail host
2007 --without-sound don't compile with sound support
2008 --without-sync-input process async input synchronously
2009 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2010 lucid or athena, motif, no)
2011 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2012 --without-xpm don't compile with XPM image support
2013 --without-jpeg don't compile with JPEG image support
2014 --without-tiff don't compile with TIFF image support
2015 --without-gif don't compile with GIF image support
2016 --without-png don't compile with PNG image support
2017 --without-rsvg don't compile with SVG image support
2018 --without-xml2 don't compile with XML parsing support
2019 --without-imagemagick don't compile with ImageMagick image support
2020 --without-xft don't use XFT for anti aliased fonts
2021 --without-libotf don't use libotf for OpenType font support
2022 --without-m17n-flt don't use m17n-flt for text shaping
2023 --without-toolkit-scroll-bars
2024 don't use Motif or Xaw3d scroll bars
2025 --without-xaw3d don't use Xaw3d
2026 --without-xim don't use X11 XIM
2027 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2028 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2029 console
2030 --without-dbus don't compile with D-Bus support
2031 --without-gconf don't compile with GConf support
2032 --without-gsettings don't compile with GSettings support
2033 --without-selinux don't compile with SELinux support
2034 --without-gnutls don't use -lgnutls for SSL/TLS support
2035 --without-makeinfo don't require makeinfo for building manuals
2036 --without-compress-info don't compress the installed Info pages
2037 --with-pkg-config-prog=PATH
2038 path to pkg-config for finding GTK and librsvg
2039 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2040 /usr/lib, or /usr/lib64 on some platforms.
2041 --with-gameuser=USER user for shared game score files
2042 --with-gnustep-conf=PATH
2043 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2044 or /etc/GNUstep/GNUstep.conf
2045 --with-x use the X Window System
2046
2047 Some influential environment variables:
2048 CC C compiler command
2049 CFLAGS C compiler flags
2050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2051 nonstandard directory <lib dir>
2052 LIBS libraries to pass to the linker, e.g. -l<library>
2053 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2054 you have headers in a nonstandard directory <include dir>
2055 CPP C preprocessor
2056 XMKMF Path to xmkmf, Makefile generator for X Window System
2057
2058 Use these variables to override the choices made by `configure' or to help
2059 it to find libraries and programs with nonstandard names/locations.
2060
2061 Report bugs to the package provider.
2062 _ACEOF
2063 ac_status=$?
2064 fi
2065
2066 if test "$ac_init_help" = "recursive"; then
2067 # If there are subdirs, report their specific --help.
2068 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2069 test -d "$ac_dir" ||
2070 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2071 continue
2072 ac_builddir=.
2073
2074 case "$ac_dir" in
2075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2076 *)
2077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2078 # A ".." for each directory in $ac_dir_suffix.
2079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2080 case $ac_top_builddir_sub in
2081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2083 esac ;;
2084 esac
2085 ac_abs_top_builddir=$ac_pwd
2086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2087 # for backward compatibility:
2088 ac_top_builddir=$ac_top_build_prefix
2089
2090 case $srcdir in
2091 .) # We are building in place.
2092 ac_srcdir=.
2093 ac_top_srcdir=$ac_top_builddir_sub
2094 ac_abs_top_srcdir=$ac_pwd ;;
2095 [\\/]* | ?:[\\/]* ) # Absolute name.
2096 ac_srcdir=$srcdir$ac_dir_suffix;
2097 ac_top_srcdir=$srcdir
2098 ac_abs_top_srcdir=$srcdir ;;
2099 *) # Relative name.
2100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2101 ac_top_srcdir=$ac_top_build_prefix$srcdir
2102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2103 esac
2104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2105
2106 cd "$ac_dir" || { ac_status=$?; continue; }
2107 # Check for guested configure.
2108 if test -f "$ac_srcdir/configure.gnu"; then
2109 echo &&
2110 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2111 elif test -f "$ac_srcdir/configure"; then
2112 echo &&
2113 $SHELL "$ac_srcdir/configure" --help=recursive
2114 else
2115 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2116 fi || ac_status=$?
2117 cd "$ac_pwd" || { ac_status=$?; break; }
2118 done
2119 fi
2120
2121 test -n "$ac_init_help" && exit $ac_status
2122 if $ac_init_version; then
2123 cat <<\_ACEOF
2124 emacs configure 24.0.91
2125 generated by GNU Autoconf 2.65
2126
2127 Copyright (C) 2009 Free Software Foundation, Inc.
2128 This configure script is free software; the Free Software Foundation
2129 gives unlimited permission to copy, distribute and modify it.
2130 _ACEOF
2131 exit
2132 fi
2133
2134 ## ------------------------ ##
2135 ## Autoconf initialization. ##
2136 ## ------------------------ ##
2137
2138 # ac_fn_c_try_compile LINENO
2139 # --------------------------
2140 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2141 ac_fn_c_try_compile ()
2142 {
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 rm -f conftest.$ac_objext
2145 if { { ac_try="$ac_compile"
2146 case "(($ac_try" in
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2149 esac
2150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_compile") 2>conftest.err
2153 ac_status=$?
2154 if test -s conftest.err; then
2155 grep -v '^ *+' conftest.err >conftest.er1
2156 cat conftest.er1 >&5
2157 mv -f conftest.er1 conftest.err
2158 fi
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && {
2161 test -z "$ac_c_werror_flag" ||
2162 test ! -s conftest.err
2163 } && test -s conftest.$ac_objext; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_retval=1
2170 fi
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172 as_fn_set_status $ac_retval
2173
2174 } # ac_fn_c_try_compile
2175
2176 # ac_fn_c_try_cpp LINENO
2177 # ----------------------
2178 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_c_try_cpp ()
2180 {
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if { { ac_try="$ac_cpp conftest.$ac_ext"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2195 fi
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } >/dev/null && {
2198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2199 test ! -s conftest.err
2200 }; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207 fi
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 as_fn_set_status $ac_retval
2210
2211 } # ac_fn_c_try_cpp
2212
2213 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2214 # -------------------------------------------------------
2215 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2216 # the include files in INCLUDES and setting the cache variable VAR
2217 # accordingly.
2218 ac_fn_c_check_header_mongrel ()
2219 {
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2226 fi
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 else
2231 # Is the header compilable?
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2233 $as_echo_n "checking $2 usability... " >&6; }
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2236 $4
2237 #include <$2>
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_header_compiler=yes
2241 else
2242 ac_header_compiler=no
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2246 $as_echo "$ac_header_compiler" >&6; }
2247
2248 # Is the header present?
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2250 $as_echo_n "checking $2 presence... " >&6; }
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 #include <$2>
2254 _ACEOF
2255 if ac_fn_c_try_cpp "$LINENO"; then :
2256 ac_header_preproc=yes
2257 else
2258 ac_header_preproc=no
2259 fi
2260 rm -f conftest.err conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2262 $as_echo "$ac_header_preproc" >&6; }
2263
2264 # So? What about this header?
2265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2266 yes:no: )
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2268 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2270 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2271 ;;
2272 no:yes:* )
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2274 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2276 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2278 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2280 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2282 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2283 ;;
2284 esac
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288 $as_echo_n "(cached) " >&6
2289 else
2290 eval "$3=\$ac_header_compiler"
2291 fi
2292 eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 fi
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297
2298 } # ac_fn_c_check_header_mongrel
2299
2300 # ac_fn_c_try_run LINENO
2301 # ----------------------
2302 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2303 # that executables *can* be run.
2304 ac_fn_c_try_run ()
2305 {
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if { { ac_try="$ac_link"
2308 case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_link") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2318 { { case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321 esac
2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323 $as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_try") 2>&5
2325 ac_status=$?
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; }; }; then :
2328 ac_retval=0
2329 else
2330 $as_echo "$as_me: program exited with status $ac_status" >&5
2331 $as_echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 ac_retval=$ac_status
2335 fi
2336 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 as_fn_set_status $ac_retval
2339
2340 } # ac_fn_c_try_run
2341
2342 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2343 # -------------------------------------------------------
2344 # Tests whether HEADER exists and can be compiled using the include files in
2345 # INCLUDES, setting the cache variable VAR accordingly.
2346 ac_fn_c_check_header_compile ()
2347 {
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2350 $as_echo_n "checking for $2... " >&6; }
2351 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 eval "$3=yes"
2361 else
2362 eval "$3=no"
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 fi
2366 eval ac_res=\$$3
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2370
2371 } # ac_fn_c_check_header_compile
2372
2373 # ac_fn_c_try_link LINENO
2374 # -----------------------
2375 # Try to link conftest.$ac_ext, and return whether this succeeded.
2376 ac_fn_c_try_link ()
2377 {
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 rm -f conftest.$ac_objext conftest$ac_exeext
2380 if { { ac_try="$ac_link"
2381 case "(($ac_try" in
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2384 esac
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387 (eval "$ac_link") 2>conftest.err
2388 ac_status=$?
2389 if test -s conftest.err; then
2390 grep -v '^ *+' conftest.err >conftest.er1
2391 cat conftest.er1 >&5
2392 mv -f conftest.er1 conftest.err
2393 fi
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest$ac_exeext && {
2399 test "$cross_compiling" = yes ||
2400 $as_test_x conftest$ac_exeext
2401 }; then :
2402 ac_retval=0
2403 else
2404 $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408 fi
2409 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2410 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2411 # interfere with the next link command; also delete a directory that is
2412 # left behind by Apple's compiler. We do this before executing the actions.
2413 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 as_fn_set_status $ac_retval
2416
2417 } # ac_fn_c_try_link
2418
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR
2420 # ------------------------------------
2421 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2422 ac_fn_c_check_decl ()
2423 {
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2426 $as_echo_n "checking whether $2 is declared... " >&6; }
2427 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $4
2433 int
2434 main ()
2435 {
2436 #ifndef $2
2437 (void) $2;
2438 #endif
2439
2440 ;
2441 return 0;
2442 }
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 eval "$3=yes"
2446 else
2447 eval "$3=no"
2448 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455
2456 } # ac_fn_c_check_decl
2457
2458 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2459 # ----------------------------------------------
2460 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2461 ac_fn_c_check_header_preproc ()
2462 {
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2471 #include <$2>
2472 _ACEOF
2473 if ac_fn_c_try_cpp "$LINENO"; then :
2474 eval "$3=yes"
2475 else
2476 eval "$3=no"
2477 fi
2478 rm -f conftest.err conftest.$ac_ext
2479 fi
2480 eval ac_res=\$$3
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484
2485 } # ac_fn_c_check_header_preproc
2486
2487 # ac_fn_c_check_func LINENO FUNC VAR
2488 # ----------------------------------
2489 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2490 ac_fn_c_check_func ()
2491 {
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2494 $as_echo_n "checking for $2... " >&6; }
2495 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2502 #define $2 innocuous_$2
2503
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char $2 (); below.
2506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 <limits.h> exists even on freestanding compilers. */
2508
2509 #ifdef __STDC__
2510 # include <limits.h>
2511 #else
2512 # include <assert.h>
2513 #endif
2514
2515 #undef $2
2516
2517 /* Override any GCC internal prototype to avoid an error.
2518 Use char because int might match the return type of a GCC
2519 builtin and then its argument prototype would still apply. */
2520 #ifdef __cplusplus
2521 extern "C"
2522 #endif
2523 char $2 ();
2524 /* The GNU C library defines this for functions which it implements
2525 to always fail with ENOSYS. Some functions are actually named
2526 something starting with __ and the normal name is an alias. */
2527 #if defined __stub_$2 || defined __stub___$2
2528 choke me
2529 #endif
2530
2531 int
2532 main ()
2533 {
2534 return $2 ();
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_c_try_link "$LINENO"; then :
2540 eval "$3=yes"
2541 else
2542 eval "$3=no"
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext \
2545 conftest$ac_exeext conftest.$ac_ext
2546 fi
2547 eval ac_res=\$$3
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551
2552 } # ac_fn_c_check_func
2553
2554 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2555 # ----------------------------------------------------
2556 # Tries to find if the field MEMBER exists in type AGGR, after including
2557 # INCLUDES, setting cache variable VAR accordingly.
2558 ac_fn_c_check_member ()
2559 {
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2562 $as_echo_n "checking for $2.$3... " >&6; }
2563 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 $5
2569 int
2570 main ()
2571 {
2572 static $2 ac_aggr;
2573 if (ac_aggr.$3)
2574 return 0;
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 eval "$4=yes"
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $5
2585 int
2586 main ()
2587 {
2588 static $2 ac_aggr;
2589 if (sizeof ac_aggr.$3)
2590 return 0;
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596 eval "$4=yes"
2597 else
2598 eval "$4=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 eval ac_res=\$$4
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608
2609 } # ac_fn_c_check_member
2610
2611 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2612 # -------------------------------------------
2613 # Tests whether TYPE exists after having included INCLUDES, setting cache
2614 # variable VAR accordingly.
2615 ac_fn_c_check_type ()
2616 {
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2619 $as_echo_n "checking for $2... " >&6; }
2620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 eval "$3=no"
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2626 $4
2627 int
2628 main ()
2629 {
2630 if (sizeof ($2))
2631 return 0;
2632 ;
2633 return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_compile "$LINENO"; then :
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2639 $4
2640 int
2641 main ()
2642 {
2643 if (sizeof (($2)))
2644 return 0;
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650
2651 else
2652 eval "$3=yes"
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 eval ac_res=\$$3
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662
2663 } # ac_fn_c_check_type
2664
2665 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2666 # --------------------------------------------
2667 # Tries to find the compile-time value of EXPR in a program that includes
2668 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2669 # computed
2670 ac_fn_c_compute_int ()
2671 {
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 if test "$cross_compiling" = yes; then
2674 # Depending upon the size, compute the lo and hi bounds.
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2677 $4
2678 int
2679 main ()
2680 {
2681 static int test_array [1 - 2 * !(($2) >= 0)];
2682 test_array [0] = 0
2683
2684 ;
2685 return 0;
2686 }
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 ac_lo=0 ac_mid=0
2690 while :; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2693 $4
2694 int
2695 main ()
2696 {
2697 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2698 test_array [0] = 0
2699
2700 ;
2701 return 0;
2702 }
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2705 ac_hi=$ac_mid; break
2706 else
2707 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2708 if test $ac_lo -le $ac_mid; then
2709 ac_lo= ac_hi=
2710 break
2711 fi
2712 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 done
2716 else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2719 $4
2720 int
2721 main ()
2722 {
2723 static int test_array [1 - 2 * !(($2) < 0)];
2724 test_array [0] = 0
2725
2726 ;
2727 return 0;
2728 }
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731 ac_hi=-1 ac_mid=-1
2732 while :; do
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2735 $4
2736 int
2737 main ()
2738 {
2739 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2740 test_array [0] = 0
2741
2742 ;
2743 return 0;
2744 }
2745 _ACEOF
2746 if ac_fn_c_try_compile "$LINENO"; then :
2747 ac_lo=$ac_mid; break
2748 else
2749 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2750 if test $ac_mid -le $ac_hi; then
2751 ac_lo= ac_hi=
2752 break
2753 fi
2754 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2755 fi
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 done
2758 else
2759 ac_lo= ac_hi=
2760 fi
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 fi
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 # Binary search between lo and hi bounds.
2765 while test "x$ac_lo" != "x$ac_hi"; do
2766 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 $4
2770 int
2771 main ()
2772 {
2773 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2774 test_array [0] = 0
2775
2776 ;
2777 return 0;
2778 }
2779 _ACEOF
2780 if ac_fn_c_try_compile "$LINENO"; then :
2781 ac_hi=$ac_mid
2782 else
2783 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2784 fi
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 done
2787 case $ac_lo in #((
2788 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2789 '') ac_retval=1 ;;
2790 esac
2791 else
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794 $4
2795 static long int longval () { return $2; }
2796 static unsigned long int ulongval () { return $2; }
2797 #include <stdio.h>
2798 #include <stdlib.h>
2799 int
2800 main ()
2801 {
2802
2803 FILE *f = fopen ("conftest.val", "w");
2804 if (! f)
2805 return 1;
2806 if (($2) < 0)
2807 {
2808 long int i = longval ();
2809 if (i != ($2))
2810 return 1;
2811 fprintf (f, "%ld", i);
2812 }
2813 else
2814 {
2815 unsigned long int i = ulongval ();
2816 if (i != ($2))
2817 return 1;
2818 fprintf (f, "%lu", i);
2819 }
2820 /* Do not output a trailing newline, as this causes \r\n confusion
2821 on some platforms. */
2822 return ferror (f) || fclose (f) != 0;
2823
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 if ac_fn_c_try_run "$LINENO"; then :
2829 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2830 else
2831 ac_retval=1
2832 fi
2833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2834 conftest.$ac_objext conftest.beam conftest.$ac_ext
2835 rm -f conftest.val
2836
2837 fi
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2839 as_fn_set_status $ac_retval
2840
2841 } # ac_fn_c_compute_int
2842 cat >config.log <<_ACEOF
2843 This file contains any messages produced by compilers while
2844 running configure, to aid debugging if configure makes a mistake.
2845
2846 It was created by emacs $as_me 24.0.91, which was
2847 generated by GNU Autoconf 2.65. Invocation command line was
2848
2849 $ $0 $@
2850
2851 _ACEOF
2852 exec 5>>config.log
2853 {
2854 cat <<_ASUNAME
2855 ## --------- ##
2856 ## Platform. ##
2857 ## --------- ##
2858
2859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2864
2865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2867
2868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2875
2876 _ASUNAME
2877
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 $as_echo "PATH: $as_dir"
2884 done
2885 IFS=$as_save_IFS
2886
2887 } >&5
2888
2889 cat >&5 <<_ACEOF
2890
2891
2892 ## ----------- ##
2893 ## Core tests. ##
2894 ## ----------- ##
2895
2896 _ACEOF
2897
2898
2899 # Keep a trace of the command line.
2900 # Strip out --no-create and --no-recursion so they do not pile up.
2901 # Strip out --silent because we don't want to record it for future runs.
2902 # Also quote any args containing shell meta-characters.
2903 # Make two passes to allow for proper duplicate-argument suppression.
2904 ac_configure_args=
2905 ac_configure_args0=
2906 ac_configure_args1=
2907 ac_must_keep_next=false
2908 for ac_pass in 1 2
2909 do
2910 for ac_arg
2911 do
2912 case $ac_arg in
2913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2915 | -silent | --silent | --silen | --sile | --sil)
2916 continue ;;
2917 *\'*)
2918 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2919 esac
2920 case $ac_pass in
2921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2922 2)
2923 as_fn_append ac_configure_args1 " '$ac_arg'"
2924 if test $ac_must_keep_next = true; then
2925 ac_must_keep_next=false # Got value, back to normal.
2926 else
2927 case $ac_arg in
2928 *=* | --config-cache | -C | -disable-* | --disable-* \
2929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2931 | -with-* | --with-* | -without-* | --without-* | --x)
2932 case "$ac_configure_args0 " in
2933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2934 esac
2935 ;;
2936 -* ) ac_must_keep_next=true ;;
2937 esac
2938 fi
2939 as_fn_append ac_configure_args " '$ac_arg'"
2940 ;;
2941 esac
2942 done
2943 done
2944 { ac_configure_args0=; unset ac_configure_args0;}
2945 { ac_configure_args1=; unset ac_configure_args1;}
2946
2947 # When interrupted or exit'd, cleanup temporary files, and complete
2948 # config.log. We remove comments because anyway the quotes in there
2949 # would cause problems or look ugly.
2950 # WARNING: Use '\'' to represent an apostrophe within the trap.
2951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2952 trap 'exit_status=$?
2953 # Save into config.log some information that might help in debugging.
2954 {
2955 echo
2956
2957 cat <<\_ASBOX
2958 ## ---------------- ##
2959 ## Cache variables. ##
2960 ## ---------------- ##
2961 _ASBOX
2962 echo
2963 # The following way of writing the cache mishandles newlines in values,
2964 (
2965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2966 eval ac_val=\$$ac_var
2967 case $ac_val in #(
2968 *${as_nl}*)
2969 case $ac_var in #(
2970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2972 esac
2973 case $ac_var in #(
2974 _ | IFS | as_nl) ;; #(
2975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2976 *) { eval $ac_var=; unset $ac_var;} ;;
2977 esac ;;
2978 esac
2979 done
2980 (set) 2>&1 |
2981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2982 *${as_nl}ac_space=\ *)
2983 sed -n \
2984 "s/'\''/'\''\\\\'\'''\''/g;
2985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2986 ;; #(
2987 *)
2988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2989 ;;
2990 esac |
2991 sort
2992 )
2993 echo
2994
2995 cat <<\_ASBOX
2996 ## ----------------- ##
2997 ## Output variables. ##
2998 ## ----------------- ##
2999 _ASBOX
3000 echo
3001 for ac_var in $ac_subst_vars
3002 do
3003 eval ac_val=\$$ac_var
3004 case $ac_val in
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 esac
3007 $as_echo "$ac_var='\''$ac_val'\''"
3008 done | sort
3009 echo
3010
3011 if test -n "$ac_subst_files"; then
3012 cat <<\_ASBOX
3013 ## ------------------- ##
3014 ## File substitutions. ##
3015 ## ------------------- ##
3016 _ASBOX
3017 echo
3018 for ac_var in $ac_subst_files
3019 do
3020 eval ac_val=\$$ac_var
3021 case $ac_val in
3022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3023 esac
3024 $as_echo "$ac_var='\''$ac_val'\''"
3025 done | sort
3026 echo
3027 fi
3028
3029 if test -s confdefs.h; then
3030 cat <<\_ASBOX
3031 ## ----------- ##
3032 ## confdefs.h. ##
3033 ## ----------- ##
3034 _ASBOX
3035 echo
3036 cat confdefs.h
3037 echo
3038 fi
3039 test "$ac_signal" != 0 &&
3040 $as_echo "$as_me: caught signal $ac_signal"
3041 $as_echo "$as_me: exit $exit_status"
3042 } >&5
3043 rm -f core *.core core.conftest.* &&
3044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3045 exit $exit_status
3046 ' 0
3047 for ac_signal in 1 2 13 15; do
3048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3049 done
3050 ac_signal=0
3051
3052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3053 rm -f -r conftest* confdefs.h
3054
3055 $as_echo "/* confdefs.h */" > confdefs.h
3056
3057 # Predefined preprocessor variables.
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_NAME "$PACKAGE_NAME"
3061 _ACEOF
3062
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3065 _ACEOF
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3069 _ACEOF
3070
3071 cat >>confdefs.h <<_ACEOF
3072 #define PACKAGE_STRING "$PACKAGE_STRING"
3073 _ACEOF
3074
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3077 _ACEOF
3078
3079 cat >>confdefs.h <<_ACEOF
3080 #define PACKAGE_URL "$PACKAGE_URL"
3081 _ACEOF
3082
3083
3084 # Let the site file select an alternate cache file if it wants to.
3085 # Prefer an explicitly selected file to automatically selected ones.
3086 ac_site_file1=NONE
3087 ac_site_file2=NONE
3088 if test -n "$CONFIG_SITE"; then
3089 ac_site_file1=$CONFIG_SITE
3090 elif test "x$prefix" != xNONE; then
3091 ac_site_file1=$prefix/share/config.site
3092 ac_site_file2=$prefix/etc/config.site
3093 else
3094 ac_site_file1=$ac_default_prefix/share/config.site
3095 ac_site_file2=$ac_default_prefix/etc/config.site
3096 fi
3097 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3098 do
3099 test "x$ac_site_file" = xNONE && continue
3100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3102 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3103 sed 's/^/| /' "$ac_site_file" >&5
3104 . "$ac_site_file"
3105 fi
3106 done
3107
3108 if test -r "$cache_file"; then
3109 # Some versions of bash will fail to source /dev/null (special files
3110 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3111 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3113 $as_echo "$as_me: loading cache $cache_file" >&6;}
3114 case $cache_file in
3115 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3116 *) . "./$cache_file";;
3117 esac
3118 fi
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3121 $as_echo "$as_me: creating cache $cache_file" >&6;}
3122 >$cache_file
3123 fi
3124
3125 as_fn_append ac_header_list " stdlib.h"
3126 as_fn_append ac_header_list " unistd.h"
3127 as_fn_append ac_header_list " sys/param.h"
3128 as_fn_append ac_func_list " readlinkat"
3129 gl_getopt_required=GNU
3130 as_fn_append ac_header_list " getopt.h"
3131 as_fn_append ac_header_list " wchar.h"
3132 as_fn_append ac_header_list " stdint.h"
3133 as_fn_append ac_header_list " inttypes.h"
3134 as_fn_append ac_func_list " lstat"
3135 as_fn_append ac_func_list " alarm"
3136 as_fn_append ac_func_list " pthread_sigmask"
3137 as_fn_append ac_func_list " readlink"
3138 as_fn_append ac_header_list " sys/socket.h"
3139 as_fn_append ac_func_list " tzset"
3140 as_fn_append ac_func_list " strtoimax"
3141 as_fn_append ac_func_list " strtoumax"
3142 as_fn_append ac_func_list " symlink"
3143 as_fn_append ac_header_list " sys/stat.h"
3144 as_fn_append ac_header_list " sys/time.h"
3145 as_fn_append ac_func_list " localtime_r"
3146 # Check that the precious variables saved in the cache have kept the same
3147 # value.
3148 ac_cache_corrupted=false
3149 for ac_var in $ac_precious_vars; do
3150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3151 eval ac_new_set=\$ac_env_${ac_var}_set
3152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3153 eval ac_new_val=\$ac_env_${ac_var}_value
3154 case $ac_old_set,$ac_new_set in
3155 set,)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3158 ac_cache_corrupted=: ;;
3159 ,set)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3162 ac_cache_corrupted=: ;;
3163 ,);;
3164 *)
3165 if test "x$ac_old_val" != "x$ac_new_val"; then
3166 # differences in whitespace do not lead to failure.
3167 ac_old_val_w=`echo x $ac_old_val`
3168 ac_new_val_w=`echo x $ac_new_val`
3169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3172 ac_cache_corrupted=:
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3176 eval $ac_var=\$ac_old_val
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3182 fi;;
3183 esac
3184 # Pass precious variables to config.status.
3185 if test "$ac_new_set" = set; then
3186 case $ac_new_val in
3187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3188 *) ac_arg=$ac_var=$ac_new_val ;;
3189 esac
3190 case " $ac_configure_args " in
3191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3193 esac
3194 fi
3195 done
3196 if $ac_cache_corrupted; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3201 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3202 fi
3203 ## -------------------- ##
3204 ## Main body of script. ##
3205 ## -------------------- ##
3206
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212
3213
3214 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3215
3216
3217 ac_aux_dir=
3218 for ac_dir in build-aux "$srcdir"/build-aux; do
3219 for ac_t in install-sh install.sh shtool; do
3220 if test -f "$ac_dir/$ac_t"; then
3221 ac_aux_dir=$ac_dir
3222 ac_install_sh="$ac_aux_dir/$ac_t -c"
3223 break 2
3224 fi
3225 done
3226 done
3227 if test -z "$ac_aux_dir"; then
3228 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3229 fi
3230
3231 # These three variables are undocumented and unsupported,
3232 # and are intended to be withdrawn in a future Autoconf release.
3233 # They can cause serious problems if a builder's source tree is in a directory
3234 # whose full name contains unusual characters.
3235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3238
3239
3240 am__api_version='1.11'
3241
3242 # Find a good install program. We prefer a C program (faster),
3243 # so one script is as good as another. But avoid the broken or
3244 # incompatible versions:
3245 # SysV /etc/install, /usr/sbin/install
3246 # SunOS /usr/etc/install
3247 # IRIX /sbin/install
3248 # AIX /bin/install
3249 # AmigaOS /C/install, which installs bootblocks on floppy discs
3250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3253 # OS/2's system install, which has a completely different semantic
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 # Reject install programs that cannot install multiple files.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3257 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3258 if test -z "$INSTALL"; then
3259 if test "${ac_cv_path_install+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 # Account for people who put trailing slashes in PATH elements.
3268 case $as_dir/ in #((
3269 ./ | .// | /[cC]/* | \
3270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3271 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3272 /usr/ucb/* ) ;;
3273 *)
3274 # OSF1 and SCO ODT 3.0 have their own names for install.
3275 # Don't use installbsd from OSF since it installs stuff as root
3276 # by default.
3277 for ac_prog in ginstall scoinst install; do
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3280 if test $ac_prog = install &&
3281 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3282 # AIX install. It has an incompatible calling convention.
3283 :
3284 elif test $ac_prog = install &&
3285 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286 # program-specific install script used by HP pwplus--don't use.
3287 :
3288 else
3289 rm -rf conftest.one conftest.two conftest.dir
3290 echo one > conftest.one
3291 echo two > conftest.two
3292 mkdir conftest.dir
3293 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3294 test -s conftest.one && test -s conftest.two &&
3295 test -s conftest.dir/conftest.one &&
3296 test -s conftest.dir/conftest.two
3297 then
3298 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3299 break 3
3300 fi
3301 fi
3302 fi
3303 done
3304 done
3305 ;;
3306 esac
3307
3308 done
3309 IFS=$as_save_IFS
3310
3311 rm -rf conftest.one conftest.two conftest.dir
3312
3313 fi
3314 if test "${ac_cv_path_install+set}" = set; then
3315 INSTALL=$ac_cv_path_install
3316 else
3317 # As a last resort, use the slow shell script. Don't cache a
3318 # value for INSTALL within a source directory, because that will
3319 # break other packages using the cache if that directory is
3320 # removed, or if the value is a relative name.
3321 INSTALL=$ac_install_sh
3322 fi
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3325 $as_echo "$INSTALL" >&6; }
3326
3327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3328 # It thinks the first close brace ends the variable substitution.
3329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3330
3331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3332
3333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3336 $as_echo_n "checking whether build environment is sane... " >&6; }
3337 # Just in case
3338 sleep 1
3339 echo timestamp > conftest.file
3340 # Reject unsafe characters in $srcdir or the absolute working directory
3341 # name. Accept space and tab only in the latter.
3342 am_lf='
3343 '
3344 case `pwd` in
3345 *[\\\"\#\$\&\'\`$am_lf]*)
3346 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3347 esac
3348 case $srcdir in
3349 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3350 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3351 esac
3352
3353 # Do `set' in a subshell so we don't clobber the current shell's
3354 # arguments. Must try -L first in case configure is actually a
3355 # symlink; some systems play weird games with the mod time of symlinks
3356 # (eg FreeBSD returns the mod time of the symlink's containing
3357 # directory).
3358 if (
3359 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3360 if test "$*" = "X"; then
3361 # -L didn't work.
3362 set X `ls -t "$srcdir/configure" conftest.file`
3363 fi
3364 rm -f conftest.file
3365 if test "$*" != "X $srcdir/configure conftest.file" \
3366 && test "$*" != "X conftest.file $srcdir/configure"; then
3367
3368 # If neither matched, then we have a broken ls. This can happen
3369 # if, for instance, CONFIG_SHELL is bash and it inherits a
3370 # broken ls alias from the environment. This has actually
3371 # happened. Such a system could not be considered "sane".
3372 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3373 alias in your environment" "$LINENO" 5
3374 fi
3375
3376 test "$2" = conftest.file
3377 )
3378 then
3379 # Ok.
3380 :
3381 else
3382 as_fn_error "newly created file is older than distributed files!
3383 Check your system clock" "$LINENO" 5
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3387 test "$program_prefix" != NONE &&
3388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE &&
3391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3396
3397 # expand $ac_aux_dir to an absolute path
3398 am_aux_dir=`cd $ac_aux_dir && pwd`
3399
3400 if test x"${MISSING+set}" != xset; then
3401 case $am_aux_dir in
3402 *\ * | *\ *)
3403 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3404 *)
3405 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3406 esac
3407 fi
3408 # Use eval to expand $SHELL
3409 if eval "$MISSING --run true"; then
3410 am_missing_run="$MISSING --run "
3411 else
3412 am_missing_run=
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3414 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3415 fi
3416
3417 if test x"${install_sh}" != xset; then
3418 case $am_aux_dir in
3419 *\ * | *\ *)
3420 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3421 *)
3422 install_sh="\${SHELL} $am_aux_dir/install-sh"
3423 esac
3424 fi
3425
3426 # Installed binaries are usually stripped using `strip' when the user
3427 # run `make install-strip'. However `strip' might not be the right
3428 # tool to use in cross-compilation environments, therefore Automake
3429 # will honor the `STRIP' environment variable to overrule this program.
3430 if test "$cross_compiling" != no; then
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}strip; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if test "${ac_cv_prog_STRIP+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test -n "$STRIP"; then
3440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3452 fi
3453 done
3454 done
3455 IFS=$as_save_IFS
3456
3457 fi
3458 fi
3459 STRIP=$ac_cv_prog_STRIP
3460 if test -n "$STRIP"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3462 $as_echo "$STRIP" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3466 fi
3467
3468
3469 fi
3470 if test -z "$ac_cv_prog_STRIP"; then
3471 ac_ct_STRIP=$STRIP
3472 # Extract the first word of "strip", so it can be a program name with args.
3473 set dummy strip; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$ac_ct_STRIP"; then
3480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 ac_cv_prog_ac_ct_STRIP="strip"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3492 fi
3493 done
3494 done
3495 IFS=$as_save_IFS
3496
3497 fi
3498 fi
3499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3500 if test -n "$ac_ct_STRIP"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3502 $as_echo "$ac_ct_STRIP" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507
3508 if test "x$ac_ct_STRIP" = x; then
3509 STRIP=":"
3510 else
3511 case $cross_compiling:$ac_tool_warned in
3512 yes:)
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515 ac_tool_warned=yes ;;
3516 esac
3517 STRIP=$ac_ct_STRIP
3518 fi
3519 else
3520 STRIP="$ac_cv_prog_STRIP"
3521 fi
3522
3523 fi
3524 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3525
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3527 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3528 if test -z "$MKDIR_P"; then
3529 if test "${ac_cv_path_mkdir+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_prog in mkdir gmkdir; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3540 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3541 'mkdir (GNU coreutils) '* | \
3542 'mkdir (coreutils) '* | \
3543 'mkdir (fileutils) '4.1*)
3544 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3545 break 3;;
3546 esac
3547 done
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553
3554 test -d ./--version && rmdir ./--version
3555 if test "${ac_cv_path_mkdir+set}" = set; then
3556 MKDIR_P="$ac_cv_path_mkdir -p"
3557 else
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for MKDIR_P within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 MKDIR_P="$ac_install_sh -d"
3563 fi
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3566 $as_echo "$MKDIR_P" >&6; }
3567
3568
3569 mkdir_p="$MKDIR_P"
3570 case $mkdir_p in
3571 [\\/$]* | ?:[\\/]*) ;;
3572 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3573 esac
3574
3575 for ac_prog in gawk mawk nawk awk
3576 do
3577 # Extract the first word of "$ac_prog", so it can be a program name with args.
3578 set dummy $ac_prog; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if test "${ac_cv_prog_AWK+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$AWK"; then
3585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_AWK="$ac_prog"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 AWK=$ac_cv_prog_AWK
3605 if test -n "$AWK"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3607 $as_echo "$AWK" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3611 fi
3612
3613
3614 test -n "$AWK" && break
3615 done
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3619 set x ${MAKE-make}
3620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3621 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 cat >conftest.make <<\_ACEOF
3625 SHELL = /bin/sh
3626 all:
3627 @echo '@@@%%%=$(MAKE)=@@@%%%'
3628 _ACEOF
3629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3631 *@@@%%%=?*=@@@%%%*)
3632 eval ac_cv_prog_make_${ac_make}_set=yes;;
3633 *)
3634 eval ac_cv_prog_make_${ac_make}_set=no;;
3635 esac
3636 rm -f conftest.make
3637 fi
3638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 $as_echo "yes" >&6; }
3641 SET_MAKE=
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 SET_MAKE="MAKE=${MAKE-make}"
3646 fi
3647
3648 rm -rf .tst 2>/dev/null
3649 mkdir .tst 2>/dev/null
3650 if test -d .tst; then
3651 am__leading_dot=.
3652 else
3653 am__leading_dot=_
3654 fi
3655 rmdir .tst 2>/dev/null
3656
3657 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3658 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3659 # is not polluted with repeated "-I."
3660 am__isrc=' -I$(srcdir)'
3661 # test to see if srcdir already configured
3662 if test -f $srcdir/config.status; then
3663 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3664 fi
3665 fi
3666
3667 # test whether we have cygpath
3668 if test -z "$CYGPATH_W"; then
3669 if (cygpath --version) >/dev/null 2>/dev/null; then
3670 CYGPATH_W='cygpath -w'
3671 else
3672 CYGPATH_W=echo
3673 fi
3674 fi
3675
3676
3677 # Define the identity of the package.
3678 PACKAGE='emacs'
3679 VERSION='24.0.91'
3680
3681
3682 cat >>confdefs.h <<_ACEOF
3683 #define PACKAGE "$PACKAGE"
3684 _ACEOF
3685
3686
3687 cat >>confdefs.h <<_ACEOF
3688 #define VERSION "$VERSION"
3689 _ACEOF
3690
3691 # Some tools Automake needs.
3692
3693 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3694
3695
3696 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3697
3698
3699 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3700
3701
3702 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3703
3704
3705 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3706
3707 # We need awk for the "check" target. The system "awk" is bad on
3708 # some platforms.
3709 # Always define AMTAR for backward compatibility.
3710
3711 AMTAR=${AMTAR-"${am_missing_run}tar"}
3712
3713 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3714
3715
3716
3717
3718
3719
3720
3721
3722 lispdir='${datadir}/emacs/${version}/lisp'
3723 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3724 '${datadir}/emacs/site-lisp'
3725 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3726 etcdir='${datadir}/emacs/${version}/etc'
3727 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3728 docdir='${datadir}/emacs/${version}/etc'
3729 gamedir='${localstatedir}/games/emacs'
3730
3731
3732
3733
3734 # Check whether --with-pop was given.
3735 if test "${with_pop+set}" = set; then :
3736 withval=$with_pop;
3737 else
3738 with_pop=yes
3739 fi
3740
3741 if test "$with_pop" = yes; then
3742 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3743
3744 fi
3745
3746
3747 # Check whether --with-kerberos was given.
3748 if test "${with_kerberos+set}" = set; then :
3749 withval=$with_kerberos;
3750 else
3751 with_kerberos=no
3752 fi
3753
3754 if test "$with_kerberos" != no; then
3755 $as_echo "#define KERBEROS 1" >>confdefs.h
3756
3757 fi
3758
3759
3760 # Check whether --with-kerberos5 was given.
3761 if test "${with_kerberos5+set}" = set; then :
3762 withval=$with_kerberos5;
3763 else
3764 with_kerberos5=no
3765 fi
3766
3767 if test "${with_kerberos5}" != no; then
3768 if test "${with_kerberos}" = no; then
3769 with_kerberos=yes
3770 $as_echo "#define KERBEROS 1" >>confdefs.h
3771
3772 fi
3773
3774 $as_echo "#define KERBEROS5 1" >>confdefs.h
3775
3776 fi
3777
3778
3779 # Check whether --with-hesiod was given.
3780 if test "${with_hesiod+set}" = set; then :
3781 withval=$with_hesiod;
3782 else
3783 with_hesiod=no
3784 fi
3785
3786 if test "$with_hesiod" != no; then
3787
3788 $as_echo "#define HESIOD 1" >>confdefs.h
3789
3790 fi
3791
3792
3793 # Check whether --with-mmdf was given.
3794 if test "${with_mmdf+set}" = set; then :
3795 withval=$with_mmdf;
3796 else
3797 with_mmdf=no
3798 fi
3799
3800 if test "$with_mmdf" != no; then
3801
3802 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3803
3804 fi
3805
3806
3807 # Check whether --with-mail-unlink was given.
3808 if test "${with_mail_unlink+set}" = set; then :
3809 withval=$with_mail_unlink;
3810 else
3811 with_mail_unlink=no
3812 fi
3813
3814 if test "$with_mail_unlink" != no; then
3815
3816 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3817
3818 fi
3819
3820
3821 # Check whether --with-mailhost was given.
3822 if test "${with_mailhost+set}" = set; then :
3823 withval=$with_mailhost;
3824 cat >>confdefs.h <<_ACEOF
3825 #define MAILHOST "$withval"
3826 _ACEOF
3827
3828 fi
3829
3830
3831
3832 # Check whether --with-sound was given.
3833 if test "${with_sound+set}" = set; then :
3834 withval=$with_sound;
3835 else
3836 with_sound=yes
3837 fi
3838
3839
3840
3841 # Check whether --with-sync-input was given.
3842 if test "${with_sync_input+set}" = set; then :
3843 withval=$with_sync_input;
3844 else
3845 with_sync_input=yes
3846 fi
3847
3848 if test "$with_sync_input" = yes; then
3849
3850 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3851
3852 fi
3853
3854
3855 # Check whether --with-x-toolkit was given.
3856 if test "${with_x_toolkit+set}" = set; then :
3857 withval=$with_x_toolkit; case "${withval}" in
3858 y | ye | yes ) val=gtk ;;
3859 n | no ) val=no ;;
3860 l | lu | luc | luci | lucid ) val=lucid ;;
3861 a | at | ath | athe | athen | athena ) val=athena ;;
3862 m | mo | mot | moti | motif ) val=motif ;;
3863 g | gt | gtk ) val=gtk ;;
3864 gtk3 ) val=gtk3 ;;
3865 * )
3866 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3867 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3868 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3869 ;;
3870 esac
3871 with_x_toolkit=$val
3872
3873 fi
3874
3875
3876
3877 # Check whether --with-wide-int was given.
3878 if test "${with_wide_int+set}" = set; then :
3879 withval=$with_wide_int;
3880 else
3881 with_wide_int=no
3882 fi
3883
3884 if test "$with_wide_int" = yes; then
3885
3886 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3887
3888 fi
3889
3890
3891 # Check whether --with-xpm was given.
3892 if test "${with_xpm+set}" = set; then :
3893 withval=$with_xpm;
3894 else
3895 with_xpm=yes
3896 fi
3897
3898
3899 # Check whether --with-jpeg was given.
3900 if test "${with_jpeg+set}" = set; then :
3901 withval=$with_jpeg;
3902 else
3903 with_jpeg=yes
3904 fi
3905
3906
3907 # Check whether --with-tiff was given.
3908 if test "${with_tiff+set}" = set; then :
3909 withval=$with_tiff;
3910 else
3911 with_tiff=yes
3912 fi
3913
3914
3915 # Check whether --with-gif was given.
3916 if test "${with_gif+set}" = set; then :
3917 withval=$with_gif;
3918 else
3919 with_gif=yes
3920 fi
3921
3922
3923 # Check whether --with-png was given.
3924 if test "${with_png+set}" = set; then :
3925 withval=$with_png;
3926 else
3927 with_png=yes
3928 fi
3929
3930
3931 # Check whether --with-rsvg was given.
3932 if test "${with_rsvg+set}" = set; then :
3933 withval=$with_rsvg;
3934 else
3935 with_rsvg=yes
3936 fi
3937
3938
3939 # Check whether --with-xml2 was given.
3940 if test "${with_xml2+set}" = set; then :
3941 withval=$with_xml2;
3942 else
3943 with_xml2=yes
3944 fi
3945
3946
3947 # Check whether --with-imagemagick was given.
3948 if test "${with_imagemagick+set}" = set; then :
3949 withval=$with_imagemagick;
3950 else
3951 with_imagemagick=yes
3952 fi
3953
3954
3955
3956 # Check whether --with-xft was given.
3957 if test "${with_xft+set}" = set; then :
3958 withval=$with_xft;
3959 else
3960 with_xft=yes
3961 fi
3962
3963
3964 # Check whether --with-libotf was given.
3965 if test "${with_libotf+set}" = set; then :
3966 withval=$with_libotf;
3967 else
3968 with_libotf=yes
3969 fi
3970
3971
3972 # Check whether --with-m17n-flt was given.
3973 if test "${with_m17n_flt+set}" = set; then :
3974 withval=$with_m17n_flt;
3975 else
3976 with_m17n_flt=yes
3977 fi
3978
3979
3980
3981 # Check whether --with-toolkit-scroll-bars was given.
3982 if test "${with_toolkit_scroll_bars+set}" = set; then :
3983 withval=$with_toolkit_scroll_bars;
3984 else
3985 with_toolkit_scroll_bars=yes
3986 fi
3987
3988
3989 # Check whether --with-xaw3d was given.
3990 if test "${with_xaw3d+set}" = set; then :
3991 withval=$with_xaw3d;
3992 else
3993 with_xaw3d=yes
3994 fi
3995
3996
3997 # Check whether --with-xim was given.
3998 if test "${with_xim+set}" = set; then :
3999 withval=$with_xim;
4000 else
4001 with_xim=yes
4002 fi
4003
4004
4005 # Check whether --with-ns was given.
4006 if test "${with_ns+set}" = set; then :
4007 withval=$with_ns;
4008 else
4009 with_ns=no
4010 fi
4011
4012
4013
4014 # Check whether --with-gpm was given.
4015 if test "${with_gpm+set}" = set; then :
4016 withval=$with_gpm;
4017 else
4018 with_gpm=yes
4019 fi
4020
4021
4022 # Check whether --with-dbus was given.
4023 if test "${with_dbus+set}" = set; then :
4024 withval=$with_dbus;
4025 else
4026 with_dbus=yes
4027 fi
4028
4029
4030 # Check whether --with-gconf was given.
4031 if test "${with_gconf+set}" = set; then :
4032 withval=$with_gconf;
4033 else
4034 with_gconf=yes
4035 fi
4036
4037
4038 # Check whether --with-gsettings was given.
4039 if test "${with_gsettings+set}" = set; then :
4040 withval=$with_gsettings;
4041 else
4042 with_gsettings=yes
4043 fi
4044
4045
4046 # Check whether --with-selinux was given.
4047 if test "${with_selinux+set}" = set; then :
4048 withval=$with_selinux;
4049 else
4050 with_selinux=yes
4051 fi
4052
4053
4054 # Check whether --with-gnutls was given.
4055 if test "${with_gnutls+set}" = set; then :
4056 withval=$with_gnutls;
4057 else
4058 with_gnutls=yes
4059 fi
4060
4061
4062 ## For the times when you want to build Emacs but don't have
4063 ## a suitable makeinfo, and can live without the manuals.
4064
4065 # Check whether --with-makeinfo was given.
4066 if test "${with_makeinfo+set}" = set; then :
4067 withval=$with_makeinfo;
4068 else
4069 with_makeinfo=yes
4070 fi
4071
4072
4073 ## This is an option because I do not know if all info/man support
4074 ## compressed files, nor how to test if they do so.
4075
4076 # Check whether --with-compress-info was given.
4077 if test "${with_compress_info+set}" = set; then :
4078 withval=$with_compress_info;
4079 else
4080 with_compress_info=yes
4081 fi
4082
4083 if test $with_compress_info = yes; then
4084 GZIP_INFO=yes
4085 else
4086 GZIP_INFO=
4087 fi
4088
4089
4090
4091 # Check whether --with-pkg-config-prog was given.
4092 if test "${with_pkg_config_prog+set}" = set; then :
4093 withval=$with_pkg_config_prog;
4094 fi
4095
4096 if test "X${with_pkg_config_prog}" != X; then
4097 if test "${with_pkg_config_prog}" != yes; then
4098 PKG_CONFIG="${with_pkg_config_prog}"
4099 fi
4100 fi
4101
4102 CRT_DIR=
4103
4104 # Check whether --with-crt-dir was given.
4105 if test "${with_crt_dir+set}" = set; then :
4106 withval=$with_crt_dir;
4107 fi
4108
4109 CRT_DIR="${with_crt_dir}"
4110
4111
4112 # Check whether --with-gameuser was given.
4113 if test "${with_gameuser+set}" = set; then :
4114 withval=$with_gameuser;
4115 fi
4116
4117 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4118 && gameuser="${with_gameuser}"
4119 test "X$gameuser" = X && gameuser=games
4120
4121
4122 # Check whether --with-gnustep-conf was given.
4123 if test "${with_gnustep_conf+set}" = set; then :
4124 withval=$with_gnustep_conf;
4125 fi
4126
4127 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4128 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4129 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4130 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4131
4132 # Check whether --enable-ns-self-contained was given.
4133 if test "${enable_ns_self_contained+set}" = set; then :
4134 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4135 else
4136 EN_NS_SELF_CONTAINED=yes
4137 fi
4138
4139
4140 # Check whether --enable-asserts was given.
4141 if test "${enable_asserts+set}" = set; then :
4142 enableval=$enable_asserts; USE_XASSERTS=$enableval
4143 else
4144 USE_XASSERTS=no
4145 fi
4146
4147
4148 # Check whether --enable-maintainer-mode was given.
4149 if test "${enable_maintainer_mode+set}" = set; then :
4150 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4151 else
4152 USE_MAINTAINER_MODE=yes
4153 fi
4154
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINT=
4157 else
4158 MAINT=#
4159 fi
4160
4161
4162 # Check whether --enable-locallisppath was given.
4163 if test "${enable_locallisppath+set}" = set; then :
4164 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4165 locallisppath=
4166 elif test "${enableval}" != "yes"; then
4167 locallisppath=${enableval}
4168 fi
4169 fi
4170
4171
4172 # Check whether --enable-checking was given.
4173 if test "${enable_checking+set}" = set; then :
4174 enableval=$enable_checking; ac_checking_flags="${enableval}"
4175 fi
4176
4177 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4178 for check in $ac_checking_flags
4179 do
4180 case $check in
4181 # these set all the flags to specific states
4182 yes) ac_enable_checking=1 ;;
4183 no) ac_enable_checking= ;
4184 ac_gc_check_stringbytes= ;
4185 ac_gc_check_string_overrun= ;
4186 ac_gc_check_string_free_list= ;
4187 ac_xmalloc_overrun= ;
4188 ac_gc_check_cons_list= ;;
4189 all) ac_enable_checking=1 ;
4190 ac_gc_check_stringbytes=1 ;
4191 ac_gc_check_string_overrun=1 ;
4192 ac_gc_check_string_free_list=1 ;
4193 ac_xmalloc_overrun=1 ;
4194 ac_gc_check_cons_list=1 ;;
4195 # these enable particular checks
4196 stringbytes) ac_gc_check_stringbytes=1 ;;
4197 stringoverrun) ac_gc_check_string_overrun=1 ;;
4198 stringfreelist) ac_gc_check_string_free_list=1 ;;
4199 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4200 conslist) ac_gc_check_cons_list=1 ;;
4201 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4202 esac
4203 done
4204 IFS="$ac_save_IFS"
4205
4206 if test x$ac_enable_checking != x ; then
4207
4208 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4209
4210 fi
4211 if test x$ac_gc_check_stringbytes != x ; then
4212
4213 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4214
4215 fi
4216 if test x$ac_gc_check_string_overrun != x ; then
4217
4218 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4219
4220 fi
4221 if test x$ac_gc_check_string_free_list != x ; then
4222
4223 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4224
4225 fi
4226 if test x$ac_xmalloc_overrun != x ; then
4227
4228 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4229
4230 fi
4231 if test x$ac_gc_check_cons_list != x ; then
4232
4233 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4234
4235 fi
4236
4237 # Check whether --enable-use-lisp-union-type was given.
4238 if test "${enable_use_lisp_union_type+set}" = set; then :
4239 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4240
4241 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4242
4243 fi
4244 fi
4245
4246
4247
4248 # Check whether --enable-profiling was given.
4249 if test "${enable_profiling+set}" = set; then :
4250 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4251 fi
4252
4253 if test x$ac_enable_profiling != x ; then
4254 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4255 else
4256 PROFILING_CFLAGS=
4257 fi
4258
4259
4260 # Check whether --enable-autodepend was given.
4261 if test "${enable_autodepend+set}" = set; then :
4262 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4263 else
4264 ac_enable_autodepend=yes
4265 fi
4266
4267
4268 #### Make srcdir absolute, if it isn't already. It's important to
4269 #### avoid running the path through pwd unnecessarily, since pwd can
4270 #### give you automounter prefixes, which can go away. We do all this
4271 #### so Emacs can find its files when run uninstalled.
4272 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4273 unset CDPATH
4274 case "${srcdir}" in
4275 /* ) ;;
4276 . )
4277 ## We may be able to use the $PWD environment variable to make this
4278 ## absolute. But sometimes PWD is inaccurate.
4279 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4280 ## but that tested only for a well-formed and valid PWD,
4281 ## it did not object when PWD was well-formed and valid but just wrong.
4282 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4283 then
4284 srcdir="$PWD"
4285 else
4286 srcdir="`(cd ${srcdir}; pwd)`"
4287 fi
4288 ;;
4289 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4290 esac
4291
4292 #### Given the configuration name, set machfile and opsysfile to the
4293 #### names of the m/*.h and s/*.h files we should use.
4294
4295 ### Canonicalize the configuration name.
4296
4297 # Make sure we can run config.sub.
4298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4302 $as_echo_n "checking build system type... " >&6; }
4303 if test "${ac_cv_build+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 ac_build_alias=$build_alias
4307 test "x$ac_build_alias" = x &&
4308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4309 test "x$ac_build_alias" = x &&
4310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4316 $as_echo "$ac_cv_build" >&6; }
4317 case $ac_cv_build in
4318 *-*-*) ;;
4319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4320 esac
4321 build=$ac_cv_build
4322 ac_save_IFS=$IFS; IFS='-'
4323 set x $ac_cv_build
4324 shift
4325 build_cpu=$1
4326 build_vendor=$2
4327 shift; shift
4328 # Remember, the first character of IFS is used to create $*,
4329 # except with old shells:
4330 build_os=$*
4331 IFS=$ac_save_IFS
4332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4333
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4336 $as_echo_n "checking host system type... " >&6; }
4337 if test "${ac_cv_host+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test "x$host_alias" = x; then
4341 ac_cv_host=$ac_cv_build
4342 else
4343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4344 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4345 fi
4346
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4349 $as_echo "$ac_cv_host" >&6; }
4350 case $ac_cv_host in
4351 *-*-*) ;;
4352 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4353 esac
4354 host=$ac_cv_host
4355 ac_save_IFS=$IFS; IFS='-'
4356 set x $ac_cv_host
4357 shift
4358 host_cpu=$1
4359 host_vendor=$2
4360 shift; shift
4361 # Remember, the first character of IFS is used to create $*,
4362 # except with old shells:
4363 host_os=$*
4364 IFS=$ac_save_IFS
4365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4366
4367
4368 canonical=$host
4369 configuration=${host_alias-${build_alias-$host}}
4370
4371
4372
4373 ### If you add support for a new configuration, add code to this
4374 ### switch statement to recognize your configuration name and select
4375 ### the appropriate operating system and machine description files.
4376
4377 ### You would hope that you could choose an m/*.h file pretty much
4378 ### based on the machine portion of the configuration name, and an s/*.h
4379 ### file based on the operating system portion. However, it turns out
4380 ### that each m/*.h file is pretty manufacturer-specific - for
4381 ### example mips.h is MIPS
4382 ### So we basically have to have a special case for each
4383 ### configuration name.
4384 ###
4385 ### As far as handling version numbers on operating systems is
4386 ### concerned, make sure things will fail in a fixable way. If
4387 ### /etc/MACHINES doesn't say anything about version numbers, be
4388 ### prepared to handle anything reasonably. If version numbers
4389 ### matter, be sure /etc/MACHINES says something about it.
4390
4391 machine='' opsys='' unported=no
4392 case "${canonical}" in
4393
4394 ## GNU/Linux and similar ports
4395 *-*-linux* )
4396 opsys=gnu-linux
4397 case ${canonical} in
4398 alpha*) machine=alpha ;;
4399 s390x-*) machine=ibms390x ;;
4400 powerpc*) machine=macppc ;;
4401 sparc*) machine=sparc ;;
4402 ia64*) machine=ia64 ;;
4403 m68k*) machine=m68k ;;
4404 x86_64*) machine=amdx86-64 ;;
4405 esac
4406 ;;
4407
4408 ## FreeBSD ports
4409 *-*-freebsd* )
4410 opsys=freebsd
4411 case "${canonical}" in
4412 alpha*) machine=alpha ;;
4413 amd64-*|x86_64-*) machine=amdx86-64 ;;
4414 ia64-*) machine=ia64 ;;
4415 i[3456]86-*) machine=intel386 ;;
4416 powerpc-*) machine=macppc ;;
4417 sparc-*) machine=sparc ;;
4418 sparc64-*) machine=sparc ;;
4419 esac
4420 ;;
4421
4422 ## FreeBSD kernel + glibc based userland
4423 *-*-kfreebsd*gnu* )
4424 opsys=gnu-kfreebsd
4425 case "${canonical}" in
4426 alpha*) machine=alpha ;;
4427 amd64-*|x86_64-*) machine=amdx86-64 ;;
4428 ia64-*) machine=ia64 ;;
4429 i[3456]86-*) machine=intel386 ;;
4430 powerpc-*) machine=macppc ;;
4431 sparc-*) machine=sparc ;;
4432 sparc64-*) machine=sparc ;;
4433 esac
4434 ;;
4435
4436 ## NetBSD ports
4437 *-*-netbsd* )
4438 opsys=netbsd
4439 case "${canonical}" in
4440 alpha*) machine=alpha ;;
4441 x86_64-*) machine=amdx86-64 ;;
4442 i[3456]86-*) machine=intel386 ;;
4443 m68k-*) machine=m68k ;;
4444 powerpc-*) machine=macppc ;;
4445 sparc*-) machine=sparc ;;
4446 vax-*) machine=vax ;;
4447 esac
4448 ;;
4449
4450 ## OpenBSD ports
4451 *-*-openbsd* )
4452 opsys=openbsd
4453 case "${canonical}" in
4454 alpha*) machine=alpha ;;
4455 x86_64-*) machine=amdx86-64 ;;
4456 i386-*) machine=intel386 ;;
4457 powerpc-*) machine=macppc ;;
4458 sparc*) machine=sparc ;;
4459 vax-*) machine=vax ;;
4460 esac
4461 ;;
4462
4463 ## Apple Darwin / Mac OS X
4464 *-apple-darwin* )
4465 case "${canonical}" in
4466 i[3456]86-* ) machine=intel386 ;;
4467 powerpc-* ) machine=macppc ;;
4468 x86_64-* ) machine=amdx86-64 ;;
4469 * ) unported=yes ;;
4470 esac
4471 opsys=darwin
4472 # Define CPP as follows to make autoconf work correctly.
4473 CPP="${CC-cc} -E -no-cpp-precomp"
4474 # Use fink packages if available.
4475 if test -d /sw/include && test -d /sw/lib; then
4476 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4477 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4478 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4479 fi
4480 ;;
4481
4482 ## HP 9000 series 700 and 800, running HP/UX
4483 hppa*-hp-hpux10.2* )
4484 opsys=hpux10-20
4485 ;;
4486 hppa*-hp-hpux1[1-9]* )
4487 opsys=hpux11
4488 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4489 ;;
4490
4491 ## IBM machines
4492 rs6000-ibm-aix4.[23]* )
4493 machine=ibmrs6000 opsys=aix4-2
4494 ;;
4495 powerpc-ibm-aix4.[23]* )
4496 machine=ibmrs6000 opsys=aix4-2
4497 ;;
4498 rs6000-ibm-aix[56]* )
4499 machine=ibmrs6000 opsys=aix4-2
4500 ;;
4501 powerpc-ibm-aix[56]* )
4502 machine=ibmrs6000 opsys=aix4-2
4503 ;;
4504
4505 ## Silicon Graphics machines
4506 ## Iris 4D
4507 mips-sgi-irix6.5 )
4508 opsys=irix6-5
4509 # Without defining _LANGUAGE_C, things get masked out in the headers
4510 # so that, for instance, grepping for `free' in stdlib.h fails and
4511 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4512 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4513 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4514 ;;
4515
4516 ## Suns
4517 *-sun-solaris* \
4518 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4519 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4520 case "${canonical}" in
4521 i[3456]86-*-* ) machine=intel386 ;;
4522 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4523 sparc* ) machine=sparc ;;
4524 * ) unported=yes ;;
4525 esac
4526 case "${canonical}" in
4527 *-sunos5.6* | *-solaris2.6* )
4528 opsys=sol2-6
4529 NON_GNU_CPP=/usr/ccs/lib/cpp
4530 RANLIB="ar -ts"
4531 ;;
4532 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4533 opsys=sol2-6
4534 emacs_check_sunpro_c=yes
4535 NON_GNU_CPP=/usr/ccs/lib/cpp
4536 ;;
4537 *-sunos5* | *-solaris* )
4538 opsys=sol2-10
4539 emacs_check_sunpro_c=yes
4540 NON_GNU_CPP=/usr/ccs/lib/cpp
4541 ;;
4542 esac
4543 ## Watch out for a compiler that we know will not work.
4544 case "${canonical}" in
4545 *-solaris* | *-sunos5* )
4546 if [ "x$CC" = x/usr/ucb/cc ]; then
4547 ## /usr/ucb/cc doesn't work;
4548 ## we should find some other compiler that does work.
4549 unset CC
4550 fi
4551 ;;
4552 *) ;;
4553 esac
4554 ;;
4555
4556 ## Intel 386 machines where we don't care about the manufacturer.
4557 i[3456]86-*-* )
4558 machine=intel386
4559 case "${canonical}" in
4560 *-cygwin ) opsys=cygwin ;;
4561 *-darwin* ) opsys=darwin
4562 CPP="${CC-cc} -E -no-cpp-precomp"
4563 ;;
4564 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4565 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4566 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4567 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4568 esac
4569 ;;
4570
4571 * )
4572 unported=yes
4573 ;;
4574 esac
4575
4576 ### If the code above didn't choose an operating system, just choose
4577 ### an operating system based on the configuration name. You really
4578 ### only want to use this when you have no idea what the right
4579 ### operating system is; if you know what operating systems a machine
4580 ### runs, it's cleaner to make it explicit in the case statement
4581 ### above.
4582 if test x"${opsys}" = x; then
4583 case "${canonical}" in
4584 *-gnu* ) opsys=gnu ;;
4585 * )
4586 unported=yes
4587 ;;
4588 esac
4589 fi
4590
4591
4592
4593 if test $unported = yes; then
4594 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4595 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4596 fi
4597
4598 if test -n "$machine"; then
4599 machfile="m/${machine}.h"
4600 else
4601 machfile=
4602 fi
4603 opsysfile="s/${opsys}.h"
4604
4605
4606 #### Choose a compiler.
4607 test -n "$CC" && cc_specified=yes
4608
4609 # Save the value of CFLAGS that the user specified.
4610 SPECIFIED_CFLAGS="$CFLAGS"
4611
4612 ac_ext=c
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_CC"; then
4657 ac_ct_CC=$CC
4658 # Extract the first word of "gcc", so it can be a program name with args.
4659 set dummy gcc; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$ac_ct_CC"; then
4666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CC="gcc"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4678 fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4686 if test -n "$ac_ct_CC"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4688 $as_echo "$ac_ct_CC" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694 if test "x$ac_ct_CC" = x; then
4695 CC=""
4696 else
4697 case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703 CC=$ac_ct_CC
4704 fi
4705 else
4706 CC="$ac_cv_prog_CC"
4707 fi
4708
4709 if test -z "$CC"; then
4710 if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}cc; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_CC+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$CC"; then
4719 ac_cv_prog_CC="$CC" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_CC="${ac_tool_prefix}cc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 CC=$ac_cv_prog_CC
4739 if test -n "$CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741 $as_echo "$CC" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4745 fi
4746
4747
4748 fi
4749 fi
4750 if test -z "$CC"; then
4751 # Extract the first word of "cc", so it can be a program name with args.
4752 set dummy cc; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_CC+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$CC"; then
4759 ac_cv_prog_CC="$CC" # Let the user override the test.
4760 else
4761 ac_prog_rejected=no
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4770 ac_prog_rejected=yes
4771 continue
4772 fi
4773 ac_cv_prog_CC="cc"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 if test $ac_prog_rejected = yes; then
4782 # We found a bogon in the path, so make sure we never use it.
4783 set dummy $ac_cv_prog_CC
4784 shift
4785 if test $# != 0; then
4786 # We chose a different compiler from the bogus one.
4787 # However, it has the same basename, so the bogon will be chosen
4788 # first if we set CC to just the basename; use the full file name.
4789 shift
4790 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4791 fi
4792 fi
4793 fi
4794 fi
4795 CC=$ac_cv_prog_CC
4796 if test -n "$CC"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4798 $as_echo "$CC" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804
4805 fi
4806 if test -z "$CC"; then
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in cl.exe
4809 do
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_prog_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CC"; then
4818 ac_cv_prog_CC="$CC" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835 fi
4836 fi
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 fi
4845
4846
4847 test -n "$CC" && break
4848 done
4849 fi
4850 if test -z "$CC"; then
4851 ac_ct_CC=$CC
4852 for ac_prog in cl.exe
4853 do
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CC"; then
4862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_CC="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4882 if test -n "$ac_ct_CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884 $as_echo "$ac_ct_CC" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 test -n "$ac_ct_CC" && break
4892 done
4893
4894 if test "x$ac_ct_CC" = x; then
4895 CC=""
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CC=$ac_ct_CC
4904 fi
4905 fi
4906
4907 fi
4908
4909
4910 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4912 as_fn_error "no acceptable C compiler found in \$PATH
4913 See \`config.log' for more details." "$LINENO" 5; }
4914
4915 # Provide some information about the compiler.
4916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4917 set X $ac_compile
4918 ac_compiler=$2
4919 for ac_option in --version -v -V -qversion; do
4920 { { ac_try="$ac_compiler $ac_option >&5"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4926 $as_echo "$ac_try_echo"; } >&5
4927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4928 ac_status=$?
4929 if test -s conftest.err; then
4930 sed '10a\
4931 ... rest of stderr output deleted ...
4932 10q' conftest.err >conftest.er1
4933 cat conftest.er1 >&5
4934 fi
4935 rm -f conftest.er1 conftest.err
4936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937 test $ac_status = 0; }
4938 done
4939
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942
4943 int
4944 main ()
4945 {
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 ac_clean_files_save=$ac_clean_files
4952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4953 # Try to create an executable without -o first, disregard a.out.
4954 # It will help us diagnose broken compilers, and finding out an intuition
4955 # of exeext.
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4957 $as_echo_n "checking whether the C compiler works... " >&6; }
4958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4959
4960 # The possible output files:
4961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4962
4963 ac_rmfiles=
4964 for ac_file in $ac_files
4965 do
4966 case $ac_file in
4967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4968 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4969 esac
4970 done
4971 rm -f $ac_rmfiles
4972
4973 if { { ac_try="$ac_link_default"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_link_default") 2>&5
4981 ac_status=$?
4982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4983 test $ac_status = 0; }; then :
4984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4986 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4987 # so that the user can short-circuit this test for compilers unknown to
4988 # Autoconf.
4989 for ac_file in $ac_files ''
4990 do
4991 test -f "$ac_file" || continue
4992 case $ac_file in
4993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4994 ;;
4995 [ab].out )
4996 # We found the default executable, but exeext='' is most
4997 # certainly right.
4998 break;;
4999 *.* )
5000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5001 then :; else
5002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5003 fi
5004 # We set ac_cv_exeext here because the later test for it is not
5005 # safe: cross compilers may not add the suffix if given an `-o'
5006 # argument, so we may need to know it at that point already.
5007 # Even if this section looks crufty: it has the advantage of
5008 # actually working.
5009 break;;
5010 * )
5011 break;;
5012 esac
5013 done
5014 test "$ac_cv_exeext" = no && ac_cv_exeext=
5015
5016 else
5017 ac_file=''
5018 fi
5019 if test -z "$ac_file"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 $as_echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5027 { as_fn_set_status 77
5028 as_fn_error "C compiler cannot create executables
5029 See \`config.log' for more details." "$LINENO" 5; }; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5032 $as_echo "yes" >&6; }
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5035 $as_echo_n "checking for C compiler default output file name... " >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5037 $as_echo "$ac_file" >&6; }
5038 ac_exeext=$ac_cv_exeext
5039
5040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5041 ac_clean_files=$ac_clean_files_save
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5043 $as_echo_n "checking for suffix of executables... " >&6; }
5044 if { { ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5050 $as_echo "$ac_try_echo"; } >&5
5051 (eval "$ac_link") 2>&5
5052 ac_status=$?
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }; then :
5055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5057 # work properly (i.e., refer to `conftest.exe'), while it won't with
5058 # `rm'.
5059 for ac_file in conftest.exe conftest conftest.*; do
5060 test -f "$ac_file" || continue
5061 case $ac_file in
5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064 break;;
5065 * ) break;;
5066 esac
5067 done
5068 else
5069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5071 as_fn_error "cannot compute suffix of executables: cannot compile and link
5072 See \`config.log' for more details." "$LINENO" 5; }
5073 fi
5074 rm -f conftest conftest$ac_cv_exeext
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076 $as_echo "$ac_cv_exeext" >&6; }
5077
5078 rm -f conftest.$ac_ext
5079 EXEEXT=$ac_cv_exeext
5080 ac_exeext=$EXEEXT
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <stdio.h>
5084 int
5085 main ()
5086 {
5087 FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 ac_clean_files="$ac_clean_files conftest.out"
5095 # Check that the compiler produces executables we can run. If not, either
5096 # the compiler is broken, or we cross compile.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098 $as_echo_n "checking whether we are cross compiling... " >&6; }
5099 if test "$cross_compiling" != yes; then
5100 { { ac_try="$ac_link"
5101 case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104 esac
5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106 $as_echo "$ac_try_echo"; } >&5
5107 (eval "$ac_link") 2>&5
5108 ac_status=$?
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }
5111 if { ac_try='./conftest$ac_cv_exeext'
5112 { { case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115 esac
5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117 $as_echo "$ac_try_echo"; } >&5
5118 (eval "$ac_try") 2>&5
5119 ac_status=$?
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; }; then
5122 cross_compiling=no
5123 else
5124 if test "$cross_compiling" = maybe; then
5125 cross_compiling=yes
5126 else
5127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5129 as_fn_error "cannot run C compiled programs.
5130 If you meant to cross compile, use \`--host'.
5131 See \`config.log' for more details." "$LINENO" 5; }
5132 fi
5133 fi
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136 $as_echo "$cross_compiling" >&6; }
5137
5138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139 ac_clean_files=$ac_clean_files_save
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141 $as_echo_n "checking for suffix of object files... " >&6; }
5142 if test "${ac_cv_objext+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147
5148 int
5149 main ()
5150 {
5151
5152 ;
5153 return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.o conftest.obj
5157 if { { ac_try="$ac_compile"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_compile") 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175 done
5176 else
5177 $as_echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error "cannot compute suffix of object files: cannot compile
5183 See \`config.log' for more details." "$LINENO" 5; }
5184 fi
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 $as_echo "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5190 ac_objext=$OBJEXT
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202 #ifndef __GNUC__
5203 choke me
5204 #endif
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_compiler_gnu=yes
5212 else
5213 ac_compiler_gnu=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5217
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5222 GCC=yes
5223 else
5224 GCC=
5225 fi
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cc_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_save_c_werror_flag=$ac_c_werror_flag
5234 ac_c_werror_flag=yes
5235 ac_cv_prog_cc_g=no
5236 CFLAGS="-g"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_prog_cc_g=yes
5250 else
5251 CFLAGS=""
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254
5255 int
5256 main ()
5257 {
5258
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264
5265 else
5266 ac_c_werror_flag=$ac_save_c_werror_flag
5267 CFLAGS="-g"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270
5271 int
5272 main ()
5273 {
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_g=yes
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_c_werror_flag=$ac_save_c_werror_flag
5288 fi
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5290 $as_echo "$ac_cv_prog_cc_g" >&6; }
5291 if test "$ac_test_CFLAGS" = set; then
5292 CFLAGS=$ac_save_CFLAGS
5293 elif test $ac_cv_prog_cc_g = yes; then
5294 if test "$GCC" = yes; then
5295 CFLAGS="-g -O2"
5296 else
5297 CFLAGS="-g"
5298 fi
5299 else
5300 if test "$GCC" = yes; then
5301 CFLAGS="-O2"
5302 else
5303 CFLAGS=
5304 fi
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 ac_cv_prog_cc_c89=no
5312 ac_save_CC=$CC
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <stdarg.h>
5316 #include <stdio.h>
5317 #include <sys/types.h>
5318 #include <sys/stat.h>
5319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5320 struct buf { int x; };
5321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5322 static char *e (p, i)
5323 char **p;
5324 int i;
5325 {
5326 return p[i];
5327 }
5328 static char *f (char * (*g) (char **, int), char **p, ...)
5329 {
5330 char *s;
5331 va_list v;
5332 va_start (v,p);
5333 s = g (p, va_arg (v,int));
5334 va_end (v);
5335 return s;
5336 }
5337
5338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5339 function prototypes and stuff, but not '\xHH' hex character constants.
5340 These don't provoke an error unfortunately, instead are silently treated
5341 as 'x'. The following induces an error, until -std is added to get
5342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5343 array size at least. It's necessary to write '\x00'==0 to get something
5344 that's true only with -std. */
5345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5346
5347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5348 inside strings and character constants. */
5349 #define FOO(x) 'x'
5350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5351
5352 int test (int i, double x);
5353 struct s1 {int (*f) (int a);};
5354 struct s2 {int (*f) (double a);};
5355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5356 int argc;
5357 char **argv;
5358 int
5359 main ()
5360 {
5361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5368 do
5369 CC="$ac_save_CC $ac_arg"
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ac_cv_prog_cc_c89=$ac_arg
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext
5374 test "x$ac_cv_prog_cc_c89" != "xno" && break
5375 done
5376 rm -f conftest.$ac_ext
5377 CC=$ac_save_CC
5378
5379 fi
5380 # AC_CACHE_VAL
5381 case "x$ac_cv_prog_cc_c89" in
5382 x)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5384 $as_echo "none needed" >&6; } ;;
5385 xno)
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5387 $as_echo "unsupported" >&6; } ;;
5388 *)
5389 CC="$CC $ac_cv_prog_cc_c89"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5392 esac
5393 if test "x$ac_cv_prog_cc_c89" != xno; then :
5394
5395 fi
5396
5397 ac_ext=c
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5402 DEPDIR="${am__leading_dot}deps"
5403
5404 ac_config_commands="$ac_config_commands depfiles"
5405
5406
5407 am_make=${MAKE-make}
5408 cat > confinc << 'END'
5409 am__doit:
5410 @echo this is the am__doit target
5411 .PHONY: am__doit
5412 END
5413 # If we don't find an include directive, just comment out the code.
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5416 am__include="#"
5417 am__quote=
5418 _am_result=none
5419 # First try GNU make style include.
5420 echo "include confinc" > confmf
5421 # Ignore all kinds of additional output from `make'.
5422 case `$am_make -s -f confmf 2> /dev/null` in #(
5423 *the\ am__doit\ target*)
5424 am__include=include
5425 am__quote=
5426 _am_result=GNU
5427 ;;
5428 esac
5429 # Now try BSD make style include.
5430 if test "$am__include" = "#"; then
5431 echo '.include "confinc"' > confmf
5432 case `$am_make -s -f confmf 2> /dev/null` in #(
5433 *the\ am__doit\ target*)
5434 am__include=.include
5435 am__quote="\""
5436 _am_result=BSD
5437 ;;
5438 esac
5439 fi
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5443 $as_echo "$_am_result" >&6; }
5444 rm -f confinc confmf
5445
5446 # Check whether --enable-dependency-tracking was given.
5447 if test "${enable_dependency_tracking+set}" = set; then :
5448 enableval=$enable_dependency_tracking;
5449 fi
5450
5451 if test "x$enable_dependency_tracking" != xno; then
5452 am_depcomp="$ac_aux_dir/depcomp"
5453 AMDEPBACKSLASH='\'
5454 fi
5455 if test "x$enable_dependency_tracking" != xno; then
5456 AMDEP_TRUE=
5457 AMDEP_FALSE='#'
5458 else
5459 AMDEP_TRUE='#'
5460 AMDEP_FALSE=
5461 fi
5462
5463
5464
5465 depcc="$CC" am_compiler_list=
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5468 $as_echo_n "checking dependency style of $depcc... " >&6; }
5469 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5473 # We make a subdir and do the tests there. Otherwise we can end up
5474 # making bogus files that we don't know about and never remove. For
5475 # instance it was reported that on HP-UX the gcc test will end up
5476 # making a dummy file named `D' -- because `-MD' means `put the output
5477 # in D'.
5478 mkdir conftest.dir
5479 # Copy depcomp to subdir because otherwise we won't find it if we're
5480 # using a relative directory.
5481 cp "$am_depcomp" conftest.dir
5482 cd conftest.dir
5483 # We will build objects and dependencies in a subdirectory because
5484 # it helps to detect inapplicable dependency modes. For instance
5485 # both Tru64's cc and ICC support -MD to output dependencies as a
5486 # side effect of compilation, but ICC will put the dependencies in
5487 # the current directory while Tru64 will put them in the object
5488 # directory.
5489 mkdir sub
5490
5491 am_cv_CC_dependencies_compiler_type=none
5492 if test "$am_compiler_list" = ""; then
5493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5494 fi
5495 am__universal=false
5496 case " $depcc " in #(
5497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5498 esac
5499
5500 for depmode in $am_compiler_list; do
5501 # Setup a source with many dependencies, because some compilers
5502 # like to wrap large dependency lists on column 80 (with \), and
5503 # we should not choose a depcomp mode which is confused by this.
5504 #
5505 # We need to recreate these files for each test, as the compiler may
5506 # overwrite some of them when testing with obscure command lines.
5507 # This happens at least with the AIX C compiler.
5508 : > sub/conftest.c
5509 for i in 1 2 3 4 5 6; do
5510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5512 # Solaris 8's {/usr,}/bin/sh.
5513 touch sub/conftst$i.h
5514 done
5515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5516
5517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5518 # mode. It turns out that the SunPro C++ compiler does not properly
5519 # handle `-M -o', and we need to detect this. Also, some Intel
5520 # versions had trouble with output in subdirs
5521 am__obj=sub/conftest.${OBJEXT-o}
5522 am__minus_obj="-o $am__obj"
5523 case $depmode in
5524 gcc)
5525 # This depmode causes a compiler race in universal mode.
5526 test "$am__universal" = false || continue
5527 ;;
5528 nosideeffect)
5529 # after this tag, mechanisms are not by side-effect, so they'll
5530 # only be used when explicitly requested
5531 if test "x$enable_dependency_tracking" = xyes; then
5532 continue
5533 else
5534 break
5535 fi
5536 ;;
5537 msvisualcpp | msvcmsys)
5538 # This compiler won't grok `-c -o', but also, the minuso test has
5539 # not run yet. These depmodes are late enough in the game, and
5540 # so weak that their functioning should not be impacted.
5541 am__obj=conftest.${OBJEXT-o}
5542 am__minus_obj=
5543 ;;
5544 none) break ;;
5545 esac
5546 if depmode=$depmode \
5547 source=sub/conftest.c object=$am__obj \
5548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5550 >/dev/null 2>conftest.err &&
5551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5555 # icc doesn't choke on unknown options, it will just issue warnings
5556 # or remarks (even with -Werror). So we grep stderr for any message
5557 # that says an option was ignored or not supported.
5558 # When given -MP, icc 7.0 and 7.1 complain thusly:
5559 # icc: Command line warning: ignoring option '-M'; no argument required
5560 # The diagnosis changed in icc 8.0:
5561 # icc: Command line remark: option '-MP' not supported
5562 if (grep 'ignoring option' conftest.err ||
5563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5564 am_cv_CC_dependencies_compiler_type=$depmode
5565 break
5566 fi
5567 fi
5568 done
5569
5570 cd ..
5571 rm -rf conftest.dir
5572 else
5573 am_cv_CC_dependencies_compiler_type=none
5574 fi
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5580
5581 if
5582 test "x$enable_dependency_tracking" != xno \
5583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5584 am__fastdepCC_TRUE=
5585 am__fastdepCC_FALSE='#'
5586 else
5587 am__fastdepCC_TRUE='#'
5588 am__fastdepCC_FALSE=
5589 fi
5590
5591
5592 if test "x$CC" != xcc; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5594 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5597 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5598 fi
5599 set dummy $CC; ac_cc=`$as_echo "$2" |
5600 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5601 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5606
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 # Make sure it works both with $CC and with simple cc.
5616 # We do the test twice because some compilers refuse to overwrite an
5617 # existing .o file with -o, though they will create one.
5618 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5619 rm -f conftest2.*
5620 if { { case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5625 $as_echo "$ac_try_echo"; } >&5
5626 (eval "$ac_try") 2>&5
5627 ac_status=$?
5628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; } &&
5630 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633 esac
5634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5635 $as_echo "$ac_try_echo"; } >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5639 test $ac_status = 0; };
5640 then
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5642 if test "x$CC" != xcc; then
5643 # Test first that cc exists at all.
5644 if { ac_try='cc -c conftest.$ac_ext >&5'
5645 { { case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5656 rm -f conftest2.*
5657 if { { case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5662 $as_echo "$ac_try_echo"; } >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; } &&
5667 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 $as_echo "$ac_try_echo"; } >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; };
5677 then
5678 # cc works too.
5679 :
5680 else
5681 # cc exists but doesn't like -o.
5682 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5683 fi
5684 fi
5685 fi
5686 else
5687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5688 fi
5689 rm -f core conftest*
5690
5691 fi
5692 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5694 $as_echo "yes" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698
5699 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5700
5701 fi
5702
5703 # FIXME: we rely on the cache variable name because
5704 # there is no other way.
5705 set dummy $CC
5706 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5707 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5708 if test "$am_t" != yes; then
5709 # Losing compiler, so override with the script.
5710 # FIXME: It is wrong to rewrite CC.
5711 # But if we don't then we get into trouble of one sort or another.
5712 # A longer-term fix would be to have automake use am__CC in this case,
5713 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5714 CC="$am_aux_dir/compile $CC"
5715 fi
5716
5717
5718
5719 # Initialize gnulib right after verifying that the C compiler works.
5720
5721 ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5728 # On Suns, sometimes $CPP names a directory.
5729 if test -n "$CPP" && test -d "$CPP"; then
5730 CPP=
5731 fi
5732 if test -z "$CPP"; then
5733 if test "${ac_cv_prog_CPP+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 # Double quotes because CPP needs to be expanded
5737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5738 do
5739 ac_preproc_ok=false
5740 for ac_c_preproc_warn_flag in '' yes
5741 do
5742 # Use a header file that comes with gcc, so configuring glibc
5743 # with a fresh cross-compiler works.
5744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745 # <limits.h> exists even on freestanding compilers.
5746 # On the NeXT, cc -E runs the code through the compiler's parser,
5747 # not just through cpp. "Syntax error" is here to catch this case.
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #ifdef __STDC__
5751 # include <limits.h>
5752 #else
5753 # include <assert.h>
5754 #endif
5755 Syntax error
5756 _ACEOF
5757 if ac_fn_c_try_cpp "$LINENO"; then :
5758
5759 else
5760 # Broken: fails on valid input.
5761 continue
5762 fi
5763 rm -f conftest.err conftest.$ac_ext
5764
5765 # OK, works on sane cases. Now check whether nonexistent headers
5766 # can be detected and how.
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <ac_nonexistent.h>
5770 _ACEOF
5771 if ac_fn_c_try_cpp "$LINENO"; then :
5772 # Broken: success on invalid input.
5773 continue
5774 else
5775 # Passes both tests.
5776 ac_preproc_ok=:
5777 break
5778 fi
5779 rm -f conftest.err conftest.$ac_ext
5780
5781 done
5782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5783 rm -f conftest.err conftest.$ac_ext
5784 if $ac_preproc_ok; then :
5785 break
5786 fi
5787
5788 done
5789 ac_cv_prog_CPP=$CPP
5790
5791 fi
5792 CPP=$ac_cv_prog_CPP
5793 else
5794 ac_cv_prog_CPP=$CPP
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5797 $as_echo "$CPP" >&6; }
5798 ac_preproc_ok=false
5799 for ac_c_preproc_warn_flag in '' yes
5800 do
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #ifdef __STDC__
5810 # include <limits.h>
5811 #else
5812 # include <assert.h>
5813 #endif
5814 Syntax error
5815 _ACEOF
5816 if ac_fn_c_try_cpp "$LINENO"; then :
5817
5818 else
5819 # Broken: fails on valid input.
5820 continue
5821 fi
5822 rm -f conftest.err conftest.$ac_ext
5823
5824 # OK, works on sane cases. Now check whether nonexistent headers
5825 # can be detected and how.
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <ac_nonexistent.h>
5829 _ACEOF
5830 if ac_fn_c_try_cpp "$LINENO"; then :
5831 # Broken: success on invalid input.
5832 continue
5833 else
5834 # Passes both tests.
5835 ac_preproc_ok=:
5836 break
5837 fi
5838 rm -f conftest.err conftest.$ac_ext
5839
5840 done
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.$ac_ext
5843 if $ac_preproc_ok; then :
5844
5845 else
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." "$LINENO" 5; }
5850 fi
5851
5852 ac_ext=c
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5861 if test "${ac_cv_path_GREP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -z "$GREP"; then
5865 ac_path_GREP_found=false
5866 # Loop through the user's path and test for each of PROGNAME-LIST
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5869 do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_prog in grep ggrep; do
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5876 # Check for GNU ac_path_GREP and select it if it is found.
5877 # Check for GNU $ac_path_GREP
5878 case `"$ac_path_GREP" --version 2>&1` in
5879 *GNU*)
5880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5881 *)
5882 ac_count=0
5883 $as_echo_n 0123456789 >"conftest.in"
5884 while :
5885 do
5886 cat "conftest.in" "conftest.in" >"conftest.tmp"
5887 mv "conftest.tmp" "conftest.in"
5888 cp "conftest.in" "conftest.nl"
5889 $as_echo 'GREP' >> "conftest.nl"
5890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5892 as_fn_arith $ac_count + 1 && ac_count=$as_val
5893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5894 # Best one so far, save it but keep looking for a better one
5895 ac_cv_path_GREP="$ac_path_GREP"
5896 ac_path_GREP_max=$ac_count
5897 fi
5898 # 10*(2^10) chars as input seems more than enough
5899 test $ac_count -gt 10 && break
5900 done
5901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5902 esac
5903
5904 $ac_path_GREP_found && break 3
5905 done
5906 done
5907 done
5908 IFS=$as_save_IFS
5909 if test -z "$ac_cv_path_GREP"; then
5910 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5911 fi
5912 else
5913 ac_cv_path_GREP=$GREP
5914 fi
5915
5916 fi
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5918 $as_echo "$ac_cv_path_GREP" >&6; }
5919 GREP="$ac_cv_path_GREP"
5920
5921
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5923 $as_echo_n "checking for egrep... " >&6; }
5924 if test "${ac_cv_path_EGREP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5928 then ac_cv_path_EGREP="$GREP -E"
5929 else
5930 if test -z "$EGREP"; then
5931 ac_path_EGREP_found=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_prog in egrep; do
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5942 # Check for GNU ac_path_EGREP and select it if it is found.
5943 # Check for GNU $ac_path_EGREP
5944 case `"$ac_path_EGREP" --version 2>&1` in
5945 *GNU*)
5946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5947 *)
5948 ac_count=0
5949 $as_echo_n 0123456789 >"conftest.in"
5950 while :
5951 do
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'EGREP' >> "conftest.nl"
5956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958 as_fn_arith $ac_count + 1 && ac_count=$as_val
5959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_EGREP="$ac_path_EGREP"
5962 ac_path_EGREP_max=$ac_count
5963 fi
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5966 done
5967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968 esac
5969
5970 $ac_path_EGREP_found && break 3
5971 done
5972 done
5973 done
5974 IFS=$as_save_IFS
5975 if test -z "$ac_cv_path_EGREP"; then
5976 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5977 fi
5978 else
5979 ac_cv_path_EGREP=$EGREP
5980 fi
5981
5982 fi
5983 fi
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5985 $as_echo "$ac_cv_path_EGREP" >&6; }
5986 EGREP="$ac_cv_path_EGREP"
5987
5988
5989
5990
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5992 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5993 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999
6000 #ifdef __ACK__
6001 Amsterdam
6002 #endif
6003
6004 _ACEOF
6005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6006 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6007 gl_cv_c_amsterdam_compiler=yes
6008 else
6009 gl_cv_c_amsterdam_compiler=no
6010 fi
6011 rm -f conftest*
6012
6013
6014 fi
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6016 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6017 if test -z "$AR"; then
6018 if test $gl_cv_c_amsterdam_compiler = yes; then
6019 AR='cc -c.a'
6020 if test -z "$ARFLAGS"; then
6021 ARFLAGS='-o'
6022 fi
6023 else
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ar; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_AR+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$AR"; then
6033 ac_cv_prog_AR="$AR" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_AR="${ac_tool_prefix}ar"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 AR=$ac_cv_prog_AR
6053 if test -n "$AR"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6055 $as_echo "$AR" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_AR"; then
6064 ac_ct_AR=$AR
6065 # Extract the first word of "ar", so it can be a program name with args.
6066 set dummy ar; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_AR"; then
6073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_AR="ar"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6093 if test -n "$ac_ct_AR"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6095 $as_echo "$ac_ct_AR" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101 if test "x$ac_ct_AR" = x; then
6102 AR="ar"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 AR=$ac_ct_AR
6111 fi
6112 else
6113 AR="$ac_cv_prog_AR"
6114 fi
6115
6116 if test -z "$ARFLAGS"; then
6117 ARFLAGS='cru'
6118 fi
6119 fi
6120 else
6121 if test -z "$ARFLAGS"; then
6122 ARFLAGS='cru'
6123 fi
6124 fi
6125
6126
6127 if test -z "$RANLIB"; then
6128 if test $gl_cv_c_amsterdam_compiler = yes; then
6129 RANLIB=':'
6130 else
6131 if test -n "$ac_tool_prefix"; then
6132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$RANLIB"; then
6140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 RANLIB=$ac_cv_prog_RANLIB
6160 if test -n "$RANLIB"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6162 $as_echo "$RANLIB" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6166 fi
6167
6168
6169 fi
6170 if test -z "$ac_cv_prog_RANLIB"; then
6171 ac_ct_RANLIB=$RANLIB
6172 # Extract the first word of "ranlib", so it can be a program name with args.
6173 set dummy ranlib; ac_word=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -n "$ac_ct_RANLIB"; then
6180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_ac_ct_RANLIB="ranlib"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6200 if test -n "$ac_ct_RANLIB"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6202 $as_echo "$ac_ct_RANLIB" >&6; }
6203 else
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6206 fi
6207
6208 if test "x$ac_ct_RANLIB" = x; then
6209 RANLIB=":"
6210 else
6211 case $cross_compiling:$ac_tool_warned in
6212 yes:)
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215 ac_tool_warned=yes ;;
6216 esac
6217 RANLIB=$ac_ct_RANLIB
6218 fi
6219 else
6220 RANLIB="$ac_cv_prog_RANLIB"
6221 fi
6222
6223 fi
6224 fi
6225
6226
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6228 $as_echo_n "checking for ANSI C header files... " >&6; }
6229 if test "${ac_cv_header_stdc+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <stdlib.h>
6235 #include <stdarg.h>
6236 #include <string.h>
6237 #include <float.h>
6238
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"; then :
6248 ac_cv_header_stdc=yes
6249 else
6250 ac_cv_header_stdc=no
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253
6254 if test $ac_cv_header_stdc = yes; then
6255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 #include <string.h>
6259
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then :
6263
6264 else
6265 ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest*
6268
6269 fi
6270
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <stdlib.h>
6276
6277 _ACEOF
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "free" >/dev/null 2>&1; then :
6280
6281 else
6282 ac_cv_header_stdc=no
6283 fi
6284 rm -f conftest*
6285
6286 fi
6287
6288 if test $ac_cv_header_stdc = yes; then
6289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6290 if test "$cross_compiling" = yes; then :
6291 :
6292 else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <ctype.h>
6296 #include <stdlib.h>
6297 #if ((' ' & 0x0FF) == 0x020)
6298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6300 #else
6301 # define ISLOWER(c) \
6302 (('a' <= (c) && (c) <= 'i') \
6303 || ('j' <= (c) && (c) <= 'r') \
6304 || ('s' <= (c) && (c) <= 'z'))
6305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6306 #endif
6307
6308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6309 int
6310 main ()
6311 {
6312 int i;
6313 for (i = 0; i < 256; i++)
6314 if (XOR (islower (i), ISLOWER (i))
6315 || toupper (i) != TOUPPER (i))
6316 return 2;
6317 return 0;
6318 }
6319 _ACEOF
6320 if ac_fn_c_try_run "$LINENO"; then :
6321
6322 else
6323 ac_cv_header_stdc=no
6324 fi
6325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6326 conftest.$ac_objext conftest.beam conftest.$ac_ext
6327 fi
6328
6329 fi
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6332 $as_echo "$ac_cv_header_stdc" >&6; }
6333 if test $ac_cv_header_stdc = yes; then
6334
6335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6336
6337 fi
6338
6339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6341 inttypes.h stdint.h unistd.h
6342 do :
6343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6345 "
6346 eval as_val=\$$as_ac_Header
6347 if test "x$as_val" = x""yes; then :
6348 cat >>confdefs.h <<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6351
6352 fi
6353
6354 done
6355
6356
6357
6358
6359
6360 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6361 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6362 MINIX=yes
6363 else
6364 MINIX=
6365 fi
6366
6367
6368 if test "$MINIX" = yes; then
6369
6370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6371
6372
6373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6374
6375
6376 $as_echo "#define _MINIX 1" >>confdefs.h
6377
6378 fi
6379
6380 case "$host_os" in
6381 hpux*)
6382
6383 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6384
6385 ;;
6386 esac
6387
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396
6397 # define __EXTENSIONS__ 1
6398 $ac_includes_default
6399 int
6400 main ()
6401 {
6402
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 ac_cv_safe_to_define___extensions__=yes
6409 else
6410 ac_cv_safe_to_define___extensions__=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6416 test $ac_cv_safe_to_define___extensions__ = yes &&
6417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6418
6419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6420
6421 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6422
6423 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6424
6425 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6426
6427 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6428
6429
6430
6431
6432
6433
6434
6435
6436 # Check whether --enable-largefile was given.
6437 if test "${enable_largefile+set}" = set; then :
6438 enableval=$enable_largefile;
6439 fi
6440
6441 if test "$enable_largefile" != no; then
6442
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6444 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6445 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 ac_cv_sys_largefile_CC=no
6449 if test "$GCC" != yes; then
6450 ac_save_CC=$CC
6451 while :; do
6452 # IRIX 6.2 and later do not support large files by default,
6453 # so use the C compiler's -n32 option if that helps.
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <sys/types.h>
6457 /* Check that off_t can represent 2**63 - 1 correctly.
6458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6459 since some C++ compilers masquerading as C compilers
6460 incorrectly reject 9223372036854775807. */
6461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6463 && LARGE_OFF_T % 2147483647 == 1)
6464 ? 1 : -1];
6465 int
6466 main ()
6467 {
6468
6469 ;
6470 return 0;
6471 }
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 break
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext
6477 CC="$CC -n32"
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 ac_cv_sys_largefile_CC=' -n32'; break
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext
6482 break
6483 done
6484 CC=$ac_save_CC
6485 rm -f conftest.$ac_ext
6486 fi
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6489 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6490 if test "$ac_cv_sys_largefile_CC" != no; then
6491 CC=$CC$ac_cv_sys_largefile_CC
6492 fi
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6495 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6496 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 while :; do
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 /* Check that off_t can represent 2**63 - 1 correctly.
6504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6505 since some C++ compilers masquerading as C compilers
6506 incorrectly reject 9223372036854775807. */
6507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6509 && LARGE_OFF_T % 2147483647 == 1)
6510 ? 1 : -1];
6511 int
6512 main ()
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 ac_cv_sys_file_offset_bits=no; break
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #define _FILE_OFFSET_BITS 64
6526 #include <sys/types.h>
6527 /* Check that off_t can represent 2**63 - 1 correctly.
6528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6529 since some C++ compilers masquerading as C compilers
6530 incorrectly reject 9223372036854775807. */
6531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6533 && LARGE_OFF_T % 2147483647 == 1)
6534 ? 1 : -1];
6535 int
6536 main ()
6537 {
6538
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 ac_cv_sys_file_offset_bits=64; break
6545 fi
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cv_sys_file_offset_bits=unknown
6548 break
6549 done
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6552 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6553 case $ac_cv_sys_file_offset_bits in #(
6554 no | unknown) ;;
6555 *)
6556 cat >>confdefs.h <<_ACEOF
6557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6558 _ACEOF
6559 ;;
6560 esac
6561 rm -rf conftest*
6562 if test $ac_cv_sys_file_offset_bits = unknown; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6564 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6565 if test "${ac_cv_sys_large_files+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 while :; do
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 /* Check that off_t can represent 2**63 - 1 correctly.
6573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6574 since some C++ compilers masquerading as C compilers
6575 incorrectly reject 9223372036854775807. */
6576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6578 && LARGE_OFF_T % 2147483647 == 1)
6579 ? 1 : -1];
6580 int
6581 main ()
6582 {
6583
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 ac_cv_sys_large_files=no; break
6590 fi
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 #define _LARGE_FILES 1
6595 #include <sys/types.h>
6596 /* Check that off_t can represent 2**63 - 1 correctly.
6597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6598 since some C++ compilers masquerading as C compilers
6599 incorrectly reject 9223372036854775807. */
6600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6602 && LARGE_OFF_T % 2147483647 == 1)
6603 ? 1 : -1];
6604 int
6605 main ()
6606 {
6607
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"; then :
6613 ac_cv_sys_large_files=1; break
6614 fi
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 ac_cv_sys_large_files=unknown
6617 break
6618 done
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6621 $as_echo "$ac_cv_sys_large_files" >&6; }
6622 case $ac_cv_sys_large_files in #(
6623 no | unknown) ;;
6624 *)
6625 cat >>confdefs.h <<_ACEOF
6626 #define _LARGE_FILES $ac_cv_sys_large_files
6627 _ACEOF
6628 ;;
6629 esac
6630 rm -rf conftest*
6631 fi
6632
6633
6634 fi
6635
6636 case $ac_cv_prog_cc_stdc in #(
6637 no) :
6638 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6639 *) :
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6641 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6642 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 ac_cv_prog_cc_c99=no
6646 ac_save_CC=$CC
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 #include <stdarg.h>
6650 #include <stdbool.h>
6651 #include <stdlib.h>
6652 #include <wchar.h>
6653 #include <stdio.h>
6654
6655 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6656 #define debug(...) fprintf (stderr, __VA_ARGS__)
6657 #define showlist(...) puts (#__VA_ARGS__)
6658 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6659 static void
6660 test_varargs_macros (void)
6661 {
6662 int x = 1234;
6663 int y = 5678;
6664 debug ("Flag");
6665 debug ("X = %d\n", x);
6666 showlist (The first, second, and third items.);
6667 report (x>y, "x is %d but y is %d", x, y);
6668 }
6669
6670 // Check long long types.
6671 #define BIG64 18446744073709551615ull
6672 #define BIG32 4294967295ul
6673 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6674 #if !BIG_OK
6675 your preprocessor is broken;
6676 #endif
6677 #if BIG_OK
6678 #else
6679 your preprocessor is broken;
6680 #endif
6681 static long long int bignum = -9223372036854775807LL;
6682 static unsigned long long int ubignum = BIG64;
6683
6684 struct incomplete_array
6685 {
6686 int datasize;
6687 double data[];
6688 };
6689
6690 struct named_init {
6691 int number;
6692 const wchar_t *name;
6693 double average;
6694 };
6695
6696 typedef const char *ccp;
6697
6698 static inline int
6699 test_restrict (ccp restrict text)
6700 {
6701 // See if C++-style comments work.
6702 // Iterate through items via the restricted pointer.
6703 // Also check for declarations in for loops.
6704 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6705 continue;
6706 return 0;
6707 }
6708
6709 // Check varargs and va_copy.
6710 static void
6711 test_varargs (const char *format, ...)
6712 {
6713 va_list args;
6714 va_start (args, format);
6715 va_list args_copy;
6716 va_copy (args_copy, args);
6717
6718 const char *str;
6719 int number;
6720 float fnumber;
6721
6722 while (*format)
6723 {
6724 switch (*format++)
6725 {
6726 case 's': // string
6727 str = va_arg (args_copy, const char *);
6728 break;
6729 case 'd': // int
6730 number = va_arg (args_copy, int);
6731 break;
6732 case 'f': // float
6733 fnumber = va_arg (args_copy, double);
6734 break;
6735 default:
6736 break;
6737 }
6738 }
6739 va_end (args_copy);
6740 va_end (args);
6741 }
6742
6743 int
6744 main ()
6745 {
6746
6747 // Check bool.
6748 _Bool success = false;
6749
6750 // Check restrict.
6751 if (test_restrict ("String literal") == 0)
6752 success = true;
6753 char *restrict newvar = "Another string";
6754
6755 // Check varargs.
6756 test_varargs ("s, d' f .", "string", 65, 34.234);
6757 test_varargs_macros ();
6758
6759 // Check flexible array members.
6760 struct incomplete_array *ia =
6761 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6762 ia->datasize = 10;
6763 for (int i = 0; i < ia->datasize; ++i)
6764 ia->data[i] = i * 1.234;
6765
6766 // Check named initializers.
6767 struct named_init ni = {
6768 .number = 34,
6769 .name = L"Test wide string",
6770 .average = 543.34343,
6771 };
6772
6773 ni.number = 58;
6774
6775 int dynamic_array[ni.number];
6776 dynamic_array[ni.number - 1] = 543;
6777
6778 // work around unused variable warnings
6779 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6780 || dynamic_array[ni.number - 1] != 543);
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6787 do
6788 CC="$ac_save_CC $ac_arg"
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 ac_cv_prog_cc_c99=$ac_arg
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext
6793 test "x$ac_cv_prog_cc_c99" != "xno" && break
6794 done
6795 rm -f conftest.$ac_ext
6796 CC=$ac_save_CC
6797
6798 fi
6799 # AC_CACHE_VAL
6800 case "x$ac_cv_prog_cc_c99" in
6801 x)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6803 $as_echo "none needed" >&6; } ;;
6804 xno)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6806 $as_echo "unsupported" >&6; } ;;
6807 *)
6808 CC="$CC $ac_cv_prog_cc_c99"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6810 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6811 esac
6812 if test "x$ac_cv_prog_cc_c99" != xno; then :
6813 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6814 else
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6817 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 ac_cv_prog_cc_c89=no
6821 ac_save_CC=$CC
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 #include <stdarg.h>
6825 #include <stdio.h>
6826 #include <sys/types.h>
6827 #include <sys/stat.h>
6828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6829 struct buf { int x; };
6830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6831 static char *e (p, i)
6832 char **p;
6833 int i;
6834 {
6835 return p[i];
6836 }
6837 static char *f (char * (*g) (char **, int), char **p, ...)
6838 {
6839 char *s;
6840 va_list v;
6841 va_start (v,p);
6842 s = g (p, va_arg (v,int));
6843 va_end (v);
6844 return s;
6845 }
6846
6847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6848 function prototypes and stuff, but not '\xHH' hex character constants.
6849 These don't provoke an error unfortunately, instead are silently treated
6850 as 'x'. The following induces an error, until -std is added to get
6851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6852 array size at least. It's necessary to write '\x00'==0 to get something
6853 that's true only with -std. */
6854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6855
6856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6857 inside strings and character constants. */
6858 #define FOO(x) 'x'
6859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6860
6861 int test (int i, double x);
6862 struct s1 {int (*f) (int a);};
6863 struct s2 {int (*f) (double a);};
6864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6865 int argc;
6866 char **argv;
6867 int
6868 main ()
6869 {
6870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6877 do
6878 CC="$ac_save_CC $ac_arg"
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 ac_cv_prog_cc_c89=$ac_arg
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext
6883 test "x$ac_cv_prog_cc_c89" != "xno" && break
6884 done
6885 rm -f conftest.$ac_ext
6886 CC=$ac_save_CC
6887
6888 fi
6889 # AC_CACHE_VAL
6890 case "x$ac_cv_prog_cc_c89" in
6891 x)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6893 $as_echo "none needed" >&6; } ;;
6894 xno)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6896 $as_echo "unsupported" >&6; } ;;
6897 *)
6898 CC="$CC $ac_cv_prog_cc_c89"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6901 esac
6902 if test "x$ac_cv_prog_cc_c89" != xno; then :
6903 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6904 else
6905 ac_cv_prog_cc_stdc=no
6906 fi
6907
6908 fi
6909 ;;
6910 esac
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6912 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6913 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 fi
6916
6917 case $ac_cv_prog_cc_stdc in #(
6918 no) :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6920 $as_echo "unsupported" >&6; } ;; #(
6921 '') :
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6923 $as_echo "none needed" >&6; } ;; #(
6924 *) :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6926 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6927 esac
6928
6929
6930
6931 # Code from module alloca-opt:
6932 # Code from module allocator:
6933 # Code from module careadlinkat:
6934 # Code from module crypto/md5:
6935 # Code from module crypto/sha1:
6936 # Code from module crypto/sha256:
6937 # Code from module crypto/sha512:
6938 # Code from module dosname:
6939 # Code from module dtoastr:
6940 # Code from module dup2:
6941 # Code from module extensions:
6942
6943 # Code from module filemode:
6944 # Code from module getloadavg:
6945 # Code from module getopt-gnu:
6946 # Code from module getopt-posix:
6947 # Code from module gettext-h:
6948 # Code from module ignore-value:
6949 # Code from module include_next:
6950 # Code from module intprops:
6951 # Code from module inttypes-incomplete:
6952 # Code from module largefile:
6953
6954 # Code from module lstat:
6955 # Code from module mktime:
6956 # Code from module multiarch:
6957 # Code from module nocrash:
6958 # Code from module pthread_sigmask:
6959 # Code from module readlink:
6960 # Code from module signal-h:
6961 # Code from module sigprocmask:
6962 # Code from module snippet/_Noreturn:
6963 # Code from module snippet/arg-nonnull:
6964 # Code from module snippet/c++defs:
6965 # Code from module snippet/warn-on-use:
6966 # Code from module socklen:
6967 # Code from module ssize_t:
6968 # Code from module stat:
6969 # Code from module stdarg:
6970
6971
6972
6973 # Code from module stdbool:
6974 # Code from module stddef:
6975 # Code from module stdint:
6976 # Code from module stdio:
6977 # Code from module stdlib:
6978 # Code from module strftime:
6979 # Code from module strtoimax:
6980 # Code from module strtoll:
6981 # Code from module strtoull:
6982 # Code from module strtoumax:
6983 # Code from module symlink:
6984 # Code from module sys_stat:
6985 # Code from module time:
6986 # Code from module time_r:
6987 # Code from module u64:
6988 # Code from module unistd:
6989 # Code from module verify:
6990
6991
6992 # On Suns, sometimes $CPP names a directory.
6993 if test -n "$CPP" && test -d "$CPP"; then
6994 CPP=
6995 fi
6996
6997 ## If not using gcc, and on Solaris, and no CPP specified, see if
6998 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6999 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7000 test x"$CPP" = x; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7002 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7003 if test "${emacs_cv_sunpro_c+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008
7009 int
7010 main ()
7011 {
7012 #ifndef __SUNPRO_C
7013 fail;
7014 #endif
7015
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_link "$LINENO"; then :
7021 emacs_cv_sunpro_c=yes
7022 else
7023 emacs_cv_sunpro_c=no
7024 fi
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7027 fi
7028
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7030 $as_echo "$emacs_cv_sunpro_c" >&6; }
7031
7032 if test x"$emacs_cv_sunpro_c" = xyes; then
7033 NON_GNU_CPP="$CC -E -Xs"
7034 fi
7035 fi
7036
7037 #### Some systems specify a CPP to use unless we are using GCC.
7038 #### Now that we know whether we are using GCC, we can decide whether
7039 #### to use that one.
7040 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7041 then
7042 CPP="$NON_GNU_CPP"
7043 fi
7044
7045 #### Some systems specify a CC to use unless we are using GCC.
7046 #### Now that we know whether we are using GCC, we can decide whether
7047 #### to use that one.
7048 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7049 test x$cc_specified != xyes
7050 then
7051 CC="$NON_GNU_CC"
7052 fi
7053
7054 if test x$GCC = xyes; then
7055 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7056 else
7057 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7058 fi
7059
7060 ### Use -Wdeclaration-after-statement if the compiler supports it
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7062 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7063 SAVE_CFLAGS="$CFLAGS"
7064 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067
7068 int
7069 main ()
7070 {
7071
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 if ac_fn_c_try_compile "$LINENO"; then :
7077 has_option=yes
7078 else
7079 has_option=no
7080 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 if test $has_option = yes; then
7083 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7086 $as_echo "$has_option" >&6; }
7087 CFLAGS="$SAVE_CFLAGS"
7088 unset has_option
7089 unset SAVE_CFLAGS
7090
7091 ### Use -Wold-style-definition if the compiler supports it
7092 # This can be removed when conversion to standard C is finished.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7094 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7095 SAVE_CFLAGS="$CFLAGS"
7096 CFLAGS="$CFLAGS -Wold-style-definition"
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099
7100 int
7101 main ()
7102 {
7103
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_compile "$LINENO"; then :
7109 has_option=yes
7110 else
7111 has_option=no
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114 if test $has_option = yes; then
7115 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7118 $as_echo "$has_option" >&6; }
7119 CFLAGS="$SAVE_CFLAGS"
7120 unset has_option
7121 unset SAVE_CFLAGS
7122
7123 ### Use -Wimplicit-function-declaration if the compiler supports it
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7125 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7126 SAVE_CFLAGS="$CFLAGS"
7127 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130
7131 int
7132 main ()
7133 {
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_compile "$LINENO"; then :
7140 has_option=yes
7141 else
7142 has_option=no
7143 fi
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 if test $has_option = yes; then
7146 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7149 $as_echo "$has_option" >&6; }
7150 CFLAGS="$SAVE_CFLAGS"
7151 unset has_option
7152 unset SAVE_CFLAGS
7153
7154
7155
7156
7157 #### Some other nice autoconf tests.
7158
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7166 # On Suns, sometimes $CPP names a directory.
7167 if test -n "$CPP" && test -d "$CPP"; then
7168 CPP=
7169 fi
7170 if test -z "$CPP"; then
7171 if test "${ac_cv_prog_CPP+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 # Double quotes because CPP needs to be expanded
7175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7176 do
7177 ac_preproc_ok=false
7178 for ac_c_preproc_warn_flag in '' yes
7179 do
7180 # Use a header file that comes with gcc, so configuring glibc
7181 # with a fresh cross-compiler works.
7182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7183 # <limits.h> exists even on freestanding compilers.
7184 # On the NeXT, cc -E runs the code through the compiler's parser,
7185 # not just through cpp. "Syntax error" is here to catch this case.
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 #ifdef __STDC__
7189 # include <limits.h>
7190 #else
7191 # include <assert.h>
7192 #endif
7193 Syntax error
7194 _ACEOF
7195 if ac_fn_c_try_cpp "$LINENO"; then :
7196
7197 else
7198 # Broken: fails on valid input.
7199 continue
7200 fi
7201 rm -f conftest.err conftest.$ac_ext
7202
7203 # OK, works on sane cases. Now check whether nonexistent headers
7204 # can be detected and how.
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 #include <ac_nonexistent.h>
7208 _ACEOF
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7210 # Broken: success on invalid input.
7211 continue
7212 else
7213 # Passes both tests.
7214 ac_preproc_ok=:
7215 break
7216 fi
7217 rm -f conftest.err conftest.$ac_ext
7218
7219 done
7220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7221 rm -f conftest.err conftest.$ac_ext
7222 if $ac_preproc_ok; then :
7223 break
7224 fi
7225
7226 done
7227 ac_cv_prog_CPP=$CPP
7228
7229 fi
7230 CPP=$ac_cv_prog_CPP
7231 else
7232 ac_cv_prog_CPP=$CPP
7233 fi
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7235 $as_echo "$CPP" >&6; }
7236 ac_preproc_ok=false
7237 for ac_c_preproc_warn_flag in '' yes
7238 do
7239 # Use a header file that comes with gcc, so configuring glibc
7240 # with a fresh cross-compiler works.
7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242 # <limits.h> exists even on freestanding compilers.
7243 # On the NeXT, cc -E runs the code through the compiler's parser,
7244 # not just through cpp. "Syntax error" is here to catch this case.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #ifdef __STDC__
7248 # include <limits.h>
7249 #else
7250 # include <assert.h>
7251 #endif
7252 Syntax error
7253 _ACEOF
7254 if ac_fn_c_try_cpp "$LINENO"; then :
7255
7256 else
7257 # Broken: fails on valid input.
7258 continue
7259 fi
7260 rm -f conftest.err conftest.$ac_ext
7261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #include <ac_nonexistent.h>
7267 _ACEOF
7268 if ac_fn_c_try_cpp "$LINENO"; then :
7269 # Broken: success on invalid input.
7270 continue
7271 else
7272 # Passes both tests.
7273 ac_preproc_ok=:
7274 break
7275 fi
7276 rm -f conftest.err conftest.$ac_ext
7277
7278 done
7279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7280 rm -f conftest.err conftest.$ac_ext
7281 if $ac_preproc_ok; then :
7282
7283 else
7284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7286 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7287 See \`config.log' for more details." "$LINENO" 5; }
7288 fi
7289
7290 ac_ext=c
7291 ac_cpp='$CPP $CPPFLAGS'
7292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295
7296
7297 if test "x$RANLIB" = x; then
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -n "$RANLIB"; then
7307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 RANLIB=$ac_cv_prog_RANLIB
7327 if test -n "$RANLIB"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7329 $as_echo "$RANLIB" >&6; }
7330 else
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335
7336 fi
7337 if test -z "$ac_cv_prog_RANLIB"; then
7338 ac_ct_RANLIB=$RANLIB
7339 # Extract the first word of "ranlib", so it can be a program name with args.
7340 set dummy ranlib; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$ac_ct_RANLIB"; then
7347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_prog_ac_ct_RANLIB="ranlib"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7367 if test -n "$ac_ct_RANLIB"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7369 $as_echo "$ac_ct_RANLIB" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375 if test "x$ac_ct_RANLIB" = x; then
7376 RANLIB=":"
7377 else
7378 case $cross_compiling:$ac_tool_warned in
7379 yes:)
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384 RANLIB=$ac_ct_RANLIB
7385 fi
7386 else
7387 RANLIB="$ac_cv_prog_RANLIB"
7388 fi
7389
7390 fi
7391
7392 ## Although we're running on an amd64 kernel, we're actually compiling for
7393 ## the x86 architecture. The user should probably have provided an
7394 ## explicit --build to `configure', but if everything else than the kernel
7395 ## is running in i386 mode, we can help them out.
7396 if test "$machine" = "amdx86-64"; then
7397 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7398 if test "x$ac_cv_have_decl_i386" = x""yes; then :
7399
7400 fi
7401
7402 if test "$ac_cv_have_decl_i386" = "yes"; then
7403 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7404 machine=intel386
7405 machfile="m/${machine}.h"
7406 fi
7407 fi
7408
7409 # Extract the first word of "install-info", so it can be a program name with args.
7410 set dummy install-info; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 case $INSTALL_INFO in
7417 [\\/]* | ?:[\\/]*)
7418 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7419 ;;
7420 *)
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436 ;;
7437 esac
7438 fi
7439 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7440 if test -n "$INSTALL_INFO"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7442 $as_echo "$INSTALL_INFO" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449 # Extract the first word of "install-info", so it can be a program name with args.
7450 set dummy install-info; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 case $INSTALL_INFO in
7457 [\\/]* | ?:[\\/]*)
7458 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7459 ;;
7460 *)
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in /usr/sbin
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 ;;
7477 esac
7478 fi
7479 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7480 if test -n "$INSTALL_INFO"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7482 $as_echo "$INSTALL_INFO" >&6; }
7483 else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488
7489 # Extract the first word of "install-info", so it can be a program name with args.
7490 set dummy install-info; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 case $INSTALL_INFO in
7497 [\\/]* | ?:[\\/]*)
7498 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7499 ;;
7500 *)
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in /sbin
7503 do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7517 ;;
7518 esac
7519 fi
7520 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7521 if test -n "$INSTALL_INFO"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7523 $as_echo "$INSTALL_INFO" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 # Extract the first word of "gzip", so it can be a program name with args.
7531 set dummy gzip; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 case $GZIP_PROG in
7538 [\\/]* | ?:[\\/]*)
7539 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7540 ;;
7541 *)
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7544 do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7552 fi
7553 done
7554 done
7555 IFS=$as_save_IFS
7556
7557 ;;
7558 esac
7559 fi
7560 GZIP_PROG=$ac_cv_path_GZIP_PROG
7561 if test -n "$GZIP_PROG"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7563 $as_echo "$GZIP_PROG" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569
7570
7571
7572 ## Need makeinfo >= 4.6 (?) to build the manuals.
7573 # Extract the first word of "makeinfo", so it can be a program name with args.
7574 set dummy makeinfo; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 case $MAKEINFO in
7581 [\\/]* | ?:[\\/]*)
7582 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7583 ;;
7584 *)
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7601 ;;
7602 esac
7603 fi
7604 MAKEINFO=$ac_cv_path_MAKEINFO
7605 if test -n "$MAKEINFO"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7607 $as_echo "$MAKEINFO" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613
7614 if test "$MAKEINFO" != "no" && \
7615 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
7616 MAKEINFO=no
7617 fi
7618
7619 ## Makeinfo is unusual. For a released Emacs, the manuals are
7620 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7621 ## therefore in the category of "special tools" not normally required, which
7622 ## configure does not have to check for (eg autoconf itself).
7623 ## In a Bazaar checkout on the other hand, the manuals are not included.
7624 ## So makeinfo is a requirement to build from Bazaar, and configure
7625 ## should test for it as it does for any other build requirement.
7626 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7627 ## with pre-built manuals, from a Bazaar checkout.
7628 HAVE_MAKEINFO=yes
7629
7630 if test "$MAKEINFO" = "no"; then
7631 MAKEINFO=makeinfo
7632 if test "x${with_makeinfo}" = "xno"; then
7633 HAVE_MAKEINFO=no
7634 elif test ! -e $srcdir/info/emacs; then
7635 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7636 source tree does not seem to have pre-built manuals in the \`info' directory.
7637 Either install a suitable version of makeinfo, or re-run configure
7638 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7639 fi
7640 fi
7641
7642
7643
7644 if test x$GCC = xyes; then
7645 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7646 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7647 else
7648 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7649 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7650 fi
7651
7652
7653 late_LDFLAGS=$LDFLAGS
7654 if test x$GCC = xyes; then
7655 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7656 else
7657 LDFLAGS="$LDFLAGS -znocombreloc"
7658 fi
7659
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7661 $as_echo_n "checking for -znocombreloc... " >&6; }
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664
7665 int
7666 main ()
7667 {
7668
7669 ;
7670 return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_link "$LINENO"; then :
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675 $as_echo "yes" >&6; }
7676 else
7677 LDFLAGS=$late_LDFLAGS
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683
7684
7685 # The value of CPP is a quoted variable reference, so we need to do this
7686 # to get its actual value...
7687 CPP=`eval "echo $CPP"`
7688
7689
7690 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7691 case "$opsys" in
7692 your-opsys-here) CANNOT_DUMP=yes ;;
7693 esac
7694
7695 test "$CANNOT_DUMP" = "yes" && \
7696
7697 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7698
7699
7700
7701
7702
7703 UNEXEC_OBJ=unexelf.o
7704 case "$opsys" in
7705 # MSDOS uses unexcoff.o
7706 # MSWindows uses unexw32.o
7707 aix4-2)
7708 UNEXEC_OBJ=unexaix.o
7709 ;;
7710 cygwin)
7711 UNEXEC_OBJ=unexcw.o
7712 ;;
7713 darwin)
7714 UNEXEC_OBJ=unexmacosx.o
7715 ;;
7716 hpux10-20 | hpux11)
7717 UNEXEC_OBJ=unexhp9k800.o
7718 ;;
7719 sol2-10)
7720 # Use the Solaris dldump() function, called from unexsol.c, to dump
7721 # emacs, instead of the generic ELF dump code found in unexelf.c.
7722 # The resulting binary has a complete symbol table, and is better
7723 # for debugging and other observability tools (debuggers, pstack, etc).
7724 #
7725 # If you encounter a problem using dldump(), please consider sending
7726 # a message to the OpenSolaris tools-linking mailing list:
7727 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7728 #
7729 # It is likely that dldump() works with older Solaris too, but this has
7730 # not been tested, so for now this change is for Solaris 10 or newer.
7731 UNEXEC_OBJ=unexsol.o
7732 ;;
7733 esac
7734
7735 LD_SWITCH_SYSTEM=
7736 case "$opsys" in
7737 freebsd)
7738 ## Let `ld' find image libs and similar things in /usr/local/lib.
7739 ## The system compiler, GCC, has apparently been modified to not
7740 ## look there, contrary to what a stock GCC would do.
7741 LD_SWITCH_SYSTEM=-L/usr/local/lib
7742 ;;
7743
7744 gnu-linux)
7745 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7746 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7747 ;;
7748
7749 netbsd)
7750 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7751 ;;
7752
7753 openbsd)
7754 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7755 ## otherwise Emacs dumps core on elf systems.
7756 LD_SWITCH_SYSTEM="-Z"
7757 ;;
7758 esac
7759
7760
7761 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7762
7763 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7764 ## which has not been defined yet. When this was handled with cpp,
7765 ## it was expanded to null when configure sourced the s/*.h file.
7766 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7767 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7768 ## (or somesuch), but because it is supposed to go at the _front_
7769 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7770 ## Compare with the gnu-linux case below, which added to the end
7771 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7772 ## LD_SWITCH_SYSTEM_TEMACS.
7773 case "$opsys" in
7774 netbsd|openbsd)
7775 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7776 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7777 esac
7778
7779
7780 C_SWITCH_MACHINE=
7781 if test "$machine" = "alpha"; then
7782 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7783 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7784
7785 fi
7786
7787 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7788 ## With ELF, make sure that all common symbols get allocated to in the
7789 ## data section. Otherwise, the dump of temacs may miss variables in
7790 ## the shared library that have been initialized. For example, with
7791 ## GNU libc, __malloc_initialized would normally be resolved to the
7792 ## shared library's .bss section, which is fatal.
7793 if test "x$GCC" = "xyes"; then
7794 C_SWITCH_MACHINE="-fno-common"
7795 else
7796 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7797 fi
7798 else
7799 UNEXEC_OBJ=unexalpha.o
7800 fi
7801 fi
7802
7803
7804
7805
7806 C_SWITCH_SYSTEM=
7807 ## Some programs in src produce warnings saying certain subprograms
7808 ## are too complex and need a MAXMEM value greater than 2000 for
7809 ## additional optimization. --nils@exp-math.uni-essen.de
7810 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7811 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7812 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7813 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7814
7815
7816
7817 LIBS_SYSTEM=
7818 case "$opsys" in
7819 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7820 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7821
7822 freebsd) LIBS_SYSTEM="-lutil" ;;
7823
7824 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7825
7826 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7827
7828 ## Motif needs -lgen.
7829 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7830 esac
7831
7832
7833
7834 ### Make sure subsequent tests use flags consistent with the build flags.
7835
7836 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7837 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7838 else
7839 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7840 fi
7841
7842 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7843
7844 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7845
7846
7847 # Check whether --enable-largefile was given.
7848 if test "${enable_largefile+set}" = set; then :
7849 enableval=$enable_largefile;
7850 fi
7851
7852 if test "$enable_largefile" != no; then
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7855 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7856 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 ac_cv_sys_largefile_CC=no
7860 if test "$GCC" != yes; then
7861 ac_save_CC=$CC
7862 while :; do
7863 # IRIX 6.2 and later do not support large files by default,
7864 # so use the C compiler's -n32 option if that helps.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <sys/types.h>
7868 /* Check that off_t can represent 2**63 - 1 correctly.
7869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7870 since some C++ compilers masquerading as C compilers
7871 incorrectly reject 9223372036854775807. */
7872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7874 && LARGE_OFF_T % 2147483647 == 1)
7875 ? 1 : -1];
7876 int
7877 main ()
7878 {
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_compile "$LINENO"; then :
7885 break
7886 fi
7887 rm -f core conftest.err conftest.$ac_objext
7888 CC="$CC -n32"
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890 ac_cv_sys_largefile_CC=' -n32'; break
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext
7893 break
7894 done
7895 CC=$ac_save_CC
7896 rm -f conftest.$ac_ext
7897 fi
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7900 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7901 if test "$ac_cv_sys_largefile_CC" != no; then
7902 CC=$CC$ac_cv_sys_largefile_CC
7903 fi
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7906 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7907 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 while :; do
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 #include <sys/types.h>
7914 /* Check that off_t can represent 2**63 - 1 correctly.
7915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7916 since some C++ compilers masquerading as C compilers
7917 incorrectly reject 9223372036854775807. */
7918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7920 && LARGE_OFF_T % 2147483647 == 1)
7921 ? 1 : -1];
7922 int
7923 main ()
7924 {
7925
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"; then :
7931 ac_cv_sys_file_offset_bits=no; break
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7936 #define _FILE_OFFSET_BITS 64
7937 #include <sys/types.h>
7938 /* Check that off_t can represent 2**63 - 1 correctly.
7939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7940 since some C++ compilers masquerading as C compilers
7941 incorrectly reject 9223372036854775807. */
7942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7944 && LARGE_OFF_T % 2147483647 == 1)
7945 ? 1 : -1];
7946 int
7947 main ()
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 ac_cv_sys_file_offset_bits=64; break
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 ac_cv_sys_file_offset_bits=unknown
7959 break
7960 done
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7963 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7964 case $ac_cv_sys_file_offset_bits in #(
7965 no | unknown) ;;
7966 *)
7967 cat >>confdefs.h <<_ACEOF
7968 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7969 _ACEOF
7970 ;;
7971 esac
7972 rm -rf conftest*
7973 if test $ac_cv_sys_file_offset_bits = unknown; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7975 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7976 if test "${ac_cv_sys_large_files+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 while :; do
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <sys/types.h>
7983 /* Check that off_t can represent 2**63 - 1 correctly.
7984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7985 since some C++ compilers masquerading as C compilers
7986 incorrectly reject 9223372036854775807. */
7987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7989 && LARGE_OFF_T % 2147483647 == 1)
7990 ? 1 : -1];
7991 int
7992 main ()
7993 {
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 ac_cv_sys_large_files=no; break
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 #define _LARGE_FILES 1
8006 #include <sys/types.h>
8007 /* Check that off_t can represent 2**63 - 1 correctly.
8008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8009 since some C++ compilers masquerading as C compilers
8010 incorrectly reject 9223372036854775807. */
8011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8013 && LARGE_OFF_T % 2147483647 == 1)
8014 ? 1 : -1];
8015 int
8016 main ()
8017 {
8018
8019 ;
8020 return 0;
8021 }
8022 _ACEOF
8023 if ac_fn_c_try_compile "$LINENO"; then :
8024 ac_cv_sys_large_files=1; break
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 ac_cv_sys_large_files=unknown
8028 break
8029 done
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8032 $as_echo "$ac_cv_sys_large_files" >&6; }
8033 case $ac_cv_sys_large_files in #(
8034 no | unknown) ;;
8035 *)
8036 cat >>confdefs.h <<_ACEOF
8037 #define _LARGE_FILES $ac_cv_sys_large_files
8038 _ACEOF
8039 ;;
8040 esac
8041 rm -rf conftest*
8042 fi
8043
8044
8045 fi
8046
8047
8048
8049 LIB_MATH=-lm
8050 LIB_STANDARD=
8051 START_FILES=
8052
8053 case $opsys in
8054 cygwin )
8055 LIB_MATH=
8056 START_FILES='pre-crt0.o'
8057 ;;
8058 darwin )
8059 ## Adding -lm confuses the dynamic linker, so omit it.
8060 LIB_MATH=
8061 START_FILES='pre-crt0.o'
8062 ;;
8063 freebsd )
8064 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8065 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8066 ;;
8067 gnu-linux | gnu-kfreebsd )
8068 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8069 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8070 ;;
8071 hpux10-20 | hpux11 )
8072 LIB_STANDARD=-lc
8073 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8074 ;;
8075 netbsd | openbsd )
8076 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8077 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8078 ;;
8079 esac
8080
8081
8082
8083
8084 crt_files=
8085
8086 for file in x $LIB_STANDARD $START_FILES; do
8087 case "$file" in
8088 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8089 esac
8090 done
8091
8092 if test "x$crt_files" != x; then
8093
8094 ## If user specified a crt-dir, use that unconditionally.
8095 crt_gcc=no
8096
8097 if test "X$CRT_DIR" = "X"; then
8098
8099 CRT_DIR=/usr/lib # default
8100
8101 case "$canonical" in
8102 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8103 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8104 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8105 ## For anything else (eg /usr/lib32), it is up the user to specify
8106 ## the location (bug#5655).
8107 ## Test for crtn.o, not just the directory, because sometimes the
8108 ## directory exists but does not have the relevant files (bug#1287).
8109 ## FIXME better to test for binary compatibility somehow.
8110 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8111 ;;
8112
8113 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8114 esac
8115
8116 case "$opsys" in
8117 hpux10-20) CRT_DIR=/lib ;;
8118 esac
8119
8120 test "x${GCC}" = xyes && crt_gcc=yes
8121
8122 fi # CRT_DIR = ""
8123
8124 crt_missing=
8125
8126 for file in $crt_files; do
8127
8128 ## If we're using gcc, try to determine it automatically by asking
8129 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8130 ## system-dependent default from above.]
8131 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8132
8133 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8134 case "$crt_file" in
8135 */*)
8136 CRT_DIR=`$as_dirname -- "$crt_file" ||
8137 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8138 X"$crt_file" : 'X\(//\)[^/]' \| \
8139 X"$crt_file" : 'X\(//\)$' \| \
8140 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8141 $as_echo X"$crt_file" |
8142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8143 s//\1/
8144 q
8145 }
8146 /^X\(\/\/\)[^/].*/{
8147 s//\1/
8148 q
8149 }
8150 /^X\(\/\/\)$/{
8151 s//\1/
8152 q
8153 }
8154 /^X\(\/\).*/{
8155 s//\1/
8156 q
8157 }
8158 s/.*/./; q'`
8159 ;;
8160 esac
8161 fi
8162
8163 crt_gcc=no
8164
8165 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8166 done # $crt_files
8167
8168 test "x$crt_missing" = x || \
8169 as_fn_error "Required file(s) not found:$crt_missing
8170 Try using the --with-crt-dir option." "$LINENO" 5
8171
8172 fi # crt_files != ""
8173
8174
8175
8176 case $opsys in
8177 netbsd | openbsd )
8178 if test -f $CRT_DIR/crti.o; then
8179
8180 test -f $CRT_DIR/crtn.o || \
8181 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8182
8183 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8184 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8185 fi
8186 ;;
8187 esac
8188
8189
8190
8191
8192
8193 if test "${with_sound}" != "no"; then
8194 # Sound support for GNU/Linux and the free BSDs.
8195 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8196 do :
8197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8198 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8199 eval as_val=\$$as_ac_Header
8200 if test "x$as_val" = x""yes; then :
8201 cat >>confdefs.h <<_ACEOF
8202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8203 _ACEOF
8204 have_sound_header=yes
8205 fi
8206
8207 done
8208
8209 # Emulation library used on NetBSD.
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8211 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8212 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 ac_check_lib_save_LIBS=$LIBS
8216 LIBS="-lossaudio $LIBS"
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219
8220 /* Override any GCC internal prototype to avoid an error.
8221 Use char because int might match the return type of a GCC
8222 builtin and then its argument prototype would still apply. */
8223 #ifdef __cplusplus
8224 extern "C"
8225 #endif
8226 char _oss_ioctl ();
8227 int
8228 main ()
8229 {
8230 return _oss_ioctl ();
8231 ;
8232 return 0;
8233 }
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 ac_cv_lib_ossaudio__oss_ioctl=yes
8237 else
8238 ac_cv_lib_ossaudio__oss_ioctl=no
8239 fi
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LIBS=$ac_check_lib_save_LIBS
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8245 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8246 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8247 LIBSOUND=-lossaudio
8248 else
8249 LIBSOUND=
8250 fi
8251
8252
8253
8254 ALSA_REQUIRED=1.0.0
8255 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8256
8257 succeeded=no
8258
8259 # Extract the first word of "pkg-config", so it can be a program name with args.
8260 set dummy pkg-config; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 case $PKG_CONFIG in
8267 [\\/]* | ?:[\\/]*)
8268 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8269 ;;
8270 *)
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8273 do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282 done
8283 done
8284 IFS=$as_save_IFS
8285
8286 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8287 ;;
8288 esac
8289 fi
8290 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8291 if test -n "$PKG_CONFIG"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8293 $as_echo "$PKG_CONFIG" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299
8300
8301 if test "$PKG_CONFIG" = "no" ; then
8302 HAVE_ALSA=no
8303 else
8304 PKG_CONFIG_MIN_VERSION=0.9.0
8305 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8307 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8308
8309 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8311 $as_echo "yes" >&6; }
8312 succeeded=yes
8313
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8315 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8316 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8318 $as_echo "$ALSA_CFLAGS" >&6; }
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8321 $as_echo_n "checking ALSA_LIBS... " >&6; }
8322 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8324 $as_echo "$ALSA_LIBS" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 ALSA_CFLAGS=""
8329 ALSA_LIBS=""
8330 ## If we have a custom action on failure, don't print errors, but
8331 ## do set a variable so people can do so.
8332 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8333
8334 fi
8335
8336
8337
8338 else
8339 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8340 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8341 fi
8342 fi
8343
8344 if test $succeeded = yes; then
8345 HAVE_ALSA=yes
8346 else
8347 HAVE_ALSA=no
8348 fi
8349
8350 if test $HAVE_ALSA = yes; then
8351 SAVE_CFLAGS="$CFLAGS"
8352 SAVE_LDFLAGS="$LDFLAGS"
8353 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8354 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <asoundlib.h>
8358 int
8359 main ()
8360 {
8361 snd_lib_error_set_handler (0);
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367 emacs_alsa_normal=yes
8368 else
8369 emacs_alsa_normal=no
8370 fi
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 if test "$emacs_alsa_normal" != yes; then
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8375 #include <alsa/asoundlib.h>
8376 int
8377 main ()
8378 {
8379 snd_lib_error_set_handler (0);
8380 ;
8381 return 0;
8382 }
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"; then :
8385 emacs_alsa_subdir=yes
8386 else
8387 emacs_alsa_subdir=no
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 if test "$emacs_alsa_subdir" != yes; then
8391 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8392 fi
8393 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8394 fi
8395
8396 CFLAGS="$SAVE_CFLAGS"
8397 LDFLAGS="$SAVE_LDFLAGS"
8398 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8399 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8400
8401 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8402
8403 fi
8404
8405 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8406 case "$opsys" in
8407 gnu-linux|freebsd|netbsd)
8408
8409 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8410
8411 ;;
8412 esac
8413 fi
8414
8415
8416 fi
8417
8418 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8419 linux/version.h sys/systeminfo.h \
8420 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8421 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8422 sys/utsname.h pwd.h utmp.h dirent.h util.h
8423 do :
8424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8425 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8426 eval as_val=\$$as_ac_Header
8427 if test "x$as_val" = x""yes; then :
8428 cat >>confdefs.h <<_ACEOF
8429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8430 _ACEOF
8431
8432 fi
8433
8434 done
8435
8436
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8438 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 #include <sys/personality.h>
8442 int
8443 main ()
8444 {
8445 personality (PER_LINUX32)
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 emacs_cv_personality_linux32=yes
8452 else
8453 emacs_cv_personality_linux32=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8457 $as_echo "$emacs_cv_personality_linux32" >&6; }
8458
8459 if test $emacs_cv_personality_linux32 = yes; then
8460
8461 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8462
8463 fi
8464
8465 for ac_header in term.h
8466 do :
8467 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8468 if test "x$ac_cv_header_term_h" = x""yes; then :
8469 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_TERM_H 1
8471 _ACEOF
8472
8473 fi
8474
8475 done
8476
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8478 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8479 if test "${ac_cv_header_time+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <sys/types.h>
8485 #include <sys/time.h>
8486 #include <time.h>
8487
8488 int
8489 main ()
8490 {
8491 if ((struct tm *) 0)
8492 return 0;
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 ac_cv_header_time=yes
8499 else
8500 ac_cv_header_time=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8505 $as_echo "$ac_cv_header_time" >&6; }
8506 if test $ac_cv_header_time = yes; then
8507
8508 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8509
8510 fi
8511
8512 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8513 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8514 ac_have_decl=1
8515 else
8516 ac_have_decl=0
8517 fi
8518
8519 cat >>confdefs.h <<_ACEOF
8520 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8521 _ACEOF
8522
8523 if test $ac_cv_have_decl_sys_siglist != yes; then
8524 # For Tru64, at least:
8525 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8526 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8527 ac_have_decl=1
8528 else
8529 ac_have_decl=0
8530 fi
8531
8532 cat >>confdefs.h <<_ACEOF
8533 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8534 _ACEOF
8535
8536 if test $ac_cv_have_decl___sys_siglist = yes; then
8537
8538 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8539
8540 fi
8541 fi
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8543 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8544 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <sys/types.h>
8550 #include <sys/wait.h>
8551 #ifndef WEXITSTATUS
8552 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8553 #endif
8554 #ifndef WIFEXITED
8555 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8556 #endif
8557
8558 int
8559 main ()
8560 {
8561 int s;
8562 wait (&s);
8563 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_compile "$LINENO"; then :
8569 ac_cv_header_sys_wait_h=yes
8570 else
8571 ac_cv_header_sys_wait_h=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8576 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8577 if test $ac_cv_header_sys_wait_h = yes; then
8578
8579 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8580
8581 fi
8582
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8585 $as_echo_n "checking for struct utimbuf... " >&6; }
8586 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #ifdef TIME_WITH_SYS_TIME
8592 #include <sys/time.h>
8593 #include <time.h>
8594 #else
8595 #ifdef HAVE_SYS_TIME_H
8596 #include <sys/time.h>
8597 #else
8598 #include <time.h>
8599 #endif
8600 #endif
8601 #ifdef HAVE_UTIME_H
8602 #include <utime.h>
8603 #endif
8604 int
8605 main ()
8606 {
8607 static struct utimbuf x; x.actime = x.modtime;
8608 ;
8609 return 0;
8610 }
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 emacs_cv_struct_utimbuf=yes
8614 else
8615 emacs_cv_struct_utimbuf=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8620 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8621 if test $emacs_cv_struct_utimbuf = yes; then
8622
8623 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8624
8625 fi
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8628 $as_echo_n "checking for speed_t... " >&6; }
8629 if test "${emacs_cv_speed_t+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 #include <termios.h>
8635 int
8636 main ()
8637 {
8638 speed_t x = 1;
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 if ac_fn_c_try_compile "$LINENO"; then :
8644 emacs_cv_speed_t=yes
8645 else
8646 emacs_cv_speed_t=no
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8651 $as_echo "$emacs_cv_speed_t" >&6; }
8652 if test $emacs_cv_speed_t = yes; then
8653
8654 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8655
8656 fi
8657
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8659 $as_echo_n "checking for struct timeval... " >&6; }
8660 if test "${emacs_cv_struct_timeval+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #ifdef TIME_WITH_SYS_TIME
8666 #include <sys/time.h>
8667 #include <time.h>
8668 #else
8669 #ifdef HAVE_SYS_TIME_H
8670 #include <sys/time.h>
8671 #else
8672 #include <time.h>
8673 #endif
8674 #endif
8675 int
8676 main ()
8677 {
8678 static struct timeval x; x.tv_sec = x.tv_usec;
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 emacs_cv_struct_timeval=yes
8685 else
8686 emacs_cv_struct_timeval=no
8687 fi
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8691 $as_echo "$emacs_cv_struct_timeval" >&6; }
8692 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8693 if test $emacs_cv_struct_timeval = yes; then
8694
8695 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8696
8697 fi
8698
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8700 $as_echo_n "checking for struct exception... " >&6; }
8701 if test "${emacs_cv_struct_exception+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 #include <math.h>
8707 int
8708 main ()
8709 {
8710 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_compile "$LINENO"; then :
8716 emacs_cv_struct_exception=yes
8717 else
8718 emacs_cv_struct_exception=no
8719 fi
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8723 $as_echo "$emacs_cv_struct_exception" >&6; }
8724 HAVE_EXCEPTION=$emacs_cv_struct_exception
8725 if test $emacs_cv_struct_exception != yes; then
8726
8727 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8728
8729 fi
8730
8731 for ac_header in sys/socket.h
8732 do :
8733 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8734 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
8735 cat >>confdefs.h <<_ACEOF
8736 #define HAVE_SYS_SOCKET_H 1
8737 _ACEOF
8738
8739 fi
8740
8741 done
8742
8743 for ac_header in net/if.h
8744 do :
8745 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8746 #if HAVE_SYS_SOCKET_H
8747 #include <sys/socket.h>
8748 #endif
8749 "
8750 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8751 cat >>confdefs.h <<_ACEOF
8752 #define HAVE_NET_IF_H 1
8753 _ACEOF
8754
8755 fi
8756
8757 done
8758
8759 for ac_header in ifaddrs.h
8760 do :
8761 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8762 #if HAVE_SYS_SOCKET_H
8763 #include <sys/socket.h>
8764 #endif
8765 "
8766 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8767 cat >>confdefs.h <<_ACEOF
8768 #define HAVE_IFADDRS_H 1
8769 _ACEOF
8770
8771 fi
8772
8773 done
8774
8775 for ac_header in net/if_dl.h
8776 do :
8777 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8778 #if HAVE_SYS_SOCKET_H
8779 #include <sys/socket.h>
8780 #endif
8781 "
8782 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_NET_IF_DL_H 1
8785 _ACEOF
8786
8787 fi
8788
8789 done
8790
8791 for ac_func in getifaddrs freeifaddrs
8792 do :
8793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8794 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8795 eval as_val=\$$as_ac_var
8796 if test "x$as_val" = x""yes; then :
8797 cat >>confdefs.h <<_ACEOF
8798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8799 _ACEOF
8800
8801 fi
8802 done
8803
8804
8805 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8806 #if HAVE_SYS_SOCKET_H
8807 #include <sys/socket.h>
8808 #endif
8809 #if HAVE_NET_IF_H
8810 #include <net/if.h>
8811 #endif
8812 "
8813 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8814
8815 cat >>confdefs.h <<_ACEOF
8816 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8817 _ACEOF
8818
8819
8820 fi
8821 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8822 #if HAVE_SYS_SOCKET_H
8823 #include <sys/socket.h>
8824 #endif
8825 #if HAVE_NET_IF_H
8826 #include <net/if.h>
8827 #endif
8828 "
8829 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8830
8831 cat >>confdefs.h <<_ACEOF
8832 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8833 _ACEOF
8834
8835
8836 fi
8837 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8838 #if HAVE_SYS_SOCKET_H
8839 #include <sys/socket.h>
8840 #endif
8841 #if HAVE_NET_IF_H
8842 #include <net/if.h>
8843 #endif
8844 "
8845 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8846
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8849 _ACEOF
8850
8851
8852 fi
8853 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8854 #if HAVE_SYS_SOCKET_H
8855 #include <sys/socket.h>
8856 #endif
8857 #if HAVE_NET_IF_H
8858 #include <net/if.h>
8859 #endif
8860 "
8861 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8862
8863 cat >>confdefs.h <<_ACEOF
8864 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8865 _ACEOF
8866
8867
8868 fi
8869 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8870 #if HAVE_SYS_SOCKET_H
8871 #include <sys/socket.h>
8872 #endif
8873 #if HAVE_NET_IF_H
8874 #include <net/if.h>
8875 #endif
8876 "
8877 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8878
8879 cat >>confdefs.h <<_ACEOF
8880 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8881 _ACEOF
8882
8883
8884 fi
8885 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8886 #if HAVE_SYS_SOCKET_H
8887 #include <sys/socket.h>
8888 #endif
8889 #if HAVE_NET_IF_H
8890 #include <net/if.h>
8891 #endif
8892 "
8893 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
8894
8895 cat >>confdefs.h <<_ACEOF
8896 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
8897 _ACEOF
8898
8899
8900 fi
8901
8902
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8905 $as_echo_n "checking for function prototypes... " >&6; }
8906 if test "$ac_cv_prog_cc_c89" != no; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8908 $as_echo "yes" >&6; }
8909
8910 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8911
8912
8913 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8914
8915 else
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8918 fi
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8921 $as_echo_n "checking for working volatile... " >&6; }
8922 if test "${ac_cv_c_volatile+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 int
8929 main ()
8930 {
8931
8932 volatile int x;
8933 int * volatile y = (int *) 0;
8934 return !x && !y;
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_compile "$LINENO"; then :
8940 ac_cv_c_volatile=yes
8941 else
8942 ac_cv_c_volatile=no
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8947 $as_echo "$ac_cv_c_volatile" >&6; }
8948 if test $ac_cv_c_volatile = no; then
8949
8950 $as_echo "#define volatile /**/" >>confdefs.h
8951
8952 fi
8953
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8956 if test "${ac_cv_c_const+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8961
8962 int
8963 main ()
8964 {
8965 /* FIXME: Include the comments suggested by Paul. */
8966 #ifndef __cplusplus
8967 /* Ultrix mips cc rejects this. */
8968 typedef int charset[2];
8969 const charset cs;
8970 /* SunOS 4.1.1 cc rejects this. */
8971 char const *const *pcpcc;
8972 char **ppc;
8973 /* NEC SVR4.0.2 mips cc rejects this. */
8974 struct point {int x, y;};
8975 static struct point const zero = {0,0};
8976 /* AIX XL C 1.02.0.0 rejects this.
8977 It does not let you subtract one const X* pointer from another in
8978 an arm of an if-expression whose if-part is not a constant
8979 expression */
8980 const char *g = "string";
8981 pcpcc = &g + (g ? g-g : 0);
8982 /* HPUX 7.0 cc rejects these. */
8983 ++pcpcc;
8984 ppc = (char**) pcpcc;
8985 pcpcc = (char const *const *) ppc;
8986 { /* SCO 3.2v4 cc rejects this. */
8987 char *t;
8988 char const *s = 0 ? (char *) 0 : (char const *) 0;
8989
8990 *t++ = 0;
8991 if (s) return 0;
8992 }
8993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8994 int x[] = {25, 17};
8995 const int *foo = &x[0];
8996 ++foo;
8997 }
8998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8999 typedef const int *iptr;
9000 iptr p = 0;
9001 ++p;
9002 }
9003 { /* AIX XL C 1.02.0.0 rejects this saying
9004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9005 struct s { int j; const int *ap[3]; };
9006 struct s *b; b->j = 5;
9007 }
9008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9009 const int foo = 10;
9010 if (!foo) return 0;
9011 }
9012 return !cs[0] && !zero.x;
9013 #endif
9014
9015 ;
9016 return 0;
9017 }
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020 ac_cv_c_const=yes
9021 else
9022 ac_cv_c_const=no
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9027 $as_echo "$ac_cv_c_const" >&6; }
9028 if test $ac_cv_c_const = no; then
9029
9030 $as_echo "#define const /**/" >>confdefs.h
9031
9032 fi
9033
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9035 $as_echo_n "checking for void * support... " >&6; }
9036 if test "${emacs_cv_void_star+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9041
9042 int
9043 main ()
9044 {
9045 void * foo;
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_compile "$LINENO"; then :
9051 emacs_cv_void_star=yes
9052 else
9053 emacs_cv_void_star=no
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9058 $as_echo "$emacs_cv_void_star" >&6; }
9059 if test $emacs_cv_void_star = yes; then
9060 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9061
9062 else
9063 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9064
9065 fi
9066
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9068 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9069 if test "${ac_cv_c_bigendian+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 ac_cv_c_bigendian=unknown
9073 # See if we're dealing with a universal compiler.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #ifndef __APPLE_CC__
9077 not a universal capable compiler
9078 #endif
9079 typedef int dummy;
9080
9081 _ACEOF
9082 if ac_fn_c_try_compile "$LINENO"; then :
9083
9084 # Check for potential -arch flags. It is not universal unless
9085 # there are at least two -arch flags with different values.
9086 ac_arch=
9087 ac_prev=
9088 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9089 if test -n "$ac_prev"; then
9090 case $ac_word in
9091 i?86 | x86_64 | ppc | ppc64)
9092 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9093 ac_arch=$ac_word
9094 else
9095 ac_cv_c_bigendian=universal
9096 break
9097 fi
9098 ;;
9099 esac
9100 ac_prev=
9101 elif test "x$ac_word" = "x-arch"; then
9102 ac_prev=arch
9103 fi
9104 done
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 if test $ac_cv_c_bigendian = unknown; then
9108 # See if sys/param.h defines the BYTE_ORDER macro.
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <sys/param.h>
9113
9114 int
9115 main ()
9116 {
9117 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9118 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9119 && LITTLE_ENDIAN)
9120 bogus endian macros
9121 #endif
9122
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"; then :
9128 # It does; now see whether it defined to BIG_ENDIAN or not.
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <sys/types.h>
9132 #include <sys/param.h>
9133
9134 int
9135 main ()
9136 {
9137 #if BYTE_ORDER != BIG_ENDIAN
9138 not big endian
9139 #endif
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_compile "$LINENO"; then :
9146 ac_cv_c_bigendian=yes
9147 else
9148 ac_cv_c_bigendian=no
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 if test $ac_cv_c_bigendian = unknown; then
9155 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include <limits.h>
9159
9160 int
9161 main ()
9162 {
9163 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9164 bogus endian macros
9165 #endif
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_c_try_compile "$LINENO"; then :
9172 # It does; now see whether it defined to _BIG_ENDIAN or not.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #include <limits.h>
9176
9177 int
9178 main ()
9179 {
9180 #ifndef _BIG_ENDIAN
9181 not big endian
9182 #endif
9183
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189 ac_cv_c_bigendian=yes
9190 else
9191 ac_cv_c_bigendian=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196 fi
9197 if test $ac_cv_c_bigendian = unknown; then
9198 # Compile a test program.
9199 if test "$cross_compiling" = yes; then :
9200 # Try to guess by grepping values from an object file.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 short int ascii_mm[] =
9204 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9205 short int ascii_ii[] =
9206 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9207 int use_ascii (int i) {
9208 return ascii_mm[i] + ascii_ii[i];
9209 }
9210 short int ebcdic_ii[] =
9211 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9212 short int ebcdic_mm[] =
9213 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9214 int use_ebcdic (int i) {
9215 return ebcdic_mm[i] + ebcdic_ii[i];
9216 }
9217 extern int foo;
9218
9219 int
9220 main ()
9221 {
9222 return use_ascii (foo) == use_ebcdic (foo);
9223 ;
9224 return 0;
9225 }
9226 _ACEOF
9227 if ac_fn_c_try_compile "$LINENO"; then :
9228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9229 ac_cv_c_bigendian=yes
9230 fi
9231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9232 if test "$ac_cv_c_bigendian" = unknown; then
9233 ac_cv_c_bigendian=no
9234 else
9235 # finding both strings is unlikely to happen, but who knows?
9236 ac_cv_c_bigendian=unknown
9237 fi
9238 fi
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 $ac_includes_default
9245 int
9246 main ()
9247 {
9248
9249 /* Are we little or big endian? From Harbison&Steele. */
9250 union
9251 {
9252 long int l;
9253 char c[sizeof (long int)];
9254 } u;
9255 u.l = 1;
9256 return u.c[sizeof (long int) - 1] == 1;
9257
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_c_try_run "$LINENO"; then :
9263 ac_cv_c_bigendian=no
9264 else
9265 ac_cv_c_bigendian=yes
9266 fi
9267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9268 conftest.$ac_objext conftest.beam conftest.$ac_ext
9269 fi
9270
9271 fi
9272 fi
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9274 $as_echo "$ac_cv_c_bigendian" >&6; }
9275 case $ac_cv_c_bigendian in #(
9276 yes)
9277 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9278 ;; #(
9279 no)
9280 ;; #(
9281 universal)
9282
9283 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9284
9285 ;; #(
9286 *)
9287 as_fn_error "unknown endianness
9288 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9289 esac
9290
9291
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9293 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9294 if test "${emacs_cv_attribute_aligned+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 char __attribute__ ((__aligned__ (1 << 3))) c;
9300 int
9301 main ()
9302 {
9303
9304 ;
9305 return 0;
9306 }
9307 _ACEOF
9308 if ac_fn_c_try_compile "$LINENO"; then :
9309 emacs_cv_attribute_aligned=yes
9310 else
9311 emacs_cv_attribute_aligned=no
9312 fi
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9316 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9317 if test $emacs_cv_attribute_aligned = yes; then
9318
9319 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9320
9321 fi
9322
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9324 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9325 set x ${MAKE-make}
9326 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9327 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 cat >conftest.make <<\_ACEOF
9331 SHELL = /bin/sh
9332 all:
9333 @echo '@@@%%%=$(MAKE)=@@@%%%'
9334 _ACEOF
9335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9336 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9337 *@@@%%%=?*=@@@%%%*)
9338 eval ac_cv_prog_make_${ac_make}_set=yes;;
9339 *)
9340 eval ac_cv_prog_make_${ac_make}_set=no;;
9341 esac
9342 rm -f conftest.make
9343 fi
9344 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9346 $as_echo "yes" >&6; }
9347 SET_MAKE=
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 SET_MAKE="MAKE=${MAKE-make}"
9352 fi
9353
9354
9355 DEPFLAGS=
9356 MKDEPDIR=":"
9357 deps_frag=deps.mk
9358 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9360 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9361 HAVE_GNU_MAKE=no
9362 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9363 if test "x$testval" != x; then
9364 HAVE_GNU_MAKE=yes
9365 else
9366 ac_enable_autodepend=no
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9369 $as_echo "$HAVE_GNU_MAKE" >&6; }
9370 if test $HAVE_GNU_MAKE = yes; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9372 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9373 SAVE_CFLAGS="$CFLAGS"
9374 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377
9378 int
9379 main ()
9380 {
9381
9382 ;
9383 return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_compile "$LINENO"; then :
9387
9388 else
9389 ac_enable_autodepend=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 CFLAGS="$SAVE_CFLAGS"
9393 test -f deps.d || ac_enable_autodepend=no
9394 rm -rf deps.d
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9396 $as_echo "$ac_enable_autodepend" >&6; }
9397 fi
9398 if test $ac_enable_autodepend = yes; then
9399 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9400 ## In parallel builds, another make might create depdir between
9401 ## the first test and mkdir, so stick another test on the end.
9402 ## Or use install-sh -d? mkdir -p is not portable.
9403 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9404 deps_frag=autodeps.mk
9405 fi
9406 fi
9407 deps_frag=$srcdir/src/$deps_frag
9408
9409
9410
9411
9412
9413 lisp_frag=$srcdir/src/lisp.mk
9414
9415
9416
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9418 $as_echo_n "checking for long file names... " >&6; }
9419 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 ac_cv_sys_long_file_names=yes
9423 # Test for long file names in all the places we know might matter:
9424 # . the current directory, where building will happen
9425 # $prefix/lib where we will be installing things
9426 # $exec_prefix/lib likewise
9427 # $TMPDIR if set, where it might want to write temporary files
9428 # /tmp where it might want to write temporary files
9429 # /var/tmp likewise
9430 # /usr/tmp likewise
9431 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9432 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9433 # in the usual case where exec_prefix is '${prefix}'.
9434 case $ac_dir in #(
9435 . | /* | ?:[\\/]*) ;; #(
9436 *) continue;;
9437 esac
9438 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9439 ac_xdir=$ac_dir/cf$$
9440 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9441 ac_tf1=$ac_xdir/conftest9012345
9442 ac_tf2=$ac_xdir/conftest9012346
9443 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9444 ac_cv_sys_long_file_names=no
9445 rm -f -r "$ac_xdir" 2>/dev/null
9446 test $ac_cv_sys_long_file_names = no && break
9447 done
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9450 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9451 if test $ac_cv_sys_long_file_names = yes; then
9452
9453 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9454
9455 fi
9456
9457
9458 #### Choose a window system.
9459
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9461 $as_echo_n "checking for X... " >&6; }
9462
9463
9464 # Check whether --with-x was given.
9465 if test "${with_x+set}" = set; then :
9466 withval=$with_x;
9467 fi
9468
9469 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9470 if test "x$with_x" = xno; then
9471 # The user explicitly disabled X.
9472 have_x=disabled
9473 else
9474 case $x_includes,$x_libraries in #(
9475 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9476 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 # One or both of the vars are not set, and there is no cached value.
9480 ac_x_includes=no ac_x_libraries=no
9481 rm -f -r conftest.dir
9482 if mkdir conftest.dir; then
9483 cd conftest.dir
9484 cat >Imakefile <<'_ACEOF'
9485 incroot:
9486 @echo incroot='${INCROOT}'
9487 usrlibdir:
9488 @echo usrlibdir='${USRLIBDIR}'
9489 libdir:
9490 @echo libdir='${LIBDIR}'
9491 _ACEOF
9492 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9494 for ac_var in incroot usrlibdir libdir; do
9495 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9496 done
9497 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9498 for ac_extension in a so sl dylib la dll; do
9499 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9500 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9501 ac_im_usrlibdir=$ac_im_libdir; break
9502 fi
9503 done
9504 # Screen out bogus values from the imake configuration. They are
9505 # bogus both because they are the default anyway, and because
9506 # using them would break gcc on systems where it needs fixed includes.
9507 case $ac_im_incroot in
9508 /usr/include) ac_x_includes= ;;
9509 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9510 esac
9511 case $ac_im_usrlibdir in
9512 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9513 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9514 esac
9515 fi
9516 cd ..
9517 rm -f -r conftest.dir
9518 fi
9519
9520 # Standard set of common directories for X headers.
9521 # Check X11 before X11Rn because it is often a symlink to the current release.
9522 ac_x_header_dirs='
9523 /usr/X11/include
9524 /usr/X11R7/include
9525 /usr/X11R6/include
9526 /usr/X11R5/include
9527 /usr/X11R4/include
9528
9529 /usr/include/X11
9530 /usr/include/X11R7
9531 /usr/include/X11R6
9532 /usr/include/X11R5
9533 /usr/include/X11R4
9534
9535 /usr/local/X11/include
9536 /usr/local/X11R7/include
9537 /usr/local/X11R6/include
9538 /usr/local/X11R5/include
9539 /usr/local/X11R4/include
9540
9541 /usr/local/include/X11
9542 /usr/local/include/X11R7
9543 /usr/local/include/X11R6
9544 /usr/local/include/X11R5
9545 /usr/local/include/X11R4
9546
9547 /usr/X386/include
9548 /usr/x386/include
9549 /usr/XFree86/include/X11
9550
9551 /usr/include
9552 /usr/local/include
9553 /usr/unsupported/include
9554 /usr/athena/include
9555 /usr/local/x11r5/include
9556 /usr/lpp/Xamples/include
9557
9558 /usr/openwin/include
9559 /usr/openwin/share/include'
9560
9561 if test "$ac_x_includes" = no; then
9562 # Guess where to find include files, by looking for Xlib.h.
9563 # First, try using that file with no special directory specified.
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566 #include <X11/Xlib.h>
9567 _ACEOF
9568 if ac_fn_c_try_cpp "$LINENO"; then :
9569 # We can compile using X headers with no special include directory.
9570 ac_x_includes=
9571 else
9572 for ac_dir in $ac_x_header_dirs; do
9573 if test -r "$ac_dir/X11/Xlib.h"; then
9574 ac_x_includes=$ac_dir
9575 break
9576 fi
9577 done
9578 fi
9579 rm -f conftest.err conftest.$ac_ext
9580 fi # $ac_x_includes = no
9581
9582 if test "$ac_x_libraries" = no; then
9583 # Check for the libraries.
9584 # See if we find them without any special options.
9585 # Don't add to $LIBS permanently.
9586 ac_save_LIBS=$LIBS
9587 LIBS="-lX11 $LIBS"
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <X11/Xlib.h>
9591 int
9592 main ()
9593 {
9594 XrmInitialize ()
9595 ;
9596 return 0;
9597 }
9598 _ACEOF
9599 if ac_fn_c_try_link "$LINENO"; then :
9600 LIBS=$ac_save_LIBS
9601 # We can link X programs with no special library path.
9602 ac_x_libraries=
9603 else
9604 LIBS=$ac_save_LIBS
9605 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9606 do
9607 # Don't even attempt the hair of trying to link an X program!
9608 for ac_extension in a so sl dylib la dll; do
9609 if test -r "$ac_dir/libX11.$ac_extension"; then
9610 ac_x_libraries=$ac_dir
9611 break 2
9612 fi
9613 done
9614 done
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 fi # $ac_x_libraries = no
9619
9620 case $ac_x_includes,$ac_x_libraries in #(
9621 no,* | *,no | *\'*)
9622 # Didn't find X, or a directory has "'" in its name.
9623 ac_cv_have_x="have_x=no";; #(
9624 *)
9625 # Record where we found X for the cache.
9626 ac_cv_have_x="have_x=yes\
9627 ac_x_includes='$ac_x_includes'\
9628 ac_x_libraries='$ac_x_libraries'"
9629 esac
9630 fi
9631 ;; #(
9632 *) have_x=yes;;
9633 esac
9634 eval "$ac_cv_have_x"
9635 fi # $with_x != no
9636
9637 if test "$have_x" != yes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9639 $as_echo "$have_x" >&6; }
9640 no_x=yes
9641 else
9642 # If each of the values was on the command line, it overrides each guess.
9643 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9644 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9645 # Update the cache value to reflect the command line values.
9646 ac_cv_have_x="have_x=yes\
9647 ac_x_includes='$x_includes'\
9648 ac_x_libraries='$x_libraries'"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9650 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9651 fi
9652
9653 if test "$no_x" = yes; then
9654 window_system=none
9655 else
9656 window_system=x11
9657 fi
9658
9659 ## Workaround for bug in autoconf <= 2.62.
9660 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9661 ## No need to do anything special for these standard directories.
9662 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9663
9664 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9665
9666 fi
9667
9668 LD_SWITCH_X_SITE_AUX=
9669 LD_SWITCH_X_SITE_AUX_RPATH=
9670 if test "${x_libraries}" != NONE; then
9671 if test -n "${x_libraries}"; then
9672 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9673 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9674 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9675 fi
9676 x_default_search_path=""
9677 x_search_path=${x_libraries}
9678 if test -z "${x_search_path}"; then
9679 x_search_path=/usr/lib
9680 fi
9681 for x_library in `echo ${x_search_path}: | \
9682 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9683 x_search_path="\
9684 ${x_library}/X11/%L/%T/%N%C%S:\
9685 ${x_library}/X11/%l/%T/%N%C%S:\
9686 ${x_library}/X11/%T/%N%C%S:\
9687 ${x_library}/X11/%L/%T/%N%S:\
9688 ${x_library}/X11/%l/%T/%N%S:\
9689 ${x_library}/X11/%T/%N%S"
9690 if test x"${x_default_search_path}" = x; then
9691 x_default_search_path=${x_search_path}
9692 else
9693 x_default_search_path="${x_search_path}:${x_default_search_path}"
9694 fi
9695 done
9696 fi
9697
9698
9699
9700 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9701 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9702 fi
9703
9704 if test x"${x_includes}" = x; then
9705 bitmapdir=/usr/include/X11/bitmaps
9706 else
9707 # accumulate include directories that have X11 bitmap subdirectories
9708 bmd_acc="dummyval"
9709 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9710 if test -d "${bmd}/X11/bitmaps"; then
9711 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9712 fi
9713 if test -d "${bmd}/bitmaps"; then
9714 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9715 fi
9716 done
9717 if test ${bmd_acc} != "dummyval"; then
9718 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9719 fi
9720 fi
9721
9722 HAVE_NS=no
9723 NS_IMPL_COCOA=no
9724 NS_IMPL_GNUSTEP=no
9725 tmp_CPPFLAGS="$CPPFLAGS"
9726 tmp_CFLAGS="$CFLAGS"
9727 CPPFLAGS="$CPPFLAGS -x objective-c"
9728 CFLAGS="$CFLAGS -x objective-c"
9729 TEMACS_LDFLAGS2="\${LDFLAGS}"
9730 GNU_OBJC_CFLAGS=
9731 if test "${with_ns}" != no; then
9732 if test "${opsys}" = darwin; then
9733 NS_IMPL_COCOA=yes
9734 ns_appdir=`pwd`/nextstep/Emacs.app
9735 ns_appbindir=${ns_appdir}/Contents/MacOS/
9736 ns_appresdir=${ns_appdir}/Contents/Resources
9737 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9738 elif test -f $GNUSTEP_CONFIG_FILE; then
9739 NS_IMPL_GNUSTEP=yes
9740 ns_appdir=`pwd`/nextstep/Emacs.app
9741 ns_appbindir=${ns_appdir}/
9742 ns_appresdir=${ns_appdir}/Resources
9743 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9744 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9745 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9746 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9747 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9748 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9749 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9750 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9751 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9752 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9753 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9754 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9755 LIB_STANDARD=
9756 START_FILES=
9757 TEMACS_LDFLAGS2=
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9759 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9760 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 #include <GNUstepBase/GSConfig.h>
9766 int
9767 main ()
9768 {
9769 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9770 1;
9771 #else
9772 fail;
9773 #endif
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 emacs_cv_objc_exceptions=yes
9780 else
9781 emacs_cv_objc_exceptions=no
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 fi
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9786 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9787 if test $emacs_cv_objc_exceptions = yes; then
9788
9789 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9790
9791 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9792 fi
9793 fi
9794
9795 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9796
9797 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9798 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9799 HAVE_NS=yes
9800 else
9801 as_fn_error "\`--with-ns' was specified, but the include
9802 files are missing or cannot be compiled." "$LINENO" 5
9803 fi
9804
9805
9806 NS_HAVE_NSINTEGER=yes
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9809 #include <Foundation/NSObjCRuntime.h>
9810 int
9811 main ()
9812 {
9813 NSInteger i;
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_compile "$LINENO"; then :
9819 ns_have_nsinteger=yes
9820 else
9821 ns_have_nsinteger=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 if test $ns_have_nsinteger = no; then
9825 NS_HAVE_NSINTEGER=no
9826 fi
9827 fi
9828
9829
9830 ns_frag=/dev/null
9831 NS_OBJ=
9832 NS_OBJC_OBJ=
9833 if test "${HAVE_NS}" = yes; then
9834 window_system=nextstep
9835 with_xft=no
9836 # set up packaging dirs
9837 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9838 prefix=${ns_appresdir}
9839 exec_prefix=${ns_appbindir}
9840 libexecdir=${ns_appbindir}/libexec
9841 fi
9842 ns_frag=$srcdir/src/ns.mk
9843 NS_OBJ="fontset.o fringe.o image.o"
9844 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9845 fi
9846 CFLAGS="$tmp_CFLAGS"
9847 CPPFLAGS="$tmp_CPPFLAGS"
9848
9849
9850
9851
9852
9853 case "${window_system}" in
9854 x11 )
9855 HAVE_X_WINDOWS=yes
9856 HAVE_X11=yes
9857 case "${with_x_toolkit}" in
9858 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9859 motif ) USE_X_TOOLKIT=MOTIF ;;
9860 gtk ) with_gtk=yes
9861 USE_X_TOOLKIT=none ;;
9862 gtk3 ) with_gtk3=yes
9863 USE_X_TOOLKIT=none ;;
9864 no ) USE_X_TOOLKIT=none ;;
9865 * ) USE_X_TOOLKIT=maybe ;;
9866 esac
9867 ;;
9868 nextstep | none )
9869 HAVE_X_WINDOWS=no
9870 HAVE_X11=no
9871 USE_X_TOOLKIT=none
9872 ;;
9873 esac
9874
9875 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9876 # Extract the first word of "X", so it can be a program name with args.
9877 set dummy X; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 if test -n "$HAVE_XSERVER"; then
9884 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9888 do
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_prog_HAVE_XSERVER="true"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9896 fi
9897 done
9898 done
9899 IFS=$as_save_IFS
9900
9901 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9902 fi
9903 fi
9904 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9905 if test -n "$HAVE_XSERVER"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9907 $as_echo "$HAVE_XSERVER" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9911 fi
9912
9913
9914 if test "$HAVE_XSERVER" = true ||
9915 test -n "$DISPLAY" ||
9916 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9917 as_fn_error "You seem to be running X, but no X development libraries
9918 were found. You should install the relevant development files for X
9919 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9920 sure you have development files for image handling, i.e.
9921 tiff, gif, jpeg, png and xpm.
9922 If you are sure you want Emacs compiled without X window support, pass
9923 --without-x
9924 to configure." "$LINENO" 5
9925 fi
9926 fi
9927
9928 ### If we're using X11, we should use the X menu package.
9929 HAVE_MENUS=no
9930 case ${HAVE_X11} in
9931 yes ) HAVE_MENUS=yes ;;
9932 esac
9933
9934 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9935 # Assume not, until told otherwise.
9936 GNU_MALLOC=yes
9937 doug_lea_malloc=yes
9938 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9939 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9940
9941 else
9942 doug_lea_malloc=no
9943 fi
9944
9945 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9946 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9947
9948 else
9949 doug_lea_malloc=no
9950 fi
9951
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9953 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9954 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 extern void (* __after_morecore_hook)();
9960 int
9961 main ()
9962 {
9963 __after_morecore_hook = 0
9964 ;
9965 return 0;
9966 }
9967 _ACEOF
9968 if ac_fn_c_try_link "$LINENO"; then :
9969 emacs_cv_var___after_morecore_hook=yes
9970 else
9971 emacs_cv_var___after_morecore_hook=no
9972 fi
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 fi
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9977 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9978 if test $emacs_cv_var___after_morecore_hook = no; then
9979 doug_lea_malloc=no
9980 fi
9981
9982
9983 system_malloc=no
9984 case "$opsys" in
9985 ## darwin ld insists on the use of malloc routines in the System framework.
9986 darwin|sol2-10) system_malloc=yes ;;
9987 esac
9988
9989 if test "${system_malloc}" = "yes"; then
9990
9991 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9992
9993 GNU_MALLOC=no
9994 GNU_MALLOC_reason="
9995 (The GNU allocators don't work with this system configuration.)"
9996 GMALLOC_OBJ=
9997 VMLIMIT_OBJ=
9998 else
9999 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10000 VMLIMIT_OBJ=vm-limit.o
10001 fi
10002
10003
10004
10005 if test "$doug_lea_malloc" = "yes" ; then
10006 if test "$GNU_MALLOC" = yes ; then
10007 GNU_MALLOC_reason="
10008 (Using Doug Lea's new malloc from the GNU C Library.)"
10009 fi
10010
10011 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10012
10013
10014 ## Use mmap directly for allocating larger buffers.
10015 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10016 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10017 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10018 case "$opsys" in
10019 gnu*) REL_ALLOC=no ;;
10020 esac
10021 fi
10022
10023 if test x"${REL_ALLOC}" = x; then
10024 REL_ALLOC=${GNU_MALLOC}
10025 fi
10026
10027 use_mmap_for_buffers=no
10028 case "$opsys" in
10029 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10030 esac
10031
10032
10033
10034
10035 for ac_header in $ac_header_list
10036 do :
10037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10039 "
10040 eval as_val=\$$as_ac_Header
10041 if test "x$as_val" = x""yes; then :
10042 cat >>confdefs.h <<_ACEOF
10043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10044 _ACEOF
10045
10046 fi
10047
10048 done
10049
10050
10051
10052
10053
10054
10055
10056
10057 for ac_func in getpagesize
10058 do :
10059 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10060 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10061 cat >>confdefs.h <<_ACEOF
10062 #define HAVE_GETPAGESIZE 1
10063 _ACEOF
10064
10065 fi
10066 done
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10069 $as_echo_n "checking for working mmap... " >&6; }
10070 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10071 $as_echo_n "(cached) " >&6
10072 else
10073 if test "$cross_compiling" = yes; then :
10074 ac_cv_func_mmap_fixed_mapped=no
10075 else
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 $ac_includes_default
10079 /* malloc might have been renamed as rpl_malloc. */
10080 #undef malloc
10081
10082 /* Thanks to Mike Haertel and Jim Avera for this test.
10083 Here is a matrix of mmap possibilities:
10084 mmap private not fixed
10085 mmap private fixed at somewhere currently unmapped
10086 mmap private fixed at somewhere already mapped
10087 mmap shared not fixed
10088 mmap shared fixed at somewhere currently unmapped
10089 mmap shared fixed at somewhere already mapped
10090 For private mappings, we should verify that changes cannot be read()
10091 back from the file, nor mmap's back from the file at a different
10092 address. (There have been systems where private was not correctly
10093 implemented like the infamous i386 svr4.0, and systems where the
10094 VM page cache was not coherent with the file system buffer cache
10095 like early versions of FreeBSD and possibly contemporary NetBSD.)
10096 For shared mappings, we should conversely verify that changes get
10097 propagated back to all the places they're supposed to be.
10098
10099 Grep wants private fixed already mapped.
10100 The main things grep needs to know about mmap are:
10101 * does it exist and is it safe to write into the mmap'd area
10102 * how to use it (BSD variants) */
10103
10104 #include <fcntl.h>
10105 #include <sys/mman.h>
10106
10107 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10108 char *malloc ();
10109 #endif
10110
10111 /* This mess was copied from the GNU getpagesize.h. */
10112 #ifndef HAVE_GETPAGESIZE
10113 # ifdef _SC_PAGESIZE
10114 # define getpagesize() sysconf(_SC_PAGESIZE)
10115 # else /* no _SC_PAGESIZE */
10116 # ifdef HAVE_SYS_PARAM_H
10117 # include <sys/param.h>
10118 # ifdef EXEC_PAGESIZE
10119 # define getpagesize() EXEC_PAGESIZE
10120 # else /* no EXEC_PAGESIZE */
10121 # ifdef NBPG
10122 # define getpagesize() NBPG * CLSIZE
10123 # ifndef CLSIZE
10124 # define CLSIZE 1
10125 # endif /* no CLSIZE */
10126 # else /* no NBPG */
10127 # ifdef NBPC
10128 # define getpagesize() NBPC
10129 # else /* no NBPC */
10130 # ifdef PAGESIZE
10131 # define getpagesize() PAGESIZE
10132 # endif /* PAGESIZE */
10133 # endif /* no NBPC */
10134 # endif /* no NBPG */
10135 # endif /* no EXEC_PAGESIZE */
10136 # else /* no HAVE_SYS_PARAM_H */
10137 # define getpagesize() 8192 /* punt totally */
10138 # endif /* no HAVE_SYS_PARAM_H */
10139 # endif /* no _SC_PAGESIZE */
10140
10141 #endif /* no HAVE_GETPAGESIZE */
10142
10143 int
10144 main ()
10145 {
10146 char *data, *data2, *data3;
10147 const char *cdata2;
10148 int i, pagesize;
10149 int fd, fd2;
10150
10151 pagesize = getpagesize ();
10152
10153 /* First, make a file with some known garbage in it. */
10154 data = (char *) malloc (pagesize);
10155 if (!data)
10156 return 1;
10157 for (i = 0; i < pagesize; ++i)
10158 *(data + i) = rand ();
10159 umask (0);
10160 fd = creat ("conftest.mmap", 0600);
10161 if (fd < 0)
10162 return 2;
10163 if (write (fd, data, pagesize) != pagesize)
10164 return 3;
10165 close (fd);
10166
10167 /* Next, check that the tail of a page is zero-filled. File must have
10168 non-zero length, otherwise we risk SIGBUS for entire page. */
10169 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10170 if (fd2 < 0)
10171 return 4;
10172 cdata2 = "";
10173 if (write (fd2, cdata2, 1) != 1)
10174 return 5;
10175 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10176 if (data2 == MAP_FAILED)
10177 return 6;
10178 for (i = 0; i < pagesize; ++i)
10179 if (*(data2 + i))
10180 return 7;
10181 close (fd2);
10182 if (munmap (data2, pagesize))
10183 return 8;
10184
10185 /* Next, try to mmap the file at a fixed address which already has
10186 something else allocated at it. If we can, also make sure that
10187 we see the same garbage. */
10188 fd = open ("conftest.mmap", O_RDWR);
10189 if (fd < 0)
10190 return 9;
10191 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10192 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10193 return 10;
10194 for (i = 0; i < pagesize; ++i)
10195 if (*(data + i) != *(data2 + i))
10196 return 11;
10197
10198 /* Finally, make sure that changes to the mapped area do not
10199 percolate back to the file as seen by read(). (This is a bug on
10200 some variants of i386 svr4.0.) */
10201 for (i = 0; i < pagesize; ++i)
10202 *(data2 + i) = *(data2 + i) + 1;
10203 data3 = (char *) malloc (pagesize);
10204 if (!data3)
10205 return 12;
10206 if (read (fd, data3, pagesize) != pagesize)
10207 return 13;
10208 for (i = 0; i < pagesize; ++i)
10209 if (*(data + i) != *(data3 + i))
10210 return 14;
10211 close (fd);
10212 return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_run "$LINENO"; then :
10216 ac_cv_func_mmap_fixed_mapped=yes
10217 else
10218 ac_cv_func_mmap_fixed_mapped=no
10219 fi
10220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221 conftest.$ac_objext conftest.beam conftest.$ac_ext
10222 fi
10223
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10226 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10227 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10228
10229 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10230
10231 fi
10232 rm -f conftest.mmap conftest.txt
10233
10234 if test $use_mmap_for_buffers = yes; then
10235
10236 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10237
10238 REL_ALLOC=no
10239 fi
10240
10241 LIBS="$LIBS_SYSTEM $LIBS"
10242
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10244 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10245 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-ldnet $LIBS"
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252
10253 /* Override any GCC internal prototype to avoid an error.
10254 Use char because int might match the return type of a GCC
10255 builtin and then its argument prototype would still apply. */
10256 #ifdef __cplusplus
10257 extern "C"
10258 #endif
10259 char dnet_ntoa ();
10260 int
10261 main ()
10262 {
10263 return dnet_ntoa ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269 ac_cv_lib_dnet_dnet_ntoa=yes
10270 else
10271 ac_cv_lib_dnet_dnet_ntoa=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10278 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10279 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10280 cat >>confdefs.h <<_ACEOF
10281 #define HAVE_LIBDNET 1
10282 _ACEOF
10283
10284 LIBS="-ldnet $LIBS"
10285
10286 fi
10287
10288
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10290 $as_echo_n "checking for main in -lXbsd... " >&6; }
10291 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 ac_check_lib_save_LIBS=$LIBS
10295 LIBS="-lXbsd $LIBS"
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298
10299
10300 int
10301 main ()
10302 {
10303 return main ();
10304 ;
10305 return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_Xbsd_main=yes
10310 else
10311 ac_cv_lib_Xbsd_main=no
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10318 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10319 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10320 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10321 fi
10322
10323
10324 LIB_PTHREAD=
10325 for ac_header in pthread.h
10326 do :
10327 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10328 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10329 cat >>confdefs.h <<_ACEOF
10330 #define HAVE_PTHREAD_H 1
10331 _ACEOF
10332
10333 fi
10334
10335 done
10336
10337 if test "$ac_cv_header_pthread_h"; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10339 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10340 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 ac_check_lib_save_LIBS=$LIBS
10344 LIBS="-lpthread $LIBS"
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347
10348 /* Override any GCC internal prototype to avoid an error.
10349 Use char because int might match the return type of a GCC
10350 builtin and then its argument prototype would still apply. */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 char pthread_self ();
10355 int
10356 main ()
10357 {
10358 return pthread_self ();
10359 ;
10360 return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_c_try_link "$LINENO"; then :
10364 ac_cv_lib_pthread_pthread_self=yes
10365 else
10366 ac_cv_lib_pthread_pthread_self=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 LIBS=$ac_check_lib_save_LIBS
10371 fi
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10373 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10374 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10375 HAVE_PTHREAD=yes
10376 fi
10377
10378 fi
10379 if test "$HAVE_PTHREAD" = yes; then
10380 case "${canonical}" in
10381 *-hpux*) ;;
10382 *) LIB_PTHREAD="-lpthread"
10383 LIBS="$LIB_PTHREAD $LIBS" ;;
10384 esac
10385
10386 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10387
10388 fi
10389
10390
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10392 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10393 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-lpthreads $LIBS"
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char cma_open ();
10408 int
10409 main ()
10410 {
10411 return cma_open ();
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10417 ac_cv_lib_pthreads_cma_open=yes
10418 else
10419 ac_cv_lib_pthreads_cma_open=no
10420 fi
10421 rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10426 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10427 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10428 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_LIBPTHREADS 1
10430 _ACEOF
10431
10432 LIBS="-lpthreads $LIBS"
10433
10434 fi
10435
10436
10437 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10438 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10439 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10440 ## added to LIBS in configure would never contain the pthreads part,
10441 ## but the value used in Makefiles might. FIXME?
10442 ##
10443 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10444 ## be harmless on older versions of X where it happens to exist.
10445 test "$opsys" = "aix4-2" && \
10446 test $ac_cv_lib_pthreads_cma_open = yes && \
10447 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10448
10449
10450 case ${host_os} in
10451 aix*)
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10453 $as_echo_n "checking for -bbigtoc option... " >&6; }
10454 if test "${gdb_cv_bigtoc+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456 else
10457
10458 case $GCC in
10459 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10460 *) gdb_cv_bigtoc=-bbigtoc ;;
10461 esac
10462
10463 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466
10467 int
10468 main ()
10469 {
10470 int i;
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"; then :
10476
10477 else
10478 gdb_cv_bigtoc=
10479 fi
10480 rm -f core conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482
10483 fi
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10485 $as_echo "$gdb_cv_bigtoc" >&6; }
10486 ;;
10487 esac
10488
10489 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10490 # used for the tests that follow. We set them back to REAL_CFLAGS and
10491 # REAL_CPPFLAGS later on.
10492
10493 REAL_CFLAGS="$CFLAGS"
10494 REAL_CPPFLAGS="$CPPFLAGS"
10495
10496 if test "${HAVE_X11}" = "yes"; then
10497 DEFS="$C_SWITCH_X_SITE $DEFS"
10498 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10499 LIBS="-lX11 $LIBS"
10500 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10501 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10502
10503 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10504 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10505 # but it's more convenient here to set LD_RUN_PATH
10506 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10507 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10508 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10509 export LD_RUN_PATH
10510 fi
10511
10512 if test "${opsys}" = "gnu-linux"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10514 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517
10518 int
10519 main ()
10520 {
10521 XOpenDisplay ("foo");
10522 ;
10523 return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 xgnu_linux_first_failure=no
10528 else
10529 xgnu_linux_first_failure=yes
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 if test "${xgnu_linux_first_failure}" = "yes"; then
10534 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10535 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10536 OLD_CPPFLAGS="$CPPFLAGS"
10537 OLD_LIBS="$LIBS"
10538 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10539 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10540 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10541 LIBS="$LIBS -b i486-linuxaout"
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544
10545 int
10546 main ()
10547 {
10548 XOpenDisplay ("foo");
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 xgnu_linux_second_failure=no
10555 else
10556 xgnu_linux_second_failure=yes
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 if test "${xgnu_linux_second_failure}" = "yes"; then
10561 # If we get the same failure with -b, there is no use adding -b.
10562 # So take it out. This plays safe.
10563 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10564 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10565 CPPFLAGS="$OLD_CPPFLAGS"
10566 LIBS="$OLD_LIBS"
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10571 $as_echo "yes" >&6; }
10572 fi
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577 fi
10578
10579 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10580 # header files included from there.
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10582 $as_echo_n "checking for Xkb... " >&6; }
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #include <X11/Xlib.h>
10586 #include <X11/XKBlib.h>
10587 int
10588 main ()
10589 {
10590 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10591 ;
10592 return 0;
10593 }
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 emacs_xkb=yes
10597 else
10598 emacs_xkb=no
10599 fi
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10603 $as_echo "$emacs_xkb" >&6; }
10604 if test $emacs_xkb = yes; then
10605
10606 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10607
10608 fi
10609
10610 for ac_func in XrmSetDatabase XScreenResourceString \
10611 XScreenNumberOfScreen XSetWMProtocols
10612 do :
10613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10615 eval as_val=\$$as_ac_var
10616 if test "x$as_val" = x""yes; then :
10617 cat >>confdefs.h <<_ACEOF
10618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10619 _ACEOF
10620
10621 fi
10622 done
10623
10624 fi
10625
10626 if test "${window_system}" = "x11"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10628 $as_echo_n "checking X11 version 6... " >&6; }
10629 if test "${emacs_cv_x11_version_6+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 #include <X11/Xlib.h>
10635 int
10636 main ()
10637 {
10638 #if XlibSpecificationRelease < 6
10639 fail;
10640 #endif
10641
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647 emacs_cv_x11_version_6=yes
10648 else
10649 emacs_cv_x11_version_6=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652 conftest$ac_exeext conftest.$ac_ext
10653 fi
10654
10655 if test $emacs_cv_x11_version_6 = yes; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10657 $as_echo "6 or newer" >&6; }
10658
10659 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10660
10661
10662 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10663
10664 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10665 ## XIM support.
10666 case "$opsys" in
10667 sol2-*) : ;;
10668 *)
10669 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10670
10671 ;;
10672 esac
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10675 $as_echo "before 6" >&6; }
10676 fi
10677 fi
10678
10679
10680 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10681 HAVE_RSVG=no
10682 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10683 if test "${with_rsvg}" != "no"; then
10684 RSVG_REQUIRED=2.11.0
10685 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10686
10687
10688 succeeded=no
10689
10690 # Extract the first word of "pkg-config", so it can be a program name with args.
10691 set dummy pkg-config; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 case $PKG_CONFIG in
10698 [\\/]* | ?:[\\/]*)
10699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10700 ;;
10701 *)
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10704 do
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10712 fi
10713 done
10714 done
10715 IFS=$as_save_IFS
10716
10717 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10718 ;;
10719 esac
10720 fi
10721 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10722 if test -n "$PKG_CONFIG"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10724 $as_echo "$PKG_CONFIG" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 fi
10729
10730
10731
10732 if test "$PKG_CONFIG" = "no" ; then
10733 :
10734 else
10735 PKG_CONFIG_MIN_VERSION=0.9.0
10736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10738 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10739
10740 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742 $as_echo "yes" >&6; }
10743 succeeded=yes
10744
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10746 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10747 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10749 $as_echo "$RSVG_CFLAGS" >&6; }
10750
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10752 $as_echo_n "checking RSVG_LIBS... " >&6; }
10753 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10755 $as_echo "$RSVG_LIBS" >&6; }
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10759 RSVG_CFLAGS=""
10760 RSVG_LIBS=""
10761 ## If we have a custom action on failure, don't print errors, but
10762 ## do set a variable so people can do so.
10763 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10764
10765 fi
10766
10767
10768
10769 else
10770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10772 fi
10773 fi
10774
10775 if test $succeeded = yes; then
10776 HAVE_RSVG=yes
10777 else
10778 :
10779 fi
10780
10781
10782
10783
10784 if test $HAVE_RSVG = yes; then
10785
10786 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10787
10788 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10789 LIBS="$RSVG_LIBS $LIBS"
10790 fi
10791 fi
10792 fi
10793
10794 HAVE_IMAGEMAGICK=no
10795 if test "${HAVE_X11}" = "yes"; then
10796 if test "${with_imagemagick}" != "no"; then
10797 ## 6.2.8 is the earliest version known to work, but earlier versions
10798 ## might work - let us know if you find one.
10799 ## 6.0.7 does not work. See bug#7955.
10800 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10801
10802 succeeded=no
10803
10804 # Extract the first word of "pkg-config", so it can be a program name with args.
10805 set dummy pkg-config; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 case $PKG_CONFIG in
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10814 ;;
10815 *)
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827 done
10828 done
10829 IFS=$as_save_IFS
10830
10831 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10832 ;;
10833 esac
10834 fi
10835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10836 if test -n "$PKG_CONFIG"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10838 $as_echo "$PKG_CONFIG" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842 fi
10843
10844
10845
10846 if test "$PKG_CONFIG" = "no" ; then
10847 :
10848 else
10849 PKG_CONFIG_MIN_VERSION=0.9.0
10850 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10852 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10853
10854 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10856 $as_echo "yes" >&6; }
10857 succeeded=yes
10858
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10860 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10861 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10863 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10864
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10866 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10867 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10869 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10873 IMAGEMAGICK_CFLAGS=""
10874 IMAGEMAGICK_LIBS=""
10875 ## If we have a custom action on failure, don't print errors, but
10876 ## do set a variable so people can do so.
10877 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10878
10879 fi
10880
10881
10882
10883 else
10884 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10885 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10886 fi
10887 fi
10888
10889 if test $succeeded = yes; then
10890 HAVE_IMAGEMAGICK=yes
10891 else
10892 :
10893 fi
10894
10895
10896
10897
10898 if test $HAVE_IMAGEMAGICK = yes; then
10899
10900 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10901
10902 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10903 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10904 for ac_func in MagickExportImagePixels
10905 do :
10906 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10907 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10908 cat >>confdefs.h <<_ACEOF
10909 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10910 _ACEOF
10911
10912 fi
10913 done
10914
10915 fi
10916 fi
10917 fi
10918
10919
10920 HAVE_GTK=no
10921 GTK_OBJ=
10922 if test "${with_gtk3}" = "yes"; then
10923 GLIB_REQUIRED=2.28
10924 GTK_REQUIRED=3.0
10925 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10926
10927
10928 succeeded=no
10929
10930 # Extract the first word of "pkg-config", so it can be a program name with args.
10931 set dummy pkg-config; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 case $PKG_CONFIG in
10938 [\\/]* | ?:[\\/]*)
10939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10940 ;;
10941 *)
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10958 ;;
10959 esac
10960 fi
10961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10962 if test -n "$PKG_CONFIG"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10964 $as_echo "$PKG_CONFIG" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967 $as_echo "no" >&6; }
10968 fi
10969
10970
10971
10972 if test "$PKG_CONFIG" = "no" ; then
10973 pkg_check_gtk=no
10974 else
10975 PKG_CONFIG_MIN_VERSION=0.9.0
10976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10978 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10979
10980 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982 $as_echo "yes" >&6; }
10983 succeeded=yes
10984
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10986 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10987 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10989 $as_echo "$GTK_CFLAGS" >&6; }
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10992 $as_echo_n "checking GTK_LIBS... " >&6; }
10993 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10995 $as_echo "$GTK_LIBS" >&6; }
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
10999 GTK_CFLAGS=""
11000 GTK_LIBS=""
11001 ## If we have a custom action on failure, don't print errors, but
11002 ## do set a variable so people can do so.
11003 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11004
11005 fi
11006
11007
11008
11009 else
11010 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11011 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11012 fi
11013 fi
11014
11015 if test $succeeded = yes; then
11016 pkg_check_gtk=yes
11017 else
11018 pkg_check_gtk=no
11019 fi
11020
11021 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11022 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11023 fi
11024
11025 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11026
11027 GTK_OBJ=emacsgtkfixed.o
11028 fi
11029
11030 if test "$pkg_check_gtk" != "yes"; then
11031 HAVE_GTK=no
11032 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11033 GLIB_REQUIRED=2.10
11034 GTK_REQUIRED=2.10
11035 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11036
11037
11038 succeeded=no
11039
11040 # Extract the first word of "pkg-config", so it can be a program name with args.
11041 set dummy pkg-config; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 case $PKG_CONFIG in
11048 [\\/]* | ?:[\\/]*)
11049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11050 ;;
11051 *)
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11054 do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061 break 2
11062 fi
11063 done
11064 done
11065 IFS=$as_save_IFS
11066
11067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11068 ;;
11069 esac
11070 fi
11071 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11072 if test -n "$PKG_CONFIG"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11074 $as_echo "$PKG_CONFIG" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11078 fi
11079
11080
11081
11082 if test "$PKG_CONFIG" = "no" ; then
11083 pkg_check_gtk=no
11084 else
11085 PKG_CONFIG_MIN_VERSION=0.9.0
11086 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11088 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11089
11090 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11092 $as_echo "yes" >&6; }
11093 succeeded=yes
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11096 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11097 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11099 $as_echo "$GTK_CFLAGS" >&6; }
11100
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11102 $as_echo_n "checking GTK_LIBS... " >&6; }
11103 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11105 $as_echo "$GTK_LIBS" >&6; }
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11109 GTK_CFLAGS=""
11110 GTK_LIBS=""
11111 ## If we have a custom action on failure, don't print errors, but
11112 ## do set a variable so people can do so.
11113 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11114
11115 fi
11116
11117
11118
11119 else
11120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11122 fi
11123 fi
11124
11125 if test $succeeded = yes; then
11126 pkg_check_gtk=yes
11127 else
11128 pkg_check_gtk=no
11129 fi
11130
11131 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11132 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11133 fi
11134 fi
11135 fi
11136
11137 if test x"$pkg_check_gtk" = xyes; then
11138
11139
11140
11141 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11142 CFLAGS="$CFLAGS $GTK_CFLAGS"
11143 LIBS="$GTK_LIBS $LIBS"
11144 GTK_COMPILES=no
11145 for ac_func in gtk_main
11146 do :
11147 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11148 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11149 cat >>confdefs.h <<_ACEOF
11150 #define HAVE_GTK_MAIN 1
11151 _ACEOF
11152 GTK_COMPILES=yes
11153 fi
11154 done
11155
11156 if test "${GTK_COMPILES}" != "yes"; then
11157 if test "$USE_X_TOOLKIT" != "maybe"; then
11158 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11159 fi
11160 else
11161 HAVE_GTK=yes
11162
11163 $as_echo "#define USE_GTK 1" >>confdefs.h
11164
11165 GTK_OBJ="gtkutil.o $GTK_OBJ"
11166 USE_X_TOOLKIT=none
11167 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11168 :
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11171 closing open displays. This is no problem if you just use
11172 one display, but if you use more than one and close one of them
11173 Emacs may crash." >&5
11174 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11175 closing open displays. This is no problem if you just use
11176 one display, but if you use more than one and close one of them
11177 Emacs may crash." >&2;}
11178 sleep 3
11179 fi
11180 fi
11181
11182 fi
11183
11184
11185
11186 if test "${HAVE_GTK}" = "yes"; then
11187
11188 if test "$with_toolkit_scroll_bars" != no; then
11189 with_toolkit_scroll_bars=yes
11190 fi
11191
11192 HAVE_GTK_FILE_SELECTION=no
11193 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11194 #include <gtk/gtk.h>
11195 "
11196 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11197 HAVE_GTK_FILE_SELECTION=yes
11198 else
11199 HAVE_GTK_FILE_SELECTION=no
11200 fi
11201
11202 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11203 for ac_func in gtk_file_selection_new
11204 do :
11205 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11206 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11207 cat >>confdefs.h <<_ACEOF
11208 #define HAVE_GTK_FILE_SELECTION_NEW 1
11209 _ACEOF
11210
11211 fi
11212 done
11213
11214 fi
11215
11216
11217 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11218 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11219 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11220 gtk_orientable_set_orientation
11221 do :
11222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11224 eval as_val=\$$as_ac_var
11225 if test "x$as_val" = x""yes; then :
11226 cat >>confdefs.h <<_ACEOF
11227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11228 _ACEOF
11229
11230 fi
11231 done
11232
11233
11234 fi
11235
11236 HAVE_DBUS=no
11237 DBUS_OBJ=
11238 if test "${with_dbus}" = "yes"; then
11239
11240 succeeded=no
11241
11242 # Extract the first word of "pkg-config", so it can be a program name with args.
11243 set dummy pkg-config; ac_word=$2
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245 $as_echo_n "checking for $ac_word... " >&6; }
11246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 case $PKG_CONFIG in
11250 [\\/]* | ?:[\\/]*)
11251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11252 ;;
11253 *)
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11256 do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265 done
11266 done
11267 IFS=$as_save_IFS
11268
11269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11270 ;;
11271 esac
11272 fi
11273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11274 if test -n "$PKG_CONFIG"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11276 $as_echo "$PKG_CONFIG" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281
11282
11283
11284 if test "$PKG_CONFIG" = "no" ; then
11285 HAVE_DBUS=no
11286 else
11287 PKG_CONFIG_MIN_VERSION=0.9.0
11288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11290 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11291
11292 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294 $as_echo "yes" >&6; }
11295 succeeded=yes
11296
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11298 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11299 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11301 $as_echo "$DBUS_CFLAGS" >&6; }
11302
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11304 $as_echo_n "checking DBUS_LIBS... " >&6; }
11305 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11307 $as_echo "$DBUS_LIBS" >&6; }
11308 else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311 DBUS_CFLAGS=""
11312 DBUS_LIBS=""
11313 ## If we have a custom action on failure, don't print errors, but
11314 ## do set a variable so people can do so.
11315 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11316
11317 fi
11318
11319
11320
11321 else
11322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11324 fi
11325 fi
11326
11327 if test $succeeded = yes; then
11328 HAVE_DBUS=yes
11329 else
11330 HAVE_DBUS=no
11331 fi
11332
11333 if test "$HAVE_DBUS" = yes; then
11334 LIBS="$LIBS $DBUS_LIBS"
11335
11336 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11337
11338 for ac_func in dbus_watch_get_unix_fd
11339 do :
11340 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11341 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
11342 cat >>confdefs.h <<_ACEOF
11343 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11344 _ACEOF
11345
11346 fi
11347 done
11348
11349 DBUS_OBJ=dbusbind.o
11350 fi
11351 fi
11352
11353
11354 HAVE_GSETTINGS=no
11355 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11356
11357 succeeded=no
11358
11359 # Extract the first word of "pkg-config", so it can be a program name with args.
11360 set dummy pkg-config; ac_word=$2
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11362 $as_echo_n "checking for $ac_word... " >&6; }
11363 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 case $PKG_CONFIG in
11367 [\\/]* | ?:[\\/]*)
11368 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11369 ;;
11370 *)
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11373 do
11374 IFS=$as_save_IFS
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11378 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 break 2
11381 fi
11382 done
11383 done
11384 IFS=$as_save_IFS
11385
11386 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11387 ;;
11388 esac
11389 fi
11390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11391 if test -n "$PKG_CONFIG"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11393 $as_echo "$PKG_CONFIG" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 fi
11398
11399
11400
11401 if test "$PKG_CONFIG" = "no" ; then
11402 HAVE_GSETTINGS=no
11403 else
11404 PKG_CONFIG_MIN_VERSION=0.9.0
11405 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11407 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11408
11409 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 $as_echo "yes" >&6; }
11412 succeeded=yes
11413
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11415 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11416 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11418 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11421 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11422 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11424 $as_echo "$GSETTINGS_LIBS" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11428 GSETTINGS_CFLAGS=""
11429 GSETTINGS_LIBS=""
11430 ## If we have a custom action on failure, don't print errors, but
11431 ## do set a variable so people can do so.
11432 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11433
11434 fi
11435
11436
11437
11438 else
11439 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11440 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11441 fi
11442 fi
11443
11444 if test $succeeded = yes; then
11445 HAVE_GSETTINGS=yes
11446 else
11447 HAVE_GSETTINGS=no
11448 fi
11449
11450 if test "$HAVE_GSETTINGS" = "yes"; then
11451
11452 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11453
11454 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11455 SETTINGS_LIBS="$GSETTINGS_LIBS"
11456 fi
11457 fi
11458
11459 HAVE_GCONF=no
11460 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11461
11462 succeeded=no
11463
11464 # Extract the first word of "pkg-config", so it can be a program name with args.
11465 set dummy pkg-config; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 case $PKG_CONFIG in
11472 [\\/]* | ?:[\\/]*)
11473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11474 ;;
11475 *)
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11478 do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11483 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487 done
11488 done
11489 IFS=$as_save_IFS
11490
11491 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11492 ;;
11493 esac
11494 fi
11495 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11496 if test -n "$PKG_CONFIG"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11498 $as_echo "$PKG_CONFIG" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11502 fi
11503
11504
11505
11506 if test "$PKG_CONFIG" = "no" ; then
11507 HAVE_GCONF=no
11508 else
11509 PKG_CONFIG_MIN_VERSION=0.9.0
11510 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11512 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11513
11514 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516 $as_echo "yes" >&6; }
11517 succeeded=yes
11518
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11520 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11521 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11523 $as_echo "$GCONF_CFLAGS" >&6; }
11524
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11526 $as_echo_n "checking GCONF_LIBS... " >&6; }
11527 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11529 $as_echo "$GCONF_LIBS" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 GCONF_CFLAGS=""
11534 GCONF_LIBS=""
11535 ## If we have a custom action on failure, don't print errors, but
11536 ## do set a variable so people can do so.
11537 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11538
11539 fi
11540
11541
11542
11543 else
11544 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11545 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11546 fi
11547 fi
11548
11549 if test $succeeded = yes; then
11550 HAVE_GCONF=yes
11551 else
11552 HAVE_GCONF=no
11553 fi
11554
11555 if test "$HAVE_GCONF" = yes; then
11556
11557 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11558
11559 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11560 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11561 fi
11562 fi
11563
11564 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11565 SAVE_CFLAGS="$CFLAGS"
11566 SAVE_LDFLAGS="$LDFLAGS"
11567 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11568 LDFLAGS="$SETTINGS_LIBS $LDFLAGS"
11569 for ac_func in g_type_init
11570 do :
11571 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11572 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11573 cat >>confdefs.h <<_ACEOF
11574 #define HAVE_G_TYPE_INIT 1
11575 _ACEOF
11576
11577 fi
11578 done
11579
11580 CFLAGS="$SAVE_CFLAGS"
11581 LDFLAGS="$SAVE_LDFLAGS"
11582 fi
11583
11584
11585
11586
11587 HAVE_LIBSELINUX=no
11588 LIBSELINUX_LIBS=
11589 if test "${with_selinux}" = "yes"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11591 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11592 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lselinux $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char lgetfilecon ();
11607 int
11608 main ()
11609 {
11610 return lgetfilecon ();
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_selinux_lgetfilecon=yes
11617 else
11618 ac_cv_lib_selinux_lgetfilecon=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11625 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11626 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11627 HAVE_LIBSELINUX=yes
11628 else
11629 HAVE_LIBSELINUX=no
11630 fi
11631
11632 if test "$HAVE_LIBSELINUX" = yes; then
11633
11634 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11635
11636 LIBSELINUX_LIBS=-lselinux
11637 fi
11638 fi
11639
11640
11641 HAVE_GNUTLS=no
11642 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11643 if test "${with_gnutls}" = "yes" ; then
11644
11645 succeeded=no
11646
11647 # Extract the first word of "pkg-config", so it can be a program name with args.
11648 set dummy pkg-config; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 case $PKG_CONFIG in
11655 [\\/]* | ?:[\\/]*)
11656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11657 ;;
11658 *)
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670 done
11671 done
11672 IFS=$as_save_IFS
11673
11674 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11675 ;;
11676 esac
11677 fi
11678 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11679 if test -n "$PKG_CONFIG"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11681 $as_echo "$PKG_CONFIG" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685 fi
11686
11687
11688
11689 if test "$PKG_CONFIG" = "no" ; then
11690 HAVE_GNUTLS=no
11691 else
11692 PKG_CONFIG_MIN_VERSION=0.9.0
11693 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11695 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11696
11697 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699 $as_echo "yes" >&6; }
11700 succeeded=yes
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11703 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11704 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11706 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11709 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11710 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11712 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11716 LIBGNUTLS_CFLAGS=""
11717 LIBGNUTLS_LIBS=""
11718 ## If we have a custom action on failure, don't print errors, but
11719 ## do set a variable so people can do so.
11720 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
11721
11722 fi
11723
11724
11725
11726 else
11727 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11728 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11729 fi
11730 fi
11731
11732 if test $succeeded = yes; then
11733 HAVE_GNUTLS=yes
11734 else
11735 HAVE_GNUTLS=no
11736 fi
11737
11738 if test "${HAVE_GNUTLS}" = "yes"; then
11739
11740 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11741
11742 fi
11743
11744 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11745 LIBS="$LIBGNUTLS_LIBS $LIBS"
11746 for ac_func in gnutls_certificate_set_verify_function
11747 do :
11748 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11749 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11750 cat >>confdefs.h <<_ACEOF
11751 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11752 _ACEOF
11753 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11754 fi
11755 done
11756
11757
11758 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11759
11760 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11761
11762 fi
11763 fi
11764
11765
11766
11767
11768 HAVE_XAW3D=no
11769 LUCID_LIBW=
11770 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11771 if test "$with_xaw3d" != no; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11773 $as_echo_n "checking for xaw3d... " >&6; }
11774 if test "${emacs_cv_xaw3d+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779
11780 #include <X11/Intrinsic.h>
11781 #include <X11/Xaw3d/Simple.h>
11782 int
11783 main ()
11784 {
11785
11786 ;
11787 return 0;
11788 }
11789 _ACEOF
11790 if ac_fn_c_try_link "$LINENO"; then :
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11792 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11793 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lXaw3d $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char XawScrollbarSetThumb ();
11808 int
11809 main ()
11810 {
11811 return XawScrollbarSetThumb ();
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11818 else
11819 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11826 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11827 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11828 emacs_cv_xaw3d=yes
11829 else
11830 emacs_cv_xaw3d=no
11831 fi
11832
11833 else
11834 emacs_cv_xaw3d=no
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 fi
11839
11840 else
11841 emacs_cv_xaw3d=no
11842 fi
11843 if test $emacs_cv_xaw3d = yes; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11845 $as_echo "yes; using Lucid toolkit" >&6; }
11846 USE_X_TOOLKIT=LUCID
11847 HAVE_XAW3D=yes
11848 LUCID_LIBW=-lXaw3d
11849
11850 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11851
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11856 $as_echo_n "checking for libXaw... " >&6; }
11857 if test "${emacs_cv_xaw+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862
11863 #include <X11/Intrinsic.h>
11864 #include <X11/Xaw/Simple.h>
11865 int
11866 main ()
11867 {
11868
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 emacs_cv_xaw=yes
11875 else
11876 emacs_cv_xaw=no
11877 fi
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 fi
11881
11882 if test $emacs_cv_xaw = yes; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11884 $as_echo "yes; using Lucid toolkit" >&6; }
11885 USE_X_TOOLKIT=LUCID
11886 LUCID_LIBW=-lXaw
11887 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11888 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11889 else
11890 as_fn_error "No X toolkit could be found.
11891 If you are sure you want Emacs compiled without an X toolkit, pass
11892 --with-x-toolkit=no
11893 to configure. Otherwise, install the development libraries for the toolkit
11894 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11895 fi
11896 fi
11897 fi
11898
11899 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11900
11901 LIBXTR6=
11902 if test "${USE_X_TOOLKIT}" != "none"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11904 $as_echo_n "checking X11 toolkit version... " >&6; }
11905 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11910 #include <X11/Intrinsic.h>
11911 int
11912 main ()
11913 {
11914 #if XtSpecificationRelease < 6
11915 fail;
11916 #endif
11917
11918 ;
11919 return 0;
11920 }
11921 _ACEOF
11922 if ac_fn_c_try_link "$LINENO"; then :
11923 emacs_cv_x11_toolkit_version_6=yes
11924 else
11925 emacs_cv_x11_toolkit_version_6=no
11926 fi
11927 rm -f core conftest.err conftest.$ac_objext \
11928 conftest$ac_exeext conftest.$ac_ext
11929 fi
11930
11931 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11932 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11934 $as_echo "6 or newer" >&6; }
11935
11936 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11937
11938 LIBXTR6="-lSM -lICE"
11939 case "$opsys" in
11940 ## Use libw.a along with X11R6 Xt.
11941 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11942 esac
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11945 $as_echo "before 6" >&6; }
11946 fi
11947
11948 OLDLIBS="$LIBS"
11949 if test x$HAVE_X11XTR6 = xyes; then
11950 LIBS="-lXt -lSM -lICE $LIBS"
11951 else
11952 LIBS="-lXt $LIBS"
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11955 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11956 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lXmu $LIBS"
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char XmuConvertStandardSelection ();
11971 int
11972 main ()
11973 {
11974 return XmuConvertStandardSelection ();
11975 ;
11976 return 0;
11977 }
11978 _ACEOF
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11981 else
11982 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11989 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11990 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11991 cat >>confdefs.h <<_ACEOF
11992 #define HAVE_LIBXMU 1
11993 _ACEOF
11994
11995 LIBS="-lXmu $LIBS"
11996
11997 fi
11998
11999 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12000 fi
12001
12002
12003 LIBXMU=-lXmu
12004 case $opsys in
12005 ## These systems don't supply Xmu.
12006 hpux* | aix4-2 )
12007 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12008 ;;
12009 esac
12010
12011
12012 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12013 if test "${HAVE_X11}" = "yes"; then
12014 if test "${USE_X_TOOLKIT}" != "none"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12016 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12017 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 ac_check_lib_save_LIBS=$LIBS
12021 LIBS="-lXext $LIBS"
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024
12025 /* Override any GCC internal prototype to avoid an error.
12026 Use char because int might match the return type of a GCC
12027 builtin and then its argument prototype would still apply. */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 char XShapeQueryExtension ();
12032 int
12033 main ()
12034 {
12035 return XShapeQueryExtension ();
12036 ;
12037 return 0;
12038 }
12039 _ACEOF
12040 if ac_fn_c_try_link "$LINENO"; then :
12041 ac_cv_lib_Xext_XShapeQueryExtension=yes
12042 else
12043 ac_cv_lib_Xext_XShapeQueryExtension=no
12044 fi
12045 rm -f core conftest.err conftest.$ac_objext \
12046 conftest$ac_exeext conftest.$ac_ext
12047 LIBS=$ac_check_lib_save_LIBS
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12050 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12051 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12052 cat >>confdefs.h <<_ACEOF
12053 #define HAVE_LIBXEXT 1
12054 _ACEOF
12055
12056 LIBS="-lXext $LIBS"
12057
12058 fi
12059
12060 fi
12061 fi
12062
12063 LIBXP=
12064 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12066 $as_echo_n "checking for Motif version 2.1... " >&6; }
12067 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #include <Xm/Xm.h>
12073 int
12074 main ()
12075 {
12076 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12077 int x = 5;
12078 #else
12079 Motif version prior to 2.1.
12080 #endif
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_compile "$LINENO"; then :
12086 emacs_cv_motif_version_2_1=yes
12087 else
12088 emacs_cv_motif_version_2_1=no
12089 fi
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12093 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12094 if test $emacs_cv_motif_version_2_1 = yes; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12096 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12097 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-lXp $LIBS"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char XpCreateContext ();
12112 int
12113 main ()
12114 {
12115 return XpCreateContext ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"; then :
12121 ac_cv_lib_Xp_XpCreateContext=yes
12122 else
12123 ac_cv_lib_Xp_XpCreateContext=no
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12130 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12131 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12132 LIBXP=-lXp
12133 fi
12134
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12137 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12138 if test "${emacs_cv_lesstif+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 # We put this in CFLAGS temporarily to precede other -I options
12142 # that might be in CFLAGS temporarily.
12143 # We put this in CPPFLAGS where it precedes the other -I options.
12144 OLD_CPPFLAGS=$CPPFLAGS
12145 OLD_CFLAGS=$CFLAGS
12146 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12147 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12151 int
12152 main ()
12153 {
12154 int x = 5;
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160 emacs_cv_lesstif=yes
12161 else
12162 emacs_cv_lesstif=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12167 $as_echo "$emacs_cv_lesstif" >&6; }
12168 if test $emacs_cv_lesstif = yes; then
12169 # Make sure this -I option remains in CPPFLAGS after it is set
12170 # back to REAL_CPPFLAGS.
12171 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12172 # have those other -I options anyway. Ultimately, having this
12173 # directory ultimately in CPPFLAGS will be enough.
12174 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12175 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12176 else
12177 CFLAGS=$OLD_CFLAGS
12178 CPPFLAGS=$OLD_CPPFLAGS
12179 fi
12180 fi
12181 fi
12182
12183
12184 USE_TOOLKIT_SCROLL_BARS=no
12185 if test "${with_toolkit_scroll_bars}" != "no"; then
12186 if test "${USE_X_TOOLKIT}" != "none"; then
12187 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12188 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12189
12190 HAVE_XAW3D=no
12191 USE_TOOLKIT_SCROLL_BARS=yes
12192 elif test "${HAVE_XAW3D}" = "yes"; then
12193 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12194
12195 USE_TOOLKIT_SCROLL_BARS=yes
12196 fi
12197 elif test "${HAVE_GTK}" = "yes"; then
12198 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12199
12200 USE_TOOLKIT_SCROLL_BARS=yes
12201 elif test "${HAVE_NS}" = "yes"; then
12202 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12203
12204 USE_TOOLKIT_SCROLL_BARS=yes
12205 fi
12206 fi
12207
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210
12211 #include <X11/Xlib.h>
12212 #include <X11/Xresource.h>
12213 int
12214 main ()
12215 {
12216 XIMProc callback;
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_compile "$LINENO"; then :
12222 HAVE_XIM=yes
12223
12224 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12225
12226 else
12227 HAVE_XIM=no
12228 fi
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12230
12231
12232 if test "${with_xim}" != "no"; then
12233
12234 $as_echo "#define USE_XIM 1" >>confdefs.h
12235
12236 fi
12237
12238
12239 if test "${HAVE_XIM}" != "no"; then
12240 late_CFLAGS=$CFLAGS
12241 if test "$GCC" = yes; then
12242 CFLAGS="$CFLAGS --pedantic-errors"
12243 fi
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246
12247 #include <X11/Xlib.h>
12248 #include <X11/Xresource.h>
12249 int
12250 main ()
12251 {
12252 Display *display;
12253 XrmDatabase db;
12254 char *res_name;
12255 char *res_class;
12256 XIMProc callback;
12257 XPointer *client_data;
12258 #ifndef __GNUC__
12259 /* If we're not using GCC, it's probably not XFree86, and this is
12260 probably right, but we can't use something like --pedantic-errors. */
12261 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12262 char*, XIMProc, XPointer*);
12263 #endif
12264 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12265 client_data);
12266 ;
12267 return 0;
12268 }
12269 _ACEOF
12270 if ac_fn_c_try_compile "$LINENO"; then :
12271 emacs_cv_arg6_star=yes
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 if test "$emacs_cv_arg6_star" = yes; then
12275 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12276
12277 else
12278 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12279
12280 fi
12281 CFLAGS=$late_CFLAGS
12282 fi
12283
12284 ### Start of font-backend (under any platform) section.
12285 # (nothing here yet -- this is a placeholder)
12286 ### End of font-backend (under any platform) section.
12287
12288 ### Start of font-backend (under X11) section.
12289 if test "${HAVE_X11}" = "yes"; then
12290
12291 succeeded=no
12292
12293 # Extract the first word of "pkg-config", so it can be a program name with args.
12294 set dummy pkg-config; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 case $PKG_CONFIG in
12301 [\\/]* | ?:[\\/]*)
12302 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12303 ;;
12304 *)
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12307 do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316 done
12317 done
12318 IFS=$as_save_IFS
12319
12320 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12321 ;;
12322 esac
12323 fi
12324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12325 if test -n "$PKG_CONFIG"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12327 $as_echo "$PKG_CONFIG" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12331 fi
12332
12333
12334
12335 if test "$PKG_CONFIG" = "no" ; then
12336 HAVE_FC=no
12337 else
12338 PKG_CONFIG_MIN_VERSION=0.9.0
12339 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12341 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12342
12343 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12345 $as_echo "yes" >&6; }
12346 succeeded=yes
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12349 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12350 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12352 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12355 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12356 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12358 $as_echo "$FONTCONFIG_LIBS" >&6; }
12359 else
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 FONTCONFIG_CFLAGS=""
12363 FONTCONFIG_LIBS=""
12364 ## If we have a custom action on failure, don't print errors, but
12365 ## do set a variable so people can do so.
12366 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12367
12368 fi
12369
12370
12371
12372 else
12373 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12374 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12375 fi
12376 fi
12377
12378 if test $succeeded = yes; then
12379 HAVE_FC=yes
12380 else
12381 HAVE_FC=no
12382 fi
12383
12384
12385 ## Use -lXft if available, unless `--with-xft=no'.
12386 HAVE_XFT=maybe
12387 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12388 with_xft="no";
12389 fi
12390 if test "x${with_xft}" != "xno"; then
12391
12392
12393 succeeded=no
12394
12395 # Extract the first word of "pkg-config", so it can be a program name with args.
12396 set dummy pkg-config; ac_word=$2
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 case $PKG_CONFIG in
12403 [\\/]* | ?:[\\/]*)
12404 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12405 ;;
12406 *)
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12409 do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12414 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 break 2
12417 fi
12418 done
12419 done
12420 IFS=$as_save_IFS
12421
12422 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12423 ;;
12424 esac
12425 fi
12426 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12427 if test -n "$PKG_CONFIG"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12429 $as_echo "$PKG_CONFIG" >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12433 fi
12434
12435
12436
12437 if test "$PKG_CONFIG" = "no" ; then
12438 HAVE_XFT=no
12439 else
12440 PKG_CONFIG_MIN_VERSION=0.9.0
12441 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12443 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12444
12445 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; }
12448 succeeded=yes
12449
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12451 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12452 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12454 $as_echo "$XFT_CFLAGS" >&6; }
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12457 $as_echo_n "checking XFT_LIBS... " >&6; }
12458 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12460 $as_echo "$XFT_LIBS" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 XFT_CFLAGS=""
12465 XFT_LIBS=""
12466 ## If we have a custom action on failure, don't print errors, but
12467 ## do set a variable so people can do so.
12468 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12469
12470 fi
12471
12472
12473
12474 else
12475 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12476 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12477 fi
12478 fi
12479
12480 if test $succeeded = yes; then
12481 :
12482 else
12483 HAVE_XFT=no
12484 fi
12485
12486 ## Because xftfont.c uses XRenderQueryExtension, we also
12487 ## need to link to -lXrender.
12488 HAVE_XRENDER=no
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12490 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12491 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-lXrender $LIBS"
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12502 #ifdef __cplusplus
12503 extern "C"
12504 #endif
12505 char XRenderQueryExtension ();
12506 int
12507 main ()
12508 {
12509 return XRenderQueryExtension ();
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12516 else
12517 ac_cv_lib_Xrender_XRenderQueryExtension=no
12518 fi
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 LIBS=$ac_check_lib_save_LIBS
12522 fi
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12524 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12525 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12526 HAVE_XRENDER=yes
12527 fi
12528
12529 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12530 OLD_CPPFLAGS="$CPPFLAGS"
12531 OLD_CFLAGS="$CFLAGS"
12532 OLD_LIBS="$LIBS"
12533 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12534 CFLAGS="$CFLAGS $XFT_CFLAGS"
12535 XFT_LIBS="-lXrender $XFT_LIBS"
12536 LIBS="$XFT_LIBS $LIBS"
12537 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12538 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12540 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12541 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 ac_check_lib_save_LIBS=$LIBS
12545 LIBS="-lXft $XFT_LIBS $LIBS"
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char XftFontOpen ();
12556 int
12557 main ()
12558 {
12559 return XftFontOpen ();
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_lib_Xft_XftFontOpen=yes
12566 else
12567 ac_cv_lib_Xft_XftFontOpen=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12574 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12575 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12576 HAVE_XFT=yes
12577 fi
12578
12579 fi
12580
12581
12582
12583 if test "${HAVE_XFT}" = "yes"; then
12584
12585 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12586
12587
12588 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12589 else
12590 CPPFLAGS="$OLD_CPPFLAGS"
12591 CFLAGS="$OLD_CFLAGS"
12592 LIBS="$OLD_LIBS"
12593 fi # "${HAVE_XFT}" = "yes"
12594 fi # "$HAVE_XFT" != no
12595 fi # "x${with_xft}" != "xno"
12596
12597 ## We used to allow building with FreeType and without Xft.
12598 ## However, the ftx font backend driver is not in good shape.
12599 if test "$HAVE_XFT" != "yes"; then
12600 HAVE_XFT=no
12601 HAVE_FREETYPE=no
12602 else
12603
12604 succeeded=no
12605
12606 # Extract the first word of "pkg-config", so it can be a program name with args.
12607 set dummy pkg-config; ac_word=$2
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609 $as_echo_n "checking for $ac_word... " >&6; }
12610 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 case $PKG_CONFIG in
12614 [\\/]* | ?:[\\/]*)
12615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12616 ;;
12617 *)
12618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12619 for as_dir in $PATH
12620 do
12621 IFS=$as_save_IFS
12622 test -z "$as_dir" && as_dir=.
12623 for ac_exec_ext in '' $ac_executable_extensions; do
12624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12625 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12627 break 2
12628 fi
12629 done
12630 done
12631 IFS=$as_save_IFS
12632
12633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12634 ;;
12635 esac
12636 fi
12637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12638 if test -n "$PKG_CONFIG"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12640 $as_echo "$PKG_CONFIG" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 fi
12645
12646
12647
12648 if test "$PKG_CONFIG" = "no" ; then
12649 HAVE_FREETYPE=no
12650 else
12651 PKG_CONFIG_MIN_VERSION=0.9.0
12652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12654 $as_echo_n "checking for freetype2... " >&6; }
12655
12656 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12658 $as_echo "yes" >&6; }
12659 succeeded=yes
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12662 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12663 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12665 $as_echo "$FREETYPE_CFLAGS" >&6; }
12666
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12668 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12669 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12671 $as_echo "$FREETYPE_LIBS" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 FREETYPE_CFLAGS=""
12676 FREETYPE_LIBS=""
12677 ## If we have a custom action on failure, don't print errors, but
12678 ## do set a variable so people can do so.
12679 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12680
12681 fi
12682
12683
12684
12685 else
12686 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12687 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12688 fi
12689 fi
12690
12691 if test $succeeded = yes; then
12692 HAVE_FREETYPE=yes
12693 else
12694 HAVE_FREETYPE=no
12695 fi
12696
12697
12698 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12699 fi
12700
12701 HAVE_LIBOTF=no
12702 if test "${HAVE_FREETYPE}" = "yes"; then
12703
12704 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12705
12706 if test "${with_libotf}" != "no"; then
12707
12708 succeeded=no
12709
12710 # Extract the first word of "pkg-config", so it can be a program name with args.
12711 set dummy pkg-config; ac_word=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 case $PKG_CONFIG in
12718 [\\/]* | ?:[\\/]*)
12719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12720 ;;
12721 *)
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12732 fi
12733 done
12734 done
12735 IFS=$as_save_IFS
12736
12737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12738 ;;
12739 esac
12740 fi
12741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12742 if test -n "$PKG_CONFIG"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12744 $as_echo "$PKG_CONFIG" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748 fi
12749
12750
12751
12752 if test "$PKG_CONFIG" = "no" ; then
12753 HAVE_LIBOTF=no
12754 else
12755 PKG_CONFIG_MIN_VERSION=0.9.0
12756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12758 $as_echo_n "checking for libotf... " >&6; }
12759
12760 if $PKG_CONFIG --exists "libotf" 2>&5; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12763 succeeded=yes
12764
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12766 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12767 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12769 $as_echo "$LIBOTF_CFLAGS" >&6; }
12770
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12772 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12773 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12775 $as_echo "$LIBOTF_LIBS" >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12779 LIBOTF_CFLAGS=""
12780 LIBOTF_LIBS=""
12781 ## If we have a custom action on failure, don't print errors, but
12782 ## do set a variable so people can do so.
12783 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12784
12785 fi
12786
12787
12788
12789 else
12790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12792 fi
12793 fi
12794
12795 if test $succeeded = yes; then
12796 HAVE_LIBOTF=yes
12797 else
12798 HAVE_LIBOTF=no
12799 fi
12800
12801 if test "$HAVE_LIBOTF" = "yes"; then
12802
12803 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12804
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12806 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12807 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lotf $LIBS"
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char OTF_get_variation_glyphs ();
12822 int
12823 main ()
12824 {
12825 return OTF_get_variation_glyphs ();
12826 ;
12827 return 0;
12828 }
12829 _ACEOF
12830 if ac_fn_c_try_link "$LINENO"; then :
12831 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12832 else
12833 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12834 fi
12835 rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext conftest.$ac_ext
12837 LIBS=$ac_check_lib_save_LIBS
12838 fi
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12840 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12841 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12842 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12843 else
12844 HAVE_OTF_GET_VARIATION_GLYPHS=no
12845 fi
12846
12847 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12848
12849 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12850
12851 fi
12852 fi
12853 fi
12854 fi
12855
12856 HAVE_M17N_FLT=no
12857 if test "${HAVE_LIBOTF}" = yes; then
12858 if test "${with_m17n_flt}" != "no"; then
12859
12860 succeeded=no
12861
12862 # Extract the first word of "pkg-config", so it can be a program name with args.
12863 set dummy pkg-config; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 case $PKG_CONFIG in
12870 [\\/]* | ?:[\\/]*)
12871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12872 ;;
12873 *)
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
12879 for ac_exec_ext in '' $ac_executable_extensions; do
12880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883 break 2
12884 fi
12885 done
12886 done
12887 IFS=$as_save_IFS
12888
12889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12890 ;;
12891 esac
12892 fi
12893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12894 if test -n "$PKG_CONFIG"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12896 $as_echo "$PKG_CONFIG" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12900 fi
12901
12902
12903
12904 if test "$PKG_CONFIG" = "no" ; then
12905 HAVE_M17N_FLT=no
12906 else
12907 PKG_CONFIG_MIN_VERSION=0.9.0
12908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12910 $as_echo_n "checking for m17n-flt... " >&6; }
12911
12912 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 $as_echo "yes" >&6; }
12915 succeeded=yes
12916
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12918 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12919 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12921 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12924 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12925 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12927 $as_echo "$M17N_FLT_LIBS" >&6; }
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12931 M17N_FLT_CFLAGS=""
12932 M17N_FLT_LIBS=""
12933 ## If we have a custom action on failure, don't print errors, but
12934 ## do set a variable so people can do so.
12935 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12936
12937 fi
12938
12939
12940
12941 else
12942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12944 fi
12945 fi
12946
12947 if test $succeeded = yes; then
12948 HAVE_M17N_FLT=yes
12949 else
12950 HAVE_M17N_FLT=no
12951 fi
12952
12953 if test "$HAVE_M17N_FLT" = "yes"; then
12954
12955 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12956
12957 fi
12958 fi
12959 fi
12960 else
12961 HAVE_XFT=no
12962 HAVE_FREETYPE=no
12963 HAVE_LIBOTF=no
12964 HAVE_M17N_FLT=no
12965 fi
12966
12967 ### End of font-backend (under X11) section.
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 ### Use -lXpm if available, unless `--with-xpm=no'.
12979 HAVE_XPM=no
12980 LIBXPM=
12981 if test "${HAVE_X11}" = "yes"; then
12982 if test "${with_xpm}" != "no"; then
12983 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12984 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12986 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12987 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12988 $as_echo_n "(cached) " >&6
12989 else
12990 ac_check_lib_save_LIBS=$LIBS
12991 LIBS="-lXpm -lX11 $LIBS"
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994
12995 /* Override any GCC internal prototype to avoid an error.
12996 Use char because int might match the return type of a GCC
12997 builtin and then its argument prototype would still apply. */
12998 #ifdef __cplusplus
12999 extern "C"
13000 #endif
13001 char XpmReadFileToPixmap ();
13002 int
13003 main ()
13004 {
13005 return XpmReadFileToPixmap ();
13006 ;
13007 return 0;
13008 }
13009 _ACEOF
13010 if ac_fn_c_try_link "$LINENO"; then :
13011 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13012 else
13013 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13014 fi
13015 rm -f core conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext conftest.$ac_ext
13017 LIBS=$ac_check_lib_save_LIBS
13018 fi
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13020 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13021 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13022 HAVE_XPM=yes
13023 fi
13024
13025 fi
13026
13027
13028 if test "${HAVE_XPM}" = "yes"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13030 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include "X11/xpm.h"
13034 #ifndef XpmReturnAllocPixels
13035 no_return_alloc_pixels
13036 #endif
13037
13038 _ACEOF
13039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13040 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13041 HAVE_XPM=no
13042 else
13043 HAVE_XPM=yes
13044 fi
13045 rm -f conftest*
13046
13047
13048 if test "${HAVE_XPM}" = "yes"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13050 $as_echo "yes" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055 fi
13056 fi
13057
13058 if test "${HAVE_XPM}" = "yes"; then
13059
13060 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13061
13062 LIBXPM=-lXpm
13063 fi
13064 fi
13065
13066
13067 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13068 HAVE_JPEG=no
13069 LIBJPEG=
13070 if test "${HAVE_X11}" = "yes"; then
13071 if test "${with_jpeg}" != "no"; then
13072 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13073 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13075 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13076 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 ac_check_lib_save_LIBS=$LIBS
13080 LIBS="-ljpeg $LIBS"
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087 #ifdef __cplusplus
13088 extern "C"
13089 #endif
13090 char jpeg_destroy_compress ();
13091 int
13092 main ()
13093 {
13094 return jpeg_destroy_compress ();
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 if ac_fn_c_try_link "$LINENO"; then :
13100 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13101 else
13102 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13106 LIBS=$ac_check_lib_save_LIBS
13107 fi
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13109 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13110 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13111 HAVE_JPEG=yes
13112 fi
13113
13114 fi
13115
13116
13117 fi
13118
13119 if test "${HAVE_JPEG}" = "yes"; then
13120 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13121
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13124 #include <jpeglib.h>
13125 version=JPEG_LIB_VERSION
13126
13127 _ACEOF
13128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13129 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13130 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13131
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13134 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13135 HAVE_JPEG=no
13136 fi
13137 rm -f conftest*
13138
13139 fi
13140 if test "${HAVE_JPEG}" = "yes"; then
13141 LIBJPEG=-ljpeg
13142 fi
13143 fi
13144
13145
13146 ### Use -lpng if available, unless `--with-png=no'.
13147 HAVE_PNG=no
13148 LIBPNG=
13149 if test "${HAVE_X11}" = "yes"; then
13150 if test "${with_png}" != "no"; then
13151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13152 # in /usr/include/libpng.
13153 for ac_header in png.h libpng/png.h
13154 do :
13155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13157 eval as_val=\$$as_ac_Header
13158 if test "x$as_val" = x""yes; then :
13159 cat >>confdefs.h <<_ACEOF
13160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13161 _ACEOF
13162
13163 fi
13164
13165 done
13166
13167 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13169 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13170 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lpng -lz -lm $LIBS"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 char png_get_channels ();
13185 int
13186 main ()
13187 {
13188 return png_get_channels ();
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 ac_cv_lib_png_png_get_channels=yes
13195 else
13196 ac_cv_lib_png_png_get_channels=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13203 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13204 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13205 HAVE_PNG=yes
13206 fi
13207
13208 fi
13209 fi
13210
13211 if test "${HAVE_PNG}" = "yes"; then
13212
13213 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13214
13215 LIBPNG="-lpng -lz -lm"
13216 fi
13217 fi
13218
13219
13220 ### Use -ltiff if available, unless `--with-tiff=no'.
13221 HAVE_TIFF=no
13222 LIBTIFF=
13223 if test "${HAVE_X11}" = "yes"; then
13224 if test "${with_tiff}" != "no"; then
13225 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13226 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13227 tifflibs="-lz -lm"
13228 # At least one tiff package requires the jpeg library.
13229 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13231 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13232 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-ltiff $tifflibs $LIBS"
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239
13240 /* Override any GCC internal prototype to avoid an error.
13241 Use char because int might match the return type of a GCC
13242 builtin and then its argument prototype would still apply. */
13243 #ifdef __cplusplus
13244 extern "C"
13245 #endif
13246 char TIFFGetVersion ();
13247 int
13248 main ()
13249 {
13250 return TIFFGetVersion ();
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 ac_cv_lib_tiff_TIFFGetVersion=yes
13257 else
13258 ac_cv_lib_tiff_TIFFGetVersion=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13263 fi
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13265 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13266 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13267 HAVE_TIFF=yes
13268 fi
13269
13270 fi
13271
13272
13273 fi
13274
13275 if test "${HAVE_TIFF}" = "yes"; then
13276
13277 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13278
13279 LIBTIFF=-ltiff
13280 fi
13281 fi
13282
13283
13284 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13285 HAVE_GIF=no
13286 LIBGIF=
13287 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13288 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13289 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13290 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13291 # Earlier versions can crash Emacs.
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13293 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13294 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 ac_check_lib_save_LIBS=$LIBS
13298 LIBS="-lgif $LIBS"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13305 #ifdef __cplusplus
13306 extern "C"
13307 #endif
13308 char EGifPutExtensionLast ();
13309 int
13310 main ()
13311 {
13312 return EGifPutExtensionLast ();
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"; then :
13318 ac_cv_lib_gif_EGifPutExtensionLast=yes
13319 else
13320 ac_cv_lib_gif_EGifPutExtensionLast=no
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13324 LIBS=$ac_check_lib_save_LIBS
13325 fi
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13327 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13328 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13329 HAVE_GIF=yes
13330 else
13331 HAVE_GIF=maybe
13332 fi
13333
13334 fi
13335
13336
13337
13338 if test "$HAVE_GIF" = yes; then
13339 LIBGIF=-lgif
13340 elif test "$HAVE_GIF" = maybe; then
13341 # If gif_lib.h but no libgif, try libungif.
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13343 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 ac_check_lib_save_LIBS=$LIBS
13348 LIBS="-lungif $LIBS"
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 char EGifPutExtensionLast ();
13359 int
13360 main ()
13361 {
13362 return EGifPutExtensionLast ();
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13369 else
13370 ac_cv_lib_ungif_EGifPutExtensionLast=no
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext \
13373 conftest$ac_exeext conftest.$ac_ext
13374 LIBS=$ac_check_lib_save_LIBS
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13377 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13378 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13379 HAVE_GIF=yes
13380 else
13381 HAVE_GIF=no
13382 fi
13383
13384 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13385 fi
13386
13387 if test "${HAVE_GIF}" = "yes"; then
13388
13389 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13390
13391 fi
13392 fi
13393
13394
13395 if test "${HAVE_X11}" = "yes"; then
13396 MISSING=""
13397 WITH_NO=""
13398 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13399 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13400 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13401 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13402 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13403 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13404 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13405 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13406 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13407 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13408
13409 if test "X${MISSING}" != X; then
13410 as_fn_error "The following required libraries were not found:
13411 $MISSING
13412 Maybe some development libraries/packages are missing?
13413 If you don't want to link with them give
13414 $WITH_NO
13415 as options to configure" "$LINENO" 5
13416 fi
13417 fi
13418
13419 ### Use -lgpm if available, unless `--with-gpm=no'.
13420 HAVE_GPM=no
13421 LIBGPM=
13422 if test "${with_gpm}" != "no"; then
13423 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13424 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13426 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13427 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lgpm $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char Gpm_Open ();
13442 int
13443 main ()
13444 {
13445 return Gpm_Open ();
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 ac_cv_lib_gpm_Gpm_Open=yes
13452 else
13453 ac_cv_lib_gpm_Gpm_Open=no
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13460 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13461 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13462 HAVE_GPM=yes
13463 fi
13464
13465 fi
13466
13467
13468
13469 if test "${HAVE_GPM}" = "yes"; then
13470
13471 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13472
13473 LIBGPM=-lgpm
13474 fi
13475 fi
13476
13477
13478 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13479 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
13480
13481 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13482
13483 fi
13484
13485
13486
13487 C_SWITCH_X_SYSTEM=
13488 ### Use NeXTstep API to implement GUI.
13489 if test "${HAVE_NS}" = "yes"; then
13490
13491 $as_echo "#define HAVE_NS 1" >>confdefs.h
13492
13493 if test "${NS_IMPL_COCOA}" = "yes"; then
13494
13495 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13496
13497 fi
13498 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13499
13500 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13501
13502 # See also .m.o rule in Makefile.in */
13503 # FIXME: are all these flags really needed? Document here why. */
13504 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13505 ## Extra CFLAGS applied to src/*.m files.
13506 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13507 fi
13508 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13509
13510 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13511
13512 fi
13513 # We also have mouse menus.
13514 HAVE_MENUS=yes
13515 OTHER_FILES=ns-app
13516 fi
13517
13518
13519 ### Use session management (-lSM -lICE) if available
13520 HAVE_X_SM=no
13521 LIBXSM=
13522 if test "${HAVE_X11}" = "yes"; then
13523 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13524 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13526 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13527 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13528 $as_echo_n "(cached) " >&6
13529 else
13530 ac_check_lib_save_LIBS=$LIBS
13531 LIBS="-lSM -lICE $LIBS"
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13534
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char SmcOpenConnection ();
13542 int
13543 main ()
13544 {
13545 return SmcOpenConnection ();
13546 ;
13547 return 0;
13548 }
13549 _ACEOF
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 ac_cv_lib_SM_SmcOpenConnection=yes
13552 else
13553 ac_cv_lib_SM_SmcOpenConnection=no
13554 fi
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13560 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13561 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13562 HAVE_X_SM=yes
13563 fi
13564
13565 fi
13566
13567
13568
13569 if test "${HAVE_X_SM}" = "yes"; then
13570
13571 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13572
13573 LIBXSM="-lSM -lICE"
13574 case "$LIBS" in
13575 *-lSM*) ;;
13576 *) LIBS="$LIBXSM $LIBS" ;;
13577 esac
13578 fi
13579 fi
13580
13581
13582 ### Use libxml (-lxml2) if available
13583 HAVE_LIBXML2=no
13584 if test "${with_xml2}" != "no"; then
13585 ### I'm not sure what the version number should be, so I just guessed.
13586
13587 succeeded=no
13588
13589 # Extract the first word of "pkg-config", so it can be a program name with args.
13590 set dummy pkg-config; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 case $PKG_CONFIG in
13597 [\\/]* | ?:[\\/]*)
13598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13599 ;;
13600 *)
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13603 do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 break 2
13611 fi
13612 done
13613 done
13614 IFS=$as_save_IFS
13615
13616 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13617 ;;
13618 esac
13619 fi
13620 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13621 if test -n "$PKG_CONFIG"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13623 $as_echo "$PKG_CONFIG" >&6; }
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628
13629
13630
13631 if test "$PKG_CONFIG" = "no" ; then
13632 HAVE_LIBXML2=no
13633 else
13634 PKG_CONFIG_MIN_VERSION=0.9.0
13635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13637 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13638
13639 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13641 $as_echo "yes" >&6; }
13642 succeeded=yes
13643
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13645 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13646 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13648 $as_echo "$LIBXML2_CFLAGS" >&6; }
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13651 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13652 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13654 $as_echo "$LIBXML2_LIBS" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 LIBXML2_CFLAGS=""
13659 LIBXML2_LIBS=""
13660 ## If we have a custom action on failure, don't print errors, but
13661 ## do set a variable so people can do so.
13662 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13663
13664 fi
13665
13666
13667
13668 else
13669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13671 fi
13672 fi
13673
13674 if test $succeeded = yes; then
13675 HAVE_LIBXML2=yes
13676 else
13677 HAVE_LIBXML2=no
13678 fi
13679
13680 if test "${HAVE_LIBXML2}" = "yes"; then
13681 LIBS="$LIBXML2_LIBS $LIBS"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13683 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13684 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 ac_check_lib_save_LIBS=$LIBS
13688 LIBS="-lxml2 $LIBS"
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691
13692 /* Override any GCC internal prototype to avoid an error.
13693 Use char because int might match the return type of a GCC
13694 builtin and then its argument prototype would still apply. */
13695 #ifdef __cplusplus
13696 extern "C"
13697 #endif
13698 char htmlReadMemory ();
13699 int
13700 main ()
13701 {
13702 return htmlReadMemory ();
13703 ;
13704 return 0;
13705 }
13706 _ACEOF
13707 if ac_fn_c_try_link "$LINENO"; then :
13708 ac_cv_lib_xml2_htmlReadMemory=yes
13709 else
13710 ac_cv_lib_xml2_htmlReadMemory=no
13711 fi
13712 rm -f core conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13715 fi
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13717 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13718 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13719 HAVE_LIBXML2=yes
13720 else
13721 HAVE_LIBXML2=no
13722 fi
13723
13724 if test "${HAVE_LIBXML2}" = "yes"; then
13725
13726 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13727
13728 else
13729 LIBXML2_LIBS=""
13730 LIBXML2_CFLAGS=""
13731 fi
13732 fi
13733 fi
13734
13735
13736
13737 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13739 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13740 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745 #include <netdb.h>
13746 int
13747 main ()
13748 {
13749 return h_errno;
13750 ;
13751 return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13755 emacs_cv_netdb_declares_h_errno=yes
13756 else
13757 emacs_cv_netdb_declares_h_errno=no
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13763 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13764 if test $emacs_cv_netdb_declares_h_errno = yes; then
13765
13766 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13767
13768 fi
13769
13770 # fmod, logb, and frexp are found in -lm on most systems.
13771 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13773 $as_echo_n "checking for sqrt in -lm... " >&6; }
13774 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13775 $as_echo_n "(cached) " >&6
13776 else
13777 ac_check_lib_save_LIBS=$LIBS
13778 LIBS="-lm $LIBS"
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
13785 #ifdef __cplusplus
13786 extern "C"
13787 #endif
13788 char sqrt ();
13789 int
13790 main ()
13791 {
13792 return sqrt ();
13793 ;
13794 return 0;
13795 }
13796 _ACEOF
13797 if ac_fn_c_try_link "$LINENO"; then :
13798 ac_cv_lib_m_sqrt=yes
13799 else
13800 ac_cv_lib_m_sqrt=no
13801 fi
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13804 LIBS=$ac_check_lib_save_LIBS
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13807 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13808 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13809 cat >>confdefs.h <<_ACEOF
13810 #define HAVE_LIBM 1
13811 _ACEOF
13812
13813 LIBS="-lm $LIBS"
13814
13815 fi
13816
13817
13818 # Check for mail-locking functions in a "mail" library. Probably this should
13819 # have the same check as for liblockfile below.
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13821 $as_echo_n "checking for maillock in -lmail... " >&6; }
13822 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lmail $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char maillock ();
13837 int
13838 main ()
13839 {
13840 return maillock ();
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 ac_cv_lib_mail_maillock=yes
13847 else
13848 ac_cv_lib_mail_maillock=no
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13855 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13856 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13857 have_mail=yes
13858 else
13859 have_mail=no
13860 fi
13861
13862 if test $have_mail = yes; then
13863 LIBS_MAIL=-lmail
13864 LIBS="$LIBS_MAIL $LIBS"
13865
13866 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13867
13868 else
13869 LIBS_MAIL=
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13872 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13873 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-llockfile $LIBS"
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13884 #ifdef __cplusplus
13885 extern "C"
13886 #endif
13887 char maillock ();
13888 int
13889 main ()
13890 {
13891 return maillock ();
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 if ac_fn_c_try_link "$LINENO"; then :
13897 ac_cv_lib_lockfile_maillock=yes
13898 else
13899 ac_cv_lib_lockfile_maillock=no
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13903 LIBS=$ac_check_lib_save_LIBS
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13906 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13907 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13908 have_lockfile=yes
13909 else
13910 have_lockfile=no
13911 fi
13912
13913 if test $have_lockfile = yes; then
13914 LIBS_MAIL=-llockfile
13915 LIBS="$LIBS_MAIL $LIBS"
13916
13917 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13918
13919 else
13920 # If we have the shared liblockfile, assume we must use it for mail
13921 # locking (e.g. Debian). If we couldn't link against liblockfile
13922 # (no liblockfile.a installed), ensure that we don't need to.
13923 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13924 set dummy liblockfile.so; ac_word=$2
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13926 $as_echo_n "checking for $ac_word... " >&6; }
13927 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13928 $as_echo_n "(cached) " >&6
13929 else
13930 if test -n "$liblockfile"; then
13931 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13932 else
13933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13935 for as_dir in $as_dummy
13936 do
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13941 ac_cv_prog_liblockfile="yes"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13944 fi
13945 done
13946 done
13947 IFS=$as_save_IFS
13948
13949 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13950 fi
13951 fi
13952 liblockfile=$ac_cv_prog_liblockfile
13953 if test -n "$liblockfile"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13955 $as_echo "$liblockfile" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13959 fi
13960
13961
13962 if test $ac_cv_prog_liblockfile = yes; then
13963 as_fn_error "Shared liblockfile found but can't link against it.
13964 This probably means that movemail could lose mail.
13965 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13966 fi
13967 fi
13968 for ac_func in touchlock
13969 do :
13970 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13971 if test "x$ac_cv_func_touchlock" = x""yes; then :
13972 cat >>confdefs.h <<_ACEOF
13973 #define HAVE_TOUCHLOCK 1
13974 _ACEOF
13975
13976 fi
13977 done
13978
13979 for ac_header in maillock.h
13980 do :
13981 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13982 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_MAILLOCK_H 1
13985 _ACEOF
13986
13987 fi
13988
13989 done
13990
13991
13992
13993 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13994 ## interlock access to the mail spool. The alternative is a lock file named
13995 ## /usr/spool/mail/$USER.lock.
13996 mail_lock=no
13997 case "$opsys" in
13998 aix4-2) mail_lock="lockf" ;;
13999
14000 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14001
14002 ## On GNU/Linux systems, both methods are used by various mail programs.
14003 ## I assume most people are using newer mailers that have heard of flock.
14004 ## Change this if you need to.
14005 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14006 ## configure gets the right answers, and that means *NOT* using flock.
14007 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14008 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14009 ## Debian maintainer hasn't provided a clean fix for Emacs.
14010 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14011 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14012 ## correct logic. -- fx
14013 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14014 ## liblockfile is a Free Software replacement for libmail, used on
14015 ## Debian systems and elsewhere. -rfr.
14016 gnu-*)
14017 mail_lock="flock"
14018 if test $have_mail = yes || test $have_lockfile = yes; then
14019 test $ac_cv_header_maillock_h = yes && mail_lock=no
14020 fi
14021 ;;
14022 esac
14023
14024 BLESSMAIL_TARGET=
14025 case "$mail_lock" in
14026 flock)
14027 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14028 ;;
14029
14030 lockf)
14031 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14032 ;;
14033
14034 *) BLESSMAIL_TARGET="need-blessmail" ;;
14035 esac
14036
14037
14038
14039 for ac_func in gethostname getdomainname \
14040 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14041 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14042 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14043 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14044 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14045 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14046 gai_strerror mkstemp getline getdelim mremap fsync sync \
14047 difftime mempcpy mblen mbrlen posix_memalign \
14048 cfmakeraw cfsetspeed copysign __executable_start
14049 do :
14050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14052 eval as_val=\$$as_ac_var
14053 if test "x$as_val" = x""yes; then :
14054 cat >>confdefs.h <<_ACEOF
14055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14056 _ACEOF
14057
14058 fi
14059 done
14060
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14063 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14064 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069
14070 int
14071 main ()
14072 {
14073 __builtin_unwind_init ();
14074 ;
14075 return 0;
14076 }
14077 _ACEOF
14078 if ac_fn_c_try_link "$LINENO"; then :
14079 emacs_cv_func___builtin_unwind_init=yes
14080 else
14081 emacs_cv_func___builtin_unwind_init=no
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14087 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14088 if test $emacs_cv_func___builtin_unwind_init = yes; then
14089
14090 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14091
14092 fi
14093
14094 for ac_header in sys/un.h
14095 do :
14096 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_SYS_UN_H 1
14100 _ACEOF
14101
14102 fi
14103
14104 done
14105
14106
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14108 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14109 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 while :; do
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14115 #include <sys/types.h> /* for off_t */
14116 #include <stdio.h>
14117 int
14118 main ()
14119 {
14120 int (*fp) (FILE *, off_t, int) = fseeko;
14121 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14122 ;
14123 return 0;
14124 }
14125 _ACEOF
14126 if ac_fn_c_try_link "$LINENO"; then :
14127 ac_cv_sys_largefile_source=no; break
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14133 #define _LARGEFILE_SOURCE 1
14134 #include <sys/types.h> /* for off_t */
14135 #include <stdio.h>
14136 int
14137 main ()
14138 {
14139 int (*fp) (FILE *, off_t, int) = fseeko;
14140 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 ac_cv_sys_largefile_source=1; break
14147 fi
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 ac_cv_sys_largefile_source=unknown
14151 break
14152 done
14153 fi
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14155 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14156 case $ac_cv_sys_largefile_source in #(
14157 no | unknown) ;;
14158 *)
14159 cat >>confdefs.h <<_ACEOF
14160 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14161 _ACEOF
14162 ;;
14163 esac
14164 rm -rf conftest*
14165
14166 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14167 # in glibc 2.1.3, but that breaks too many other things.
14168 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14169 if test $ac_cv_sys_largefile_source != unknown; then
14170
14171 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14172
14173 fi
14174
14175
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14177 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14178 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14180 else
14181 # Use it with a single arg.
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 $ac_includes_default
14185 int
14186 main ()
14187 {
14188 getpgrp (0);
14189 ;
14190 return 0;
14191 }
14192 _ACEOF
14193 if ac_fn_c_try_compile "$LINENO"; then :
14194 ac_cv_func_getpgrp_void=no
14195 else
14196 ac_cv_func_getpgrp_void=yes
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14202 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14203 if test $ac_cv_func_getpgrp_void = yes; then
14204
14205 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14206
14207 fi
14208
14209
14210 # UNIX98 PTYs.
14211 for ac_func in grantpt
14212 do :
14213 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14214 if test "x$ac_cv_func_grantpt" = x""yes; then :
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_GRANTPT 1
14217 _ACEOF
14218
14219 fi
14220 done
14221
14222
14223 # PTY-related GNU extensions.
14224 for ac_func in getpt
14225 do :
14226 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14227 if test "x$ac_cv_func_getpt" = x""yes; then :
14228 cat >>confdefs.h <<_ACEOF
14229 #define HAVE_GETPT 1
14230 _ACEOF
14231
14232 fi
14233 done
14234
14235
14236 # Check this now, so that we will NOT find the above functions in ncurses.
14237 # That is because we have not set up to link ncurses in lib-src.
14238 # It's better to believe a function is not available
14239 # than to expect to find it in ncurses.
14240 # Also we need tputs and friends to be able to build at all.
14241 have_tputs_et_al=true
14242 # Maybe curses should be tried earlier?
14243 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14245 $as_echo_n "checking for library containing tputs... " >&6; }
14246 if test "${ac_cv_search_tputs+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 ac_func_search_save_LIBS=$LIBS
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char tputs ();
14260 int
14261 main ()
14262 {
14263 return tputs ();
14264 ;
14265 return 0;
14266 }
14267 _ACEOF
14268 for ac_lib in '' ncurses terminfo termcap curses; do
14269 if test -z "$ac_lib"; then
14270 ac_res="none required"
14271 else
14272 ac_res=-l$ac_lib
14273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14274 fi
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 ac_cv_search_tputs=$ac_res
14277 fi
14278 rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext
14280 if test "${ac_cv_search_tputs+set}" = set; then :
14281 break
14282 fi
14283 done
14284 if test "${ac_cv_search_tputs+set}" = set; then :
14285
14286 else
14287 ac_cv_search_tputs=no
14288 fi
14289 rm conftest.$ac_ext
14290 LIBS=$ac_func_search_save_LIBS
14291 fi
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14293 $as_echo "$ac_cv_search_tputs" >&6; }
14294 ac_res=$ac_cv_search_tputs
14295 if test "$ac_res" != no; then :
14296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14297
14298 else
14299 have_tputs_et_al=false
14300 fi
14301
14302 if test "$have_tputs_et_al" != true; then
14303 as_fn_error "The required function \`tputs' was not found in any library.
14304 These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
14305 Please try installing whichever of these libraries is most appropriate
14306 for your system, together with its header files.
14307 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14308 fi
14309 # Must define this when any termcap library is found.
14310
14311 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14312
14313 ## FIXME This was the cpp logic, but I am not sure it is right.
14314 ## The above test has not necessarily found libncurses.
14315 HAVE_LIBNCURSES=yes
14316
14317 ## Use terminfo instead of termcap?
14318 ## Note only system files NOT using terminfo are:
14319 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14320 ## darwin|gnu without ncurses.
14321 TERMINFO=no
14322 LIBS_TERMCAP=
14323 case "$opsys" in
14324 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14325 ## hpux10-20: Use the system provided termcap(3) library.
14326 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14327 ## is necessary. Otherwise Emacs dumps core when run -nw.
14328 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14329
14330 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14331 ## The ncurses library has been moved out of the System framework in
14332 ## Mac OS X 10.2. So if configure detects it, set the command-line
14333 ## option to use it.
14334 darwin|gnu*)
14335 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14336 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14337 TERMINFO=yes
14338 LIBS_TERMCAP="-lncurses"
14339 fi
14340 ;;
14341
14342 freebsd)
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14344 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14345 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 #include <osreldate.h>
14351 int
14352 main ()
14353 {
14354 #if __FreeBSD_version < 400000
14355 fail;
14356 #endif
14357
14358 ;
14359 return 0;
14360 }
14361 _ACEOF
14362 if ac_fn_c_try_link "$LINENO"; then :
14363 emacs_cv_freebsd_terminfo=yes
14364 else
14365 emacs_cv_freebsd_terminfo=no
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 fi
14370
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14373 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14374
14375 if test $emacs_cv_freebsd_terminfo = yes; then
14376 TERMINFO=yes
14377 LIBS_TERMCAP="-lncurses"
14378 else
14379 LIBS_TERMCAP="-ltermcap"
14380 fi
14381 ;;
14382
14383 netbsd)
14384 if test $ac_cv_search_tputs = -lterminfo; then
14385 TERMINFO=yes
14386 LIBS_TERMCAP="-lterminfo"
14387 else
14388 LIBS_TERMCAP="-ltermcap"
14389 fi
14390 ;;
14391
14392 esac
14393
14394 case "$opsys" in
14395 ## hpux: Make sure we get select from libc rather than from libcurses
14396 ## because libcurses on HPUX 10.10 has a broken version of select.
14397 ## We used to use -lc -lcurses, but this may be cleaner.
14398 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14399
14400 openbsd) LIBS_TERMCAP="-lncurses" ;;
14401
14402 ## Must use system termcap, if we use any termcap. It does special things.
14403 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14404 esac
14405
14406 TERMCAP_OBJ=tparam.o
14407 if test $TERMINFO = yes; then
14408
14409 $as_echo "#define TERMINFO 1" >>confdefs.h
14410
14411
14412 ## Default used to be -ltermcap. Add a case above if need something else.
14413 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14414
14415 TERMCAP_OBJ=terminfo.o
14416 fi
14417
14418
14419
14420
14421 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14422 resolv=no
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 #include <netinet/in.h>
14426 #include <arpa/nameser.h>
14427 #include <resolv.h>
14428 int
14429 main ()
14430 {
14431 return res_init();
14432 ;
14433 return 0;
14434 }
14435 _ACEOF
14436 if ac_fn_c_try_link "$LINENO"; then :
14437 have_res_init=yes
14438 else
14439 have_res_init=no
14440 fi
14441 rm -f core conftest.err conftest.$ac_objext \
14442 conftest$ac_exeext conftest.$ac_ext
14443 if test "$have_res_init" = no; then
14444 OLIBS="$LIBS"
14445 LIBS="$LIBS -lresolv"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14447 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 #include <netinet/in.h>
14451 #include <arpa/nameser.h>
14452 #include <resolv.h>
14453 int
14454 main ()
14455 {
14456 return res_init();
14457 ;
14458 return 0;
14459 }
14460 _ACEOF
14461 if ac_fn_c_try_link "$LINENO"; then :
14462 have_res_init=yes
14463 else
14464 have_res_init=no
14465 fi
14466 rm -f core conftest.err conftest.$ac_objext \
14467 conftest$ac_exeext conftest.$ac_ext
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14469 $as_echo "$have_res_init" >&6; }
14470 if test "$have_res_init" = yes ; then
14471 resolv=yes
14472 fi
14473 LIBS="$OLIBS"
14474 fi
14475
14476 if test "$have_res_init" = yes; then
14477
14478 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14479
14480 fi
14481
14482 # Do we need the Hesiod library to provide the support routines?
14483 LIBHESIOD=
14484 if test "$with_hesiod" != no ; then
14485 # Don't set $LIBS here -- see comments above. FIXME which comments?
14486 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14487 if test "x$ac_cv_func_res_send" = x""yes; then :
14488
14489 else
14490 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14491 if test "x$ac_cv_func___res_send" = x""yes; then :
14492
14493 else
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14495 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14496 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 ac_check_lib_save_LIBS=$LIBS
14500 LIBS="-lresolv $LIBS"
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503
14504 /* Override any GCC internal prototype to avoid an error.
14505 Use char because int might match the return type of a GCC
14506 builtin and then its argument prototype would still apply. */
14507 #ifdef __cplusplus
14508 extern "C"
14509 #endif
14510 char res_send ();
14511 int
14512 main ()
14513 {
14514 return res_send ();
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 if ac_fn_c_try_link "$LINENO"; then :
14520 ac_cv_lib_resolv_res_send=yes
14521 else
14522 ac_cv_lib_resolv_res_send=no
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext \
14525 conftest$ac_exeext conftest.$ac_ext
14526 LIBS=$ac_check_lib_save_LIBS
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14529 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14530 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14531 resolv=yes
14532 else
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14534 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14535 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lresolv $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char __res_send ();
14550 int
14551 main ()
14552 {
14553 return __res_send ();
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559 ac_cv_lib_resolv___res_send=yes
14560 else
14561 ac_cv_lib_resolv___res_send=no
14562 fi
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14568 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14569 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14570 resolv=yes
14571 fi
14572
14573 fi
14574
14575 fi
14576
14577 fi
14578
14579 if test "$resolv" = yes ; then
14580 RESOLVLIB=-lresolv
14581 else
14582 RESOLVLIB=
14583 fi
14584 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14585 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14586
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14589 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14590 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 ac_check_lib_save_LIBS=$LIBS
14594 LIBS="-lhesiod $RESOLVLIB $LIBS"
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14601 #ifdef __cplusplus
14602 extern "C"
14603 #endif
14604 char hes_getmailhost ();
14605 int
14606 main ()
14607 {
14608 return hes_getmailhost ();
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 if ac_fn_c_try_link "$LINENO"; then :
14614 ac_cv_lib_hesiod_hes_getmailhost=yes
14615 else
14616 ac_cv_lib_hesiod_hes_getmailhost=no
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext conftest.$ac_ext
14620 LIBS=$ac_check_lib_save_LIBS
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14623 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14624 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14625 hesiod=yes
14626 else
14627 :
14628 fi
14629
14630 fi
14631
14632
14633 if test x"$hesiod" = xyes; then
14634
14635 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14636
14637 LIBHESIOD=-lhesiod
14638 fi
14639 fi
14640
14641
14642 # Do we need libresolv (due to res_init or Hesiod)?
14643 if test "$resolv" = yes ; then
14644
14645 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14646
14647 LIBRESOLV=-lresolv
14648 else
14649 LIBRESOLV=
14650 fi
14651
14652
14653 # These tell us which Kerberos-related libraries to use.
14654 COM_ERRLIB=
14655 CRYPTOLIB=
14656 KRB5LIB=
14657 DESLIB=
14658 KRB4LIB=
14659
14660 if test "${with_kerberos}" != no; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14662 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14663 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-lcom_err $LIBS"
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply. */
14674 #ifdef __cplusplus
14675 extern "C"
14676 #endif
14677 char com_err ();
14678 int
14679 main ()
14680 {
14681 return com_err ();
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_link "$LINENO"; then :
14687 ac_cv_lib_com_err_com_err=yes
14688 else
14689 ac_cv_lib_com_err_com_err=no
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext \
14692 conftest$ac_exeext conftest.$ac_ext
14693 LIBS=$ac_check_lib_save_LIBS
14694 fi
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14696 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14697 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14698 have_com_err=yes
14699 else
14700 have_com_err=no
14701 fi
14702
14703 if test $have_com_err = yes; then
14704 COM_ERRLIB=-lcom_err
14705 LIBS="$COM_ERRLIB $LIBS"
14706
14707 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14708
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14711 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14712 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-lcrypto $LIBS"
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719
14720 /* Override any GCC internal prototype to avoid an error.
14721 Use char because int might match the return type of a GCC
14722 builtin and then its argument prototype would still apply. */
14723 #ifdef __cplusplus
14724 extern "C"
14725 #endif
14726 char mit_des_cbc_encrypt ();
14727 int
14728 main ()
14729 {
14730 return mit_des_cbc_encrypt ();
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_link "$LINENO"; then :
14736 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14737 else
14738 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742 LIBS=$ac_check_lib_save_LIBS
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14745 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14746 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14747 have_crypto=yes
14748 else
14749 have_crypto=no
14750 fi
14751
14752 if test $have_crypto = yes; then
14753 CRYPTOLIB=-lcrypto
14754 LIBS="$CRYPTOLIB $LIBS"
14755
14756 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14757
14758 fi
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14760 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14761 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 ac_check_lib_save_LIBS=$LIBS
14765 LIBS="-lk5crypto $LIBS"
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768
14769 /* Override any GCC internal prototype to avoid an error.
14770 Use char because int might match the return type of a GCC
14771 builtin and then its argument prototype would still apply. */
14772 #ifdef __cplusplus
14773 extern "C"
14774 #endif
14775 char mit_des_cbc_encrypt ();
14776 int
14777 main ()
14778 {
14779 return mit_des_cbc_encrypt ();
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_link "$LINENO"; then :
14785 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14786 else
14787 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14792 fi
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14794 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14795 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14796 have_k5crypto=yes
14797 else
14798 have_k5crypto=no
14799 fi
14800
14801 if test $have_k5crypto = yes; then
14802 CRYPTOLIB=-lk5crypto
14803 LIBS="$CRYPTOLIB $LIBS"
14804
14805 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14806
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14809 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14810 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14811 $as_echo_n "(cached) " >&6
14812 else
14813 ac_check_lib_save_LIBS=$LIBS
14814 LIBS="-lkrb5 $LIBS"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14821 #ifdef __cplusplus
14822 extern "C"
14823 #endif
14824 char krb5_init_context ();
14825 int
14826 main ()
14827 {
14828 return krb5_init_context ();
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 if ac_fn_c_try_link "$LINENO"; then :
14834 ac_cv_lib_krb5_krb5_init_context=yes
14835 else
14836 ac_cv_lib_krb5_krb5_init_context=no
14837 fi
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14843 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14844 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14845 have_krb5=yes
14846 else
14847 have_krb5=no
14848 fi
14849
14850 if test $have_krb5=yes; then
14851 KRB5LIB=-lkrb5
14852 LIBS="$KRB5LIB $LIBS"
14853
14854 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14855
14856 fi
14857 if test "${with_kerberos5}" = no; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14859 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14860 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 ac_check_lib_save_LIBS=$LIBS
14864 LIBS="-ldes425 $LIBS"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867
14868 /* Override any GCC internal prototype to avoid an error.
14869 Use char because int might match the return type of a GCC
14870 builtin and then its argument prototype would still apply. */
14871 #ifdef __cplusplus
14872 extern "C"
14873 #endif
14874 char des_cbc_encrypt ();
14875 int
14876 main ()
14877 {
14878 return des_cbc_encrypt ();
14879 ;
14880 return 0;
14881 }
14882 _ACEOF
14883 if ac_fn_c_try_link "$LINENO"; then :
14884 ac_cv_lib_des425_des_cbc_encrypt=yes
14885 else
14886 ac_cv_lib_des425_des_cbc_encrypt=no
14887 fi
14888 rm -f core conftest.err conftest.$ac_objext \
14889 conftest$ac_exeext conftest.$ac_ext
14890 LIBS=$ac_check_lib_save_LIBS
14891 fi
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14893 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14894 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14895 have_des425=yes
14896 else
14897 have_des425=no
14898 fi
14899
14900 if test $have_des425 = yes; then
14901 DESLIB=-ldes425
14902 LIBS="$DESLIB $LIBS"
14903
14904 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14905
14906 else
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14908 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14909 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-ldes $LIBS"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916
14917 /* Override any GCC internal prototype to avoid an error.
14918 Use char because int might match the return type of a GCC
14919 builtin and then its argument prototype would still apply. */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 char des_cbc_encrypt ();
14924 int
14925 main ()
14926 {
14927 return des_cbc_encrypt ();
14928 ;
14929 return 0;
14930 }
14931 _ACEOF
14932 if ac_fn_c_try_link "$LINENO"; then :
14933 ac_cv_lib_des_des_cbc_encrypt=yes
14934 else
14935 ac_cv_lib_des_des_cbc_encrypt=no
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14942 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14943 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14944 have_des=yes
14945 else
14946 have_des=no
14947 fi
14948
14949 if test $have_des = yes; then
14950 DESLIB=-ldes
14951 LIBS="$DESLIB $LIBS"
14952
14953 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14954
14955 fi
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14958 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14959 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 ac_check_lib_save_LIBS=$LIBS
14963 LIBS="-lkrb4 $LIBS"
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966
14967 /* Override any GCC internal prototype to avoid an error.
14968 Use char because int might match the return type of a GCC
14969 builtin and then its argument prototype would still apply. */
14970 #ifdef __cplusplus
14971 extern "C"
14972 #endif
14973 char krb_get_cred ();
14974 int
14975 main ()
14976 {
14977 return krb_get_cred ();
14978 ;
14979 return 0;
14980 }
14981 _ACEOF
14982 if ac_fn_c_try_link "$LINENO"; then :
14983 ac_cv_lib_krb4_krb_get_cred=yes
14984 else
14985 ac_cv_lib_krb4_krb_get_cred=no
14986 fi
14987 rm -f core conftest.err conftest.$ac_objext \
14988 conftest$ac_exeext conftest.$ac_ext
14989 LIBS=$ac_check_lib_save_LIBS
14990 fi
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14992 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14993 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14994 have_krb4=yes
14995 else
14996 have_krb4=no
14997 fi
14998
14999 if test $have_krb4 = yes; then
15000 KRB4LIB=-lkrb4
15001 LIBS="$KRB4LIB $LIBS"
15002
15003 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15004
15005 else
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15007 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15008 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15009 $as_echo_n "(cached) " >&6
15010 else
15011 ac_check_lib_save_LIBS=$LIBS
15012 LIBS="-lkrb $LIBS"
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15015
15016 /* Override any GCC internal prototype to avoid an error.
15017 Use char because int might match the return type of a GCC
15018 builtin and then its argument prototype would still apply. */
15019 #ifdef __cplusplus
15020 extern "C"
15021 #endif
15022 char krb_get_cred ();
15023 int
15024 main ()
15025 {
15026 return krb_get_cred ();
15027 ;
15028 return 0;
15029 }
15030 _ACEOF
15031 if ac_fn_c_try_link "$LINENO"; then :
15032 ac_cv_lib_krb_krb_get_cred=yes
15033 else
15034 ac_cv_lib_krb_krb_get_cred=no
15035 fi
15036 rm -f core conftest.err conftest.$ac_objext \
15037 conftest$ac_exeext conftest.$ac_ext
15038 LIBS=$ac_check_lib_save_LIBS
15039 fi
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15041 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15042 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15043 have_krb=yes
15044 else
15045 have_krb=no
15046 fi
15047
15048 if test $have_krb = yes; then
15049 KRB4LIB=-lkrb
15050 LIBS="$KRB4LIB $LIBS"
15051
15052 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15053
15054 fi
15055 fi
15056 fi
15057
15058 if test "${with_kerberos5}" != no; then
15059 for ac_header in krb5.h
15060 do :
15061 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15062 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_KRB5_H 1
15065 _ACEOF
15066 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15067 "
15068 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15069
15070 cat >>confdefs.h <<_ACEOF
15071 #define HAVE_KRB5_ERROR_TEXT 1
15072 _ACEOF
15073
15074
15075 fi
15076 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15077 "
15078 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15079
15080 cat >>confdefs.h <<_ACEOF
15081 #define HAVE_KRB5_ERROR_E_TEXT 1
15082 _ACEOF
15083
15084
15085 fi
15086
15087 fi
15088
15089 done
15090
15091 else
15092 for ac_header in des.h
15093 do :
15094 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15095 if test "x$ac_cv_header_des_h" = x""yes; then :
15096 cat >>confdefs.h <<_ACEOF
15097 #define HAVE_DES_H 1
15098 _ACEOF
15099
15100 else
15101 for ac_header in kerberosIV/des.h
15102 do :
15103 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15104 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_KERBEROSIV_DES_H 1
15107 _ACEOF
15108
15109 else
15110 for ac_header in kerberos/des.h
15111 do :
15112 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15113 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_KERBEROS_DES_H 1
15116 _ACEOF
15117
15118 fi
15119
15120 done
15121
15122 fi
15123
15124 done
15125
15126 fi
15127
15128 done
15129
15130 for ac_header in krb.h
15131 do :
15132 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15133 if test "x$ac_cv_header_krb_h" = x""yes; then :
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_KRB_H 1
15136 _ACEOF
15137
15138 else
15139 for ac_header in kerberosIV/krb.h
15140 do :
15141 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15142 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15143 cat >>confdefs.h <<_ACEOF
15144 #define HAVE_KERBEROSIV_KRB_H 1
15145 _ACEOF
15146
15147 else
15148 for ac_header in kerberos/krb.h
15149 do :
15150 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15151 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15152 cat >>confdefs.h <<_ACEOF
15153 #define HAVE_KERBEROS_KRB_H 1
15154 _ACEOF
15155
15156 fi
15157
15158 done
15159
15160 fi
15161
15162 done
15163
15164 fi
15165
15166 done
15167
15168 fi
15169 for ac_header in com_err.h
15170 do :
15171 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15172 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_COM_ERR_H 1
15175 _ACEOF
15176
15177 fi
15178
15179 done
15180
15181 fi
15182
15183
15184
15185
15186
15187
15188
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15190 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15191 if test "${emacs_cv_localtime_cache+set}" = set; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 if test x$ac_cv_func_tzset = xyes; then
15195 if test "$cross_compiling" = yes; then :
15196 # If we have tzset, assume the worst when cross-compiling.
15197 emacs_cv_localtime_cache=yes
15198 else
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15201 #include <time.h>
15202 char TZ_GMT0[] = "TZ=GMT0";
15203 char TZ_PST8[] = "TZ=PST8";
15204 main()
15205 {
15206 time_t now = time ((time_t *) 0);
15207 int hour_GMT0, hour_unset;
15208 if (putenv (TZ_GMT0) != 0)
15209 exit (1);
15210 hour_GMT0 = localtime (&now)->tm_hour;
15211 unsetenv("TZ");
15212 hour_unset = localtime (&now)->tm_hour;
15213 if (putenv (TZ_PST8) != 0)
15214 exit (1);
15215 if (localtime (&now)->tm_hour == hour_GMT0)
15216 exit (1);
15217 unsetenv("TZ");
15218 if (localtime (&now)->tm_hour != hour_unset)
15219 exit (1);
15220 exit (0);
15221 }
15222 _ACEOF
15223 if ac_fn_c_try_run "$LINENO"; then :
15224 emacs_cv_localtime_cache=no
15225 else
15226 emacs_cv_localtime_cache=yes
15227 fi
15228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15229 conftest.$ac_objext conftest.beam conftest.$ac_ext
15230 fi
15231
15232 else
15233 # If we lack tzset, report that localtime does not cache TZ,
15234 # since we can't invalidate the cache if we don't have tzset.
15235 emacs_cv_localtime_cache=no
15236 fi
15237 fi
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15239 $as_echo "$emacs_cv_localtime_cache" >&6; }
15240 if test $emacs_cv_localtime_cache = yes; then
15241
15242 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15243
15244 fi
15245
15246 if test "x$HAVE_TIMEVAL" = xyes; then
15247 for ac_func in gettimeofday
15248 do :
15249 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15250 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
15251 cat >>confdefs.h <<_ACEOF
15252 #define HAVE_GETTIMEOFDAY 1
15253 _ACEOF
15254
15255 fi
15256 done
15257
15258 if test $ac_cv_func_gettimeofday = yes; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15260 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15261 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266
15267 #ifdef TIME_WITH_SYS_TIME
15268 #include <sys/time.h>
15269 #include <time.h>
15270 #else
15271 #ifdef HAVE_SYS_TIME_H
15272 #include <sys/time.h>
15273 #else
15274 #include <time.h>
15275 #endif
15276 #endif
15277 int
15278 main ()
15279 {
15280 struct timeval time;
15281 gettimeofday (&time, 0);
15282 ;
15283 return 0;
15284 }
15285 _ACEOF
15286 if ac_fn_c_try_compile "$LINENO"; then :
15287 emacs_cv_gettimeofday_two_arguments=yes
15288 else
15289 emacs_cv_gettimeofday_two_arguments=no
15290 fi
15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15294 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15295 if test $emacs_cv_gettimeofday_two_arguments = no; then
15296
15297 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15298
15299 fi
15300 fi
15301 fi
15302
15303 ok_so_far=yes
15304 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15305 if test "x$ac_cv_func_socket" = x""yes; then :
15306
15307 else
15308 ok_so_far=no
15309 fi
15310
15311 if test $ok_so_far = yes; then
15312 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15313 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15314
15315 else
15316 ok_so_far=no
15317 fi
15318
15319
15320 fi
15321 if test $ok_so_far = yes; then
15322 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15323 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15324
15325 else
15326 ok_so_far=no
15327 fi
15328
15329
15330 fi
15331 if test $ok_so_far = yes; then
15332
15333 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15334
15335 fi
15336
15337 if test -f /usr/lpp/X11/bin/smt.exp; then
15338
15339 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15340
15341 fi
15342
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15344 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15345 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15347 $as_echo "yes" >&6; }
15348
15349 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15350
15351 else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353 $as_echo "no" >&6; }
15354 fi
15355
15356 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15357 if test "x$ac_cv_type_pid_t" = x""yes; then :
15358
15359 else
15360
15361 cat >>confdefs.h <<_ACEOF
15362 #define pid_t int
15363 _ACEOF
15364
15365 fi
15366
15367 for ac_header in vfork.h
15368 do :
15369 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15370 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15371 cat >>confdefs.h <<_ACEOF
15372 #define HAVE_VFORK_H 1
15373 _ACEOF
15374
15375 fi
15376
15377 done
15378
15379 for ac_func in fork vfork
15380 do :
15381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15383 eval as_val=\$$as_ac_var
15384 if test "x$as_val" = x""yes; then :
15385 cat >>confdefs.h <<_ACEOF
15386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15387 _ACEOF
15388
15389 fi
15390 done
15391
15392 if test "x$ac_cv_func_fork" = xyes; then
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15394 $as_echo_n "checking for working fork... " >&6; }
15395 if test "${ac_cv_func_fork_works+set}" = set; then :
15396 $as_echo_n "(cached) " >&6
15397 else
15398 if test "$cross_compiling" = yes; then :
15399 ac_cv_func_fork_works=cross
15400 else
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15403 $ac_includes_default
15404 int
15405 main ()
15406 {
15407
15408 /* By Ruediger Kuhlmann. */
15409 return fork () < 0;
15410
15411 ;
15412 return 0;
15413 }
15414 _ACEOF
15415 if ac_fn_c_try_run "$LINENO"; then :
15416 ac_cv_func_fork_works=yes
15417 else
15418 ac_cv_func_fork_works=no
15419 fi
15420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15421 conftest.$ac_objext conftest.beam conftest.$ac_ext
15422 fi
15423
15424 fi
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15426 $as_echo "$ac_cv_func_fork_works" >&6; }
15427
15428 else
15429 ac_cv_func_fork_works=$ac_cv_func_fork
15430 fi
15431 if test "x$ac_cv_func_fork_works" = xcross; then
15432 case $host in
15433 *-*-amigaos* | *-*-msdosdjgpp*)
15434 # Override, as these systems have only a dummy fork() stub
15435 ac_cv_func_fork_works=no
15436 ;;
15437 *)
15438 ac_cv_func_fork_works=yes
15439 ;;
15440 esac
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15442 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15443 fi
15444 ac_cv_func_vfork_works=$ac_cv_func_vfork
15445 if test "x$ac_cv_func_vfork" = xyes; then
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15447 $as_echo_n "checking for working vfork... " >&6; }
15448 if test "${ac_cv_func_vfork_works+set}" = set; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451 if test "$cross_compiling" = yes; then :
15452 ac_cv_func_vfork_works=cross
15453 else
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456 /* Thanks to Paul Eggert for this test. */
15457 $ac_includes_default
15458 #include <sys/wait.h>
15459 #ifdef HAVE_VFORK_H
15460 # include <vfork.h>
15461 #endif
15462 /* On some sparc systems, changes by the child to local and incoming
15463 argument registers are propagated back to the parent. The compiler
15464 is told about this with #include <vfork.h>, but some compilers
15465 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15466 static variable whose address is put into a register that is
15467 clobbered by the vfork. */
15468 static void
15469 #ifdef __cplusplus
15470 sparc_address_test (int arg)
15471 # else
15472 sparc_address_test (arg) int arg;
15473 #endif
15474 {
15475 static pid_t child;
15476 if (!child) {
15477 child = vfork ();
15478 if (child < 0) {
15479 perror ("vfork");
15480 _exit(2);
15481 }
15482 if (!child) {
15483 arg = getpid();
15484 write(-1, "", 0);
15485 _exit (arg);
15486 }
15487 }
15488 }
15489
15490 int
15491 main ()
15492 {
15493 pid_t parent = getpid ();
15494 pid_t child;
15495
15496 sparc_address_test (0);
15497
15498 child = vfork ();
15499
15500 if (child == 0) {
15501 /* Here is another test for sparc vfork register problems. This
15502 test uses lots of local variables, at least as many local
15503 variables as main has allocated so far including compiler
15504 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15505 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15506 reuse the register of parent for one of the local variables,
15507 since it will think that parent can't possibly be used any more
15508 in this routine. Assigning to the local variable will thus
15509 munge parent in the parent process. */
15510 pid_t
15511 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15512 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15513 /* Convince the compiler that p..p7 are live; otherwise, it might
15514 use the same hardware register for all 8 local variables. */
15515 if (p != p1 || p != p2 || p != p3 || p != p4
15516 || p != p5 || p != p6 || p != p7)
15517 _exit(1);
15518
15519 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15520 from child file descriptors. If the child closes a descriptor
15521 before it execs or exits, this munges the parent's descriptor
15522 as well. Test for this by closing stdout in the child. */
15523 _exit(close(fileno(stdout)) != 0);
15524 } else {
15525 int status;
15526 struct stat st;
15527
15528 while (wait(&status) != child)
15529 ;
15530 return (
15531 /* Was there some problem with vforking? */
15532 child < 0
15533
15534 /* Did the child fail? (This shouldn't happen.) */
15535 || status
15536
15537 /* Did the vfork/compiler bug occur? */
15538 || parent != getpid()
15539
15540 /* Did the file descriptor bug occur? */
15541 || fstat(fileno(stdout), &st) != 0
15542 );
15543 }
15544 }
15545 _ACEOF
15546 if ac_fn_c_try_run "$LINENO"; then :
15547 ac_cv_func_vfork_works=yes
15548 else
15549 ac_cv_func_vfork_works=no
15550 fi
15551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15552 conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 fi
15554
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15557 $as_echo "$ac_cv_func_vfork_works" >&6; }
15558
15559 fi;
15560 if test "x$ac_cv_func_fork_works" = xcross; then
15561 ac_cv_func_vfork_works=$ac_cv_func_vfork
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15563 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15564 fi
15565
15566 if test "x$ac_cv_func_vfork_works" = xyes; then
15567
15568 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15569
15570 else
15571
15572 $as_echo "#define vfork fork" >>confdefs.h
15573
15574 fi
15575 if test "x$ac_cv_func_fork_works" = xyes; then
15576
15577 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15578
15579 fi
15580
15581
15582 for ac_func in snprintf
15583 do :
15584 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15585 if test "x$ac_cv_func_snprintf" = x""yes; then :
15586 cat >>confdefs.h <<_ACEOF
15587 #define HAVE_SNPRINTF 1
15588 _ACEOF
15589
15590 fi
15591 done
15592
15593
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15595 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15596 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #include <langinfo.h>
15602 int
15603 main ()
15604 {
15605 char* cs = nl_langinfo(CODESET);
15606 ;
15607 return 0;
15608 }
15609 _ACEOF
15610 if ac_fn_c_try_link "$LINENO"; then :
15611 emacs_cv_langinfo_codeset=yes
15612 else
15613 emacs_cv_langinfo_codeset=no
15614 fi
15615 rm -f core conftest.err conftest.$ac_objext \
15616 conftest$ac_exeext conftest.$ac_ext
15617
15618 fi
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15620 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15621 if test $emacs_cv_langinfo_codeset = yes; then
15622
15623 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15624
15625 fi
15626
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15628 $as_echo_n "checking for mbstate_t... " >&6; }
15629 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 $ac_includes_default
15635 # include <wchar.h>
15636 int
15637 main ()
15638 {
15639 mbstate_t x; return sizeof x;
15640 ;
15641 return 0;
15642 }
15643 _ACEOF
15644 if ac_fn_c_try_compile "$LINENO"; then :
15645 ac_cv_type_mbstate_t=yes
15646 else
15647 ac_cv_type_mbstate_t=no
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650 fi
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15652 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15653 if test $ac_cv_type_mbstate_t = yes; then
15654
15655 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15656
15657 else
15658
15659 $as_echo "#define mbstate_t int" >>confdefs.h
15660
15661 fi
15662
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15664 $as_echo_n "checking for C restricted array declarations... " >&6; }
15665 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15667 else
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 void fred (int x[__restrict]);
15671 int
15672 main ()
15673 {
15674
15675 ;
15676 return 0;
15677 }
15678 _ACEOF
15679 if ac_fn_c_try_compile "$LINENO"; then :
15680 emacs_cv_c_restrict_arr=yes
15681 else
15682 emacs_cv_c_restrict_arr=no
15683 fi
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 fi
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15687 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15688 if test "$emacs_cv_c_restrict_arr" = yes; then
15689
15690 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15691
15692 fi
15693
15694
15695 # Set up the CFLAGS for real compilation, so we can substitute it.
15696 CFLAGS="$REAL_CFLAGS"
15697 CPPFLAGS="$REAL_CPPFLAGS"
15698
15699 ## Hack to detect a buggy GCC version.
15700 if test "x$GCC" = xyes \
15701 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15702 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15703 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15704 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15705 fi
15706
15707 version=$PACKAGE_VERSION
15708
15709 ### Specify what sort of things we'll be editing into Makefile and config.h.
15710 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15711
15712
15713 ## Unused?
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15735 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15736 ## end of LIBX_BASE, but nothing ever set it.
15737
15738
15739
15740
15741 ## Used in lwlib/Makefile.in.
15742
15743 if test -n "${machfile}"; then
15744 M_FILE="\$(srcdir)/${machfile}"
15745 else
15746 M_FILE=
15747 fi
15748 S_FILE="\$(srcdir)/${opsysfile}"
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759 cat >>confdefs.h <<_ACEOF
15760 #define EMACS_CONFIGURATION "${canonical}"
15761 _ACEOF
15762
15763
15764 cat >>confdefs.h <<_ACEOF
15765 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15766 _ACEOF
15767
15768 if test -n "$machfile"; then
15769
15770 cat >>confdefs.h <<_ACEOF
15771 #define config_machfile "${machfile}"
15772 _ACEOF
15773
15774 fi
15775
15776 cat >>confdefs.h <<_ACEOF
15777 #define config_opsysfile "${opsysfile}"
15778 _ACEOF
15779
15780
15781 XMENU_OBJ=
15782 XOBJ=
15783 FONT_OBJ=
15784 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15785
15786 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15787
15788 XMENU_OBJ=xmenu.o
15789 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15790 FONT_OBJ=xfont.o
15791 if test "$HAVE_XFT" = "yes"; then
15792 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15793 elif test "$HAVE_FREETYPE" = "yes"; then
15794 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15795 fi
15796
15797 fi
15798
15799
15800
15801
15802 WIDGET_OBJ=
15803 MOTIF_LIBW=
15804 if test "${USE_X_TOOLKIT}" != "none" ; then
15805 WIDGET_OBJ=widget.o
15806
15807 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15808
15809 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15810
15811 $as_echo "#define USE_LUCID 1" >>confdefs.h
15812
15813 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15814
15815 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15816
15817 MOTIF_LIBW=-lXm
15818 case "$opsys" in
15819 gnu-linux)
15820 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15821 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15822 ;;
15823
15824 unixware)
15825 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15826 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15827 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15828 ;;
15829
15830 aix4-2)
15831 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15832 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15833 ;;
15834 esac
15835 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15836 fi
15837 fi
15838
15839
15840 TOOLKIT_LIBW=
15841 case "$USE_X_TOOLKIT" in
15842 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15843 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15844 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15845 esac
15846
15847
15848 if test "$USE_X_TOOLKIT" = "none"; then
15849 LIBXT_OTHER="\$(LIBXSM)"
15850 OLDXMENU_TARGET="really-oldXMenu"
15851 else
15852 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15853 OLDXMENU_TARGET="really-lwlib"
15854 fi
15855
15856
15857 ## The X Menu stuff is present in the X10 distribution, but missing
15858 ## from X11. If we have X10, just use the installed library;
15859 ## otherwise, use our own copy.
15860 if test "${HAVE_X11}" = "yes" ; then
15861
15862 $as_echo "#define HAVE_X11 1" >>confdefs.h
15863
15864
15865 if test "$USE_X_TOOLKIT" = "none"; then
15866 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15867 else
15868 OLDXMENU="\${lwlibdir}/liblw.a"
15869 fi
15870 LIBXMENU="\$(OLDXMENU)"
15871 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15872 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15873 else
15874 ## For a syntactically valid Makefile; not actually used for anything.
15875 ## See comments in src/Makefile.in.
15876 OLDXMENU=nothing
15877 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15878 if test "${HAVE_X_WINDOWS}" = "yes"; then
15879 LIBXMENU="-lXMenu"
15880 else
15881 LIBXMENU=
15882 fi
15883 LIBX_OTHER=
15884 OLDXMENU_DEPS=
15885 fi
15886
15887 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15888 OLDXMENU_TARGET=
15889 OLDXMENU=nothing
15890 LIBXMENU=
15891 OLDXMENU_DEPS=
15892 fi
15893
15894
15895
15896
15897
15898
15899
15900 if test "${HAVE_MENUS}" = "yes" ; then
15901
15902 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15903
15904 fi
15905
15906 if test "${GNU_MALLOC}" = "yes" ; then
15907
15908 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15909
15910 fi
15911
15912 RALLOC_OBJ=
15913 if test "${REL_ALLOC}" = "yes" ; then
15914
15915 $as_echo "#define REL_ALLOC 1" >>confdefs.h
15916
15917
15918 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
15919 fi
15920
15921
15922 if test "$opsys" = "cygwin"; then
15923 CYGWIN_OBJ="sheap.o"
15924 ## Cygwin differs because of its unexec().
15925 PRE_ALLOC_OBJ=
15926 POST_ALLOC_OBJ=lastfile.o
15927 else
15928 CYGWIN_OBJ=
15929 PRE_ALLOC_OBJ=lastfile.o
15930 POST_ALLOC_OBJ=
15931 fi
15932
15933
15934
15935
15936 # Configure gnulib here, now that we know LIBS.
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948 LIBC_FATAL_STDERR_=1
15949 export LIBC_FATAL_STDERR_
15950
15951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15952 # for constant arguments. Useless!
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15954 $as_echo_n "checking for working alloca.h... " >&6; }
15955 if test "${ac_cv_working_alloca_h+set}" = set; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 #include <alloca.h>
15961 int
15962 main ()
15963 {
15964 char *p = (char *) alloca (2 * sizeof (int));
15965 if (p) return 0;
15966 ;
15967 return 0;
15968 }
15969 _ACEOF
15970 if ac_fn_c_try_link "$LINENO"; then :
15971 ac_cv_working_alloca_h=yes
15972 else
15973 ac_cv_working_alloca_h=no
15974 fi
15975 rm -f core conftest.err conftest.$ac_objext \
15976 conftest$ac_exeext conftest.$ac_ext
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15979 $as_echo "$ac_cv_working_alloca_h" >&6; }
15980 if test $ac_cv_working_alloca_h = yes; then
15981
15982 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15983
15984 fi
15985
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15987 $as_echo_n "checking for alloca... " >&6; }
15988 if test "${ac_cv_func_alloca_works+set}" = set; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 #ifdef __GNUC__
15994 # define alloca __builtin_alloca
15995 #else
15996 # ifdef _MSC_VER
15997 # include <malloc.h>
15998 # define alloca _alloca
15999 # else
16000 # ifdef HAVE_ALLOCA_H
16001 # include <alloca.h>
16002 # else
16003 # ifdef _AIX
16004 #pragma alloca
16005 # else
16006 # ifndef alloca /* predefined by HP cc +Olibcalls */
16007 char *alloca ();
16008 # endif
16009 # endif
16010 # endif
16011 # endif
16012 #endif
16013
16014 int
16015 main ()
16016 {
16017 char *p = (char *) alloca (1);
16018 if (p) return 0;
16019 ;
16020 return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_c_try_link "$LINENO"; then :
16024 ac_cv_func_alloca_works=yes
16025 else
16026 ac_cv_func_alloca_works=no
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext \
16029 conftest$ac_exeext conftest.$ac_ext
16030 fi
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16032 $as_echo "$ac_cv_func_alloca_works" >&6; }
16033
16034 if test $ac_cv_func_alloca_works = yes; then
16035
16036 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16037
16038 else
16039 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16040 # that cause trouble. Some versions do not even contain alloca or
16041 # contain a buggy version. If you still want to use their alloca,
16042 # use ar to extract alloca.o from them instead of compiling alloca.c.
16043
16044
16045
16046
16047
16048 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16049
16050 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16051
16052
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16054 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16055 if test "${ac_cv_os_cray+set}" = set; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #if defined CRAY && ! defined CRAY2
16061 webecray
16062 #else
16063 wenotbecray
16064 #endif
16065
16066 _ACEOF
16067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16068 $EGREP "webecray" >/dev/null 2>&1; then :
16069 ac_cv_os_cray=yes
16070 else
16071 ac_cv_os_cray=no
16072 fi
16073 rm -f conftest*
16074
16075 fi
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16077 $as_echo "$ac_cv_os_cray" >&6; }
16078 if test $ac_cv_os_cray = yes; then
16079 for ac_func in _getb67 GETB67 getb67; do
16080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16082 eval as_val=\$$as_ac_var
16083 if test "x$as_val" = x""yes; then :
16084
16085 cat >>confdefs.h <<_ACEOF
16086 #define CRAY_STACKSEG_END $ac_func
16087 _ACEOF
16088
16089 break
16090 fi
16091
16092 done
16093 fi
16094
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16096 $as_echo_n "checking stack direction for C alloca... " >&6; }
16097 if test "${ac_cv_c_stack_direction+set}" = set; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 if test "$cross_compiling" = yes; then :
16101 ac_cv_c_stack_direction=0
16102 else
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105 $ac_includes_default
16106 int
16107 find_stack_direction (int *addr, int depth)
16108 {
16109 int dir, dummy = 0;
16110 if (! addr)
16111 addr = &dummy;
16112 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16113 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16114 return dir + dummy;
16115 }
16116
16117 int
16118 main (int argc, char **argv)
16119 {
16120 return find_stack_direction (0, argc + !argv + 20) < 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_run "$LINENO"; then :
16124 ac_cv_c_stack_direction=1
16125 else
16126 ac_cv_c_stack_direction=-1
16127 fi
16128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16129 conftest.$ac_objext conftest.beam conftest.$ac_ext
16130 fi
16131
16132 fi
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16134 $as_echo "$ac_cv_c_stack_direction" >&6; }
16135 cat >>confdefs.h <<_ACEOF
16136 #define STACK_DIRECTION $ac_cv_c_stack_direction
16137 _ACEOF
16138
16139
16140 fi
16141
16142
16143
16144
16145 for ac_func in $ac_func_list
16146 do :
16147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16149 eval as_val=\$$as_ac_var
16150 if test "x$as_val" = x""yes; then :
16151 cat >>confdefs.h <<_ACEOF
16152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16153 _ACEOF
16154
16155 fi
16156 done
16157
16158
16159
16160
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16162 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16163 if test "${ac_cv_c_bigendian+set}" = set; then :
16164 $as_echo_n "(cached) " >&6
16165 else
16166 ac_cv_c_bigendian=unknown
16167 # See if we're dealing with a universal compiler.
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #ifndef __APPLE_CC__
16171 not a universal capable compiler
16172 #endif
16173 typedef int dummy;
16174
16175 _ACEOF
16176 if ac_fn_c_try_compile "$LINENO"; then :
16177
16178 # Check for potential -arch flags. It is not universal unless
16179 # there are at least two -arch flags with different values.
16180 ac_arch=
16181 ac_prev=
16182 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16183 if test -n "$ac_prev"; then
16184 case $ac_word in
16185 i?86 | x86_64 | ppc | ppc64)
16186 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16187 ac_arch=$ac_word
16188 else
16189 ac_cv_c_bigendian=universal
16190 break
16191 fi
16192 ;;
16193 esac
16194 ac_prev=
16195 elif test "x$ac_word" = "x-arch"; then
16196 ac_prev=arch
16197 fi
16198 done
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 if test $ac_cv_c_bigendian = unknown; then
16202 # See if sys/param.h defines the BYTE_ORDER macro.
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <sys/types.h>
16206 #include <sys/param.h>
16207
16208 int
16209 main ()
16210 {
16211 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16212 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16213 && LITTLE_ENDIAN)
16214 bogus endian macros
16215 #endif
16216
16217 ;
16218 return 0;
16219 }
16220 _ACEOF
16221 if ac_fn_c_try_compile "$LINENO"; then :
16222 # It does; now see whether it defined to BIG_ENDIAN or not.
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h. */
16225 #include <sys/types.h>
16226 #include <sys/param.h>
16227
16228 int
16229 main ()
16230 {
16231 #if BYTE_ORDER != BIG_ENDIAN
16232 not big endian
16233 #endif
16234
16235 ;
16236 return 0;
16237 }
16238 _ACEOF
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 ac_cv_c_bigendian=yes
16241 else
16242 ac_cv_c_bigendian=no
16243 fi
16244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245 fi
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 fi
16248 if test $ac_cv_c_bigendian = unknown; then
16249 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #include <limits.h>
16253
16254 int
16255 main ()
16256 {
16257 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16258 bogus endian macros
16259 #endif
16260
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_compile "$LINENO"; then :
16266 # It does; now see whether it defined to _BIG_ENDIAN or not.
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 #include <limits.h>
16270
16271 int
16272 main ()
16273 {
16274 #ifndef _BIG_ENDIAN
16275 not big endian
16276 #endif
16277
16278 ;
16279 return 0;
16280 }
16281 _ACEOF
16282 if ac_fn_c_try_compile "$LINENO"; then :
16283 ac_cv_c_bigendian=yes
16284 else
16285 ac_cv_c_bigendian=no
16286 fi
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 if test $ac_cv_c_bigendian = unknown; then
16292 # Compile a test program.
16293 if test "$cross_compiling" = yes; then :
16294 # Try to guess by grepping values from an object file.
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297 short int ascii_mm[] =
16298 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16299 short int ascii_ii[] =
16300 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16301 int use_ascii (int i) {
16302 return ascii_mm[i] + ascii_ii[i];
16303 }
16304 short int ebcdic_ii[] =
16305 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16306 short int ebcdic_mm[] =
16307 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16308 int use_ebcdic (int i) {
16309 return ebcdic_mm[i] + ebcdic_ii[i];
16310 }
16311 extern int foo;
16312
16313 int
16314 main ()
16315 {
16316 return use_ascii (foo) == use_ebcdic (foo);
16317 ;
16318 return 0;
16319 }
16320 _ACEOF
16321 if ac_fn_c_try_compile "$LINENO"; then :
16322 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16323 ac_cv_c_bigendian=yes
16324 fi
16325 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16326 if test "$ac_cv_c_bigendian" = unknown; then
16327 ac_cv_c_bigendian=no
16328 else
16329 # finding both strings is unlikely to happen, but who knows?
16330 ac_cv_c_bigendian=unknown
16331 fi
16332 fi
16333 fi
16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 else
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338 $ac_includes_default
16339 int
16340 main ()
16341 {
16342
16343 /* Are we little or big endian? From Harbison&Steele. */
16344 union
16345 {
16346 long int l;
16347 char c[sizeof (long int)];
16348 } u;
16349 u.l = 1;
16350 return u.c[sizeof (long int) - 1] == 1;
16351
16352 ;
16353 return 0;
16354 }
16355 _ACEOF
16356 if ac_fn_c_try_run "$LINENO"; then :
16357 ac_cv_c_bigendian=no
16358 else
16359 ac_cv_c_bigendian=yes
16360 fi
16361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16362 conftest.$ac_objext conftest.beam conftest.$ac_ext
16363 fi
16364
16365 fi
16366 fi
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16368 $as_echo "$ac_cv_c_bigendian" >&6; }
16369 case $ac_cv_c_bigendian in #(
16370 yes)
16371 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16372 ;; #(
16373 no)
16374 ;; #(
16375 universal)
16376
16377 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16378
16379 ;; #(
16380 *)
16381 as_fn_error "unknown endianness
16382 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16383 esac
16384
16385
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16387 $as_echo_n "checking for inline... " >&6; }
16388 if test "${ac_cv_c_inline+set}" = set; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 ac_cv_c_inline=no
16392 for ac_kw in inline __inline__ __inline; do
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16395 #ifndef __cplusplus
16396 typedef int foo_t;
16397 static $ac_kw foo_t static_foo () {return 0; }
16398 $ac_kw foo_t foo () {return 0; }
16399 #endif
16400
16401 _ACEOF
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 ac_cv_c_inline=$ac_kw
16404 fi
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 test "$ac_cv_c_inline" != no && break
16407 done
16408
16409 fi
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16411 $as_echo "$ac_cv_c_inline" >&6; }
16412
16413 case $ac_cv_c_inline in
16414 inline | yes) ;;
16415 *)
16416 case $ac_cv_c_inline in
16417 no) ac_val=;;
16418 *) ac_val=$ac_cv_c_inline;;
16419 esac
16420 cat >>confdefs.h <<_ACEOF
16421 #ifndef __cplusplus
16422 #define inline $ac_val
16423 #endif
16424 _ACEOF
16425 ;;
16426 esac
16427
16428
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16430 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16431 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16432 $as_echo_n "(cached) " >&6
16433 else
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 /* On HP-UX before 11.23, strtold returns a struct instead of
16437 long double. Reject implementations like that, by requiring
16438 compatibility with the C99 prototype. */
16439 #include <stdlib.h>
16440 static long double (*p) (char const *, char **) = strtold;
16441 static long double
16442 test (char const *nptr, char **endptr)
16443 {
16444 long double r;
16445 r = strtold (nptr, endptr);
16446 return r;
16447 }
16448 int
16449 main ()
16450 {
16451 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16452 ;
16453 return 0;
16454 }
16455 _ACEOF
16456 if ac_fn_c_try_link "$LINENO"; then :
16457 gl_cv_func_c99_strtold=yes
16458 else
16459 gl_cv_func_c99_strtold=no
16460 fi
16461 rm -f core conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463 fi
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16465 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16466 if test $gl_cv_func_c99_strtold = yes; then
16467
16468 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16469
16470 fi
16471
16472
16473 GNULIB_CHDIR=0;
16474 GNULIB_CHOWN=0;
16475 GNULIB_CLOSE=0;
16476 GNULIB_DUP=0;
16477 GNULIB_DUP2=0;
16478 GNULIB_DUP3=0;
16479 GNULIB_ENVIRON=0;
16480 GNULIB_EUIDACCESS=0;
16481 GNULIB_FACCESSAT=0;
16482 GNULIB_FCHDIR=0;
16483 GNULIB_FCHOWNAT=0;
16484 GNULIB_FDATASYNC=0;
16485 GNULIB_FSYNC=0;
16486 GNULIB_FTRUNCATE=0;
16487 GNULIB_GETCWD=0;
16488 GNULIB_GETDOMAINNAME=0;
16489 GNULIB_GETDTABLESIZE=0;
16490 GNULIB_GETGROUPS=0;
16491 GNULIB_GETHOSTNAME=0;
16492 GNULIB_GETLOGIN=0;
16493 GNULIB_GETLOGIN_R=0;
16494 GNULIB_GETPAGESIZE=0;
16495 GNULIB_GETUSERSHELL=0;
16496 GNULIB_GROUP_MEMBER=0;
16497 GNULIB_LCHOWN=0;
16498 GNULIB_LINK=0;
16499 GNULIB_LINKAT=0;
16500 GNULIB_LSEEK=0;
16501 GNULIB_PIPE=0;
16502 GNULIB_PIPE2=0;
16503 GNULIB_PREAD=0;
16504 GNULIB_PWRITE=0;
16505 GNULIB_READ=0;
16506 GNULIB_READLINK=0;
16507 GNULIB_READLINKAT=0;
16508 GNULIB_RMDIR=0;
16509 GNULIB_SLEEP=0;
16510 GNULIB_SYMLINK=0;
16511 GNULIB_SYMLINKAT=0;
16512 GNULIB_TTYNAME_R=0;
16513 GNULIB_UNISTD_H_GETOPT=0;
16514 GNULIB_UNISTD_H_NONBLOCKING=0;
16515 GNULIB_UNISTD_H_SIGPIPE=0;
16516 GNULIB_UNLINK=0;
16517 GNULIB_UNLINKAT=0;
16518 GNULIB_USLEEP=0;
16519 GNULIB_WRITE=0;
16520 HAVE_CHOWN=1;
16521 HAVE_DUP2=1;
16522 HAVE_DUP3=1;
16523 HAVE_EUIDACCESS=1;
16524 HAVE_FACCESSAT=1;
16525 HAVE_FCHDIR=1;
16526 HAVE_FCHOWNAT=1;
16527 HAVE_FDATASYNC=1;
16528 HAVE_FSYNC=1;
16529 HAVE_FTRUNCATE=1;
16530 HAVE_GETDTABLESIZE=1;
16531 HAVE_GETGROUPS=1;
16532 HAVE_GETHOSTNAME=1;
16533 HAVE_GETLOGIN=1;
16534 HAVE_GETPAGESIZE=1;
16535 HAVE_GROUP_MEMBER=1;
16536 HAVE_LCHOWN=1;
16537 HAVE_LINK=1;
16538 HAVE_LINKAT=1;
16539 HAVE_PIPE=1;
16540 HAVE_PIPE2=1;
16541 HAVE_PREAD=1;
16542 HAVE_PWRITE=1;
16543 HAVE_READLINK=1;
16544 HAVE_READLINKAT=1;
16545 HAVE_SLEEP=1;
16546 HAVE_SYMLINK=1;
16547 HAVE_SYMLINKAT=1;
16548 HAVE_UNLINKAT=1;
16549 HAVE_USLEEP=1;
16550 HAVE_DECL_ENVIRON=1;
16551 HAVE_DECL_FCHDIR=1;
16552 HAVE_DECL_FDATASYNC=1;
16553 HAVE_DECL_GETDOMAINNAME=1;
16554 HAVE_DECL_GETLOGIN_R=1;
16555 HAVE_DECL_GETPAGESIZE=1;
16556 HAVE_DECL_GETUSERSHELL=1;
16557 HAVE_DECL_TTYNAME_R=1;
16558 HAVE_OS_H=0;
16559 HAVE_SYS_PARAM_H=0;
16560 REPLACE_CHOWN=0;
16561 REPLACE_CLOSE=0;
16562 REPLACE_DUP=0;
16563 REPLACE_DUP2=0;
16564 REPLACE_FCHOWNAT=0;
16565 REPLACE_GETCWD=0;
16566 REPLACE_GETDOMAINNAME=0;
16567 REPLACE_GETLOGIN_R=0;
16568 REPLACE_GETGROUPS=0;
16569 REPLACE_GETPAGESIZE=0;
16570 REPLACE_LCHOWN=0;
16571 REPLACE_LINK=0;
16572 REPLACE_LINKAT=0;
16573 REPLACE_LSEEK=0;
16574 REPLACE_PREAD=0;
16575 REPLACE_PWRITE=0;
16576 REPLACE_READ=0;
16577 REPLACE_READLINK=0;
16578 REPLACE_RMDIR=0;
16579 REPLACE_SLEEP=0;
16580 REPLACE_SYMLINK=0;
16581 REPLACE_TTYNAME_R=0;
16582 REPLACE_UNLINK=0;
16583 REPLACE_UNLINKAT=0;
16584 REPLACE_USLEEP=0;
16585 REPLACE_WRITE=0;
16586 UNISTD_H_HAVE_WINSOCK2_H=0;
16587 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16588
16589
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16591 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16592 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16593 $as_echo_n "(cached) " >&6
16594 else
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597
16598 #include <sys/types.h>
16599 #include <sys/stat.h>
16600 int
16601 main ()
16602 {
16603 struct stat s; s.st_dm_mode;
16604 ;
16605 return 0;
16606 }
16607 _ACEOF
16608 if ac_fn_c_try_compile "$LINENO"; then :
16609 ac_cv_struct_st_dm_mode=yes
16610 else
16611 ac_cv_struct_st_dm_mode=no
16612 fi
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 fi
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16616 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16617
16618 if test $ac_cv_struct_st_dm_mode = yes; then
16619
16620 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16621
16622 fi
16623
16624
16625 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16626 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16627 ac_have_decl=1
16628 else
16629 ac_have_decl=0
16630 fi
16631
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_DECL_STRMODE $ac_have_decl
16634 _ACEOF
16635
16636
16637 GNULIB__EXIT=0;
16638 GNULIB_ATOLL=0;
16639 GNULIB_CALLOC_POSIX=0;
16640 GNULIB_CANONICALIZE_FILE_NAME=0;
16641 GNULIB_GETLOADAVG=0;
16642 GNULIB_GETSUBOPT=0;
16643 GNULIB_GRANTPT=0;
16644 GNULIB_MALLOC_POSIX=0;
16645 GNULIB_MBTOWC=0;
16646 GNULIB_MKDTEMP=0;
16647 GNULIB_MKOSTEMP=0;
16648 GNULIB_MKOSTEMPS=0;
16649 GNULIB_MKSTEMP=0;
16650 GNULIB_MKSTEMPS=0;
16651 GNULIB_PTSNAME=0;
16652 GNULIB_PUTENV=0;
16653 GNULIB_RANDOM_R=0;
16654 GNULIB_REALLOC_POSIX=0;
16655 GNULIB_REALPATH=0;
16656 GNULIB_RPMATCH=0;
16657 GNULIB_SETENV=0;
16658 GNULIB_STRTOD=0;
16659 GNULIB_STRTOLL=0;
16660 GNULIB_STRTOULL=0;
16661 GNULIB_SYSTEM_POSIX=0;
16662 GNULIB_UNLOCKPT=0;
16663 GNULIB_UNSETENV=0;
16664 GNULIB_WCTOMB=0;
16665 HAVE__EXIT=1;
16666 HAVE_ATOLL=1;
16667 HAVE_CANONICALIZE_FILE_NAME=1;
16668 HAVE_DECL_GETLOADAVG=1;
16669 HAVE_GETSUBOPT=1;
16670 HAVE_GRANTPT=1;
16671 HAVE_MKDTEMP=1;
16672 HAVE_MKOSTEMP=1;
16673 HAVE_MKOSTEMPS=1;
16674 HAVE_MKSTEMP=1;
16675 HAVE_MKSTEMPS=1;
16676 HAVE_PTSNAME=1;
16677 HAVE_RANDOM_H=1;
16678 HAVE_RANDOM_R=1;
16679 HAVE_REALPATH=1;
16680 HAVE_RPMATCH=1;
16681 HAVE_SETENV=1;
16682 HAVE_DECL_SETENV=1;
16683 HAVE_STRTOD=1;
16684 HAVE_STRTOLL=1;
16685 HAVE_STRTOULL=1;
16686 HAVE_STRUCT_RANDOM_DATA=1;
16687 HAVE_SYS_LOADAVG_H=0;
16688 HAVE_UNLOCKPT=1;
16689 HAVE_DECL_UNSETENV=1;
16690 REPLACE_CALLOC=0;
16691 REPLACE_CANONICALIZE_FILE_NAME=0;
16692 REPLACE_MALLOC=0;
16693 REPLACE_MBTOWC=0;
16694 REPLACE_MKSTEMP=0;
16695 REPLACE_PUTENV=0;
16696 REPLACE_REALLOC=0;
16697 REPLACE_REALPATH=0;
16698 REPLACE_SETENV=0;
16699 REPLACE_STRTOD=0;
16700 REPLACE_UNSETENV=0;
16701 REPLACE_WCTOMB=0;
16702
16703
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16706 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16707 if test "${gl_cv_have_include_next+set}" = set; then :
16708 $as_echo_n "(cached) " >&6
16709 else
16710 rm -rf conftestd1a conftestd1b conftestd2
16711 mkdir conftestd1a conftestd1b conftestd2
16712 cat <<EOF > conftestd1a/conftest.h
16713 #define DEFINED_IN_CONFTESTD1
16714 #include_next <conftest.h>
16715 #ifdef DEFINED_IN_CONFTESTD2
16716 int foo;
16717 #else
16718 #error "include_next doesn't work"
16719 #endif
16720 EOF
16721 cat <<EOF > conftestd1b/conftest.h
16722 #define DEFINED_IN_CONFTESTD1
16723 #include <stdio.h>
16724 #include_next <conftest.h>
16725 #ifdef DEFINED_IN_CONFTESTD2
16726 int foo;
16727 #else
16728 #error "include_next doesn't work"
16729 #endif
16730 EOF
16731 cat <<EOF > conftestd2/conftest.h
16732 #ifndef DEFINED_IN_CONFTESTD1
16733 #error "include_next test doesn't work"
16734 #endif
16735 #define DEFINED_IN_CONFTESTD2
16736 EOF
16737 gl_save_CPPFLAGS="$CPPFLAGS"
16738 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16741 #include <conftest.h>
16742 _ACEOF
16743 if ac_fn_c_try_compile "$LINENO"; then :
16744 gl_cv_have_include_next=yes
16745 else
16746 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 #include <conftest.h>
16750 _ACEOF
16751 if ac_fn_c_try_compile "$LINENO"; then :
16752 gl_cv_have_include_next=buggy
16753 else
16754 gl_cv_have_include_next=no
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757
16758 fi
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 CPPFLAGS="$gl_save_CPPFLAGS"
16761 rm -rf conftestd1a conftestd1b conftestd2
16762
16763 fi
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16765 $as_echo "$gl_cv_have_include_next" >&6; }
16766 PRAGMA_SYSTEM_HEADER=
16767 if test $gl_cv_have_include_next = yes; then
16768 INCLUDE_NEXT=include_next
16769 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16770 if test -n "$GCC"; then
16771 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16772 fi
16773 else
16774 if test $gl_cv_have_include_next = buggy; then
16775 INCLUDE_NEXT=include
16776 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16777 else
16778 INCLUDE_NEXT=include
16779 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16780 fi
16781 fi
16782
16783
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16786 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16787 if test "${gl_cv_pragma_columns+set}" = set; then :
16788 $as_echo_n "(cached) " >&6
16789 else
16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h. */
16792
16793 #ifdef __TANDEM
16794 choke me
16795 #endif
16796
16797 _ACEOF
16798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16799 $EGREP "choke me" >/dev/null 2>&1; then :
16800 gl_cv_pragma_columns=yes
16801 else
16802 gl_cv_pragma_columns=no
16803 fi
16804 rm -f conftest*
16805
16806
16807 fi
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16809 $as_echo "$gl_cv_pragma_columns" >&6; }
16810 if test $gl_cv_pragma_columns = yes; then
16811 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16812 else
16813 PRAGMA_COLUMNS=
16814 fi
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832 if test $gl_cv_have_include_next = yes; then
16833 gl_cv_next_getopt_h='<'getopt.h'>'
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16836 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16837 if test "${gl_cv_next_getopt_h+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840
16841 if test $ac_cv_header_getopt_h = yes; then
16842
16843
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16846 #include <getopt.h>
16847
16848 _ACEOF
16849 case "$host_os" in
16850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16851 *) gl_absname_cpp="$ac_cpp" ;;
16852 esac
16853
16854 case "$host_os" in
16855 mingw*)
16856 gl_dirsep_regex='[/\\]'
16857 ;;
16858 *)
16859 gl_dirsep_regex='/'
16860 ;;
16861 esac
16862
16863 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
16864 s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
16865 s|^/[^/]|//&|
16866 p
16867 q
16868 }'
16869 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16870 sed -n "$gl_absolute_header_sed"`'"'
16871 else
16872 gl_cv_next_getopt_h='<'getopt.h'>'
16873 fi
16874
16875
16876 fi
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16878 $as_echo "$gl_cv_next_getopt_h" >&6; }
16879 fi
16880 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16881
16882 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16884 gl_next_as_first_directive='<'getopt.h'>'
16885 else
16886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16887 gl_next_as_first_directive=$gl_cv_next_getopt_h
16888 fi
16889 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16890
16891
16892
16893
16894 if test $ac_cv_header_getopt_h = yes; then
16895 HAVE_GETOPT_H=1
16896 else
16897 HAVE_GETOPT_H=0
16898 fi
16899
16900
16901 gl_replace_getopt=
16902
16903 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16904 for ac_header in getopt.h
16905 do :
16906 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16907 if test "x$ac_cv_header_getopt_h" = x""yes; then :
16908 cat >>confdefs.h <<_ACEOF
16909 #define HAVE_GETOPT_H 1
16910 _ACEOF
16911
16912 else
16913 gl_replace_getopt=yes
16914 fi
16915
16916 done
16917
16918 fi
16919
16920 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16921 for ac_func in getopt_long_only
16922 do :
16923 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
16924 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_GETOPT_LONG_ONLY 1
16927 _ACEOF
16928
16929 else
16930 gl_replace_getopt=yes
16931 fi
16932 done
16933
16934 fi
16935
16936 if test -z "$gl_replace_getopt"; then
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
16938 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
16939 if test "${gl_cv_func_getopt_posix+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16941 else
16942
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16945 #include <unistd.h>
16946 int
16947 main ()
16948 {
16949 int *p = &optreset; return optreset;
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 if ac_fn_c_try_link "$LINENO"; then :
16955 gl_optind_min=1
16956 else
16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16959 #include <getopt.h>
16960 int
16961 main ()
16962 {
16963 return !getopt_clip;
16964 ;
16965 return 0;
16966 }
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"; then :
16969 gl_optind_min=1
16970 else
16971 gl_optind_min=0
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 rm -f core conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext conftest.$ac_ext
16977
16978 gl_save_CPPFLAGS=$CPPFLAGS
16979 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
16980 if test "$cross_compiling" = yes; then :
16981 case "$host_os" in
16982 mingw*) gl_cv_func_getopt_posix="guessing no";;
16983 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
16984 *) gl_cv_func_getopt_posix="guessing yes";;
16985 esac
16986
16987 else
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990
16991 #include <unistd.h>
16992 #include <stdlib.h>
16993 #include <string.h>
16994
16995 int
16996 main ()
16997 {
16998 {
16999 static char program[] = "program";
17000 static char a[] = "-a";
17001 static char foo[] = "foo";
17002 static char bar[] = "bar";
17003 char *argv[] = { program, a, foo, bar, NULL };
17004 int c;
17005
17006 optind = OPTIND_MIN;
17007 opterr = 0;
17008
17009 c = getopt (4, argv, "ab");
17010 if (!(c == 'a'))
17011 return 1;
17012 c = getopt (4, argv, "ab");
17013 if (!(c == -1))
17014 return 2;
17015 if (!(optind == 2))
17016 return 3;
17017 }
17018 /* Some internal state exists at this point. */
17019 {
17020 static char program[] = "program";
17021 static char donald[] = "donald";
17022 static char p[] = "-p";
17023 static char billy[] = "billy";
17024 static char duck[] = "duck";
17025 static char a[] = "-a";
17026 static char bar[] = "bar";
17027 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17028 int c;
17029
17030 optind = OPTIND_MIN;
17031 opterr = 0;
17032
17033 c = getopt (7, argv, "+abp:q:");
17034 if (!(c == -1))
17035 return 4;
17036 if (!(strcmp (argv[0], "program") == 0))
17037 return 5;
17038 if (!(strcmp (argv[1], "donald") == 0))
17039 return 6;
17040 if (!(strcmp (argv[2], "-p") == 0))
17041 return 7;
17042 if (!(strcmp (argv[3], "billy") == 0))
17043 return 8;
17044 if (!(strcmp (argv[4], "duck") == 0))
17045 return 9;
17046 if (!(strcmp (argv[5], "-a") == 0))
17047 return 10;
17048 if (!(strcmp (argv[6], "bar") == 0))
17049 return 11;
17050 if (!(optind == 1))
17051 return 12;
17052 }
17053 /* Detect MacOS 10.5, AIX 7.1 bug. */
17054 {
17055 static char program[] = "program";
17056 static char ab[] = "-ab";
17057 char *argv[3] = { program, ab, NULL };
17058 optind = OPTIND_MIN;
17059 opterr = 0;
17060 if (getopt (2, argv, "ab:") != 'a')
17061 return 13;
17062 if (getopt (2, argv, "ab:") != '?')
17063 return 14;
17064 if (optopt != 'b')
17065 return 15;
17066 if (optind != 2)
17067 return 16;
17068 }
17069
17070 return 0;
17071 }
17072
17073 _ACEOF
17074 if ac_fn_c_try_run "$LINENO"; then :
17075 gl_cv_func_getopt_posix=yes
17076 else
17077 gl_cv_func_getopt_posix=no
17078 fi
17079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17080 conftest.$ac_objext conftest.beam conftest.$ac_ext
17081 fi
17082
17083 CPPFLAGS=$gl_save_CPPFLAGS
17084
17085 fi
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17087 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17088 case "$gl_cv_func_getopt_posix" in
17089 *no) gl_replace_getopt=yes ;;
17090 esac
17091 fi
17092
17093 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17095 $as_echo_n "checking for working GNU getopt function... " >&6; }
17096 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17100 # optstring is necessary for programs like m4 that have POSIX-mandated
17101 # semantics for supporting options interspersed with files.
17102 # Also, since getopt_long is a GNU extension, we require optind=0.
17103 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17104 # so take care to revert to the correct (non-)export state.
17105 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17106 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17107 xx) gl_had_POSIXLY_CORRECT=exported ;;
17108 x) gl_had_POSIXLY_CORRECT=yes ;;
17109 *) gl_had_POSIXLY_CORRECT= ;;
17110 esac
17111 POSIXLY_CORRECT=1
17112 export POSIXLY_CORRECT
17113 if test "$cross_compiling" = yes; then :
17114 case $host_os:$ac_cv_have_decl_optreset in
17115 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17116 *:yes) gl_cv_func_getopt_gnu=no;;
17117 *) gl_cv_func_getopt_gnu=yes;;
17118 esac
17119
17120 else
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17123 #include <getopt.h>
17124 #include <stddef.h>
17125 #include <string.h>
17126
17127 #include <stdlib.h>
17128 #if defined __MACH__ && defined __APPLE__
17129 /* Avoid a crash on MacOS X. */
17130 #include <mach/mach.h>
17131 #include <mach/mach_error.h>
17132 #include <mach/thread_status.h>
17133 #include <mach/exception.h>
17134 #include <mach/task.h>
17135 #include <pthread.h>
17136 /* The exception port on which our thread listens. */
17137 static mach_port_t our_exception_port;
17138 /* The main function of the thread listening for exceptions of type
17139 EXC_BAD_ACCESS. */
17140 static void *
17141 mach_exception_thread (void *arg)
17142 {
17143 /* Buffer for a message to be received. */
17144 struct {
17145 mach_msg_header_t head;
17146 mach_msg_body_t msgh_body;
17147 char data[1024];
17148 } msg;
17149 mach_msg_return_t retval;
17150 /* Wait for a message on the exception port. */
17151 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17152 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17153 if (retval != MACH_MSG_SUCCESS)
17154 abort ();
17155 exit (1);
17156 }
17157 static void
17158 nocrash_init (void)
17159 {
17160 mach_port_t self = mach_task_self ();
17161 /* Allocate a port on which the thread shall listen for exceptions. */
17162 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17163 == KERN_SUCCESS) {
17164 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17165 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17166 MACH_MSG_TYPE_MAKE_SEND)
17167 == KERN_SUCCESS) {
17168 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17169 for us. */
17170 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17171 /* Create the thread listening on the exception port. */
17172 pthread_attr_t attr;
17173 pthread_t thread;
17174 if (pthread_attr_init (&attr) == 0
17175 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17176 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17177 pthread_attr_destroy (&attr);
17178 /* Replace the exception port info for these exceptions with our own.
17179 Note that we replace the exception port for the entire task, not only
17180 for a particular thread. This has the effect that when our exception
17181 port gets the message, the thread specific exception port has already
17182 been asked, and we don't need to bother about it.
17183 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17184 task_set_exception_ports (self, mask, our_exception_port,
17185 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17186 }
17187 }
17188 }
17189 }
17190 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17191 /* Avoid a crash on native Windows. */
17192 #define WIN32_LEAN_AND_MEAN
17193 #include <windows.h>
17194 #include <winerror.h>
17195 static LONG WINAPI
17196 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17197 {
17198 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17199 {
17200 case EXCEPTION_ACCESS_VIOLATION:
17201 case EXCEPTION_IN_PAGE_ERROR:
17202 case EXCEPTION_STACK_OVERFLOW:
17203 case EXCEPTION_GUARD_PAGE:
17204 case EXCEPTION_PRIV_INSTRUCTION:
17205 case EXCEPTION_ILLEGAL_INSTRUCTION:
17206 case EXCEPTION_DATATYPE_MISALIGNMENT:
17207 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17208 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17209 exit (1);
17210 }
17211 return EXCEPTION_CONTINUE_SEARCH;
17212 }
17213 static void
17214 nocrash_init (void)
17215 {
17216 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17217 }
17218 #else
17219 /* Avoid a crash on POSIX systems. */
17220 #include <signal.h>
17221 /* A POSIX signal handler. */
17222 static void
17223 exception_handler (int sig)
17224 {
17225 exit (1);
17226 }
17227 static void
17228 nocrash_init (void)
17229 {
17230 #ifdef SIGSEGV
17231 signal (SIGSEGV, exception_handler);
17232 #endif
17233 #ifdef SIGBUS
17234 signal (SIGBUS, exception_handler);
17235 #endif
17236 }
17237 #endif
17238
17239
17240 int
17241 main ()
17242 {
17243
17244 int result = 0;
17245
17246 nocrash_init();
17247
17248 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17249 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17250 OSF/1 5.1, Solaris 10. */
17251 {
17252 static char conftest[] = "conftest";
17253 static char plus[] = "-+";
17254 char *argv[3] = { conftest, plus, NULL };
17255 opterr = 0;
17256 if (getopt (2, argv, "+a") != '?')
17257 result |= 1;
17258 }
17259 /* This code succeeds on glibc 2.8, mingw,
17260 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17261 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17262 {
17263 static char program[] = "program";
17264 static char p[] = "-p";
17265 static char foo[] = "foo";
17266 static char bar[] = "bar";
17267 char *argv[] = { program, p, foo, bar, NULL };
17268
17269 optind = 1;
17270 if (getopt (4, argv, "p::") != 'p')
17271 result |= 2;
17272 else if (optarg != NULL)
17273 result |= 4;
17274 else if (getopt (4, argv, "p::") != -1)
17275 result |= 6;
17276 else if (optind != 2)
17277 result |= 8;
17278 }
17279 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17280 {
17281 static char program[] = "program";
17282 static char foo[] = "foo";
17283 static char p[] = "-p";
17284 char *argv[] = { program, foo, p, NULL };
17285 optind = 0;
17286 if (getopt (3, argv, "-p") != 1)
17287 result |= 16;
17288 else if (getopt (3, argv, "-p") != 'p')
17289 result |= 32;
17290 }
17291 /* This code fails on glibc 2.11. */
17292 {
17293 static char program[] = "program";
17294 static char b[] = "-b";
17295 static char a[] = "-a";
17296 char *argv[] = { program, b, a, NULL };
17297 optind = opterr = 0;
17298 if (getopt (3, argv, "+:a:b") != 'b')
17299 result |= 64;
17300 else if (getopt (3, argv, "+:a:b") != ':')
17301 result |= 64;
17302 }
17303 /* This code dumps core on glibc 2.14. */
17304 {
17305 static char program[] = "program";
17306 static char w[] = "-W";
17307 static char dummy[] = "dummy";
17308 char *argv[] = { program, w, dummy, NULL };
17309 optind = opterr = 1;
17310 if (getopt (3, argv, "W;") != 'W')
17311 result |= 128;
17312 }
17313 return result;
17314
17315 ;
17316 return 0;
17317 }
17318 _ACEOF
17319 if ac_fn_c_try_run "$LINENO"; then :
17320 gl_cv_func_getopt_gnu=yes
17321 else
17322 gl_cv_func_getopt_gnu=no
17323 fi
17324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17325 conftest.$ac_objext conftest.beam conftest.$ac_ext
17326 fi
17327
17328 case $gl_had_POSIXLY_CORRECT in
17329 exported) ;;
17330 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17331 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17332 esac
17333
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17336 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17337 if test "$gl_cv_func_getopt_gnu" = "no"; then
17338 gl_replace_getopt=yes
17339 fi
17340 fi
17341
17342
17343
17344
17345
17346 REPLACE_GETOPT=0
17347
17348
17349 if test -n "$gl_replace_getopt"; then :
17350
17351 REPLACE_GETOPT=1
17352
17353 fi
17354
17355
17356 if test $REPLACE_GETOPT = 1; then
17357
17358 GETOPT_H=getopt.h
17359
17360 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17361
17362
17363
17364 GNULIB_UNISTD_H_GETOPT=1
17365 fi
17366
17367 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17368 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17369 ac_have_decl=1
17370 else
17371 ac_have_decl=0
17372 fi
17373
17374 cat >>confdefs.h <<_ACEOF
17375 #define HAVE_DECL_GETENV $ac_have_decl
17376 _ACEOF
17377
17378
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17380 $as_echo_n "checking for unsigned long long int... " >&6; }
17381 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 ac_cv_type_unsigned_long_long_int=yes
17385 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17388
17389 /* For now, do not test the preprocessor; as of 2007 there are too many
17390 implementations with broken preprocessors. Perhaps this can
17391 be revisited in 2012. In the meantime, code should not expect
17392 #if to work with literals wider than 32 bits. */
17393 /* Test literals. */
17394 long long int ll = 9223372036854775807ll;
17395 long long int nll = -9223372036854775807LL;
17396 unsigned long long int ull = 18446744073709551615ULL;
17397 /* Test constant expressions. */
17398 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17399 ? 1 : -1)];
17400 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17401 ? 1 : -1)];
17402 int i = 63;
17403 int
17404 main ()
17405 {
17406 /* Test availability of runtime routines for shift and division. */
17407 long long int llmax = 9223372036854775807ll;
17408 unsigned long long int ullmax = 18446744073709551615ull;
17409 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17410 | (llmax / ll) | (llmax % ll)
17411 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17412 | (ullmax / ull) | (ullmax % ull));
17413 ;
17414 return 0;
17415 }
17416
17417 _ACEOF
17418 if ac_fn_c_try_link "$LINENO"; then :
17419
17420 else
17421 ac_cv_type_unsigned_long_long_int=no
17422 fi
17423 rm -f core conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17425 fi
17426 fi
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17428 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17429 if test $ac_cv_type_unsigned_long_long_int = yes; then
17430
17431 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17432
17433 fi
17434
17435
17436
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17438 $as_echo_n "checking for long long int... " >&6; }
17439 if test "${ac_cv_type_long_long_int+set}" = set; then :
17440 $as_echo_n "(cached) " >&6
17441 else
17442 ac_cv_type_long_long_int=yes
17443 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17444 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17445 if test $ac_cv_type_long_long_int = yes; then
17446 if test "$cross_compiling" = yes; then :
17447 :
17448 else
17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450 /* end confdefs.h. */
17451 #include <limits.h>
17452 #ifndef LLONG_MAX
17453 # define HALF \
17454 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17455 # define LLONG_MAX (HALF - 1 + HALF)
17456 #endif
17457 int
17458 main ()
17459 {
17460 long long int n = 1;
17461 int i;
17462 for (i = 0; ; i++)
17463 {
17464 long long int m = n << i;
17465 if (m >> i != n)
17466 return 1;
17467 if (LLONG_MAX / 2 < m)
17468 break;
17469 }
17470 return 0;
17471 ;
17472 return 0;
17473 }
17474 _ACEOF
17475 if ac_fn_c_try_run "$LINENO"; then :
17476
17477 else
17478 ac_cv_type_long_long_int=no
17479 fi
17480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17481 conftest.$ac_objext conftest.beam conftest.$ac_ext
17482 fi
17483
17484 fi
17485 fi
17486 fi
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17488 $as_echo "$ac_cv_type_long_long_int" >&6; }
17489 if test $ac_cv_type_long_long_int = yes; then
17490
17491 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17492
17493 fi
17494
17495
17496
17497
17498
17499
17500 gl_cv_c_multiarch=no
17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h. */
17503 #ifndef __APPLE_CC__
17504 not a universal capable compiler
17505 #endif
17506 typedef int dummy;
17507
17508 _ACEOF
17509 if ac_fn_c_try_compile "$LINENO"; then :
17510
17511 arch=
17512 prev=
17513 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17514 if test -n "$prev"; then
17515 case $word in
17516 i?86 | x86_64 | ppc | ppc64)
17517 if test -z "$arch" || test "$arch" = "$word"; then
17518 arch="$word"
17519 else
17520 gl_cv_c_multiarch=yes
17521 fi
17522 ;;
17523 esac
17524 prev=
17525 else
17526 if test "x$word" = "x-arch"; then
17527 prev=arch
17528 fi
17529 fi
17530 done
17531
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 if test $gl_cv_c_multiarch = yes; then
17535 APPLE_UNIVERSAL_BUILD=1
17536 else
17537 APPLE_UNIVERSAL_BUILD=0
17538 fi
17539
17540
17541
17542
17543
17544 if test $ac_cv_type_long_long_int = yes; then
17545 HAVE_LONG_LONG_INT=1
17546 else
17547 HAVE_LONG_LONG_INT=0
17548 fi
17549
17550
17551 if test $ac_cv_type_unsigned_long_long_int = yes; then
17552 HAVE_UNSIGNED_LONG_LONG_INT=1
17553 else
17554 HAVE_UNSIGNED_LONG_LONG_INT=0
17555 fi
17556
17557
17558
17559 if test $ac_cv_header_wchar_h = yes; then
17560 HAVE_WCHAR_H=1
17561 else
17562 HAVE_WCHAR_H=0
17563 fi
17564
17565
17566 if test $ac_cv_header_inttypes_h = yes; then
17567 HAVE_INTTYPES_H=1
17568 else
17569 HAVE_INTTYPES_H=0
17570 fi
17571
17572
17573 if test $ac_cv_header_sys_types_h = yes; then
17574 HAVE_SYS_TYPES_H=1
17575 else
17576 HAVE_SYS_TYPES_H=0
17577 fi
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589 if test $gl_cv_have_include_next = yes; then
17590 gl_cv_next_stdint_h='<'stdint.h'>'
17591 else
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17593 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17594 if test "${gl_cv_next_stdint_h+set}" = set; then :
17595 $as_echo_n "(cached) " >&6
17596 else
17597
17598 if test $ac_cv_header_stdint_h = yes; then
17599
17600
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17603 #include <stdint.h>
17604
17605 _ACEOF
17606 case "$host_os" in
17607 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17608 *) gl_absname_cpp="$ac_cpp" ;;
17609 esac
17610
17611 case "$host_os" in
17612 mingw*)
17613 gl_dirsep_regex='[/\\]'
17614 ;;
17615 *)
17616 gl_dirsep_regex='/'
17617 ;;
17618 esac
17619
17620 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
17621 s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
17622 s|^/[^/]|//&|
17623 p
17624 q
17625 }'
17626 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17627 sed -n "$gl_absolute_header_sed"`'"'
17628 else
17629 gl_cv_next_stdint_h='<'stdint.h'>'
17630 fi
17631
17632
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17635 $as_echo "$gl_cv_next_stdint_h" >&6; }
17636 fi
17637 NEXT_STDINT_H=$gl_cv_next_stdint_h
17638
17639 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17641 gl_next_as_first_directive='<'stdint.h'>'
17642 else
17643 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17644 gl_next_as_first_directive=$gl_cv_next_stdint_h
17645 fi
17646 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17647
17648
17649
17650
17651 if test $ac_cv_header_stdint_h = yes; then
17652 HAVE_STDINT_H=1
17653 else
17654 HAVE_STDINT_H=0
17655 fi
17656
17657
17658 if test $ac_cv_header_stdint_h = yes; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17660 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17661 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17663 else
17664 gl_cv_header_working_stdint_h=no
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667
17668
17669 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17670 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17671 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17672 #include <stdint.h>
17673 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17674 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17675 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17676 #endif
17677
17678
17679 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17680 included before <wchar.h>. */
17681 #include <stddef.h>
17682 #include <signal.h>
17683 #if HAVE_WCHAR_H
17684 # include <stdio.h>
17685 # include <time.h>
17686 # include <wchar.h>
17687 #endif
17688
17689
17690 #ifdef INT8_MAX
17691 int8_t a1 = INT8_MAX;
17692 int8_t a1min = INT8_MIN;
17693 #endif
17694 #ifdef INT16_MAX
17695 int16_t a2 = INT16_MAX;
17696 int16_t a2min = INT16_MIN;
17697 #endif
17698 #ifdef INT32_MAX
17699 int32_t a3 = INT32_MAX;
17700 int32_t a3min = INT32_MIN;
17701 #endif
17702 #ifdef INT64_MAX
17703 int64_t a4 = INT64_MAX;
17704 int64_t a4min = INT64_MIN;
17705 #endif
17706 #ifdef UINT8_MAX
17707 uint8_t b1 = UINT8_MAX;
17708 #else
17709 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17710 #endif
17711 #ifdef UINT16_MAX
17712 uint16_t b2 = UINT16_MAX;
17713 #endif
17714 #ifdef UINT32_MAX
17715 uint32_t b3 = UINT32_MAX;
17716 #endif
17717 #ifdef UINT64_MAX
17718 uint64_t b4 = UINT64_MAX;
17719 #endif
17720 int_least8_t c1 = INT8_C (0x7f);
17721 int_least8_t c1max = INT_LEAST8_MAX;
17722 int_least8_t c1min = INT_LEAST8_MIN;
17723 int_least16_t c2 = INT16_C (0x7fff);
17724 int_least16_t c2max = INT_LEAST16_MAX;
17725 int_least16_t c2min = INT_LEAST16_MIN;
17726 int_least32_t c3 = INT32_C (0x7fffffff);
17727 int_least32_t c3max = INT_LEAST32_MAX;
17728 int_least32_t c3min = INT_LEAST32_MIN;
17729 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17730 int_least64_t c4max = INT_LEAST64_MAX;
17731 int_least64_t c4min = INT_LEAST64_MIN;
17732 uint_least8_t d1 = UINT8_C (0xff);
17733 uint_least8_t d1max = UINT_LEAST8_MAX;
17734 uint_least16_t d2 = UINT16_C (0xffff);
17735 uint_least16_t d2max = UINT_LEAST16_MAX;
17736 uint_least32_t d3 = UINT32_C (0xffffffff);
17737 uint_least32_t d3max = UINT_LEAST32_MAX;
17738 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17739 uint_least64_t d4max = UINT_LEAST64_MAX;
17740 int_fast8_t e1 = INT_FAST8_MAX;
17741 int_fast8_t e1min = INT_FAST8_MIN;
17742 int_fast16_t e2 = INT_FAST16_MAX;
17743 int_fast16_t e2min = INT_FAST16_MIN;
17744 int_fast32_t e3 = INT_FAST32_MAX;
17745 int_fast32_t e3min = INT_FAST32_MIN;
17746 int_fast64_t e4 = INT_FAST64_MAX;
17747 int_fast64_t e4min = INT_FAST64_MIN;
17748 uint_fast8_t f1 = UINT_FAST8_MAX;
17749 uint_fast16_t f2 = UINT_FAST16_MAX;
17750 uint_fast32_t f3 = UINT_FAST32_MAX;
17751 uint_fast64_t f4 = UINT_FAST64_MAX;
17752 #ifdef INTPTR_MAX
17753 intptr_t g = INTPTR_MAX;
17754 intptr_t gmin = INTPTR_MIN;
17755 #endif
17756 #ifdef UINTPTR_MAX
17757 uintptr_t h = UINTPTR_MAX;
17758 #endif
17759 intmax_t i = INTMAX_MAX;
17760 uintmax_t j = UINTMAX_MAX;
17761
17762 #include <limits.h> /* for CHAR_BIT */
17763 #define TYPE_MINIMUM(t) \
17764 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17765 #define TYPE_MAXIMUM(t) \
17766 ((t) ((t) 0 < (t) -1 \
17767 ? (t) -1 \
17768 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17769 struct s {
17770 int check_PTRDIFF:
17771 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17772 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17773 ? 1 : -1;
17774 /* Detect bug in FreeBSD 6.0 / ia64. */
17775 int check_SIG_ATOMIC:
17776 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17777 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17778 ? 1 : -1;
17779 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17780 int check_WCHAR:
17781 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17782 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17783 ? 1 : -1;
17784 /* Detect bug in mingw. */
17785 int check_WINT:
17786 WINT_MIN == TYPE_MINIMUM (wint_t)
17787 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17788 ? 1 : -1;
17789
17790 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17791 int check_UINT8_C:
17792 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17793 int check_UINT16_C:
17794 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17795
17796 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17797 #ifdef UINT8_MAX
17798 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17799 #endif
17800 #ifdef UINT16_MAX
17801 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17802 #endif
17803 #ifdef UINT32_MAX
17804 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17805 #endif
17806 #ifdef UINT64_MAX
17807 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17808 #endif
17809 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17810 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17811 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17812 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17813 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17814 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17815 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17816 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17817 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17818 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17819 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17820 };
17821
17822 int
17823 main ()
17824 {
17825
17826 ;
17827 return 0;
17828 }
17829 _ACEOF
17830 if ac_fn_c_try_compile "$LINENO"; then :
17831 if test "$cross_compiling" = yes; then :
17832 gl_cv_header_working_stdint_h=yes
17833
17834 else
17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17837
17838
17839 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17840 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17841 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17842 #include <stdint.h>
17843
17844
17845 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17846 included before <wchar.h>. */
17847 #include <stddef.h>
17848 #include <signal.h>
17849 #if HAVE_WCHAR_H
17850 # include <stdio.h>
17851 # include <time.h>
17852 # include <wchar.h>
17853 #endif
17854
17855
17856 #include <stdio.h>
17857 #include <string.h>
17858 #define MVAL(macro) MVAL1(macro)
17859 #define MVAL1(expression) #expression
17860 static const char *macro_values[] =
17861 {
17862 #ifdef INT8_MAX
17863 MVAL (INT8_MAX),
17864 #endif
17865 #ifdef INT16_MAX
17866 MVAL (INT16_MAX),
17867 #endif
17868 #ifdef INT32_MAX
17869 MVAL (INT32_MAX),
17870 #endif
17871 #ifdef INT64_MAX
17872 MVAL (INT64_MAX),
17873 #endif
17874 #ifdef UINT8_MAX
17875 MVAL (UINT8_MAX),
17876 #endif
17877 #ifdef UINT16_MAX
17878 MVAL (UINT16_MAX),
17879 #endif
17880 #ifdef UINT32_MAX
17881 MVAL (UINT32_MAX),
17882 #endif
17883 #ifdef UINT64_MAX
17884 MVAL (UINT64_MAX),
17885 #endif
17886 NULL
17887 };
17888
17889 int
17890 main ()
17891 {
17892
17893 const char **mv;
17894 for (mv = macro_values; *mv != NULL; mv++)
17895 {
17896 const char *value = *mv;
17897 /* Test whether it looks like a cast expression. */
17898 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17899 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17900 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17901 || strncmp (value, "((int)"/*)*/, 6) == 0
17902 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17903 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17904 return mv - macro_values + 1;
17905 }
17906 return 0;
17907
17908 ;
17909 return 0;
17910 }
17911 _ACEOF
17912 if ac_fn_c_try_run "$LINENO"; then :
17913 gl_cv_header_working_stdint_h=yes
17914 fi
17915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17916 conftest.$ac_objext conftest.beam conftest.$ac_ext
17917 fi
17918
17919
17920 fi
17921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922
17923 fi
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17925 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17926 fi
17927 if test "$gl_cv_header_working_stdint_h" = yes; then
17928 STDINT_H=
17929 else
17930 for ac_header in sys/inttypes.h sys/bitypes.h
17931 do :
17932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17934 eval as_val=\$$as_ac_Header
17935 if test "x$as_val" = x""yes; then :
17936 cat >>confdefs.h <<_ACEOF
17937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17938 _ACEOF
17939
17940 fi
17941
17942 done
17943
17944 if test $ac_cv_header_sys_inttypes_h = yes; then
17945 HAVE_SYS_INTTYPES_H=1
17946 else
17947 HAVE_SYS_INTTYPES_H=0
17948 fi
17949
17950 if test $ac_cv_header_sys_bitypes_h = yes; then
17951 HAVE_SYS_BITYPES_H=1
17952 else
17953 HAVE_SYS_BITYPES_H=0
17954 fi
17955
17956
17957
17958
17959 if test $APPLE_UNIVERSAL_BUILD = 0; then
17960
17961
17962 for gltype in ptrdiff_t size_t ; do
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17964 $as_echo_n "checking for bit size of $gltype... " >&6; }
17965 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17969 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17970 included before <wchar.h>. */
17971 #include <stddef.h>
17972 #include <signal.h>
17973 #if HAVE_WCHAR_H
17974 # include <stdio.h>
17975 # include <time.h>
17976 # include <wchar.h>
17977 #endif
17978
17979 #include <limits.h>"; then :
17980
17981 else
17982 result=unknown
17983 fi
17984
17985 eval gl_cv_bitsizeof_${gltype}=\$result
17986
17987 fi
17988 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17990 $as_echo "$ac_res" >&6; }
17991 eval result=\$gl_cv_bitsizeof_${gltype}
17992 if test $result = unknown; then
17993 result=0
17994 fi
17995 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17996 cat >>confdefs.h <<_ACEOF
17997 #define BITSIZEOF_${GLTYPE} $result
17998 _ACEOF
17999
18000 eval BITSIZEOF_${GLTYPE}=\$result
18001 done
18002
18003
18004 fi
18005
18006
18007 for gltype in sig_atomic_t wchar_t wint_t ; do
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18009 $as_echo_n "checking for bit size of $gltype... " >&6; }
18010 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18011 $as_echo_n "(cached) " >&6
18012 else
18013 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18014 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18015 included before <wchar.h>. */
18016 #include <stddef.h>
18017 #include <signal.h>
18018 #if HAVE_WCHAR_H
18019 # include <stdio.h>
18020 # include <time.h>
18021 # include <wchar.h>
18022 #endif
18023
18024 #include <limits.h>"; then :
18025
18026 else
18027 result=unknown
18028 fi
18029
18030 eval gl_cv_bitsizeof_${gltype}=\$result
18031
18032 fi
18033 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18035 $as_echo "$ac_res" >&6; }
18036 eval result=\$gl_cv_bitsizeof_${gltype}
18037 if test $result = unknown; then
18038 result=0
18039 fi
18040 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18041 cat >>confdefs.h <<_ACEOF
18042 #define BITSIZEOF_${GLTYPE} $result
18043 _ACEOF
18044
18045 eval BITSIZEOF_${GLTYPE}=\$result
18046 done
18047
18048
18049
18050
18051 for gltype in sig_atomic_t wchar_t wint_t ; do
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18053 $as_echo_n "checking whether $gltype is signed... " >&6; }
18054 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18055 $as_echo_n "(cached) " >&6
18056 else
18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058 /* end confdefs.h. */
18059
18060 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18061 included before <wchar.h>. */
18062 #include <stddef.h>
18063 #include <signal.h>
18064 #if HAVE_WCHAR_H
18065 # include <stdio.h>
18066 # include <time.h>
18067 # include <wchar.h>
18068 #endif
18069
18070 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18071 int
18072 main ()
18073 {
18074
18075 ;
18076 return 0;
18077 }
18078 _ACEOF
18079 if ac_fn_c_try_compile "$LINENO"; then :
18080 result=yes
18081 else
18082 result=no
18083 fi
18084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18085 eval gl_cv_type_${gltype}_signed=\$result
18086
18087 fi
18088 eval ac_res=\$gl_cv_type_${gltype}_signed
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18090 $as_echo "$ac_res" >&6; }
18091 eval result=\$gl_cv_type_${gltype}_signed
18092 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18093 if test "$result" = yes; then
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_SIGNED_${GLTYPE} 1
18096 _ACEOF
18097
18098 eval HAVE_SIGNED_${GLTYPE}=1
18099 else
18100 eval HAVE_SIGNED_${GLTYPE}=0
18101 fi
18102 done
18103
18104
18105 gl_cv_type_ptrdiff_t_signed=yes
18106 gl_cv_type_size_t_signed=no
18107 if test $APPLE_UNIVERSAL_BUILD = 0; then
18108
18109
18110 for gltype in ptrdiff_t size_t ; do
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18112 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18113 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18114 $as_echo_n "(cached) " >&6
18115 else
18116 eval gl_cv_type_${gltype}_suffix=no
18117 eval result=\$gl_cv_type_${gltype}_signed
18118 if test "$result" = yes; then
18119 glsufu=
18120 else
18121 glsufu=u
18122 fi
18123 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18124 case $glsuf in
18125 '') gltype1='int';;
18126 l) gltype1='long int';;
18127 ll) gltype1='long long int';;
18128 i64) gltype1='__int64';;
18129 u) gltype1='unsigned int';;
18130 ul) gltype1='unsigned long int';;
18131 ull) gltype1='unsigned long long int';;
18132 ui64)gltype1='unsigned __int64';;
18133 esac
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136
18137 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18138 included before <wchar.h>. */
18139 #include <stddef.h>
18140 #include <signal.h>
18141 #if HAVE_WCHAR_H
18142 # include <stdio.h>
18143 # include <time.h>
18144 # include <wchar.h>
18145 #endif
18146
18147 extern $gltype foo;
18148 extern $gltype1 foo;
18149 int
18150 main ()
18151 {
18152
18153 ;
18154 return 0;
18155 }
18156 _ACEOF
18157 if ac_fn_c_try_compile "$LINENO"; then :
18158 eval gl_cv_type_${gltype}_suffix=\$glsuf
18159 fi
18160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18161 eval result=\$gl_cv_type_${gltype}_suffix
18162 test "$result" != no && break
18163 done
18164 fi
18165 eval ac_res=\$gl_cv_type_${gltype}_suffix
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18167 $as_echo "$ac_res" >&6; }
18168 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18169 eval result=\$gl_cv_type_${gltype}_suffix
18170 test "$result" = no && result=
18171 eval ${GLTYPE}_SUFFIX=\$result
18172 cat >>confdefs.h <<_ACEOF
18173 #define ${GLTYPE}_SUFFIX $result
18174 _ACEOF
18175
18176 done
18177
18178
18179 fi
18180
18181
18182 for gltype in sig_atomic_t wchar_t wint_t ; do
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18184 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18185 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 eval gl_cv_type_${gltype}_suffix=no
18189 eval result=\$gl_cv_type_${gltype}_signed
18190 if test "$result" = yes; then
18191 glsufu=
18192 else
18193 glsufu=u
18194 fi
18195 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18196 case $glsuf in
18197 '') gltype1='int';;
18198 l) gltype1='long int';;
18199 ll) gltype1='long long int';;
18200 i64) gltype1='__int64';;
18201 u) gltype1='unsigned int';;
18202 ul) gltype1='unsigned long int';;
18203 ull) gltype1='unsigned long long int';;
18204 ui64)gltype1='unsigned __int64';;
18205 esac
18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18207 /* end confdefs.h. */
18208
18209 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18210 included before <wchar.h>. */
18211 #include <stddef.h>
18212 #include <signal.h>
18213 #if HAVE_WCHAR_H
18214 # include <stdio.h>
18215 # include <time.h>
18216 # include <wchar.h>
18217 #endif
18218
18219 extern $gltype foo;
18220 extern $gltype1 foo;
18221 int
18222 main ()
18223 {
18224
18225 ;
18226 return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_compile "$LINENO"; then :
18230 eval gl_cv_type_${gltype}_suffix=\$glsuf
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 eval result=\$gl_cv_type_${gltype}_suffix
18234 test "$result" != no && break
18235 done
18236 fi
18237 eval ac_res=\$gl_cv_type_${gltype}_suffix
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18239 $as_echo "$ac_res" >&6; }
18240 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18241 eval result=\$gl_cv_type_${gltype}_suffix
18242 test "$result" = no && result=
18243 eval ${GLTYPE}_SUFFIX=\$result
18244 cat >>confdefs.h <<_ACEOF
18245 #define ${GLTYPE}_SUFFIX $result
18246 _ACEOF
18247
18248 done
18249
18250
18251
18252 if test $BITSIZEOF_WINT_T -lt 32; then
18253 BITSIZEOF_WINT_T=32
18254 fi
18255
18256 STDINT_H=stdint.h
18257 fi
18258
18259 if test -n "$STDINT_H"; then
18260 GL_GENERATE_STDINT_H_TRUE=
18261 GL_GENERATE_STDINT_H_FALSE='#'
18262 else
18263 GL_GENERATE_STDINT_H_TRUE='#'
18264 GL_GENERATE_STDINT_H_FALSE=
18265 fi
18266
18267
18268
18269
18270
18271 GNULIB_IMAXABS=0;
18272 GNULIB_IMAXDIV=0;
18273 GNULIB_STRTOIMAX=0;
18274 GNULIB_STRTOUMAX=0;
18275 HAVE_DECL_IMAXABS=1;
18276 HAVE_DECL_IMAXDIV=1;
18277 HAVE_DECL_STRTOIMAX=1;
18278 HAVE_DECL_STRTOUMAX=1;
18279 INT32_MAX_LT_INTMAX_MAX=1;
18280 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18281 PRI_MACROS_BROKEN=0;
18282 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18283 UINT32_MAX_LT_UINTMAX_MAX=1;
18284 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300 if test $gl_cv_have_include_next = yes; then
18301 gl_cv_next_inttypes_h='<'inttypes.h'>'
18302 else
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18304 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18305 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18306 $as_echo_n "(cached) " >&6
18307 else
18308
18309 if test $ac_cv_header_inttypes_h = yes; then
18310
18311
18312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313 /* end confdefs.h. */
18314 #include <inttypes.h>
18315
18316 _ACEOF
18317 case "$host_os" in
18318 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18319 *) gl_absname_cpp="$ac_cpp" ;;
18320 esac
18321
18322 case "$host_os" in
18323 mingw*)
18324 gl_dirsep_regex='[/\\]'
18325 ;;
18326 *)
18327 gl_dirsep_regex='/'
18328 ;;
18329 esac
18330
18331 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
18332 s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
18333 s|^/[^/]|//&|
18334 p
18335 q
18336 }'
18337 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18338 sed -n "$gl_absolute_header_sed"`'"'
18339 else
18340 gl_cv_next_inttypes_h='<'inttypes.h'>'
18341 fi
18342
18343
18344 fi
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18346 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18347 fi
18348 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18349
18350 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18352 gl_next_as_first_directive='<'inttypes.h'>'
18353 else
18354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18355 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18356 fi
18357 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18358
18359
18360
18361
18362
18363
18364
18365
18366 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18367
18368
18369
18370
18371
18372
18373 GNULIB_FCHMODAT=0;
18374 GNULIB_FSTAT=0;
18375 GNULIB_FSTATAT=0;
18376 GNULIB_FUTIMENS=0;
18377 GNULIB_LCHMOD=0;
18378 GNULIB_LSTAT=0;
18379 GNULIB_MKDIRAT=0;
18380 GNULIB_MKFIFO=0;
18381 GNULIB_MKFIFOAT=0;
18382 GNULIB_MKNOD=0;
18383 GNULIB_MKNODAT=0;
18384 GNULIB_STAT=0;
18385 GNULIB_UTIMENSAT=0;
18386 HAVE_FCHMODAT=1;
18387 HAVE_FSTATAT=1;
18388 HAVE_FUTIMENS=1;
18389 HAVE_LCHMOD=1;
18390 HAVE_LSTAT=1;
18391 HAVE_MKDIRAT=1;
18392 HAVE_MKFIFO=1;
18393 HAVE_MKFIFOAT=1;
18394 HAVE_MKNOD=1;
18395 HAVE_MKNODAT=1;
18396 HAVE_UTIMENSAT=1;
18397 REPLACE_FSTAT=0;
18398 REPLACE_FSTATAT=0;
18399 REPLACE_FUTIMENS=0;
18400 REPLACE_LSTAT=0;
18401 REPLACE_MKDIR=0;
18402 REPLACE_MKFIFO=0;
18403 REPLACE_MKNOD=0;
18404 REPLACE_STAT=0;
18405 REPLACE_UTIMENSAT=0;
18406
18407
18408
18409
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18411 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18412 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18413 $as_echo_n "(cached) " >&6
18414 else
18415 rm -f conftest.sym conftest.file
18416 echo >conftest.file
18417 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18418 if test "$cross_compiling" = yes; then :
18419 # When cross-compiling, be pessimistic so we will end up using the
18420 # replacement version of lstat that checks for trailing slashes and
18421 # calls lstat a second time when necessary.
18422 gl_cv_func_lstat_dereferences_slashed_symlink=no
18423
18424 else
18425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18427 $ac_includes_default
18428 int
18429 main ()
18430 {
18431 struct stat sbuf;
18432 /* Linux will dereference the symlink and fail, as required by
18433 POSIX. That is better in the sense that it means we will not
18434 have to compile and use the lstat wrapper. */
18435 return lstat ("conftest.sym/", &sbuf) == 0;
18436
18437 ;
18438 return 0;
18439 }
18440 _ACEOF
18441 if ac_fn_c_try_run "$LINENO"; then :
18442 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18443 else
18444 gl_cv_func_lstat_dereferences_slashed_symlink=no
18445 fi
18446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18447 conftest.$ac_objext conftest.beam conftest.$ac_ext
18448 fi
18449
18450 else
18451 # If the 'ln -s' command failed, then we probably don't even
18452 # have an lstat function.
18453 gl_cv_func_lstat_dereferences_slashed_symlink=no
18454 fi
18455 rm -f conftest.sym conftest.file
18456
18457 fi
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18459 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18460 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18461
18462 cat >>confdefs.h <<_ACEOF
18463 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18464 _ACEOF
18465
18466
18467
18468 GNULIB_MKTIME=0;
18469 GNULIB_NANOSLEEP=0;
18470 GNULIB_STRPTIME=0;
18471 GNULIB_TIMEGM=0;
18472 GNULIB_TIME_R=0;
18473 HAVE_DECL_LOCALTIME_R=1;
18474 HAVE_NANOSLEEP=1;
18475 HAVE_STRPTIME=1;
18476 HAVE_TIMEGM=1;
18477 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18478 REPLACE_MKTIME=GNULIB_PORTCHECK;
18479 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18480 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18481
18482
18483
18484
18485
18486
18487 GNULIB_PTHREAD_SIGMASK=0;
18488 GNULIB_RAISE=0;
18489 GNULIB_SIGNAL_H_SIGPIPE=0;
18490 GNULIB_SIGPROCMASK=0;
18491 GNULIB_SIGACTION=0;
18492 HAVE_POSIX_SIGNALBLOCKING=1;
18493 HAVE_PTHREAD_SIGMASK=1;
18494 HAVE_RAISE=1;
18495 HAVE_SIGSET_T=1;
18496 HAVE_SIGINFO_T=1;
18497 HAVE_SIGACTION=1;
18498 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18499
18500 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18501
18502 HAVE_SIGHANDLER_T=1;
18503 REPLACE_PTHREAD_SIGMASK=0;
18504 REPLACE_RAISE=0;
18505
18506
18507
18508
18509 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18510 #include <signal.h>
18511 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18512 #include <sys/types.h>
18513
18514 "
18515 if test "x$ac_cv_type_sigset_t" = x""yes; then :
18516
18517 cat >>confdefs.h <<_ACEOF
18518 #define HAVE_SIGSET_T 1
18519 _ACEOF
18520
18521 gl_cv_type_sigset_t=yes
18522 else
18523 gl_cv_type_sigset_t=no
18524 fi
18525
18526 if test $gl_cv_type_sigset_t != yes; then
18527 HAVE_SIGSET_T=0
18528 fi
18529
18530
18531
18532
18533
18534 if test $ac_cv_header_sys_socket_h = no; then
18535 for ac_header in ws2tcpip.h
18536 do :
18537 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18538 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
18539 cat >>confdefs.h <<_ACEOF
18540 #define HAVE_WS2TCPIP_H 1
18541 _ACEOF
18542
18543 fi
18544
18545 done
18546
18547 fi
18548
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18550 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18551 if test "${ac_cv_header_stdbool_h+set}" = set; then :
18552 $as_echo_n "(cached) " >&6
18553 else
18554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555 /* end confdefs.h. */
18556
18557 #include <stdbool.h>
18558 #ifndef bool
18559 "error: bool is not defined"
18560 #endif
18561 #ifndef false
18562 "error: false is not defined"
18563 #endif
18564 #if false
18565 "error: false is not 0"
18566 #endif
18567 #ifndef true
18568 "error: true is not defined"
18569 #endif
18570 #if true != 1
18571 "error: true is not 1"
18572 #endif
18573 #ifndef __bool_true_false_are_defined
18574 "error: __bool_true_false_are_defined is not defined"
18575 #endif
18576
18577 struct s { _Bool s: 1; _Bool t; } s;
18578
18579 char a[true == 1 ? 1 : -1];
18580 char b[false == 0 ? 1 : -1];
18581 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18582 char d[(bool) 0.5 == true ? 1 : -1];
18583 /* See body of main program for 'e'. */
18584 char f[(_Bool) 0.0 == false ? 1 : -1];
18585 char g[true];
18586 char h[sizeof (_Bool)];
18587 char i[sizeof s.t];
18588 enum { j = false, k = true, l = false * true, m = true * 256 };
18589 /* The following fails for
18590 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18591 _Bool n[m];
18592 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18593 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18594 /* Catch a bug in an HP-UX C compiler. See
18595 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18596 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18597 */
18598 _Bool q = true;
18599 _Bool *pq = &q;
18600
18601 int
18602 main ()
18603 {
18604
18605 bool e = &s;
18606 *pq |= q;
18607 *pq |= ! q;
18608 /* Refer to every declared value, to avoid compiler optimizations. */
18609 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18610 + !m + !n + !o + !p + !q + !pq);
18611
18612 ;
18613 return 0;
18614 }
18615 _ACEOF
18616 if ac_fn_c_try_compile "$LINENO"; then :
18617 ac_cv_header_stdbool_h=yes
18618 else
18619 ac_cv_header_stdbool_h=no
18620 fi
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 fi
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18624 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18625 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18626 if test "x$ac_cv_type__Bool" = x""yes; then :
18627
18628 cat >>confdefs.h <<_ACEOF
18629 #define HAVE__BOOL 1
18630 _ACEOF
18631
18632
18633 fi
18634
18635
18636
18637 REPLACE_NULL=0;
18638 HAVE_WCHAR_T=1;
18639
18640
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18642 $as_echo_n "checking for wchar_t... " >&6; }
18643 if test "${gt_cv_c_wchar_t+set}" = set; then :
18644 $as_echo_n "(cached) " >&6
18645 else
18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18647 /* end confdefs.h. */
18648 #include <stddef.h>
18649 wchar_t foo = (wchar_t)'\0';
18650 int
18651 main ()
18652 {
18653
18654 ;
18655 return 0;
18656 }
18657 _ACEOF
18658 if ac_fn_c_try_compile "$LINENO"; then :
18659 gt_cv_c_wchar_t=yes
18660 else
18661 gt_cv_c_wchar_t=no
18662 fi
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 fi
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18666 $as_echo "$gt_cv_c_wchar_t" >&6; }
18667 if test $gt_cv_c_wchar_t = yes; then
18668
18669 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18670
18671 fi
18672
18673
18674 GNULIB_DPRINTF=0;
18675 GNULIB_FCLOSE=0;
18676 GNULIB_FDOPEN=0;
18677 GNULIB_FFLUSH=0;
18678 GNULIB_FGETC=0;
18679 GNULIB_FGETS=0;
18680 GNULIB_FOPEN=0;
18681 GNULIB_FPRINTF=0;
18682 GNULIB_FPRINTF_POSIX=0;
18683 GNULIB_FPURGE=0;
18684 GNULIB_FPUTC=0;
18685 GNULIB_FPUTS=0;
18686 GNULIB_FREAD=0;
18687 GNULIB_FREOPEN=0;
18688 GNULIB_FSCANF=0;
18689 GNULIB_FSEEK=0;
18690 GNULIB_FSEEKO=0;
18691 GNULIB_FTELL=0;
18692 GNULIB_FTELLO=0;
18693 GNULIB_FWRITE=0;
18694 GNULIB_GETC=0;
18695 GNULIB_GETCHAR=0;
18696 GNULIB_GETDELIM=0;
18697 GNULIB_GETLINE=0;
18698 GNULIB_GETS=0;
18699 GNULIB_OBSTACK_PRINTF=0;
18700 GNULIB_OBSTACK_PRINTF_POSIX=0;
18701 GNULIB_PCLOSE=0;
18702 GNULIB_PERROR=0;
18703 GNULIB_POPEN=0;
18704 GNULIB_PRINTF=0;
18705 GNULIB_PRINTF_POSIX=0;
18706 GNULIB_PUTC=0;
18707 GNULIB_PUTCHAR=0;
18708 GNULIB_PUTS=0;
18709 GNULIB_REMOVE=0;
18710 GNULIB_RENAME=0;
18711 GNULIB_RENAMEAT=0;
18712 GNULIB_SCANF=0;
18713 GNULIB_SNPRINTF=0;
18714 GNULIB_SPRINTF_POSIX=0;
18715 GNULIB_STDIO_H_NONBLOCKING=0;
18716 GNULIB_STDIO_H_SIGPIPE=0;
18717 GNULIB_TMPFILE=0;
18718 GNULIB_VASPRINTF=0;
18719 GNULIB_VFSCANF=0;
18720 GNULIB_VSCANF=0;
18721 GNULIB_VDPRINTF=0;
18722 GNULIB_VFPRINTF=0;
18723 GNULIB_VFPRINTF_POSIX=0;
18724 GNULIB_VPRINTF=0;
18725 GNULIB_VPRINTF_POSIX=0;
18726 GNULIB_VSNPRINTF=0;
18727 GNULIB_VSPRINTF_POSIX=0;
18728 HAVE_DECL_FPURGE=1;
18729 HAVE_DECL_FSEEKO=1;
18730 HAVE_DECL_FTELLO=1;
18731 HAVE_DECL_GETDELIM=1;
18732 HAVE_DECL_GETLINE=1;
18733 HAVE_DECL_OBSTACK_PRINTF=1;
18734 HAVE_DECL_SNPRINTF=1;
18735 HAVE_DECL_VSNPRINTF=1;
18736 HAVE_DPRINTF=1;
18737 HAVE_FSEEKO=1;
18738 HAVE_FTELLO=1;
18739 HAVE_PCLOSE=1;
18740 HAVE_POPEN=1;
18741 HAVE_RENAMEAT=1;
18742 HAVE_VASPRINTF=1;
18743 HAVE_VDPRINTF=1;
18744 REPLACE_DPRINTF=0;
18745 REPLACE_FCLOSE=0;
18746 REPLACE_FDOPEN=0;
18747 REPLACE_FFLUSH=0;
18748 REPLACE_FOPEN=0;
18749 REPLACE_FPRINTF=0;
18750 REPLACE_FPURGE=0;
18751 REPLACE_FREOPEN=0;
18752 REPLACE_FSEEK=0;
18753 REPLACE_FSEEKO=0;
18754 REPLACE_FTELL=0;
18755 REPLACE_FTELLO=0;
18756 REPLACE_GETDELIM=0;
18757 REPLACE_GETLINE=0;
18758 REPLACE_OBSTACK_PRINTF=0;
18759 REPLACE_PERROR=0;
18760 REPLACE_POPEN=0;
18761 REPLACE_PRINTF=0;
18762 REPLACE_REMOVE=0;
18763 REPLACE_RENAME=0;
18764 REPLACE_RENAMEAT=0;
18765 REPLACE_SNPRINTF=0;
18766 REPLACE_SPRINTF=0;
18767 REPLACE_STDIO_READ_FUNCS=0;
18768 REPLACE_STDIO_WRITE_FUNCS=0;
18769 REPLACE_TMPFILE=0;
18770 REPLACE_VASPRINTF=0;
18771 REPLACE_VDPRINTF=0;
18772 REPLACE_VFPRINTF=0;
18773 REPLACE_VPRINTF=0;
18774 REPLACE_VSNPRINTF=0;
18775 REPLACE_VSPRINTF=0;
18776
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18778 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18779 if test "${ac_cv_struct_tm+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <sys/types.h>
18785 #include <time.h>
18786
18787 int
18788 main ()
18789 {
18790 struct tm tm;
18791 int *p = &tm.tm_sec;
18792 return !p;
18793 ;
18794 return 0;
18795 }
18796 _ACEOF
18797 if ac_fn_c_try_compile "$LINENO"; then :
18798 ac_cv_struct_tm=time.h
18799 else
18800 ac_cv_struct_tm=sys/time.h
18801 fi
18802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803 fi
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18805 $as_echo "$ac_cv_struct_tm" >&6; }
18806 if test $ac_cv_struct_tm = sys/time.h; then
18807
18808 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18809
18810 fi
18811
18812 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
18813 #include <$ac_cv_struct_tm>
18814
18815 "
18816 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
18817
18818 cat >>confdefs.h <<_ACEOF
18819 #define HAVE_STRUCT_TM_TM_ZONE 1
18820 _ACEOF
18821
18822
18823 fi
18824
18825 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18826
18827 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
18828
18829 else
18830 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
18831 "
18832 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
18833 ac_have_decl=1
18834 else
18835 ac_have_decl=0
18836 fi
18837
18838 cat >>confdefs.h <<_ACEOF
18839 #define HAVE_DECL_TZNAME $ac_have_decl
18840 _ACEOF
18841
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
18843 $as_echo_n "checking for tzname... " >&6; }
18844 if test "${ac_cv_var_tzname+set}" = set; then :
18845 $as_echo_n "(cached) " >&6
18846 else
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18849 #include <time.h>
18850 #if !HAVE_DECL_TZNAME
18851 extern char *tzname[];
18852 #endif
18853
18854 int
18855 main ()
18856 {
18857 return tzname[0][0];
18858 ;
18859 return 0;
18860 }
18861 _ACEOF
18862 if ac_fn_c_try_link "$LINENO"; then :
18863 ac_cv_var_tzname=yes
18864 else
18865 ac_cv_var_tzname=no
18866 fi
18867 rm -f core conftest.err conftest.$ac_objext \
18868 conftest$ac_exeext conftest.$ac_ext
18869 fi
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
18871 $as_echo "$ac_cv_var_tzname" >&6; }
18872 if test $ac_cv_var_tzname = yes; then
18873
18874 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
18875
18876 fi
18877 fi
18878
18879
18880 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18881 "
18882 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
18883
18884 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18885
18886 fi
18887
18888
18889
18890
18891
18892
18893 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18894 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
18895 ac_have_decl=1
18896 else
18897 ac_have_decl=0
18898 fi
18899
18900 cat >>confdefs.h <<_ACEOF
18901 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18902 _ACEOF
18903
18904
18905
18906 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18907 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
18908 ac_have_decl=1
18909 else
18910 ac_have_decl=0
18911 fi
18912
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18915 _ACEOF
18916
18917
18918
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18920 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18921 if test "${ac_cv_header_stat_broken+set}" = set; then :
18922 $as_echo_n "(cached) " >&6
18923 else
18924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h. */
18926 #include <sys/types.h>
18927 #include <sys/stat.h>
18928
18929 #if defined S_ISBLK && defined S_IFDIR
18930 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18931 #endif
18932
18933 #if defined S_ISBLK && defined S_IFCHR
18934 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18935 #endif
18936
18937 #if defined S_ISLNK && defined S_IFREG
18938 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18939 #endif
18940
18941 #if defined S_ISSOCK && defined S_IFREG
18942 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18943 #endif
18944
18945 _ACEOF
18946 if ac_fn_c_try_compile "$LINENO"; then :
18947 ac_cv_header_stat_broken=no
18948 else
18949 ac_cv_header_stat_broken=yes
18950 fi
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 fi
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18954 $as_echo "$ac_cv_header_stat_broken" >&6; }
18955 if test $ac_cv_header_stat_broken = yes; then
18956
18957 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18958
18959 fi
18960
18961
18962
18963 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18964 if test "x$ac_cv_type_mode_t" = x""yes; then :
18965
18966 else
18967
18968 cat >>confdefs.h <<_ACEOF
18969 #define mode_t int
18970 _ACEOF
18971
18972 fi
18973
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18975 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18976 if test "${ac_cv_c_restrict+set}" = set; then :
18977 $as_echo_n "(cached) " >&6
18978 else
18979 ac_cv_c_restrict=no
18980 # The order here caters to the fact that C++ does not require restrict.
18981 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18984 typedef int * int_ptr;
18985 int foo (int_ptr $ac_kw ip) {
18986 return ip[0];
18987 }
18988 int
18989 main ()
18990 {
18991 int s[1];
18992 int * $ac_kw t = s;
18993 t[0] = 0;
18994 return foo(t)
18995 ;
18996 return 0;
18997 }
18998 _ACEOF
18999 if ac_fn_c_try_compile "$LINENO"; then :
19000 ac_cv_c_restrict=$ac_kw
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 test "$ac_cv_c_restrict" != no && break
19004 done
19005
19006 fi
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19008 $as_echo "$ac_cv_c_restrict" >&6; }
19009
19010 case $ac_cv_c_restrict in
19011 restrict) ;;
19012 no) $as_echo "#define restrict /**/" >>confdefs.h
19013 ;;
19014 *) cat >>confdefs.h <<_ACEOF
19015 #define restrict $ac_cv_c_restrict
19016 _ACEOF
19017 ;;
19018 esac
19019
19020
19021
19022
19023
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19025 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19026 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19027 $as_echo_n "(cached) " >&6
19028 else
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19031 #include <time.h>
19032
19033 int
19034 main ()
19035 {
19036 static struct timespec x; x.tv_sec = x.tv_nsec;
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 if ac_fn_c_try_compile "$LINENO"; then :
19042 gl_cv_sys_struct_timespec_in_time_h=yes
19043 else
19044 gl_cv_sys_struct_timespec_in_time_h=no
19045 fi
19046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19047 fi
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19049 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19050
19051 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19052 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19053 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19054 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19055 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19056 else
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19058 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19059 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19060 $as_echo_n "(cached) " >&6
19061 else
19062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19063 /* end confdefs.h. */
19064 #include <sys/time.h>
19065
19066 int
19067 main ()
19068 {
19069 static struct timespec x; x.tv_sec = x.tv_nsec;
19070 ;
19071 return 0;
19072 }
19073 _ACEOF
19074 if ac_fn_c_try_compile "$LINENO"; then :
19075 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19076 else
19077 gl_cv_sys_struct_timespec_in_sys_time_h=no
19078 fi
19079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19080 fi
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19082 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19083 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19084 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19085 else
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19087 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19088 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19093 #include <pthread.h>
19094
19095 int
19096 main ()
19097 {
19098 static struct timespec x; x.tv_sec = x.tv_nsec;
19099 ;
19100 return 0;
19101 }
19102 _ACEOF
19103 if ac_fn_c_try_compile "$LINENO"; then :
19104 gl_cv_sys_struct_timespec_in_pthread_h=yes
19105 else
19106 gl_cv_sys_struct_timespec_in_pthread_h=no
19107 fi
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 fi
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19111 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19112 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19113 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19114 fi
19115 fi
19116 fi
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132 if test $gl_cv_have_include_next = yes; then
19133 gl_cv_next_time_h='<'time.h'>'
19134 else
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19136 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19137 if test "${gl_cv_next_time_h+set}" = set; then :
19138 $as_echo_n "(cached) " >&6
19139 else
19140
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19143 #include <time.h>
19144
19145 _ACEOF
19146 case "$host_os" in
19147 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19148 *) gl_absname_cpp="$ac_cpp" ;;
19149 esac
19150
19151 case "$host_os" in
19152 mingw*)
19153 gl_dirsep_regex='[/\\]'
19154 ;;
19155 *)
19156 gl_dirsep_regex='/'
19157 ;;
19158 esac
19159
19160 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
19161 s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
19162 s|^/[^/]|//&|
19163 p
19164 q
19165 }'
19166 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19167 sed -n "$gl_absolute_header_sed"`'"'
19168
19169
19170 fi
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19172 $as_echo "$gl_cv_next_time_h" >&6; }
19173 fi
19174 NEXT_TIME_H=$gl_cv_next_time_h
19175
19176 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19178 gl_next_as_first_directive='<'time.h'>'
19179 else
19180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19181 gl_next_as_first_directive=$gl_cv_next_time_h
19182 fi
19183 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19184
19185
19186
19187
19188
19189
19190 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19191 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
19192 ac_have_decl=1
19193 else
19194 ac_have_decl=0
19195 fi
19196
19197 cat >>confdefs.h <<_ACEOF
19198 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19199 _ACEOF
19200
19201
19202
19203
19204 if false; then
19205 GL_COND_LIBTOOL_TRUE=
19206 GL_COND_LIBTOOL_FALSE='#'
19207 else
19208 GL_COND_LIBTOOL_TRUE='#'
19209 GL_COND_LIBTOOL_FALSE=
19210 fi
19211
19212 gl_cond_libtool=false
19213 gl_libdeps=
19214 gl_ltlibdeps=
19215 gl_m4_base='m4'
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225 gl_source_base='lib'
19226
19227
19228 if test $ac_cv_func_alloca_works = no; then
19229 :
19230 fi
19231
19232 # Define an additional variable used in the Makefile substitution.
19233 if test $ac_cv_working_alloca_h = yes; then
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19235 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19236 if test "${gl_cv_rpl_alloca+set}" = set; then :
19237 $as_echo_n "(cached) " >&6
19238 else
19239
19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241 /* end confdefs.h. */
19242
19243 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19244 Need own alloca
19245 #endif
19246
19247 _ACEOF
19248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19249 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19250 gl_cv_rpl_alloca=yes
19251 else
19252 gl_cv_rpl_alloca=no
19253 fi
19254 rm -f conftest*
19255
19256
19257 fi
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19259 $as_echo "$gl_cv_rpl_alloca" >&6; }
19260 if test $gl_cv_rpl_alloca = yes; then
19261
19262 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19263
19264 ALLOCA_H=alloca.h
19265 else
19266 ALLOCA_H=
19267 fi
19268 else
19269 ALLOCA_H=alloca.h
19270 fi
19271
19272 if test -n "$ALLOCA_H"; then
19273 GL_GENERATE_ALLOCA_H_TRUE=
19274 GL_GENERATE_ALLOCA_H_FALSE='#'
19275 else
19276 GL_GENERATE_ALLOCA_H_TRUE='#'
19277 GL_GENERATE_ALLOCA_H_FALSE=
19278 fi
19279
19280
19281
19282
19283
19284
19285 :
19286
19287
19288
19289
19290 :
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19307
19308
19309 if test $HAVE_DUP2 = 1; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19311 $as_echo_n "checking whether dup2 works... " >&6; }
19312 if test "${gl_cv_func_dup2_works+set}" = set; then :
19313 $as_echo_n "(cached) " >&6
19314 else
19315 if test "$cross_compiling" = yes; then :
19316 case "$host_os" in
19317 mingw*) # on this platform, dup2 always returns 0 for success
19318 gl_cv_func_dup2_works=no;;
19319 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19320 gl_cv_func_dup2_works=no;;
19321 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19322 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19323 gl_cv_func_dup2_works=no;;
19324 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19325 gl_cv_func_dup2_works=no;;
19326 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19327 gl_cv_func_dup2_works=no;;
19328 *) gl_cv_func_dup2_works=yes;;
19329 esac
19330 else
19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h. */
19333
19334 #include <unistd.h>
19335 #include <fcntl.h>
19336 #include <errno.h>
19337 int
19338 main ()
19339 {
19340 int result = 0;
19341 #ifdef FD_CLOEXEC
19342 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19343 result |= 1;
19344 #endif
19345 if (dup2 (1, 1) == 0)
19346 result |= 2;
19347 #ifdef FD_CLOEXEC
19348 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19349 result |= 4;
19350 #endif
19351 close (0);
19352 if (dup2 (0, 0) != -1)
19353 result |= 8;
19354 /* Many gnulib modules require POSIX conformance of EBADF. */
19355 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19356 result |= 16;
19357 return result;
19358
19359 ;
19360 return 0;
19361 }
19362
19363 _ACEOF
19364 if ac_fn_c_try_run "$LINENO"; then :
19365 gl_cv_func_dup2_works=yes
19366 else
19367 gl_cv_func_dup2_works=no
19368 fi
19369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19370 conftest.$ac_objext conftest.beam conftest.$ac_ext
19371 fi
19372
19373
19374 fi
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19376 $as_echo "$gl_cv_func_dup2_works" >&6; }
19377 if test "$gl_cv_func_dup2_works" = no; then
19378 REPLACE_DUP2=1
19379 fi
19380 fi
19381
19382
19383 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19384
19385
19386
19387
19388
19389
19390
19391
19392 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19393
19394
19395 fi
19396
19397
19398
19399
19400
19401 GNULIB_DUP2=1
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413 # Persuade glibc <stdlib.h> to declare getloadavg().
19414
19415
19416 gl_save_LIBS=$LIBS
19417
19418 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19419 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19420 HAVE_GETLOADAVG=1
19421 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19422 if test "x$ac_cv_func_getloadavg" = x""yes; then :
19423
19424 else
19425 gl_func_getloadavg_done=no
19426
19427 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19428 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19429 # to get the right answer into the cache.
19430 # For kstat on solaris, we need to test for libelf and libkvm to force the
19431 # definition of SVR4 below.
19432 if test $gl_func_getloadavg_done = no; then
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19434 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19435 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
19436 $as_echo_n "(cached) " >&6
19437 else
19438 ac_check_lib_save_LIBS=$LIBS
19439 LIBS="-lelf $LIBS"
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442
19443 /* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19446 #ifdef __cplusplus
19447 extern "C"
19448 #endif
19449 char elf_begin ();
19450 int
19451 main ()
19452 {
19453 return elf_begin ();
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_link "$LINENO"; then :
19459 ac_cv_lib_elf_elf_begin=yes
19460 else
19461 ac_cv_lib_elf_elf_begin=no
19462 fi
19463 rm -f core conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465 LIBS=$ac_check_lib_save_LIBS
19466 fi
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19468 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19469 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
19470 LIBS="-lelf $LIBS"
19471 fi
19472
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19474 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19475 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
19476 $as_echo_n "(cached) " >&6
19477 else
19478 ac_check_lib_save_LIBS=$LIBS
19479 LIBS="-lkvm $LIBS"
19480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19482
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 char kvm_open ();
19490 int
19491 main ()
19492 {
19493 return kvm_open ();
19494 ;
19495 return 0;
19496 }
19497 _ACEOF
19498 if ac_fn_c_try_link "$LINENO"; then :
19499 ac_cv_lib_kvm_kvm_open=yes
19500 else
19501 ac_cv_lib_kvm_kvm_open=no
19502 fi
19503 rm -f core conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19505 LIBS=$ac_check_lib_save_LIBS
19506 fi
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19508 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19509 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
19510 LIBS="-lkvm $LIBS"
19511 fi
19512
19513 # Check for the 4.4BSD definition of getloadavg.
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19515 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19516 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
19517 $as_echo_n "(cached) " >&6
19518 else
19519 ac_check_lib_save_LIBS=$LIBS
19520 LIBS="-lutil $LIBS"
19521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 char getloadavg ();
19531 int
19532 main ()
19533 {
19534 return getloadavg ();
19535 ;
19536 return 0;
19537 }
19538 _ACEOF
19539 if ac_fn_c_try_link "$LINENO"; then :
19540 ac_cv_lib_util_getloadavg=yes
19541 else
19542 ac_cv_lib_util_getloadavg=no
19543 fi
19544 rm -f core conftest.err conftest.$ac_objext \
19545 conftest$ac_exeext conftest.$ac_ext
19546 LIBS=$ac_check_lib_save_LIBS
19547 fi
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19549 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19550 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
19551 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19552 fi
19553
19554 fi
19555
19556 if test $gl_func_getloadavg_done = no; then
19557 # There is a commonly available library for RS/6000 AIX.
19558 # Since it is not a standard part of AIX, it might be installed locally.
19559 gl_getloadavg_LIBS=$LIBS
19560 LIBS="-L/usr/local/lib $LIBS"
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19562 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19563 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
19564 $as_echo_n "(cached) " >&6
19565 else
19566 ac_check_lib_save_LIBS=$LIBS
19567 LIBS="-lgetloadavg $LIBS"
19568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h. */
19570
19571 /* Override any GCC internal prototype to avoid an error.
19572 Use char because int might match the return type of a GCC
19573 builtin and then its argument prototype would still apply. */
19574 #ifdef __cplusplus
19575 extern "C"
19576 #endif
19577 char getloadavg ();
19578 int
19579 main ()
19580 {
19581 return getloadavg ();
19582 ;
19583 return 0;
19584 }
19585 _ACEOF
19586 if ac_fn_c_try_link "$LINENO"; then :
19587 ac_cv_lib_getloadavg_getloadavg=yes
19588 else
19589 ac_cv_lib_getloadavg_getloadavg=no
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext \
19592 conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19594 fi
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19596 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19597 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
19598 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19599 else
19600 LIBS=$gl_getloadavg_LIBS
19601 fi
19602
19603 fi
19604
19605 # Set up the replacement function if necessary.
19606 if test $gl_func_getloadavg_done = no; then
19607 HAVE_GETLOADAVG=0
19608
19609 # Solaris has libkstat which does not require root.
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19611 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19612 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 ac_check_lib_save_LIBS=$LIBS
19616 LIBS="-lkstat $LIBS"
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char kstat_open ();
19627 int
19628 main ()
19629 {
19630 return kstat_open ();
19631 ;
19632 return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_lib_kstat_kstat_open=yes
19637 else
19638 ac_cv_lib_kstat_kstat_open=no
19639 fi
19640 rm -f core conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19643 fi
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19645 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19646 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_LIBKSTAT 1
19649 _ACEOF
19650
19651 LIBS="-lkstat $LIBS"
19652
19653 fi
19654
19655 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19656
19657 # AIX has libperfstat which does not require root
19658 if test $gl_func_getloadavg_done = no; then
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19660 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19661 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
19662 $as_echo_n "(cached) " >&6
19663 else
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lperfstat $LIBS"
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19672 #ifdef __cplusplus
19673 extern "C"
19674 #endif
19675 char perfstat_cpu_total ();
19676 int
19677 main ()
19678 {
19679 return perfstat_cpu_total ();
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 if ac_fn_c_try_link "$LINENO"; then :
19685 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19686 else
19687 ac_cv_lib_perfstat_perfstat_cpu_total=no
19688 fi
19689 rm -f core conftest.err conftest.$ac_objext \
19690 conftest$ac_exeext conftest.$ac_ext
19691 LIBS=$ac_check_lib_save_LIBS
19692 fi
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19694 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19695 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_LIBPERFSTAT 1
19698 _ACEOF
19699
19700 LIBS="-lperfstat $LIBS"
19701
19702 fi
19703
19704 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19705 fi
19706
19707 if test $gl_func_getloadavg_done = no; then
19708 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19709 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
19710 gl_func_getloadavg_done=yes
19711
19712 $as_echo "#define DGUX 1" >>confdefs.h
19713
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19715 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19716 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19717 $as_echo_n "(cached) " >&6
19718 else
19719 ac_check_lib_save_LIBS=$LIBS
19720 LIBS="-ldgc $LIBS"
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723
19724 /* Override any GCC internal prototype to avoid an error.
19725 Use char because int might match the return type of a GCC
19726 builtin and then its argument prototype would still apply. */
19727 #ifdef __cplusplus
19728 extern "C"
19729 #endif
19730 char dg_sys_info ();
19731 int
19732 main ()
19733 {
19734 return dg_sys_info ();
19735 ;
19736 return 0;
19737 }
19738 _ACEOF
19739 if ac_fn_c_try_link "$LINENO"; then :
19740 ac_cv_lib_dgc_dg_sys_info=yes
19741 else
19742 ac_cv_lib_dgc_dg_sys_info=no
19743 fi
19744 rm -f core conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19747 fi
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19749 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19750 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19751 cat >>confdefs.h <<_ACEOF
19752 #define HAVE_LIBDGC 1
19753 _ACEOF
19754
19755 LIBS="-ldgc $LIBS"
19756
19757 fi
19758
19759 fi
19760
19761
19762 fi
19763 fi
19764 fi
19765
19766
19767 if test "x$gl_save_LIBS" = x; then
19768 GETLOADAVG_LIBS=$LIBS
19769 else
19770 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19771 fi
19772 LIBS=$gl_save_LIBS
19773
19774
19775 # Test whether the system declares getloadavg. Solaris has the function
19776 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19777 for ac_header in sys/loadavg.h
19778 do :
19779 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19780 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
19781 cat >>confdefs.h <<_ACEOF
19782 #define HAVE_SYS_LOADAVG_H 1
19783 _ACEOF
19784
19785 fi
19786
19787 done
19788
19789 if test $ac_cv_header_sys_loadavg_h = yes; then
19790 HAVE_SYS_LOADAVG_H=1
19791 else
19792 HAVE_SYS_LOADAVG_H=0
19793 fi
19794 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19795 # include <sys/loadavg.h>
19796 #endif
19797 #include <stdlib.h>
19798 "
19799 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
19800
19801 else
19802 HAVE_DECL_GETLOADAVG=0
19803 fi
19804
19805
19806 if test $HAVE_GETLOADAVG = 0; then
19807
19808
19809
19810
19811
19812
19813
19814
19815 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19816
19817
19818 # Figure out what our getloadavg.c needs.
19819
19820 # On HPUX9, an unprivileged user can get load averages this way.
19821 if test $gl_func_getloadavg_done = no; then
19822 for ac_func in pstat_getdynamic
19823 do :
19824 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19825 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
19826 cat >>confdefs.h <<_ACEOF
19827 #define HAVE_PSTAT_GETDYNAMIC 1
19828 _ACEOF
19829 gl_func_getloadavg_done=yes
19830 fi
19831 done
19832
19833 fi
19834
19835 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19836 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19837 # Irix 4.0.5F has the header but not the library.
19838 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19839 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19840 gl_func_getloadavg_done=yes
19841
19842 $as_echo "#define SVR4 1" >>confdefs.h
19843
19844 fi
19845
19846 if test $gl_func_getloadavg_done = no; then
19847 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19848 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19849 gl_func_getloadavg_done=yes
19850
19851 $as_echo "#define UMAX 1" >>confdefs.h
19852
19853
19854 $as_echo "#define UMAX4_3 1" >>confdefs.h
19855
19856 fi
19857
19858
19859 fi
19860
19861 if test $gl_func_getloadavg_done = no; then
19862 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19863 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19864 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19865
19866 fi
19867
19868
19869 fi
19870
19871 if test $gl_func_getloadavg_done = no; then
19872 for ac_header in mach/mach.h
19873 do :
19874 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19875 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19876 cat >>confdefs.h <<_ACEOF
19877 #define HAVE_MACH_MACH_H 1
19878 _ACEOF
19879
19880 fi
19881
19882 done
19883
19884 fi
19885
19886 for ac_header in nlist.h
19887 do :
19888 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19889 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19890 cat >>confdefs.h <<_ACEOF
19891 #define HAVE_NLIST_H 1
19892 _ACEOF
19893 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19894 "
19895 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19896
19897 cat >>confdefs.h <<_ACEOF
19898 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19899 _ACEOF
19900
19901
19902 fi
19903
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19906 #include <nlist.h>
19907 int
19908 main ()
19909 {
19910 struct nlist x;
19911 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19912 x.n_un.n_name = "";
19913 #else
19914 x.n_name = "";
19915 #endif
19916 ;
19917 return 0;
19918 }
19919 _ACEOF
19920 if ac_fn_c_try_link "$LINENO"; then :
19921
19922 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19923
19924 fi
19925 rm -f core conftest.err conftest.$ac_objext \
19926 conftest$ac_exeext conftest.$ac_ext
19927
19928 fi
19929
19930 done
19931
19932 fi
19933
19934
19935
19936
19937
19938 GNULIB_GETLOADAVG=1
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949 if test $REPLACE_GETOPT = 1; then
19950
19951
19952
19953
19954
19955
19956
19957
19958 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19969
19970
19971
19972
19973 fi
19974
19975
19976
19977
19978
19979 REPLACE_GETOPT=0
19980
19981
19982 if test -n "$gl_replace_getopt"; then :
19983
19984 REPLACE_GETOPT=1
19985
19986 fi
19987
19988
19989 if test $REPLACE_GETOPT = 1; then
19990
19991 GETOPT_H=getopt.h
19992
19993 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19994
19995
19996
19997 GNULIB_UNISTD_H_GETOPT=1
19998 fi
19999
20000 if test $REPLACE_GETOPT = 1; then
20001
20002
20003
20004
20005
20006
20007
20008
20009 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
20020
20021
20022
20023
20024 fi
20025
20026
20027
20028
20029
20030 if test $ac_cv_func_lstat = yes; then
20031
20032 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
20033 REPLACE_LSTAT=1
20034 fi
20035 else
20036 HAVE_LSTAT=0
20037 fi
20038
20039 if test $REPLACE_LSTAT = 1; then
20040
20041
20042
20043
20044
20045
20046
20047
20048 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
20049
20050
20051
20052 :
20053
20054 fi
20055
20056
20057
20058
20059
20060 GNULIB_LSTAT=1
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072 if test $APPLE_UNIVERSAL_BUILD = 1; then
20073 # A universal build on Apple MacOS X platforms.
20074 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
20075 # But we need a configuration result that is valid in both modes.
20076 gl_cv_func_working_mktime=no
20077 fi
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
20079 $as_echo_n "checking for working mktime... " >&6; }
20080 if test "${gl_cv_func_working_mktime+set}" = set; then :
20081 $as_echo_n "(cached) " >&6
20082 else
20083 if test "$cross_compiling" = yes; then :
20084 gl_cv_func_working_mktime=no
20085 else
20086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20087 /* end confdefs.h. */
20088 /* Test program from Paul Eggert and Tony Leneis. */
20089 #include <limits.h>
20090 #include <stdlib.h>
20091 #include <time.h>
20092
20093 #ifdef HAVE_UNISTD_H
20094 # include <unistd.h>
20095 #endif
20096
20097 #ifndef HAVE_ALARM
20098 # define alarm(X) /* empty */
20099 #endif
20100
20101 /* Work around redefinition to rpl_putenv by other config tests. */
20102 #undef putenv
20103
20104 static time_t time_t_max;
20105 static time_t time_t_min;
20106
20107 /* Values we'll use to set the TZ environment variable. */
20108 static char *tz_strings[] = {
20109 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20110 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20111 };
20112 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20113
20114 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20115 Based on a problem report from Andreas Jaeger. */
20116 static int
20117 spring_forward_gap ()
20118 {
20119 /* glibc (up to about 1998-10-07) failed this test. */
20120 struct tm tm;
20121
20122 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20123 instead of "TZ=America/Vancouver" in order to detect the bug even
20124 on systems that don't support the Olson extension, or don't have the
20125 full zoneinfo tables installed. */
20126 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20127
20128 tm.tm_year = 98;
20129 tm.tm_mon = 3;
20130 tm.tm_mday = 5;
20131 tm.tm_hour = 2;
20132 tm.tm_min = 0;
20133 tm.tm_sec = 0;
20134 tm.tm_isdst = -1;
20135 return mktime (&tm) != (time_t) -1;
20136 }
20137
20138 static int
20139 mktime_test1 (time_t now)
20140 {
20141 struct tm *lt;
20142 return ! (lt = localtime (&now)) || mktime (lt) == now;
20143 }
20144
20145 static int
20146 mktime_test (time_t now)
20147 {
20148 return (mktime_test1 (now)
20149 && mktime_test1 ((time_t) (time_t_max - now))
20150 && mktime_test1 ((time_t) (time_t_min + now)));
20151 }
20152
20153 static int
20154 irix_6_4_bug ()
20155 {
20156 /* Based on code from Ariel Faigon. */
20157 struct tm tm;
20158 tm.tm_year = 96;
20159 tm.tm_mon = 3;
20160 tm.tm_mday = 0;
20161 tm.tm_hour = 0;
20162 tm.tm_min = 0;
20163 tm.tm_sec = 0;
20164 tm.tm_isdst = -1;
20165 mktime (&tm);
20166 return tm.tm_mon == 2 && tm.tm_mday == 31;
20167 }
20168
20169 static int
20170 bigtime_test (int j)
20171 {
20172 struct tm tm;
20173 time_t now;
20174 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20175 now = mktime (&tm);
20176 if (now != (time_t) -1)
20177 {
20178 struct tm *lt = localtime (&now);
20179 if (! (lt
20180 && lt->tm_year == tm.tm_year
20181 && lt->tm_mon == tm.tm_mon
20182 && lt->tm_mday == tm.tm_mday
20183 && lt->tm_hour == tm.tm_hour
20184 && lt->tm_min == tm.tm_min
20185 && lt->tm_sec == tm.tm_sec
20186 && lt->tm_yday == tm.tm_yday
20187 && lt->tm_wday == tm.tm_wday
20188 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20189 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20190 return 0;
20191 }
20192 return 1;
20193 }
20194
20195 static int
20196 year_2050_test ()
20197 {
20198 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20199 ignoring leap seconds. */
20200 unsigned long int answer = 2527315200UL;
20201
20202 struct tm tm;
20203 time_t t;
20204 tm.tm_year = 2050 - 1900;
20205 tm.tm_mon = 2 - 1;
20206 tm.tm_mday = 1;
20207 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20208 tm.tm_isdst = -1;
20209
20210 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20211 instead of "TZ=America/Vancouver" in order to detect the bug even
20212 on systems that don't support the Olson extension, or don't have the
20213 full zoneinfo tables installed. */
20214 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20215
20216 t = mktime (&tm);
20217
20218 /* Check that the result is either a failure, or close enough
20219 to the correct answer that we can assume the discrepancy is
20220 due to leap seconds. */
20221 return (t == (time_t) -1
20222 || (0 < t && answer - 120 <= t && t <= answer + 120));
20223 }
20224
20225 int
20226 main ()
20227 {
20228 int result = 0;
20229 time_t t, delta;
20230 int i, j;
20231 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20232 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20233
20234 /* This test makes some buggy mktime implementations loop.
20235 Give up after 60 seconds; a mktime slower than that
20236 isn't worth using anyway. */
20237 alarm (60);
20238
20239 time_t_max = (! time_t_signed
20240 ? (time_t) -1
20241 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20242 * 2 + 1));
20243 time_t_min = (! time_t_signed
20244 ? (time_t) 0
20245 : time_t_signed_magnitude
20246 ? ~ (time_t) 0
20247 : ~ time_t_max);
20248
20249 delta = time_t_max / 997; /* a suitable prime number */
20250 for (i = 0; i < N_STRINGS; i++)
20251 {
20252 if (tz_strings[i])
20253 putenv (tz_strings[i]);
20254
20255 for (t = 0; t <= time_t_max - delta; t += delta)
20256 if (! mktime_test (t))
20257 result |= 1;
20258 if (! (mktime_test ((time_t) 1)
20259 && mktime_test ((time_t) (60 * 60))
20260 && mktime_test ((time_t) (60 * 60 * 24))))
20261 result |= 2;
20262
20263 for (j = 1; ; j <<= 1)
20264 if (! bigtime_test (j))
20265 result |= 4;
20266 else if (INT_MAX / 2 < j)
20267 break;
20268 if (! bigtime_test (INT_MAX))
20269 result |= 8;
20270 }
20271 if (! irix_6_4_bug ())
20272 result |= 16;
20273 if (! spring_forward_gap ())
20274 result |= 32;
20275 if (! year_2050_test ())
20276 result |= 64;
20277 return result;
20278 }
20279 _ACEOF
20280 if ac_fn_c_try_run "$LINENO"; then :
20281 gl_cv_func_working_mktime=yes
20282 else
20283 gl_cv_func_working_mktime=no
20284 fi
20285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20286 conftest.$ac_objext conftest.beam conftest.$ac_ext
20287 fi
20288
20289
20290 fi
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20292 $as_echo "$gl_cv_func_working_mktime" >&6; }
20293
20294 if test $gl_cv_func_working_mktime = no; then
20295 REPLACE_MKTIME=1
20296 else
20297 REPLACE_MKTIME=0
20298 fi
20299
20300 if test $REPLACE_MKTIME = 1; then
20301
20302
20303
20304
20305
20306
20307
20308
20309 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20310
20311
20312
20313
20314 fi
20315
20316
20317
20318
20319
20320 GNULIB_MKTIME=1
20321
20322
20323
20324
20325
20326
20327
20328
20329 LIB_PTHREAD_SIGMASK=
20330
20331
20332 if test $ac_cv_func_pthread_sigmask = yes; then
20333 :
20334 else
20335 HAVE_PTHREAD_SIGMASK=0
20336 REPLACE_PTHREAD_SIGMASK=1
20337 fi
20338
20339
20340
20341
20342 if test $HAVE_PTHREAD_SIGMASK = 1; then
20343
20344
20345 if test -z "$LIB_PTHREAD_SIGMASK"; then
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20347 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20348 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
20349 $as_echo_n "(cached) " >&6
20350 else
20351
20352 if test "$cross_compiling" = yes; then :
20353
20354 case "$host_os" in
20355 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20356 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20357 *)
20358 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20359 esac
20360
20361 else
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20364
20365 #include <pthread.h>
20366 #include <signal.h>
20367 #include <stddef.h>
20368 int main ()
20369 {
20370 sigset_t set;
20371 sigemptyset (&set);
20372 return pthread_sigmask (1729, &set, NULL) != 0;
20373 }
20374 _ACEOF
20375 if ac_fn_c_try_run "$LINENO"; then :
20376 gl_cv_func_pthread_sigmask_in_libc_works=no
20377 else
20378 gl_cv_func_pthread_sigmask_in_libc_works=yes
20379 fi
20380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20381 conftest.$ac_objext conftest.beam conftest.$ac_ext
20382 fi
20383
20384
20385 fi
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20387 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20388 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20389 *no)
20390 REPLACE_PTHREAD_SIGMASK=1
20391
20392 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20393
20394 ;;
20395 esac
20396 fi
20397
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20399 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20400 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20402 else
20403
20404 gl_save_LIBS="$LIBS"
20405 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20406 if test "$cross_compiling" = yes; then :
20407 case "$host_os" in
20408 cygwin*)
20409 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20410 *)
20411 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20412 esac
20413
20414 else
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20417
20418 #include <pthread.h>
20419 #include <signal.h>
20420 #include <stddef.h>
20421 int main ()
20422 {
20423 sigset_t set;
20424 sigemptyset (&set);
20425 if (pthread_sigmask (1729, &set, NULL) == -1)
20426 return 1;
20427 return 0;
20428 }
20429 _ACEOF
20430 if ac_fn_c_try_run "$LINENO"; then :
20431 gl_cv_func_pthread_sigmask_return_works=yes
20432 else
20433 gl_cv_func_pthread_sigmask_return_works=no
20434 fi
20435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20436 conftest.$ac_objext conftest.beam conftest.$ac_ext
20437 fi
20438
20439 LIBS="$gl_save_LIBS"
20440
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20443 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20444 case "$gl_cv_func_pthread_sigmask_return_works" in
20445 *no)
20446 REPLACE_PTHREAD_SIGMASK=1
20447
20448 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20449
20450 ;;
20451 esac
20452
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20454 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20455 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
20456 $as_echo_n "(cached) " >&6
20457 else
20458
20459 case "$host_os" in
20460 irix*)
20461 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20462 *)
20463 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20464 esac
20465 gl_save_LIBS="$LIBS"
20466 LIBS="$LIBS $LIBMULTITHREAD"
20467 if test "$cross_compiling" = yes; then :
20468 :
20469 else
20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20472
20473 #include <pthread.h>
20474 #include <signal.h>
20475 #include <stdio.h>
20476 #include <stdlib.h>
20477 #include <unistd.h>
20478 static volatile int sigint_occurred;
20479 static void
20480 sigint_handler (int sig)
20481 {
20482 sigint_occurred++;
20483 }
20484 int main ()
20485 {
20486 sigset_t set;
20487 int pid = getpid ();
20488 char command[80];
20489 signal (SIGINT, sigint_handler);
20490 sigemptyset (&set);
20491 sigaddset (&set, SIGINT);
20492 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20493 return 1;
20494 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20495 if (!(system (command) == 0))
20496 return 2;
20497 sleep (2);
20498 if (!(sigint_occurred == 0))
20499 return 3;
20500 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20501 return 4;
20502 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20503 return 5;
20504 return 0;
20505 }
20506 _ACEOF
20507 if ac_fn_c_try_run "$LINENO"; then :
20508 :
20509 else
20510 gl_cv_func_pthread_sigmask_unblock_works=no
20511 fi
20512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20513 conftest.$ac_objext conftest.beam conftest.$ac_ext
20514 fi
20515
20516 LIBS="$gl_save_LIBS"
20517
20518 fi
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20520 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20521 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20522 *no)
20523 REPLACE_PTHREAD_SIGMASK=1
20524
20525 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20526
20527 ;;
20528 esac
20529 fi
20530
20531 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20532
20533
20534
20535
20536
20537
20538
20539
20540 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20541
20542
20543 if test $HAVE_PTHREAD_SIGMASK = 1; then
20544
20545 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20546
20547 fi
20548
20549 fi
20550
20551
20552
20553
20554
20555 GNULIB_PTHREAD_SIGMASK=1
20556
20557
20558
20559
20560
20561
20562
20563
20564 if test $ac_cv_func_readlink = no; then
20565 HAVE_READLINK=0
20566 else
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20568 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20569 if test "${gl_cv_decl_readlink_works+set}" = set; then :
20570 $as_echo_n "(cached) " >&6
20571 else
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574 #include <unistd.h>
20575 /* Cause compilation failure if original declaration has wrong type. */
20576 ssize_t readlink (const char *, char *, size_t);
20577 int
20578 main ()
20579 {
20580
20581 ;
20582 return 0;
20583 }
20584 _ACEOF
20585 if ac_fn_c_try_compile "$LINENO"; then :
20586 gl_cv_decl_readlink_works=yes
20587 else
20588 gl_cv_decl_readlink_works=no
20589 fi
20590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 fi
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20593 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20595 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20596 if test "${gl_cv_func_readlink_works+set}" = set; then :
20597 $as_echo_n "(cached) " >&6
20598 else
20599 # We have readlink, so assume ln -s works.
20600 ln -s conftest.no-such conftest.link
20601 ln -s conftest.link conftest.lnk2
20602 if test "$cross_compiling" = yes; then :
20603 gl_cv_func_readlink_works="guessing no"
20604 else
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 #include <unistd.h>
20608
20609 int
20610 main ()
20611 {
20612 char buf[20];
20613 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20614 ;
20615 return 0;
20616 }
20617 _ACEOF
20618 if ac_fn_c_try_run "$LINENO"; then :
20619 gl_cv_func_readlink_works=yes
20620 else
20621 gl_cv_func_readlink_works=no
20622 fi
20623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20624 conftest.$ac_objext conftest.beam conftest.$ac_ext
20625 fi
20626
20627 rm -f conftest.link conftest.lnk2
20628 fi
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20630 $as_echo "$gl_cv_func_readlink_works" >&6; }
20631 if test "$gl_cv_func_readlink_works" != yes; then
20632
20633 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20634
20635 REPLACE_READLINK=1
20636 elif test "$gl_cv_decl_readlink_works" != yes; then
20637 REPLACE_READLINK=1
20638 fi
20639 fi
20640
20641 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20642
20643
20644
20645
20646
20647
20648
20649
20650 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20651
20652
20653 :
20654
20655 fi
20656
20657
20658
20659
20660
20661 GNULIB_READLINK=1
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678 if test $gl_cv_have_include_next = yes; then
20679 gl_cv_next_signal_h='<'signal.h'>'
20680 else
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20682 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20683 if test "${gl_cv_next_signal_h+set}" = set; then :
20684 $as_echo_n "(cached) " >&6
20685 else
20686
20687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h. */
20689 #include <signal.h>
20690
20691 _ACEOF
20692 case "$host_os" in
20693 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20694 *) gl_absname_cpp="$ac_cpp" ;;
20695 esac
20696
20697 case "$host_os" in
20698 mingw*)
20699 gl_dirsep_regex='[/\\]'
20700 ;;
20701 *)
20702 gl_dirsep_regex='/'
20703 ;;
20704 esac
20705
20706 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
20707 s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
20708 s|^/[^/]|//&|
20709 p
20710 q
20711 }'
20712 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20713 sed -n "$gl_absolute_header_sed"`'"'
20714
20715
20716 fi
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20718 $as_echo "$gl_cv_next_signal_h" >&6; }
20719 fi
20720 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20721
20722 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20724 gl_next_as_first_directive='<'signal.h'>'
20725 else
20726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20727 gl_next_as_first_directive=$gl_cv_next_signal_h
20728 fi
20729 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20730
20731
20732
20733
20734
20735 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20736 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20737 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20738 #include <signal.h>
20739
20740 "
20741 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
20742
20743 else
20744 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20745 fi
20746
20747
20748
20749
20750
20751
20752
20753 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20754 #include <signal.h>
20755
20756 "
20757 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
20758
20759 else
20760 HAVE_SIGHANDLER_T=0
20761 fi
20762
20763
20764
20765
20766 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20767 /* <sys/types.h> is not needed according to POSIX, but the
20768 <sys/socket.h> in i386-unknown-freebsd4.10 and
20769 powerpc-apple-darwin5.5 required it. */
20770 #include <sys/types.h>
20771 #if HAVE_SYS_SOCKET_H
20772 # include <sys/socket.h>
20773 #elif HAVE_WS2TCPIP_H
20774 # include <ws2tcpip.h>
20775 #endif
20776
20777 "
20778 if test "x$ac_cv_type_socklen_t" = x""yes; then :
20779
20780 else
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20782 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20783 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
20784 $as_echo_n "(cached) " >&6
20785 else
20786 # Systems have either "struct sockaddr *" or
20787 # "void *" as the second argument to getpeername
20788 gl_cv_socklen_t_equiv=
20789 for arg2 in "struct sockaddr" void; do
20790 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20793 #include <sys/types.h>
20794 #include <sys/socket.h>
20795
20796 int getpeername (int, $arg2 *, $t *);
20797 int
20798 main ()
20799 {
20800 $t len;
20801 getpeername (0, 0, &len);
20802 ;
20803 return 0;
20804 }
20805 _ACEOF
20806 if ac_fn_c_try_compile "$LINENO"; then :
20807 gl_cv_socklen_t_equiv="$t"
20808 fi
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 test "$gl_cv_socklen_t_equiv" != "" && break
20811 done
20812 test "$gl_cv_socklen_t_equiv" != "" && break
20813 done
20814
20815 fi
20816
20817 if test "$gl_cv_socklen_t_equiv" = ""; then
20818 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20819 fi
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20821 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20822
20823 cat >>confdefs.h <<_ACEOF
20824 #define socklen_t $gl_cv_socklen_t_equiv
20825 _ACEOF
20826
20827 fi
20828
20829
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20831 $as_echo_n "checking for ssize_t... " >&6; }
20832 if test "${gt_cv_ssize_t+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h. */
20837 #include <sys/types.h>
20838 int
20839 main ()
20840 {
20841 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20842 return !x;
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 if ac_fn_c_try_compile "$LINENO"; then :
20848 gt_cv_ssize_t=yes
20849 else
20850 gt_cv_ssize_t=no
20851 fi
20852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 fi
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20855 $as_echo "$gt_cv_ssize_t" >&6; }
20856 if test $gt_cv_ssize_t = no; then
20857
20858 $as_echo "#define ssize_t int" >>confdefs.h
20859
20860 fi
20861
20862
20863 STDARG_H=''
20864 NEXT_STDARG_H='<stdarg.h>'
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20866 $as_echo_n "checking for va_copy... " >&6; }
20867 if test "${gl_cv_func_va_copy+set}" = set; then :
20868 $as_echo_n "(cached) " >&6
20869 else
20870
20871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20873 #include <stdarg.h>
20874 int
20875 main ()
20876 {
20877
20878 #ifndef va_copy
20879 void (*func) (va_list, va_list) = va_copy;
20880 #endif
20881
20882 ;
20883 return 0;
20884 }
20885 _ACEOF
20886 if ac_fn_c_try_compile "$LINENO"; then :
20887 gl_cv_func_va_copy=yes
20888 else
20889 gl_cv_func_va_copy=no
20890 fi
20891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892 fi
20893
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20895 $as_echo "$gl_cv_func_va_copy" >&6; }
20896 if test $gl_cv_func_va_copy = no; then
20897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20898 /* end confdefs.h. */
20899 #if defined _AIX && !defined __GNUC__
20900 AIX vaccine
20901 #endif
20902
20903 _ACEOF
20904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20905 $EGREP "vaccine" >/dev/null 2>&1; then :
20906 gl_aixcc=yes
20907 else
20908 gl_aixcc=no
20909 fi
20910 rm -f conftest*
20911
20912 if test $gl_aixcc = yes; then
20913 STDARG_H=stdarg.h
20914
20915
20916
20917
20918
20919
20920
20921
20922 if test $gl_cv_have_include_next = yes; then
20923 gl_cv_next_stdarg_h='<'stdarg.h'>'
20924 else
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20926 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20927 if test "${gl_cv_next_stdarg_h+set}" = set; then :
20928 $as_echo_n "(cached) " >&6
20929 else
20930
20931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20932 /* end confdefs.h. */
20933 #include <stdarg.h>
20934
20935 _ACEOF
20936 case "$host_os" in
20937 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20938 *) gl_absname_cpp="$ac_cpp" ;;
20939 esac
20940
20941 case "$host_os" in
20942 mingw*)
20943 gl_dirsep_regex='[/\\]'
20944 ;;
20945 *)
20946 gl_dirsep_regex='/'
20947 ;;
20948 esac
20949
20950 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
20951 s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
20952 s|^/[^/]|//&|
20953 p
20954 q
20955 }'
20956 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20957 sed -n "$gl_absolute_header_sed"`'"'
20958
20959
20960 fi
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20962 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20963 fi
20964 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20965
20966 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20968 gl_next_as_first_directive='<'stdarg.h'>'
20969 else
20970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20971 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20972 fi
20973 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20974
20975
20976
20977
20978 if test "$gl_cv_next_stdarg_h" = '""'; then
20979 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20980 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20981 fi
20982 else
20983
20984 saved_as_echo_n="$as_echo_n"
20985 as_echo_n=':'
20986 if test "${gl_cv_func___va_copy+set}" = set; then :
20987 $as_echo_n "(cached) " >&6
20988 else
20989
20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20991 /* end confdefs.h. */
20992 #include <stdarg.h>
20993 int
20994 main ()
20995 {
20996
20997 #ifndef __va_copy
20998 error, bail out
20999 #endif
21000
21001 ;
21002 return 0;
21003 }
21004 _ACEOF
21005 if ac_fn_c_try_compile "$LINENO"; then :
21006 gl_cv_func___va_copy=yes
21007 else
21008 gl_cv_func___va_copy=no
21009 fi
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 fi
21012
21013 as_echo_n="$saved_as_echo_n"
21014
21015 if test $gl_cv_func___va_copy = yes; then
21016
21017 $as_echo "#define va_copy __va_copy" >>confdefs.h
21018
21019 else
21020
21021
21022 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
21023
21024 fi
21025 fi
21026 fi
21027
21028 if test -n "$STDARG_H"; then
21029 GL_GENERATE_STDARG_H_TRUE=
21030 GL_GENERATE_STDARG_H_FALSE='#'
21031 else
21032 GL_GENERATE_STDARG_H_TRUE='#'
21033 GL_GENERATE_STDARG_H_FALSE=
21034 fi
21035
21036
21037
21038
21039
21040
21041 # Define two additional variables used in the Makefile substitution.
21042
21043 if test "$ac_cv_header_stdbool_h" = yes; then
21044 STDBOOL_H=''
21045 else
21046 STDBOOL_H='stdbool.h'
21047 fi
21048
21049 if test -n "$STDBOOL_H"; then
21050 GL_GENERATE_STDBOOL_H_TRUE=
21051 GL_GENERATE_STDBOOL_H_FALSE='#'
21052 else
21053 GL_GENERATE_STDBOOL_H_TRUE='#'
21054 GL_GENERATE_STDBOOL_H_FALSE=
21055 fi
21056
21057
21058 if test "$ac_cv_type__Bool" = yes; then
21059 HAVE__BOOL=1
21060 else
21061 HAVE__BOOL=0
21062 fi
21063
21064
21065
21066
21067
21068 STDDEF_H=
21069 if test $gt_cv_c_wchar_t = no; then
21070 HAVE_WCHAR_T=0
21071 STDDEF_H=stddef.h
21072 fi
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21074 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21075 if test "${gl_cv_decl_null_works+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21077 else
21078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21079 /* end confdefs.h. */
21080 #include <stddef.h>
21081 int test[2 * (sizeof NULL == sizeof (void *)) -1];
21082
21083 int
21084 main ()
21085 {
21086
21087 ;
21088 return 0;
21089 }
21090 _ACEOF
21091 if ac_fn_c_try_compile "$LINENO"; then :
21092 gl_cv_decl_null_works=yes
21093 else
21094 gl_cv_decl_null_works=no
21095 fi
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 fi
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
21099 $as_echo "$gl_cv_decl_null_works" >&6; }
21100 if test $gl_cv_decl_null_works = no; then
21101 REPLACE_NULL=1
21102 STDDEF_H=stddef.h
21103 fi
21104
21105 if test -n "$STDDEF_H"; then
21106 GL_GENERATE_STDDEF_H_TRUE=
21107 GL_GENERATE_STDDEF_H_FALSE='#'
21108 else
21109 GL_GENERATE_STDDEF_H_TRUE='#'
21110 GL_GENERATE_STDDEF_H_FALSE=
21111 fi
21112
21113 if test -n "$STDDEF_H"; then
21114
21115
21116
21117
21118
21119
21120
21121
21122 if test $gl_cv_have_include_next = yes; then
21123 gl_cv_next_stddef_h='<'stddef.h'>'
21124 else
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
21126 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
21127 if test "${gl_cv_next_stddef_h+set}" = set; then :
21128 $as_echo_n "(cached) " >&6
21129 else
21130
21131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* end confdefs.h. */
21133 #include <stddef.h>
21134
21135 _ACEOF
21136 case "$host_os" in
21137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21138 *) gl_absname_cpp="$ac_cpp" ;;
21139 esac
21140
21141 case "$host_os" in
21142 mingw*)
21143 gl_dirsep_regex='[/\\]'
21144 ;;
21145 *)
21146 gl_dirsep_regex='/'
21147 ;;
21148 esac
21149
21150 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
21151 s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
21152 s|^/[^/]|//&|
21153 p
21154 q
21155 }'
21156 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21157 sed -n "$gl_absolute_header_sed"`'"'
21158
21159
21160 fi
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21162 $as_echo "$gl_cv_next_stddef_h" >&6; }
21163 fi
21164 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21165
21166 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21168 gl_next_as_first_directive='<'stddef.h'>'
21169 else
21170 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21171 gl_next_as_first_directive=$gl_cv_next_stddef_h
21172 fi
21173 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21174
21175
21176
21177
21178 fi
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192 if test $gl_cv_have_include_next = yes; then
21193 gl_cv_next_stdio_h='<'stdio.h'>'
21194 else
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21196 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21197 if test "${gl_cv_next_stdio_h+set}" = set; then :
21198 $as_echo_n "(cached) " >&6
21199 else
21200
21201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21202 /* end confdefs.h. */
21203 #include <stdio.h>
21204
21205 _ACEOF
21206 case "$host_os" in
21207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21208 *) gl_absname_cpp="$ac_cpp" ;;
21209 esac
21210
21211 case "$host_os" in
21212 mingw*)
21213 gl_dirsep_regex='[/\\]'
21214 ;;
21215 *)
21216 gl_dirsep_regex='/'
21217 ;;
21218 esac
21219
21220 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
21221 s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
21222 s|^/[^/]|//&|
21223 p
21224 q
21225 }'
21226 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21227 sed -n "$gl_absolute_header_sed"`'"'
21228
21229
21230 fi
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21232 $as_echo "$gl_cv_next_stdio_h" >&6; }
21233 fi
21234 NEXT_STDIO_H=$gl_cv_next_stdio_h
21235
21236 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21238 gl_next_as_first_directive='<'stdio.h'>'
21239 else
21240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21241 gl_next_as_first_directive=$gl_cv_next_stdio_h
21242 fi
21243 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21244
21245
21246
21247
21248
21249 GNULIB_FSCANF=1
21250 GNULIB_SCANF=1
21251 GNULIB_FGETC=1
21252 GNULIB_GETC=1
21253 GNULIB_GETCHAR=1
21254 GNULIB_FGETS=1
21255 GNULIB_GETS=1
21256 GNULIB_FREAD=1
21257
21258
21259 GNULIB_FPRINTF=1
21260 GNULIB_PRINTF=1
21261 GNULIB_VFPRINTF=1
21262 GNULIB_VPRINTF=1
21263 GNULIB_FPUTC=1
21264 GNULIB_PUTC=1
21265 GNULIB_PUTCHAR=1
21266 GNULIB_FPUTS=1
21267 GNULIB_PUTS=1
21268 GNULIB_FWRITE=1
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284 if test $gl_cv_have_include_next = yes; then
21285 gl_cv_next_stdlib_h='<'stdlib.h'>'
21286 else
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21288 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21289 if test "${gl_cv_next_stdlib_h+set}" = set; then :
21290 $as_echo_n "(cached) " >&6
21291 else
21292
21293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21294 /* end confdefs.h. */
21295 #include <stdlib.h>
21296
21297 _ACEOF
21298 case "$host_os" in
21299 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21300 *) gl_absname_cpp="$ac_cpp" ;;
21301 esac
21302
21303 case "$host_os" in
21304 mingw*)
21305 gl_dirsep_regex='[/\\]'
21306 ;;
21307 *)
21308 gl_dirsep_regex='/'
21309 ;;
21310 esac
21311
21312 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
21313 s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
21314 s|^/[^/]|//&|
21315 p
21316 q
21317 }'
21318 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21319 sed -n "$gl_absolute_header_sed"`'"'
21320
21321
21322 fi
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21324 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21325 fi
21326 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21327
21328 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21329 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21330 gl_next_as_first_directive='<'stdlib.h'>'
21331 else
21332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21333 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21334 fi
21335 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21346
21347
21348
21349
21350
21351
21352
21353 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21354
21355
21356
21357
21358
21359
21360
21361
21362 if test "$ac_cv_have_decl_strtoimax" != yes; then
21363 HAVE_DECL_STRTOIMAX=0
21364 fi
21365
21366 if test $ac_cv_func_strtoimax = no; then
21367
21368
21369
21370
21371
21372
21373
21374
21375 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21376
21377
21378 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21379 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
21380 ac_have_decl=1
21381 else
21382 ac_have_decl=0
21383 fi
21384
21385 cat >>confdefs.h <<_ACEOF
21386 #define HAVE_DECL_STRTOLL $ac_have_decl
21387 _ACEOF
21388
21389
21390
21391 fi
21392
21393
21394
21395
21396
21397 GNULIB_STRTOIMAX=1
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407 if test "$ac_cv_have_decl_strtoumax" != yes; then
21408 HAVE_DECL_STRTOUMAX=0
21409 fi
21410
21411 if test $ac_cv_func_strtoumax = no; then
21412
21413
21414
21415
21416
21417
21418
21419
21420 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21421
21422
21423 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21424 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
21425 ac_have_decl=1
21426 else
21427 ac_have_decl=0
21428 fi
21429
21430 cat >>confdefs.h <<_ACEOF
21431 #define HAVE_DECL_STRTOULL $ac_have_decl
21432 _ACEOF
21433
21434
21435
21436 fi
21437
21438
21439
21440
21441
21442 GNULIB_STRTOUMAX=1
21443
21444
21445
21446
21447
21448
21449
21450 if test $ac_cv_func_symlink = no; then
21451 HAVE_SYMLINK=0
21452 else
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21454 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21455 if test "${gl_cv_func_symlink_works+set}" = set; then :
21456 $as_echo_n "(cached) " >&6
21457 else
21458 if test "$cross_compiling" = yes; then :
21459 gl_cv_func_symlink_works="guessing no"
21460 else
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462 /* end confdefs.h. */
21463 #include <unistd.h>
21464
21465 int
21466 main ()
21467 {
21468 int result = 0;
21469 if (!symlink ("a", "conftest.link/"))
21470 result |= 1;
21471 if (symlink ("conftest.f", "conftest.lnk2"))
21472 result |= 2;
21473 else if (!symlink ("a", "conftest.lnk2/"))
21474 result |= 4;
21475 return result;
21476
21477 ;
21478 return 0;
21479 }
21480 _ACEOF
21481 if ac_fn_c_try_run "$LINENO"; then :
21482 gl_cv_func_symlink_works=yes
21483 else
21484 gl_cv_func_symlink_works=no
21485 fi
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21487 conftest.$ac_objext conftest.beam conftest.$ac_ext
21488 fi
21489
21490 rm -f conftest.f conftest.link conftest.lnk2
21491 fi
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21493 $as_echo "$gl_cv_func_symlink_works" >&6; }
21494 if test "$gl_cv_func_symlink_works" != yes; then
21495 REPLACE_SYMLINK=1
21496 fi
21497 fi
21498
21499 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21500
21501
21502
21503
21504
21505
21506
21507
21508 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21509
21510 fi
21511
21512
21513
21514
21515
21516 GNULIB_SYMLINK=1
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538 if test $gl_cv_have_include_next = yes; then
21539 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21540 else
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21542 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21543 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
21544 $as_echo_n "(cached) " >&6
21545 else
21546
21547 if test $ac_cv_header_sys_stat_h = yes; then
21548
21549
21550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21551 /* end confdefs.h. */
21552 #include <sys/stat.h>
21553
21554 _ACEOF
21555 case "$host_os" in
21556 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21557 *) gl_absname_cpp="$ac_cpp" ;;
21558 esac
21559
21560 case "$host_os" in
21561 mingw*)
21562 gl_dirsep_regex='[/\\]'
21563 ;;
21564 *)
21565 gl_dirsep_regex='/'
21566 ;;
21567 esac
21568
21569 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
21570 s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
21571 s|^/[^/]|//&|
21572 p
21573 q
21574 }'
21575 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21576 sed -n "$gl_absolute_header_sed"`'"'
21577 else
21578 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21579 fi
21580
21581
21582 fi
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21584 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21585 fi
21586 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21587
21588 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21590 gl_next_as_first_directive='<'sys/stat.h'>'
21591 else
21592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21593 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21594 fi
21595 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21596
21597
21598
21599
21600
21601
21602
21603 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21604 #include <sys/stat.h>
21605 "
21606 if test "x$ac_cv_type_nlink_t" = x""yes; then :
21607
21608 else
21609
21610 $as_echo "#define nlink_t int" >>confdefs.h
21611
21612 fi
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628 if test $ac_cv_have_decl_localtime_r = no; then
21629 HAVE_DECL_LOCALTIME_R=0
21630 fi
21631
21632
21633 if test $ac_cv_func_localtime_r = yes; then
21634 HAVE_LOCALTIME_R=1
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21636 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21637 if test "${gl_cv_time_r_posix+set}" = set; then :
21638 $as_echo_n "(cached) " >&6
21639 else
21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h. */
21642 #include <time.h>
21643 int
21644 main ()
21645 {
21646 /* We don't need to append 'restrict's to the argument types,
21647 even though the POSIX signature has the 'restrict's,
21648 since C99 says they can't affect type compatibility. */
21649 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21650 if (ptr) return 0;
21651 /* Check the return type is a pointer.
21652 On HP-UX 10 it is 'int'. */
21653 *localtime_r (0, 0);
21654 ;
21655 return 0;
21656 }
21657
21658 _ACEOF
21659 if ac_fn_c_try_compile "$LINENO"; then :
21660 gl_cv_time_r_posix=yes
21661 else
21662 gl_cv_time_r_posix=no
21663 fi
21664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665
21666 fi
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21668 $as_echo "$gl_cv_time_r_posix" >&6; }
21669 if test $gl_cv_time_r_posix = yes; then
21670 REPLACE_LOCALTIME_R=0
21671 else
21672 REPLACE_LOCALTIME_R=1
21673 fi
21674 else
21675 HAVE_LOCALTIME_R=0
21676 fi
21677
21678 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21679
21680
21681
21682
21683
21684
21685
21686
21687 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21688
21689
21690 :
21691
21692 fi
21693
21694
21695
21696
21697
21698 GNULIB_TIME_R=1
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718 if test $gl_cv_have_include_next = yes; then
21719 gl_cv_next_unistd_h='<'unistd.h'>'
21720 else
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21722 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21723 if test "${gl_cv_next_unistd_h+set}" = set; then :
21724 $as_echo_n "(cached) " >&6
21725 else
21726
21727 if test $ac_cv_header_unistd_h = yes; then
21728
21729
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h. */
21732 #include <unistd.h>
21733
21734 _ACEOF
21735 case "$host_os" in
21736 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21737 *) gl_absname_cpp="$ac_cpp" ;;
21738 esac
21739
21740 case "$host_os" in
21741 mingw*)
21742 gl_dirsep_regex='[/\\]'
21743 ;;
21744 *)
21745 gl_dirsep_regex='/'
21746 ;;
21747 esac
21748
21749 gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
21750 s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
21751 s|^/[^/]|//&|
21752 p
21753 q
21754 }'
21755 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21756 sed -n "$gl_absolute_header_sed"`'"'
21757 else
21758 gl_cv_next_unistd_h='<'unistd.h'>'
21759 fi
21760
21761
21762 fi
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21764 $as_echo "$gl_cv_next_unistd_h" >&6; }
21765 fi
21766 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21767
21768 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21770 gl_next_as_first_directive='<'unistd.h'>'
21771 else
21772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21773 gl_next_as_first_directive=$gl_cv_next_unistd_h
21774 fi
21775 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21776
21777
21778
21779
21780 if test $ac_cv_header_unistd_h = yes; then
21781 HAVE_UNISTD_H=1
21782 else
21783 HAVE_UNISTD_H=0
21784 fi
21785
21786
21787
21788
21789
21790
21791 gl_gnulib_enabled_dosname=false
21792 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21793 gl_gnulib_enabled_sigprocmask=false
21794 gl_gnulib_enabled_stat=false
21795 gl_gnulib_enabled_strtoll=false
21796 gl_gnulib_enabled_strtoull=false
21797 gl_gnulib_enabled_verify=false
21798 func_gl_gnulib_m4code_dosname ()
21799 {
21800 if ! $gl_gnulib_enabled_dosname; then
21801 gl_gnulib_enabled_dosname=true
21802 fi
21803 }
21804 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21805 {
21806 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21807
21808
21809 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21810 fi
21811 }
21812 func_gl_gnulib_m4code_sigprocmask ()
21813 {
21814 if ! $gl_gnulib_enabled_sigprocmask; then
21815
21816
21817
21818 if test $gl_cv_type_sigset_t = yes; then
21819 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21820 if test "x$ac_cv_func_sigprocmask" = x""yes; then :
21821 gl_cv_func_sigprocmask=1
21822 fi
21823
21824 fi
21825 if test -z "$gl_cv_func_sigprocmask"; then
21826 HAVE_POSIX_SIGNALBLOCKING=0
21827 fi
21828
21829 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21830
21831
21832
21833
21834
21835
21836
21837
21838 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21839
21840
21841
21842
21843 fi
21844
21845
21846
21847
21848
21849 GNULIB_SIGPROCMASK=1
21850
21851
21852
21853
21854
21855 gl_gnulib_enabled_sigprocmask=true
21856 fi
21857 }
21858 func_gl_gnulib_m4code_stat ()
21859 {
21860 if ! $gl_gnulib_enabled_stat; then
21861
21862
21863
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21865 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21866 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
21867 $as_echo_n "(cached) " >&6
21868 else
21869 if test "$cross_compiling" = yes; then :
21870 case $host_os in
21871 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21872 *) gl_cv_func_stat_dir_slash="guessing yes";;
21873 esac
21874 else
21875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21876 /* end confdefs.h. */
21877 #include <sys/stat.h>
21878
21879 int
21880 main ()
21881 {
21882 struct stat st; return stat (".", &st) != stat ("./", &st);
21883 ;
21884 return 0;
21885 }
21886 _ACEOF
21887 if ac_fn_c_try_run "$LINENO"; then :
21888 gl_cv_func_stat_dir_slash=yes
21889 else
21890 gl_cv_func_stat_dir_slash=no
21891 fi
21892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21893 conftest.$ac_objext conftest.beam conftest.$ac_ext
21894 fi
21895
21896 fi
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21898 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21900 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21901 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 touch conftest.tmp
21905 # Assume that if we have lstat, we can also check symlinks.
21906 if test $ac_cv_func_lstat = yes; then
21907 ln -s conftest.tmp conftest.lnk
21908 fi
21909 if test "$cross_compiling" = yes; then :
21910 gl_cv_func_stat_file_slash="guessing no"
21911 else
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21914 #include <sys/stat.h>
21915
21916 int
21917 main ()
21918 {
21919 int result = 0;
21920 struct stat st;
21921 if (!stat ("conftest.tmp/", &st))
21922 result |= 1;
21923 #if HAVE_LSTAT
21924 if (!stat ("conftest.lnk/", &st))
21925 result |= 2;
21926 #endif
21927 return result;
21928
21929 ;
21930 return 0;
21931 }
21932 _ACEOF
21933 if ac_fn_c_try_run "$LINENO"; then :
21934 gl_cv_func_stat_file_slash=yes
21935 else
21936 gl_cv_func_stat_file_slash=no
21937 fi
21938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21939 conftest.$ac_objext conftest.beam conftest.$ac_ext
21940 fi
21941
21942 rm -f conftest.tmp conftest.lnk
21943 fi
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21945 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21946 case $gl_cv_func_stat_dir_slash in
21947 *no) REPLACE_STAT=1
21948
21949 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21950 ;;
21951 esac
21952 case $gl_cv_func_stat_file_slash in
21953 *no) REPLACE_STAT=1
21954
21955 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21956 ;;
21957 esac
21958
21959 if test $REPLACE_STAT = 1; then
21960
21961
21962
21963
21964
21965
21966
21967
21968 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21969
21970
21971
21972 :
21973
21974 fi
21975
21976
21977
21978
21979
21980 GNULIB_STAT=1
21981
21982
21983
21984
21985
21986 gl_gnulib_enabled_stat=true
21987 if test $REPLACE_STAT = 1; then
21988 func_gl_gnulib_m4code_dosname
21989 fi
21990 if test $REPLACE_STAT = 1; then
21991 func_gl_gnulib_m4code_verify
21992 fi
21993 fi
21994 }
21995 func_gl_gnulib_m4code_strtoll ()
21996 {
21997 if ! $gl_gnulib_enabled_strtoll; then
21998
21999
22000
22001 if test "$ac_cv_type_long_long_int" = yes; then
22002 for ac_func in strtoll
22003 do :
22004 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
22005 if test "x$ac_cv_func_strtoll" = x""yes; then :
22006 cat >>confdefs.h <<_ACEOF
22007 #define HAVE_STRTOLL 1
22008 _ACEOF
22009
22010 fi
22011 done
22012
22013 if test $ac_cv_func_strtoll = no; then
22014 HAVE_STRTOLL=0
22015 fi
22016 fi
22017
22018 if test $HAVE_STRTOLL = 0; then
22019
22020
22021
22022
22023
22024
22025
22026
22027 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
22028
22029
22030 :
22031
22032 fi
22033
22034
22035
22036
22037
22038 GNULIB_STRTOLL=1
22039
22040
22041
22042
22043
22044 gl_gnulib_enabled_strtoll=true
22045 fi
22046 }
22047 func_gl_gnulib_m4code_strtoull ()
22048 {
22049 if ! $gl_gnulib_enabled_strtoull; then
22050
22051
22052
22053 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
22054 for ac_func in strtoull
22055 do :
22056 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22057 if test "x$ac_cv_func_strtoull" = x""yes; then :
22058 cat >>confdefs.h <<_ACEOF
22059 #define HAVE_STRTOULL 1
22060 _ACEOF
22061
22062 fi
22063 done
22064
22065 if test $ac_cv_func_strtoull = no; then
22066 HAVE_STRTOULL=0
22067 fi
22068 fi
22069
22070 if test $HAVE_STRTOULL = 0; then
22071
22072
22073
22074
22075
22076
22077
22078
22079 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
22080
22081
22082 :
22083
22084 fi
22085
22086
22087
22088
22089
22090 GNULIB_STRTOULL=1
22091
22092
22093
22094
22095
22096 gl_gnulib_enabled_strtoull=true
22097 fi
22098 }
22099 func_gl_gnulib_m4code_verify ()
22100 {
22101 if ! $gl_gnulib_enabled_verify; then
22102 gl_gnulib_enabled_verify=true
22103 fi
22104 }
22105 if test $REPLACE_GETOPT = 1; then
22106 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
22107 fi
22108 if test $REPLACE_LSTAT = 1; then
22109 func_gl_gnulib_m4code_dosname
22110 fi
22111 if test $REPLACE_LSTAT = 1; then
22112 func_gl_gnulib_m4code_stat
22113 fi
22114 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22115 func_gl_gnulib_m4code_sigprocmask
22116 fi
22117 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22118 func_gl_gnulib_m4code_stat
22119 fi
22120 if test $ac_cv_func_strtoimax = no; then
22121 func_gl_gnulib_m4code_verify
22122 fi
22123 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
22124 func_gl_gnulib_m4code_strtoll
22125 fi
22126 if test $ac_cv_func_strtoumax = no; then
22127 func_gl_gnulib_m4code_verify
22128 fi
22129 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
22130 func_gl_gnulib_m4code_strtoull
22131 fi
22132
22133 if $gl_gnulib_enabled_dosname; then
22134 gl_GNULIB_ENABLED_dosname_TRUE=
22135 gl_GNULIB_ENABLED_dosname_FALSE='#'
22136 else
22137 gl_GNULIB_ENABLED_dosname_TRUE='#'
22138 gl_GNULIB_ENABLED_dosname_FALSE=
22139 fi
22140
22141 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
22142 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
22143 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
22144 else
22145 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
22146 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
22147 fi
22148
22149 if $gl_gnulib_enabled_sigprocmask; then
22150 gl_GNULIB_ENABLED_sigprocmask_TRUE=
22151 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
22152 else
22153 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
22154 gl_GNULIB_ENABLED_sigprocmask_FALSE=
22155 fi
22156
22157 if $gl_gnulib_enabled_stat; then
22158 gl_GNULIB_ENABLED_stat_TRUE=
22159 gl_GNULIB_ENABLED_stat_FALSE='#'
22160 else
22161 gl_GNULIB_ENABLED_stat_TRUE='#'
22162 gl_GNULIB_ENABLED_stat_FALSE=
22163 fi
22164
22165 if $gl_gnulib_enabled_strtoll; then
22166 gl_GNULIB_ENABLED_strtoll_TRUE=
22167 gl_GNULIB_ENABLED_strtoll_FALSE='#'
22168 else
22169 gl_GNULIB_ENABLED_strtoll_TRUE='#'
22170 gl_GNULIB_ENABLED_strtoll_FALSE=
22171 fi
22172
22173 if $gl_gnulib_enabled_strtoull; then
22174 gl_GNULIB_ENABLED_strtoull_TRUE=
22175 gl_GNULIB_ENABLED_strtoull_FALSE='#'
22176 else
22177 gl_GNULIB_ENABLED_strtoull_TRUE='#'
22178 gl_GNULIB_ENABLED_strtoull_FALSE=
22179 fi
22180
22181 if $gl_gnulib_enabled_verify; then
22182 gl_GNULIB_ENABLED_verify_TRUE=
22183 gl_GNULIB_ENABLED_verify_FALSE='#'
22184 else
22185 gl_GNULIB_ENABLED_verify_TRUE='#'
22186 gl_GNULIB_ENABLED_verify_FALSE=
22187 fi
22188
22189 # End of code from modules
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199 gltests_libdeps=
22200 gltests_ltlibdeps=
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210 gl_source_base='tests'
22211 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
22212
22213 gl_module_indicator_condition=$gltests_WITNESS
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224 LIBGNU_LIBDEPS="$gl_libdeps"
22225
22226 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22227
22228
22229
22230 case "$opsys" in
22231 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22232
22233 darwin)
22234 ## The -headerpad option tells ld (see man page) to leave room at the
22235 ## end of the header for adding load commands. Needed for dumping.
22236 ## 0x690 is the total size of 30 segment load commands (at 56
22237 ## each); under Cocoa 31 commands are required.
22238 if test "$HAVE_NS" = "yes"; then
22239 libs_nsgui="-framework AppKit"
22240 headerpad_extra=6C8
22241 else
22242 libs_nsgui=
22243 headerpad_extra=690
22244 fi
22245 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22246
22247 ## This is here because src/Makefile.in did some extra fiddling around
22248 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22249 ## #ifndef LD_SWITCH_SYSTEM
22250 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22251 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22252 ## not using gcc, darwin system not on an alpha (ie darwin, since
22253 ## darwin + alpha does not occur).
22254 ## Because this was done in src/Makefile.in, the resulting part of
22255 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22256 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22257 ## rather than LD_SWITCH_SYSTEM.
22258 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22259 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22260 ;;
22261
22262 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22263 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22264 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22265 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22266 ## had different values in configure (in ac_link) and src/Makefile.in.
22267 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22268 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22269
22270 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22271 esac
22272
22273 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22274 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22275 fi
22276
22277
22278
22279
22280 LD_FIRSTFLAG=
22281 ORDINARY_LINK=
22282 case "$opsys" in
22283 ## gnu: GNU needs its own crt0.
22284 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22285
22286 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22287 ## library search parth, i.e. it won't search /usr/lib for libc and
22288 ## friends. Using -nostartfiles instead avoids this problem, and
22289 ## will also work on earlier NetBSD releases.
22290 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22291
22292 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22293 ## MkLinux/LinuxPPC needs this.
22294 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22295 gnu-*)
22296 case "$machine" in
22297 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22298 esac
22299 ;;
22300 esac
22301
22302
22303 if test "x$ORDINARY_LINK" = "xyes"; then
22304
22305 LD_FIRSTFLAG=""
22306
22307 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22308
22309
22310 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22311 ## freebsd, gnu-* not on macppc|ibms390x.
22312 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22313
22314 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22315 ## places that are difficult to figure out at make time. Fortunately,
22316 ## these same versions allow you to pass arbitrary flags on to the
22317 ## linker, so there is no reason not to use it as a linker.
22318 ##
22319 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22320 ## searching for libraries in its internal directories, so we have to
22321 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22322 LD_FIRSTFLAG="-nostdlib"
22323 fi
22324
22325 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22326 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22327
22328
22329
22330
22331 ## FIXME? The logic here is not precisely the same as that above.
22332 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22333 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22334 LIB_GCC=
22335 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22336
22337 case "$opsys" in
22338 freebsd|netbsd|openbsd) LIB_GCC= ;;
22339
22340 gnu-*)
22341 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22342 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22343 case $host_cpu in
22344 arm*)
22345 LIB_GCC="-lgcc_s"
22346 ;;
22347 *)
22348 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22349 ## immediately undefine it again and redefine it to empty.
22350 ## Was the C_SWITCH_X_SITE part really necessary?
22351 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22352 LIB_GCC=
22353 ;;
22354 esac
22355 ;;
22356
22357 ## Ask GCC where to find libgcc.a.
22358 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22359 esac
22360 fi
22361
22362
22363 ## If we're using X11/GNUstep, define some consequences.
22364 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22365
22366 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22367
22368
22369 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22370
22371 fi
22372
22373
22374
22375
22376 #### Report on what we decided to do.
22377 #### Report GTK as a toolkit, even if it doesn't use Xt.
22378 #### It makes printing result more understandable as using GTK sets
22379 #### toolkit_scroll_bars to yes by default.
22380 if test "${HAVE_GTK}" = "yes"; then
22381 USE_X_TOOLKIT=GTK
22382 fi
22383
22384 and_machfile=
22385 if test -n "$machfile"; then
22386 and_machfile=" and \`${machfile}'"
22387 fi
22388
22389 echo "
22390 Configured for \`${canonical}'.
22391
22392 Where should the build process find the source code? ${srcdir}
22393 What operating system and machine description files should Emacs use?
22394 \`${opsysfile}'${and_machfile}
22395 What compiler should emacs be built with? ${CC} ${CFLAGS}
22396 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22397 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22398 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22399 What window system should Emacs use? ${window_system}
22400 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22401
22402 if test -n "${x_includes}"; then
22403 echo " Where do we find X Windows header files? ${x_includes}"
22404 else
22405 echo " Where do we find X Windows header files? Standard dirs"
22406 fi
22407 if test -n "${x_libraries}"; then
22408 echo " Where do we find X Windows libraries? ${x_libraries}"
22409 else
22410 echo " Where do we find X Windows libraries? Standard dirs"
22411 fi
22412
22413 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22414 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22415 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22416 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22417 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22418 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22419 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22420 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22421
22422 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22423 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22424 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22425 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22426 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22427 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22428 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22429
22430 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22431 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22432 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22433 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22434
22435 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22436 echo
22437
22438 if test -n "${EMACSDATA}"; then
22439 echo " Environment variable EMACSDATA set to: $EMACSDATA"
22440 fi
22441 if test -n "${EMACSDOC}"; then
22442 echo " Environment variable EMACSDOC set to: $EMACSDOC"
22443 fi
22444
22445 if test $USE_XASSERTS = yes; then
22446 echo " Compiling with asserts turned on."
22447 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22448 fi
22449
22450 echo
22451
22452 if test "$HAVE_NS" = "yes"; then
22453 echo
22454 echo "You must run \"${MAKE-make} install\" in order to test the built application.
22455 The installed application will go to nextstep/Emacs.app and can be
22456 run or moved from there."
22457 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22458 echo "The application will be fully self-contained."
22459 else
22460 echo "The lisp resources for the application will be installed under ${prefix}.
22461 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
22462 to run if these resources are not installed."
22463 fi
22464 echo
22465 fi
22466
22467
22468 # Remove any trailing slashes in these variables.
22469 test "${prefix}" != NONE &&
22470 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22471 test "${exec_prefix}" != NONE &&
22472 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22473
22474 SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
22475
22476 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"
22477
22478
22479 opt_makefile=test/automated/Makefile
22480
22481 if test -f $srcdir/${opt_makefile}.in; then
22482 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22483 ac_config_files="$ac_config_files test/automated/Makefile"
22484
22485 fi
22486
22487 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22488
22489
22490
22491 ac_config_commands="$ac_config_commands mkdirs"
22492
22493
22494 ac_config_commands="$ac_config_commands epaths"
22495
22496
22497 ac_config_commands="$ac_config_commands gdbinit"
22498
22499
22500 cat >confcache <<\_ACEOF
22501 # This file is a shell script that caches the results of configure
22502 # tests run on this system so they can be shared between configure
22503 # scripts and configure runs, see configure's option --config-cache.
22504 # It is not useful on other systems. If it contains results you don't
22505 # want to keep, you may remove or edit it.
22506 #
22507 # config.status only pays attention to the cache file if you give it
22508 # the --recheck option to rerun configure.
22509 #
22510 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22511 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22512 # following values.
22513
22514 _ACEOF
22515
22516 # The following way of writing the cache mishandles newlines in values,
22517 # but we know of no workaround that is simple, portable, and efficient.
22518 # So, we kill variables containing newlines.
22519 # Ultrix sh set writes to stderr and can't be redirected directly,
22520 # and sets the high bit in the cache file unless we assign to the vars.
22521 (
22522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22523 eval ac_val=\$$ac_var
22524 case $ac_val in #(
22525 *${as_nl}*)
22526 case $ac_var in #(
22527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22529 esac
22530 case $ac_var in #(
22531 _ | IFS | as_nl) ;; #(
22532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22533 *) { eval $ac_var=; unset $ac_var;} ;;
22534 esac ;;
22535 esac
22536 done
22537
22538 (set) 2>&1 |
22539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22540 *${as_nl}ac_space=\ *)
22541 # `set' does not quote correctly, so add quotes: double-quote
22542 # substitution turns \\\\ into \\, and sed turns \\ into \.
22543 sed -n \
22544 "s/'/'\\\\''/g;
22545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22546 ;; #(
22547 *)
22548 # `set' quotes correctly as required by POSIX, so do not add quotes.
22549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22550 ;;
22551 esac |
22552 sort
22553 ) |
22554 sed '
22555 /^ac_cv_env_/b end
22556 t clear
22557 :clear
22558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22559 t end
22560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22561 :end' >>confcache
22562 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22563 if test -w "$cache_file"; then
22564 test "x$cache_file" != "x/dev/null" &&
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22566 $as_echo "$as_me: updating cache $cache_file" >&6;}
22567 cat confcache >$cache_file
22568 else
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22570 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22571 fi
22572 fi
22573 rm -f confcache
22574
22575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22576 # Let make expand exec_prefix.
22577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22578
22579 DEFS=-DHAVE_CONFIG_H
22580
22581 ac_libobjs=
22582 ac_ltlibobjs=
22583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22584 # 1. Remove the extension, and $U if already installed.
22585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22588 # will be set to the directory where LIBOBJS objects are built.
22589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22591 done
22592 LIBOBJS=$ac_libobjs
22593
22594 LTLIBOBJS=$ac_ltlibobjs
22595
22596
22597 if test -n "$EXEEXT"; then
22598 am__EXEEXT_TRUE=
22599 am__EXEEXT_FALSE='#'
22600 else
22601 am__EXEEXT_TRUE='#'
22602 am__EXEEXT_FALSE=
22603 fi
22604
22605 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22606 as_fn_error "conditional \"AMDEP\" was never defined.
22607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22608 fi
22609 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22610 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22612 fi
22613
22614 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22615 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
22616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22617 fi
22618 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22619 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22621 fi
22622
22623 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22624 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22626 fi
22627 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22628 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22630 fi
22631 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22632 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22634 fi
22635 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22636 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22638 fi
22639 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22640 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22642 fi
22643 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22644 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22646 fi
22647 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22648 as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22650 fi
22651 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22652 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22654 fi
22655 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22656 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22658 fi
22659 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22660 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22662 fi
22663 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22664 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22666 fi
22667
22668 gl_libobjs=
22669 gl_ltlibobjs=
22670 if test -n "$gl_LIBOBJS"; then
22671 # Remove the extension.
22672 sed_drop_objext='s/\.o$//;s/\.obj$//'
22673 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22674 gl_libobjs="$gl_libobjs $i.$ac_objext"
22675 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22676 done
22677 fi
22678 gl_LIBOBJS=$gl_libobjs
22679
22680 gl_LTLIBOBJS=$gl_ltlibobjs
22681
22682
22683
22684 gltests_libobjs=
22685 gltests_ltlibobjs=
22686 if test -n "$gltests_LIBOBJS"; then
22687 # Remove the extension.
22688 sed_drop_objext='s/\.o$//;s/\.obj$//'
22689 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22690 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22691 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22692 done
22693 fi
22694 gltests_LIBOBJS=$gltests_libobjs
22695
22696 gltests_LTLIBOBJS=$gltests_ltlibobjs
22697
22698
22699
22700 : ${CONFIG_STATUS=./config.status}
22701 ac_write_fail=0
22702 ac_clean_files_save=$ac_clean_files
22703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22706 as_write_fail=0
22707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22708 #! $SHELL
22709 # Generated by $as_me.
22710 # Run this file to recreate the current configuration.
22711 # Compiler output produced by configure, useful for debugging
22712 # configure, is in config.log if it exists.
22713
22714 debug=false
22715 ac_cs_recheck=false
22716 ac_cs_silent=false
22717
22718 SHELL=\${CONFIG_SHELL-$SHELL}
22719 export SHELL
22720 _ASEOF
22721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22722 ## -------------------- ##
22723 ## M4sh Initialization. ##
22724 ## -------------------- ##
22725
22726 # Be more Bourne compatible
22727 DUALCASE=1; export DUALCASE # for MKS sh
22728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22729 emulate sh
22730 NULLCMD=:
22731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22732 # is contrary to our usage. Disable this feature.
22733 alias -g '${1+"$@"}'='"$@"'
22734 setopt NO_GLOB_SUBST
22735 else
22736 case `(set -o) 2>/dev/null` in #(
22737 *posix*) :
22738 set -o posix ;; #(
22739 *) :
22740 ;;
22741 esac
22742 fi
22743
22744
22745 as_nl='
22746 '
22747 export as_nl
22748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22752 # Prefer a ksh shell builtin over an external printf program on Solaris,
22753 # but without wasting forks for bash or zsh.
22754 if test -z "$BASH_VERSION$ZSH_VERSION" \
22755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22756 as_echo='print -r --'
22757 as_echo_n='print -rn --'
22758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22759 as_echo='printf %s\n'
22760 as_echo_n='printf %s'
22761 else
22762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22764 as_echo_n='/usr/ucb/echo -n'
22765 else
22766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22767 as_echo_n_body='eval
22768 arg=$1;
22769 case $arg in #(
22770 *"$as_nl"*)
22771 expr "X$arg" : "X\\(.*\\)$as_nl";
22772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22773 esac;
22774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22775 '
22776 export as_echo_n_body
22777 as_echo_n='sh -c $as_echo_n_body as_echo'
22778 fi
22779 export as_echo_body
22780 as_echo='sh -c $as_echo_body as_echo'
22781 fi
22782
22783 # The user is always right.
22784 if test "${PATH_SEPARATOR+set}" != set; then
22785 PATH_SEPARATOR=:
22786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22788 PATH_SEPARATOR=';'
22789 }
22790 fi
22791
22792
22793 # IFS
22794 # We need space, tab and new line, in precisely that order. Quoting is
22795 # there to prevent editors from complaining about space-tab.
22796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22797 # splitting by setting IFS to empty value.)
22798 IFS=" "" $as_nl"
22799
22800 # Find who we are. Look in the path if we contain no directory separator.
22801 case $0 in #((
22802 *[\\/]* ) as_myself=$0 ;;
22803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22804 for as_dir in $PATH
22805 do
22806 IFS=$as_save_IFS
22807 test -z "$as_dir" && as_dir=.
22808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22809 done
22810 IFS=$as_save_IFS
22811
22812 ;;
22813 esac
22814 # We did not find ourselves, most probably we were run as `sh COMMAND'
22815 # in which case we are not to be found in the path.
22816 if test "x$as_myself" = x; then
22817 as_myself=$0
22818 fi
22819 if test ! -f "$as_myself"; then
22820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22821 exit 1
22822 fi
22823
22824 # Unset variables that we do not need and which cause bugs (e.g. in
22825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22826 # suppresses any "Segmentation fault" message there. '((' could
22827 # trigger a bug in pdksh 5.2.14.
22828 for as_var in BASH_ENV ENV MAIL MAILPATH
22829 do eval test x\${$as_var+set} = xset \
22830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22831 done
22832 PS1='$ '
22833 PS2='> '
22834 PS4='+ '
22835
22836 # NLS nuisances.
22837 LC_ALL=C
22838 export LC_ALL
22839 LANGUAGE=C
22840 export LANGUAGE
22841
22842 # CDPATH.
22843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22844
22845
22846 # as_fn_error ERROR [LINENO LOG_FD]
22847 # ---------------------------------
22848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22850 # script with status $?, using 1 if that was 0.
22851 as_fn_error ()
22852 {
22853 as_status=$?; test $as_status -eq 0 && as_status=1
22854 if test "$3"; then
22855 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22857 fi
22858 $as_echo "$as_me: error: $1" >&2
22859 as_fn_exit $as_status
22860 } # as_fn_error
22861
22862
22863 # as_fn_set_status STATUS
22864 # -----------------------
22865 # Set $? to STATUS, without forking.
22866 as_fn_set_status ()
22867 {
22868 return $1
22869 } # as_fn_set_status
22870
22871 # as_fn_exit STATUS
22872 # -----------------
22873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22874 as_fn_exit ()
22875 {
22876 set +e
22877 as_fn_set_status $1
22878 exit $1
22879 } # as_fn_exit
22880
22881 # as_fn_unset VAR
22882 # ---------------
22883 # Portably unset VAR.
22884 as_fn_unset ()
22885 {
22886 { eval $1=; unset $1;}
22887 }
22888 as_unset=as_fn_unset
22889 # as_fn_append VAR VALUE
22890 # ----------------------
22891 # Append the text in VALUE to the end of the definition contained in VAR. Take
22892 # advantage of any shell optimizations that allow amortized linear growth over
22893 # repeated appends, instead of the typical quadratic growth present in naive
22894 # implementations.
22895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22896 eval 'as_fn_append ()
22897 {
22898 eval $1+=\$2
22899 }'
22900 else
22901 as_fn_append ()
22902 {
22903 eval $1=\$$1\$2
22904 }
22905 fi # as_fn_append
22906
22907 # as_fn_arith ARG...
22908 # ------------------
22909 # Perform arithmetic evaluation on the ARGs, and store the result in the
22910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22911 # must be portable across $(()) and expr.
22912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22913 eval 'as_fn_arith ()
22914 {
22915 as_val=$(( $* ))
22916 }'
22917 else
22918 as_fn_arith ()
22919 {
22920 as_val=`expr "$@" || test $? -eq 1`
22921 }
22922 fi # as_fn_arith
22923
22924
22925 if expr a : '\(a\)' >/dev/null 2>&1 &&
22926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22927 as_expr=expr
22928 else
22929 as_expr=false
22930 fi
22931
22932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22933 as_basename=basename
22934 else
22935 as_basename=false
22936 fi
22937
22938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22939 as_dirname=dirname
22940 else
22941 as_dirname=false
22942 fi
22943
22944 as_me=`$as_basename -- "$0" ||
22945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22946 X"$0" : 'X\(//\)$' \| \
22947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22948 $as_echo X/"$0" |
22949 sed '/^.*\/\([^/][^/]*\)\/*$/{
22950 s//\1/
22951 q
22952 }
22953 /^X\/\(\/\/\)$/{
22954 s//\1/
22955 q
22956 }
22957 /^X\/\(\/\).*/{
22958 s//\1/
22959 q
22960 }
22961 s/.*/./; q'`
22962
22963 # Avoid depending upon Character Ranges.
22964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22967 as_cr_digits='0123456789'
22968 as_cr_alnum=$as_cr_Letters$as_cr_digits
22969
22970 ECHO_C= ECHO_N= ECHO_T=
22971 case `echo -n x` in #(((((
22972 -n*)
22973 case `echo 'xy\c'` in
22974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22975 xy) ECHO_C='\c';;
22976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22977 ECHO_T=' ';;
22978 esac;;
22979 *)
22980 ECHO_N='-n';;
22981 esac
22982
22983 rm -f conf$$ conf$$.exe conf$$.file
22984 if test -d conf$$.dir; then
22985 rm -f conf$$.dir/conf$$.file
22986 else
22987 rm -f conf$$.dir
22988 mkdir conf$$.dir 2>/dev/null
22989 fi
22990 if (echo >conf$$.file) 2>/dev/null; then
22991 if ln -s conf$$.file conf$$ 2>/dev/null; then
22992 as_ln_s='ln -s'
22993 # ... but there are two gotchas:
22994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22996 # In both cases, we have to default to `cp -p'.
22997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22998 as_ln_s='cp -p'
22999 elif ln conf$$.file conf$$ 2>/dev/null; then
23000 as_ln_s=ln
23001 else
23002 as_ln_s='cp -p'
23003 fi
23004 else
23005 as_ln_s='cp -p'
23006 fi
23007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23008 rmdir conf$$.dir 2>/dev/null
23009
23010
23011 # as_fn_mkdir_p
23012 # -------------
23013 # Create "$as_dir" as a directory, including parents if necessary.
23014 as_fn_mkdir_p ()
23015 {
23016
23017 case $as_dir in #(
23018 -*) as_dir=./$as_dir;;
23019 esac
23020 test -d "$as_dir" || eval $as_mkdir_p || {
23021 as_dirs=
23022 while :; do
23023 case $as_dir in #(
23024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23025 *) as_qdir=$as_dir;;
23026 esac
23027 as_dirs="'$as_qdir' $as_dirs"
23028 as_dir=`$as_dirname -- "$as_dir" ||
23029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23030 X"$as_dir" : 'X\(//\)[^/]' \| \
23031 X"$as_dir" : 'X\(//\)$' \| \
23032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23033 $as_echo X"$as_dir" |
23034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23035 s//\1/
23036 q
23037 }
23038 /^X\(\/\/\)[^/].*/{
23039 s//\1/
23040 q
23041 }
23042 /^X\(\/\/\)$/{
23043 s//\1/
23044 q
23045 }
23046 /^X\(\/\).*/{
23047 s//\1/
23048 q
23049 }
23050 s/.*/./; q'`
23051 test -d "$as_dir" && break
23052 done
23053 test -z "$as_dirs" || eval "mkdir $as_dirs"
23054 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23055
23056
23057 } # as_fn_mkdir_p
23058 if mkdir -p . 2>/dev/null; then
23059 as_mkdir_p='mkdir -p "$as_dir"'
23060 else
23061 test -d ./-p && rmdir ./-p
23062 as_mkdir_p=false
23063 fi
23064
23065 if test -x / >/dev/null 2>&1; then
23066 as_test_x='test -x'
23067 else
23068 if ls -dL / >/dev/null 2>&1; then
23069 as_ls_L_option=L
23070 else
23071 as_ls_L_option=
23072 fi
23073 as_test_x='
23074 eval sh -c '\''
23075 if test -d "$1"; then
23076 test -d "$1/.";
23077 else
23078 case $1 in #(
23079 -*)set "./$1";;
23080 esac;
23081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23082 ???[sx]*):;;*)false;;esac;fi
23083 '\'' sh
23084 '
23085 fi
23086 as_executable_p=$as_test_x
23087
23088 # Sed expression to map a string onto a valid CPP name.
23089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23090
23091 # Sed expression to map a string onto a valid variable name.
23092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23093
23094
23095 exec 6>&1
23096 ## ----------------------------------- ##
23097 ## Main body of $CONFIG_STATUS script. ##
23098 ## ----------------------------------- ##
23099 _ASEOF
23100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23101
23102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23103 # Save the log message, to keep $0 and so on meaningful, and to
23104 # report actual input values of CONFIG_FILES etc. instead of their
23105 # values after options handling.
23106 ac_log="
23107 This file was extended by emacs $as_me 24.0.91, which was
23108 generated by GNU Autoconf 2.65. Invocation command line was
23109
23110 CONFIG_FILES = $CONFIG_FILES
23111 CONFIG_HEADERS = $CONFIG_HEADERS
23112 CONFIG_LINKS = $CONFIG_LINKS
23113 CONFIG_COMMANDS = $CONFIG_COMMANDS
23114 $ $0 $@
23115
23116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23117 "
23118
23119 _ACEOF
23120
23121 case $ac_config_files in *"
23122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23123 esac
23124
23125 case $ac_config_headers in *"
23126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23127 esac
23128
23129
23130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23131 # Files that config.status was made for.
23132 config_files="$ac_config_files"
23133 config_headers="$ac_config_headers"
23134 config_commands="$ac_config_commands"
23135
23136 _ACEOF
23137
23138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23139 ac_cs_usage="\
23140 \`$as_me' instantiates files and other configuration actions
23141 from templates according to the current configuration. Unless the files
23142 and actions are specified as TAGs, all are instantiated by default.
23143
23144 Usage: $0 [OPTION]... [TAG]...
23145
23146 -h, --help print this help, then exit
23147 -V, --version print version number and configuration settings, then exit
23148 --config print configuration, then exit
23149 -q, --quiet, --silent
23150 do not print progress messages
23151 -d, --debug don't remove temporary files
23152 --recheck update $as_me by reconfiguring in the same conditions
23153 --file=FILE[:TEMPLATE]
23154 instantiate the configuration file FILE
23155 --header=FILE[:TEMPLATE]
23156 instantiate the configuration header FILE
23157
23158 Configuration files:
23159 $config_files
23160
23161 Configuration headers:
23162 $config_headers
23163
23164 Configuration commands:
23165 $config_commands
23166
23167 Report bugs to the package provider."
23168
23169 _ACEOF
23170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23171 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23172 ac_cs_version="\\
23173 emacs config.status 24.0.91
23174 configured by $0, generated by GNU Autoconf 2.65,
23175 with options \\"\$ac_cs_config\\"
23176
23177 Copyright (C) 2009 Free Software Foundation, Inc.
23178 This config.status script is free software; the Free Software Foundation
23179 gives unlimited permission to copy, distribute and modify it."
23180
23181 ac_pwd='$ac_pwd'
23182 srcdir='$srcdir'
23183 INSTALL='$INSTALL'
23184 MKDIR_P='$MKDIR_P'
23185 AWK='$AWK'
23186 test -n "\$AWK" || AWK=awk
23187 _ACEOF
23188
23189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23190 # The default lists apply if the user does not specify any file.
23191 ac_need_defaults=:
23192 while test $# != 0
23193 do
23194 case $1 in
23195 --*=*)
23196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23198 ac_shift=:
23199 ;;
23200 *)
23201 ac_option=$1
23202 ac_optarg=$2
23203 ac_shift=shift
23204 ;;
23205 esac
23206
23207 case $ac_option in
23208 # Handling of the options.
23209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23210 ac_cs_recheck=: ;;
23211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23212 $as_echo "$ac_cs_version"; exit ;;
23213 --config | --confi | --conf | --con | --co | --c )
23214 $as_echo "$ac_cs_config"; exit ;;
23215 --debug | --debu | --deb | --de | --d | -d )
23216 debug=: ;;
23217 --file | --fil | --fi | --f )
23218 $ac_shift
23219 case $ac_optarg in
23220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23221 esac
23222 as_fn_append CONFIG_FILES " '$ac_optarg'"
23223 ac_need_defaults=false;;
23224 --header | --heade | --head | --hea )
23225 $ac_shift
23226 case $ac_optarg in
23227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23228 esac
23229 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23230 ac_need_defaults=false;;
23231 --he | --h)
23232 # Conflict between --help and --header
23233 as_fn_error "ambiguous option: \`$1'
23234 Try \`$0 --help' for more information.";;
23235 --help | --hel | -h )
23236 $as_echo "$ac_cs_usage"; exit ;;
23237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23239 ac_cs_silent=: ;;
23240
23241 # This is an error.
23242 -*) as_fn_error "unrecognized option: \`$1'
23243 Try \`$0 --help' for more information." ;;
23244
23245 *) as_fn_append ac_config_targets " $1"
23246 ac_need_defaults=false ;;
23247
23248 esac
23249 shift
23250 done
23251
23252 ac_configure_extra_args=
23253
23254 if $ac_cs_silent; then
23255 exec 6>/dev/null
23256 ac_configure_extra_args="$ac_configure_extra_args --silent"
23257 fi
23258
23259 _ACEOF
23260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23261 if \$ac_cs_recheck; then
23262 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23263 shift
23264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23265 CONFIG_SHELL='$SHELL'
23266 export CONFIG_SHELL
23267 exec "\$@"
23268 fi
23269
23270 _ACEOF
23271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23272 exec 5>>config.log
23273 {
23274 echo
23275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23276 ## Running $as_me. ##
23277 _ASBOX
23278 $as_echo "$ac_log"
23279 } >&5
23280
23281 _ACEOF
23282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23283 #
23284 # INIT-COMMANDS
23285 #
23286 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23287 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23288
23289 _ACEOF
23290
23291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23292
23293 # Handling of arguments.
23294 for ac_config_target in $ac_config_targets
23295 do
23296 case $ac_config_target in
23297 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23299 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23300 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23301 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23302 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23303 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23304 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23305 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23306 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23307 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23308 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23309 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23310 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23311 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23312 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23313 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23314 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23315
23316 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23317 esac
23318 done
23319
23320
23321 # If the user did not use the arguments to specify the items to instantiate,
23322 # then the envvar interface is used. Set only those that are not.
23323 # We use the long form for the default assignment because of an extremely
23324 # bizarre bug on SunOS 4.1.3.
23325 if $ac_need_defaults; then
23326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23329 fi
23330
23331 # Have a temporary directory for convenience. Make it in the build tree
23332 # simply because there is no reason against having it here, and in addition,
23333 # creating and moving files from /tmp can sometimes cause problems.
23334 # Hook for its removal unless debugging.
23335 # Note that there is a small window in which the directory will not be cleaned:
23336 # after its creation but before its name has been assigned to `$tmp'.
23337 $debug ||
23338 {
23339 tmp=
23340 trap 'exit_status=$?
23341 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23342 ' 0
23343 trap 'as_fn_exit 1' 1 2 13 15
23344 }
23345 # Create a (secure) tmp directory for tmp files.
23346
23347 {
23348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23349 test -n "$tmp" && test -d "$tmp"
23350 } ||
23351 {
23352 tmp=./conf$$-$RANDOM
23353 (umask 077 && mkdir "$tmp")
23354 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23355
23356 # Set up the scripts for CONFIG_FILES section.
23357 # No need to generate them if there are no CONFIG_FILES.
23358 # This happens for instance with `./config.status config.h'.
23359 if test -n "$CONFIG_FILES"; then
23360
23361 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23362 ac_cs_awk_getline=:
23363 ac_cs_awk_pipe_init=
23364 ac_cs_awk_read_file='
23365 while ((getline aline < (F[key])) > 0)
23366 print(aline)
23367 close(F[key])'
23368 ac_cs_awk_pipe_fini=
23369 else
23370 ac_cs_awk_getline=false
23371 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23372 ac_cs_awk_read_file='
23373 print "|#_!!_#|"
23374 print "cat " F[key] " &&"
23375 '$ac_cs_awk_pipe_init
23376 # The final `:' finishes the AND list.
23377 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23378 fi
23379 ac_cr=`echo X | tr X '\015'`
23380 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23381 # But we know of no other shell where ac_cr would be empty at this
23382 # point, so we can use a bashism as a fallback.
23383 if test "x$ac_cr" = x; then
23384 eval ac_cr=\$\'\\r\'
23385 fi
23386 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23387 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23388 ac_cs_awk_cr='\r'
23389 else
23390 ac_cs_awk_cr=$ac_cr
23391 fi
23392
23393 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23394 _ACEOF
23395
23396 # Create commands to substitute file output variables.
23397 {
23398 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23399 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23400 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23401 echo "_ACAWK" &&
23402 echo "_ACEOF"
23403 } >conf$$files.sh &&
23404 . ./conf$$files.sh ||
23405 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23406 rm -f conf$$files.sh
23407
23408 {
23409 echo "cat >conf$$subs.awk <<_ACEOF" &&
23410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23411 echo "_ACEOF"
23412 } >conf$$subs.sh ||
23413 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23415 ac_delim='%!_!# '
23416 for ac_last_try in false false false false false :; do
23417 . ./conf$$subs.sh ||
23418 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23419
23420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23421 if test $ac_delim_n = $ac_delim_num; then
23422 break
23423 elif $ac_last_try; then
23424 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23425 else
23426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23427 fi
23428 done
23429 rm -f conf$$subs.sh
23430
23431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23432 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23433 _ACEOF
23434 sed -n '
23435 h
23436 s/^/S["/; s/!.*/"]=/
23437 p
23438 g
23439 s/^[^!]*!//
23440 :repl
23441 t repl
23442 s/'"$ac_delim"'$//
23443 t delim
23444 :nl
23445 h
23446 s/\(.\{148\}\)..*/\1/
23447 t more1
23448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23449 p
23450 n
23451 b repl
23452 :more1
23453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23454 p
23455 g
23456 s/.\{148\}//
23457 t nl
23458 :delim
23459 h
23460 s/\(.\{148\}\)..*/\1/
23461 t more2
23462 s/["\\]/\\&/g; s/^/"/; s/$/"/
23463 p
23464 b
23465 :more2
23466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23467 p
23468 g
23469 s/.\{148\}//
23470 t delim
23471 ' <conf$$subs.awk | sed '
23472 /^[^""]/{
23473 N
23474 s/\n//
23475 }
23476 ' >>$CONFIG_STATUS || ac_write_fail=1
23477 rm -f conf$$subs.awk
23478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23479 _ACAWK
23480 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23481 for (key in S) S_is_set[key] = 1
23482 FS = "\a"
23483 \$ac_cs_awk_pipe_init
23484 }
23485 {
23486 line = $ 0
23487 nfields = split(line, field, "@")
23488 substed = 0
23489 len = length(field[1])
23490 for (i = 2; i < nfields; i++) {
23491 key = field[i]
23492 keylen = length(key)
23493 if (S_is_set[key]) {
23494 value = S[key]
23495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23496 len += length(value) + length(field[++i])
23497 substed = 1
23498 } else
23499 len += 1 + keylen
23500 }
23501 if (nfields == 3 && !substed) {
23502 key = field[2]
23503 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23504 \$ac_cs_awk_read_file
23505 next
23506 }
23507 }
23508 print line
23509 }
23510 \$ac_cs_awk_pipe_fini
23511 _ACAWK
23512 _ACEOF
23513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23514 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23515 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23516 else
23517 cat
23518 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23519 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23520 _ACEOF
23521
23522 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23523 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23524 # trailing colons and then remove the whole line if VPATH becomes empty
23525 # (actually we leave an empty line to preserve line numbers).
23526 if test "x$srcdir" = x.; then
23527 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23528 s/:*\$(srcdir):*/:/
23529 s/:*\${srcdir}:*/:/
23530 s/:*@srcdir@:*/:/
23531 s/^\([^=]*=[ ]*\):*/\1/
23532 s/:*$//
23533 s/^[^=]*=[ ]*$//
23534 }'
23535 fi
23536
23537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23538 fi # test -n "$CONFIG_FILES"
23539
23540 # Set up the scripts for CONFIG_HEADERS section.
23541 # No need to generate them if there are no CONFIG_HEADERS.
23542 # This happens for instance with `./config.status Makefile'.
23543 if test -n "$CONFIG_HEADERS"; then
23544 cat >"$tmp/defines.awk" <<\_ACAWK ||
23545 BEGIN {
23546 _ACEOF
23547
23548 # Transform confdefs.h into an awk script `defines.awk', embedded as
23549 # here-document in config.status, that substitutes the proper values into
23550 # config.h.in to produce config.h.
23551
23552 # Create a delimiter string that does not exist in confdefs.h, to ease
23553 # handling of long lines.
23554 ac_delim='%!_!# '
23555 for ac_last_try in false false :; do
23556 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23557 if test -z "$ac_t"; then
23558 break
23559 elif $ac_last_try; then
23560 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23561 else
23562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23563 fi
23564 done
23565
23566 # For the awk script, D is an array of macro values keyed by name,
23567 # likewise P contains macro parameters if any. Preserve backslash
23568 # newline sequences.
23569
23570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23571 sed -n '
23572 s/.\{148\}/&'"$ac_delim"'/g
23573 t rset
23574 :rset
23575 s/^[ ]*#[ ]*define[ ][ ]*/ /
23576 t def
23577 d
23578 :def
23579 s/\\$//
23580 t bsnl
23581 s/["\\]/\\&/g
23582 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23583 D["\1"]=" \3"/p
23584 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23585 d
23586 :bsnl
23587 s/["\\]/\\&/g
23588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23589 D["\1"]=" \3\\\\\\n"\\/p
23590 t cont
23591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23592 t cont
23593 d
23594 :cont
23595 n
23596 s/.\{148\}/&'"$ac_delim"'/g
23597 t clear
23598 :clear
23599 s/\\$//
23600 t bsnlc
23601 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23602 d
23603 :bsnlc
23604 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23605 b cont
23606 ' <confdefs.h | sed '
23607 s/'"$ac_delim"'/"\\\
23608 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23609
23610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23611 for (key in D) D_is_set[key] = 1
23612 FS = "\a"
23613 }
23614 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23615 line = \$ 0
23616 split(line, arg, " ")
23617 if (arg[1] == "#") {
23618 defundef = arg[2]
23619 mac1 = arg[3]
23620 } else {
23621 defundef = substr(arg[1], 2)
23622 mac1 = arg[2]
23623 }
23624 split(mac1, mac2, "(") #)
23625 macro = mac2[1]
23626 prefix = substr(line, 1, index(line, defundef) - 1)
23627 if (D_is_set[macro]) {
23628 # Preserve the white space surrounding the "#".
23629 print prefix "define", macro P[macro] D[macro]
23630 next
23631 } else {
23632 # Replace #undef with comments. This is necessary, for example,
23633 # in the case of _POSIX_SOURCE, which is predefined and required
23634 # on some systems where configure will not decide to define it.
23635 if (defundef == "undef") {
23636 print "/*", prefix defundef, macro, "*/"
23637 next
23638 }
23639 }
23640 }
23641 { print }
23642 _ACAWK
23643 _ACEOF
23644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23645 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23646 fi # test -n "$CONFIG_HEADERS"
23647
23648
23649 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23650 shift
23651 for ac_tag
23652 do
23653 case $ac_tag in
23654 :[FHLC]) ac_mode=$ac_tag; continue;;
23655 esac
23656 case $ac_mode$ac_tag in
23657 :[FHL]*:*);;
23658 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23659 :[FH]-) ac_tag=-:-;;
23660 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23661 esac
23662 ac_save_IFS=$IFS
23663 IFS=:
23664 set x $ac_tag
23665 IFS=$ac_save_IFS
23666 shift
23667 ac_file=$1
23668 shift
23669
23670 case $ac_mode in
23671 :L) ac_source=$1;;
23672 :[FH])
23673 ac_file_inputs=
23674 for ac_f
23675 do
23676 case $ac_f in
23677 -) ac_f="$tmp/stdin";;
23678 *) # Look for the file first in the build tree, then in the source tree
23679 # (if the path is not absolute). The absolute path cannot be DOS-style,
23680 # because $ac_f cannot contain `:'.
23681 test -f "$ac_f" ||
23682 case $ac_f in
23683 [\\/$]*) false;;
23684 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23685 esac ||
23686 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23687 esac
23688 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23689 as_fn_append ac_file_inputs " '$ac_f'"
23690 done
23691
23692 # Let's still pretend it is `configure' which instantiates (i.e., don't
23693 # use $as_me), people would be surprised to read:
23694 # /* config.h. Generated by config.status. */
23695 configure_input='Generated from '`
23696 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23697 `' by configure.'
23698 if test x"$ac_file" != x-; then
23699 configure_input="$ac_file. $configure_input"
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23701 $as_echo "$as_me: creating $ac_file" >&6;}
23702 fi
23703 # Neutralize special characters interpreted by sed in replacement strings.
23704 case $configure_input in #(
23705 *\&* | *\|* | *\\* )
23706 ac_sed_conf_input=`$as_echo "$configure_input" |
23707 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23708 *) ac_sed_conf_input=$configure_input;;
23709 esac
23710
23711 case $ac_tag in
23712 *:-:* | *:-) cat >"$tmp/stdin" \
23713 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23714 esac
23715 ;;
23716 esac
23717
23718 ac_dir=`$as_dirname -- "$ac_file" ||
23719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$ac_file" : 'X\(//\)[^/]' \| \
23721 X"$ac_file" : 'X\(//\)$' \| \
23722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23723 $as_echo X"$ac_file" |
23724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23725 s//\1/
23726 q
23727 }
23728 /^X\(\/\/\)[^/].*/{
23729 s//\1/
23730 q
23731 }
23732 /^X\(\/\/\)$/{
23733 s//\1/
23734 q
23735 }
23736 /^X\(\/\).*/{
23737 s//\1/
23738 q
23739 }
23740 s/.*/./; q'`
23741 as_dir="$ac_dir"; as_fn_mkdir_p
23742 ac_builddir=.
23743
23744 case "$ac_dir" in
23745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23746 *)
23747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23748 # A ".." for each directory in $ac_dir_suffix.
23749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23750 case $ac_top_builddir_sub in
23751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23753 esac ;;
23754 esac
23755 ac_abs_top_builddir=$ac_pwd
23756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23757 # for backward compatibility:
23758 ac_top_builddir=$ac_top_build_prefix
23759
23760 case $srcdir in
23761 .) # We are building in place.
23762 ac_srcdir=.
23763 ac_top_srcdir=$ac_top_builddir_sub
23764 ac_abs_top_srcdir=$ac_pwd ;;
23765 [\\/]* | ?:[\\/]* ) # Absolute name.
23766 ac_srcdir=$srcdir$ac_dir_suffix;
23767 ac_top_srcdir=$srcdir
23768 ac_abs_top_srcdir=$srcdir ;;
23769 *) # Relative name.
23770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23771 ac_top_srcdir=$ac_top_build_prefix$srcdir
23772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23773 esac
23774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23775
23776
23777 case $ac_mode in
23778 :F)
23779 #
23780 # CONFIG_FILE
23781 #
23782
23783 case $INSTALL in
23784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23786 esac
23787 ac_MKDIR_P=$MKDIR_P
23788 case $MKDIR_P in
23789 [\\/$]* | ?:[\\/]* ) ;;
23790 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23791 esac
23792 _ACEOF
23793
23794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23795 # If the template does not know about datarootdir, expand it.
23796 # FIXME: This hack should be removed a few years after 2.60.
23797 ac_datarootdir_hack=; ac_datarootdir_seen=
23798 ac_sed_dataroot='
23799 /datarootdir/ {
23800 p
23801 q
23802 }
23803 /@datadir@/p
23804 /@docdir@/p
23805 /@infodir@/p
23806 /@localedir@/p
23807 /@mandir@/p'
23808 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23809 *datarootdir*) ac_datarootdir_seen=yes;;
23810 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23812 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23813 _ACEOF
23814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23815 ac_datarootdir_hack='
23816 s&@datadir@&$datadir&g
23817 s&@docdir@&$docdir&g
23818 s&@infodir@&$infodir&g
23819 s&@localedir@&$localedir&g
23820 s&@mandir@&$mandir&g
23821 s&\\\${datarootdir}&$datarootdir&g' ;;
23822 esac
23823 _ACEOF
23824
23825 # Neutralize VPATH when `$srcdir' = `.'.
23826 # Shell code in configure.ac might set extrasub.
23827 # FIXME: do we really want to maintain this feature?
23828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23829 ac_sed_extra="$ac_vpsub
23830 $extrasub
23831 _ACEOF
23832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23833 :t
23834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23835 s|@configure_input@|$ac_sed_conf_input|;t t
23836 s&@top_builddir@&$ac_top_builddir_sub&;t t
23837 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23838 s&@srcdir@&$ac_srcdir&;t t
23839 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23840 s&@top_srcdir@&$ac_top_srcdir&;t t
23841 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23842 s&@builddir@&$ac_builddir&;t t
23843 s&@abs_builddir@&$ac_abs_builddir&;t t
23844 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23845 s&@INSTALL@&$ac_INSTALL&;t t
23846 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23847 $ac_datarootdir_hack
23848 "
23849 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23850 if $ac_cs_awk_getline; then
23851 $AWK -f "$tmp/subs.awk"
23852 else
23853 $AWK -f "$tmp/subs.awk" | $SHELL
23854 fi >$tmp/out \
23855 || as_fn_error "could not create $ac_file" "$LINENO" 5
23856
23857 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23858 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23861 which seems to be undefined. Please make sure it is defined." >&5
23862 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23863 which seems to be undefined. Please make sure it is defined." >&2;}
23864
23865 rm -f "$tmp/stdin"
23866 case $ac_file in
23867 -) cat "$tmp/out" && rm -f "$tmp/out";;
23868 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23869 esac \
23870 || as_fn_error "could not create $ac_file" "$LINENO" 5
23871 ;;
23872 :H)
23873 #
23874 # CONFIG_HEADER
23875 #
23876 if test x"$ac_file" != x-; then
23877 {
23878 $as_echo "/* $configure_input */" \
23879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23880 } >"$tmp/config.h" \
23881 || as_fn_error "could not create $ac_file" "$LINENO" 5
23882 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23884 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23885 else
23886 rm -f "$ac_file"
23887 mv "$tmp/config.h" "$ac_file" \
23888 || as_fn_error "could not create $ac_file" "$LINENO" 5
23889 fi
23890 else
23891 $as_echo "/* $configure_input */" \
23892 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23893 || as_fn_error "could not create -" "$LINENO" 5
23894 fi
23895 # Compute "$ac_file"'s index in $config_headers.
23896 _am_arg="$ac_file"
23897 _am_stamp_count=1
23898 for _am_header in $config_headers :; do
23899 case $_am_header in
23900 $_am_arg | $_am_arg:* )
23901 break ;;
23902 * )
23903 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23904 esac
23905 done
23906 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23907 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908 X"$_am_arg" : 'X\(//\)[^/]' \| \
23909 X"$_am_arg" : 'X\(//\)$' \| \
23910 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23911 $as_echo X"$_am_arg" |
23912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23913 s//\1/
23914 q
23915 }
23916 /^X\(\/\/\)[^/].*/{
23917 s//\1/
23918 q
23919 }
23920 /^X\(\/\/\)$/{
23921 s//\1/
23922 q
23923 }
23924 /^X\(\/\).*/{
23925 s//\1/
23926 q
23927 }
23928 s/.*/./; q'`/stamp-h$_am_stamp_count
23929 ;;
23930
23931 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23932 $as_echo "$as_me: executing $ac_file commands" >&6;}
23933 ;;
23934 esac
23935
23936
23937 case $ac_file$ac_mode in
23938 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23939 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23940 # are listed without --file. Let's play safe and only enable the eval
23941 # if we detect the quoting.
23942 case $CONFIG_FILES in
23943 *\'*) eval set x "$CONFIG_FILES" ;;
23944 *) set x $CONFIG_FILES ;;
23945 esac
23946 shift
23947 for mf
23948 do
23949 # Strip MF so we end up with the name of the file.
23950 mf=`echo "$mf" | sed -e 's/:.*$//'`
23951 # Check whether this is an Automake generated Makefile or not.
23952 # We used to match only the files named `Makefile.in', but
23953 # some people rename them; so instead we look at the file content.
23954 # Grep'ing the first line is not enough: some people post-process
23955 # each Makefile.in and add a new line on top of each file to say so.
23956 # Grep'ing the whole file is not good either: AIX grep has a line
23957 # limit of 2048, but all sed's we know have understand at least 4000.
23958 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23959 dirpart=`$as_dirname -- "$mf" ||
23960 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23961 X"$mf" : 'X\(//\)[^/]' \| \
23962 X"$mf" : 'X\(//\)$' \| \
23963 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23964 $as_echo X"$mf" |
23965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23966 s//\1/
23967 q
23968 }
23969 /^X\(\/\/\)[^/].*/{
23970 s//\1/
23971 q
23972 }
23973 /^X\(\/\/\)$/{
23974 s//\1/
23975 q
23976 }
23977 /^X\(\/\).*/{
23978 s//\1/
23979 q
23980 }
23981 s/.*/./; q'`
23982 else
23983 continue
23984 fi
23985 # Extract the definition of DEPDIR, am__include, and am__quote
23986 # from the Makefile without running `make'.
23987 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23988 test -z "$DEPDIR" && continue
23989 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23990 test -z "am__include" && continue
23991 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23992 # When using ansi2knr, U may be empty or an underscore; expand it
23993 U=`sed -n 's/^U = //p' < "$mf"`
23994 # Find all dependency output files, they are included files with
23995 # $(DEPDIR) in their names. We invoke sed twice because it is the
23996 # simplest approach to changing $(DEPDIR) to its actual value in the
23997 # expansion.
23998 for file in `sed -n "
23999 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24000 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24001 # Make sure the directory exists.
24002 test -f "$dirpart/$file" && continue
24003 fdir=`$as_dirname -- "$file" ||
24004 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24005 X"$file" : 'X\(//\)[^/]' \| \
24006 X"$file" : 'X\(//\)$' \| \
24007 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24008 $as_echo X"$file" |
24009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24010 s//\1/
24011 q
24012 }
24013 /^X\(\/\/\)[^/].*/{
24014 s//\1/
24015 q
24016 }
24017 /^X\(\/\/\)$/{
24018 s//\1/
24019 q
24020 }
24021 /^X\(\/\).*/{
24022 s//\1/
24023 q
24024 }
24025 s/.*/./; q'`
24026 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24027 # echo "creating $dirpart/$file"
24028 echo '# dummy' > "$dirpart/$file"
24029 done
24030 done
24031 }
24032 ;;
24033 "mkdirs":C)
24034 for dir in etc lisp ; do
24035 test -d ${dir} || mkdir ${dir}
24036 done
24037 ;;
24038 "epaths":C)
24039 echo creating src/epaths.h
24040 ${MAKE-make} epaths-force
24041 ;;
24042 "gdbinit":C)
24043 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24044 echo creating src/.gdbinit
24045 echo source $srcdir/src/.gdbinit > src/.gdbinit
24046 fi
24047 ;;
24048
24049 esac
24050 done # for ac_tag
24051
24052
24053 as_fn_exit 0
24054 _ACEOF
24055 ac_clean_files=$ac_clean_files_save
24056
24057 test $ac_write_fail = 0 ||
24058 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24059
24060
24061 # configure is writing to config.log, and then calls config.status.
24062 # config.status does its own redirection, appending to config.log.
24063 # Unfortunately, on DOS this fails, as config.log is still kept open
24064 # by configure, so config.status won't be able to write to it; its
24065 # output is simply discarded. So we exec the FD to /dev/null,
24066 # effectively closing config.log, so it can be properly (re)opened and
24067 # appended to by config.status. When coming back to configure, we
24068 # need to make the FD available again.
24069 if test "$no_create" != yes; then
24070 ac_cs_success=:
24071 ac_config_status_args=
24072 test "$silent" = yes &&
24073 ac_config_status_args="$ac_config_status_args --quiet"
24074 exec 5>/dev/null
24075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24076 exec 5>>config.log
24077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24078 # would make configure fail if this is the last instruction.
24079 $ac_cs_success || as_fn_exit $?
24080 fi
24081 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24083 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24084 fi
24085
24086